org.springframework.data.hadoop.hbase
Interface TableCallback<T>
public interface TableCallback<T>
Callback interface for Hbase code. To be used with HbaseTemplate's execution methods, often as anonymous classes within a method implementation without
having to worry about exception handling.
- Author:
- Costin Leau
|
Method Summary |
T |
doInTable(org.apache.hadoop.hbase.client.HTableInterface table)
Gets called by HbaseTemplate execute with an active Hbase table. |
doInTable
T doInTable(org.apache.hadoop.hbase.client.HTableInterface table)
throws java.lang.Throwable
- Gets called by
HbaseTemplate execute with an active Hbase table. Does need to care about activating or closing down the table.
- Parameters:
table - active Hbase table
- Returns:
- a result object, or null if none
- Throws:
java.lang.Throwable - thrown by the Hbase API