| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HbaseOperations
Interface that specifies a basic set of Hbase operations, implemented by HbaseTemplate. Not often used, but a useful option to enhance testability, as it can easily be mocked or stubbed.
| Method Summary | ||
|---|---|---|
 | 
execute(String tableName,
        TableCallback<T> action)
Executes the given action against the specified table handling resource management.  | 
|
 | 
find(String tableName,
     Scan scan,
     ResultsExtractor<T> action)
Scans the target table using the given Scan object. | 
|
 | 
find(String tableName,
     Scan scan,
     RowMapper<T> action)
Scans the target table using the given Scan object. | 
|
 | 
find(String tableName,
     String family,
     ResultsExtractor<T> action)
Scans the target table, using the given family.  | 
|
 | 
find(String tableName,
     String family,
     RowMapper<T> action)
Scans the target table, using the given column family.  | 
|
 | 
find(String tableName,
     String family,
     String qualifier,
     ResultsExtractor<T> action)
Scans the target table, using the given column family and qualifier.  | 
|
 | 
find(String tableName,
     String family,
     String qualifier,
     RowMapper<T> action)
Scans the target table, using the given column family.  | 
|
 | 
get(String tableName,
    String rowName,
    RowMapper<T> mapper)
Gets an individual row from the given table.  | 
|
 | 
get(String tableName,
    String rowName,
    String familyName,
    RowMapper<T> mapper)
Gets an individual row from the given table.  | 
|
 | 
get(String tableName,
    String rowName,
    String familyName,
    String qualifier,
    RowMapper<T> mapper)
Gets an individual row from the given table.  | 
|
| Method Detail | 
|---|
<T> T execute(String tableName,
              TableCallback<T> action)
tableName - the target tableaction - callback object that specifies the action
<T> T find(String tableName,
           String family,
           ResultsExtractor<T> action)
tableName - target tablefamily - column familyaction - action handling the scanner results
<T> T find(String tableName,
           String family,
           String qualifier,
           ResultsExtractor<T> action)
tableName - target tablefamily - column familyqualifier - column qualifieraction - action handling the scanner results
<T> T find(String tableName,
           Scan scan,
           ResultsExtractor<T> 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.
tableName - target tablescan - table scanneraction - action handling the scanner results
<T> List<T> find(String tableName,
                 String family,
                 RowMapper<T> action)
tableName - target tablefamily - column familyaction - row mapper handling the scanner results
<T> List<T> find(String tableName,
                 String family,
                 String qualifier,
                 RowMapper<T> action)
tableName - target tablefamily - column familyqualifier - column qualifieraction - row mapper handling the scanner results
<T> List<T> find(String tableName,
                 Scan scan,
                 RowMapper<T> 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.
tableName - target tablescan - table scanneraction - row mapper handling the scanner results
<T> T get(String tableName,
          String rowName,
          RowMapper<T> mapper)
tableName - target tablerowName - row namemapper - row mapper
<T> T get(String tableName,
          String rowName,
          String familyName,
          RowMapper<T> mapper)
tableName - target tablerowName - row namefamilyName - column familymapper - row mapper
<T> T get(String tableName,
          String rowName,
          String familyName,
          String qualifier,
          RowMapper<T> mapper)
tableName - target tablerowName - row namefamilyName - familyqualifier - column qualifiermapper - row mapper
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||