public class HbaseTemplate extends HbaseAccessor implements HbaseOperations
| Constructor and Description | 
|---|
| HbaseTemplate() | 
| HbaseTemplate(org.apache.hadoop.conf.Configuration configuration) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.springframework.dao.DataAccessException | convertHbaseAccessException(java.lang.Exception ex) | 
| <T> T | execute(java.lang.String tableName,
       TableCallback<T> action)Executes the given action against the specified table handling resource management. | 
| <T> T | find(java.lang.String tableName,
    org.apache.hadoop.hbase.client.Scan scan,
    ResultsExtractor<T> action)Scans the target table using the given  Scanobject. | 
| <T> java.util.List<T> | find(java.lang.String tableName,
    org.apache.hadoop.hbase.client.Scan scan,
    RowMapper<T> action)Scans the target table using the given  Scanobject. | 
| <T> T | find(java.lang.String tableName,
    java.lang.String family,
    ResultsExtractor<T> action)Scans the target table, using the given family. | 
| <T> java.util.List<T> | find(java.lang.String tableName,
    java.lang.String family,
    RowMapper<T> 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,
    ResultsExtractor<T> 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,
    RowMapper<T> action)Scans the target table, using the given column family. | 
| <T> T | get(java.lang.String tableName,
   java.lang.String rowName,
   RowMapper<T> mapper)Gets an individual row from the given table. | 
| <T> T | get(java.lang.String tableName,
   java.lang.String rowName,
   java.lang.String familyName,
   RowMapper<T> mapper)Gets an individual row from the given table. | 
| <T> T | get(java.lang.String tableName,
   java.lang.String rowName,
   java.lang.String familyName,
   java.lang.String qualifier,
   RowMapper<T> mapper)Gets an individual row from the given table. | 
| void | setAutoFlush(boolean autoFlush)Sets the auto flush. | 
afterPropertiesSet, getCharset, getConfiguration, getTableFactory, setConfiguration, setEncoding, setTableFactorypublic HbaseTemplate()
public HbaseTemplate(org.apache.hadoop.conf.Configuration configuration)
public <T> T execute(java.lang.String tableName,
            TableCallback<T> action)
HbaseOperationsApplication 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).
execute in interface HbaseOperationsT - action typetableName - the target tableaction - callback object that specifies the actionpublic org.springframework.dao.DataAccessException convertHbaseAccessException(java.lang.Exception ex)
public <T> T find(java.lang.String tableName,
         java.lang.String family,
         ResultsExtractor<T> action)
HbaseOperationsfind in interface HbaseOperationsT - action typetableName - target tablefamily - column familyaction - action handling the scanner resultspublic <T> T find(java.lang.String tableName,
         java.lang.String family,
         java.lang.String qualifier,
         ResultsExtractor<T> action)
HbaseOperationsfind in interface HbaseOperationsT - action typetableName - target tablefamily - column familyqualifier - column qualifieraction - action handling the scanner resultspublic <T> T find(java.lang.String tableName,
         org.apache.hadoop.hbase.client.Scan scan,
         ResultsExtractor<T> action)
HbaseOperationsScan 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.find in interface HbaseOperationsT - action typetableName - target tablescan - table scanneraction - action handling the scanner resultspublic <T> java.util.List<T> find(java.lang.String tableName,
                         java.lang.String family,
                         RowMapper<T> action)
HbaseOperationsfind in interface HbaseOperationsT - action typetableName - target tablefamily - column familyaction - row mapper handling the scanner resultspublic <T> java.util.List<T> find(java.lang.String tableName,
                         java.lang.String family,
                         java.lang.String qualifier,
                         RowMapper<T> action)
HbaseOperationsfind in interface HbaseOperationsT - action typetableName - target tablefamily - column familyqualifier - column qualifieraction - row mapper handling the scanner resultspublic <T> java.util.List<T> find(java.lang.String tableName,
                         org.apache.hadoop.hbase.client.Scan scan,
                         RowMapper<T> action)
HbaseOperationsScan 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.find in interface HbaseOperationsT - action typetableName - target tablescan - table scanneraction - row mapper handling the scanner resultspublic <T> T get(java.lang.String tableName,
        java.lang.String rowName,
        RowMapper<T> mapper)
HbaseOperationsget in interface HbaseOperationsT - mapper typetableName - target tablerowName - row namemapper - row mapperpublic <T> T get(java.lang.String tableName,
        java.lang.String rowName,
        java.lang.String familyName,
        RowMapper<T> mapper)
HbaseOperationsget in interface HbaseOperationsT - mapper typetableName - target tablerowName - row namefamilyName - column familymapper - row mapperpublic <T> T get(java.lang.String tableName,
        java.lang.String rowName,
        java.lang.String familyName,
        java.lang.String qualifier,
        RowMapper<T> mapper)
HbaseOperationsget in interface HbaseOperationsT - mapper typetableName - target tablerowName - row namefamilyName - familyqualifier - column qualifiermapper - row mapperpublic void setAutoFlush(boolean autoFlush)
autoFlush - The autoFlush to set.