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(HTable table)
          Gets called by HbaseTemplate execute with an active Hbase table.
 

Method Detail

doInTable

T doInTable(HTable table)
            throws 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:
Throwable - thrown by the Hbase API