public interface ResultsExtractor<T>
ResultScanner
but without having to worry about exception handling or resource management.Modifier and Type | Method and Description |
---|---|
T |
extractData(org.apache.hadoop.hbase.client.ResultScanner results)
Implementations must implement this method to process the entire
ResultScanner . |
T extractData(org.apache.hadoop.hbase.client.ResultScanner results) throws java.lang.Exception
ResultScanner
.results
- ResultScanner
to extract data from. Implementations should not close this; it will be closed
automatically by the calling HbaseTemplate
java.lang.Exception
- if an Hbase exception is encountered