public interface HBaseAPI
支持日志和审计的操作:全部
限定符和类型 | 方法和说明 |
---|---|
void |
createTable(HTableDescriptor table,
HColumnDescriptor... family)
创建hbase表
|
void |
delete(java.lang.String tableName,
java.lang.Object row,
java.lang.String familyName)
Deletes a single qualifier in the given table and family.
|
void |
delete(java.lang.String tableName,
java.lang.Object row,
java.lang.String familyName,
java.lang.String qualifier)
Deletes a single cell in the given table.
|
void |
execute(ConnectionCallback action)
hbase Connection回调方法
|
<T> T |
execute(java.lang.String tableName,
<any> action)
Executes the given action against the specified table handling resource management.
|
<T> T |
find(java.lang.String tableName,
Scan scan,
<any> action)
Scans the target table using the given
Scan object. |
<T> java.util.List<T> |
find(java.lang.String tableName,
Scan scan,
<any> action)
Scans the target table using the given
Scan object. |
<T> T |
find(java.lang.String tableName,
java.lang.String family,
<any> action)
Scans the target table, using the given family.
|
<T> java.util.List<T> |
find(java.lang.String tableName,
java.lang.String family,
<any> action)
Scans the target table, using the given column family.
|
<T> T |
find(java.lang.String tableName,
java.lang.String family,
java.lang.String qualifier,
<any> action)
Scans the target table, using the given column family and qualifier.
|
<T> java.util.List<T> |
find(java.lang.String tableName,
java.lang.String family,
java.lang.String qualifier,
<any> action)
Scans the target table, using the given column family.
|
<T> T |
get(java.lang.String tableName,
java.lang.Object row,
<any> mapper)
Gets an individual row from the given table.
|
<T> T |
get(java.lang.String tableName,
java.lang.Object row,
java.lang.String familyName,
<any> mapper)
Gets an individual row from the given table.
|
<T> T |
get(java.lang.String tableName,
java.lang.Object row,
java.lang.String familyName,
java.lang.String qualifier,
<any> mapper)
Gets an individual row from the given table.
|
void |
put(java.lang.String table,
Put put)
Puts a single value in to the given table.
|
void createTable(HTableDescriptor table, HColumnDescriptor... family)
void execute(ConnectionCallback action)
<T> T execute(java.lang.String tableName, <any> action)
Application exceptions thrown by the action object get propagated to the caller (can only be unchecked). Allows for returning a result object (typically a domain object or collection of domain objects).
T
- action typetableName
- the target tableaction
- callback object that specifies the action<T> T find(java.lang.String tableName, java.lang.String family, <any> action)
T
- action typetableName
- target tablefamily
- column familyaction
- action handling the scanner results<T> T find(java.lang.String tableName, java.lang.String family, java.lang.String qualifier, <any> action)
T
- action typetableName
- target tablefamily
- column familyqualifier
- column qualifieraction
- action handling the scanner results<T> T find(java.lang.String tableName, Scan scan, <any> action)
Scan
object. Suitable for maximum control over the scanning
process.
The content is processed by the given action typically returning a domain object or collection of domain objects.T
- action typetableName
- target tablescan
- table scanneraction
- action handling the scanner results<T> java.util.List<T> find(java.lang.String tableName, java.lang.String family, <any> action)
T
- action typetableName
- target tablefamily
- column familyaction
- row mapper handling the scanner results<T> java.util.List<T> find(java.lang.String tableName, java.lang.String family, java.lang.String qualifier, <any> action)
T
- action typetableName
- target tablefamily
- column familyqualifier
- column qualifieraction
- row mapper handling the scanner results<T> java.util.List<T> find(java.lang.String tableName, Scan scan, <any> action)
Scan
object. Suitable for maximum control over the scanning
process.
The content is processed row by row by the given action, returning a list of domain objects.T
- action typetableName
- target tablescan
- table scanneraction
- row mapper handling the scanner results<T> T get(java.lang.String tableName, java.lang.Object row, <any> mapper)
T
- mapper typetableName
- target tablerow
- row keymapper
- row mapper<T> T get(java.lang.String tableName, java.lang.Object row, java.lang.String familyName, <any> mapper)
T
- mapper typetableName
- target tablerow
- row keyfamilyName
- column familymapper
- row mapper<T> T get(java.lang.String tableName, java.lang.Object row, java.lang.String familyName, java.lang.String qualifier, <any> mapper)
T
- mapper typetableName
- target tablerow
- row keyfamilyName
- familyqualifier
- column qualifiermapper
- row mappervoid put(java.lang.String table, Put put)
tableName
- target tablerowName
- row namefamilyName
- familyqualifier
- column qualifierdata
- the byte array of the data value to be putvoid delete(java.lang.String tableName, java.lang.Object row, java.lang.String familyName)
tableName
- target tablerow
- row keyfamilyName
- familyvoid delete(java.lang.String tableName, java.lang.Object row, java.lang.String familyName, java.lang.String qualifier)
tableName
- target tablerow
- row keyfamilyName
- familyqualifier
- column qualifierCopyright © Actionsoft Co., Ltd. All Rights Reserved.