public static class HBaseReadExample.MyTableInputFormat extends TableInputFormat
CONFIG_LOCATION, hbaseKey, hbaseResult, INPUT_TABLE, SCAN, SCAN_CACHEBLOCKS, SCAN_CACHEDROWS, SCAN_COLUMN_FAMILY, SCAN_COLUMNS, SCAN_MAXVERSIONS, SCAN_TIMERANGE_END, SCAN_TIMERANGE_START, SCAN_TIMESTAMP| Constructor and Description |
|---|
MyTableInputFormat() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.hadoop.hbase.client.Scan |
createScanner(Configuration parameters)
Read the configuration and creates a
Scan object. |
protected org.apache.hadoop.hbase.client.HTable |
createTable(Configuration parameters)
Create an
HTable instance and set it into this format. |
void |
mapResultToRecord(Record record,
HBaseKey key,
HBaseResult result)
Maps the current HBase Result into a Record.
|
close, configure, createInputSplits, getInputSplitType, getScan, getStatistics, getTable, nextRecord, nextResult, open, reachedEnd, setScan, setTableprotected org.apache.hadoop.hbase.client.HTable createTable(Configuration parameters)
TableInputFormatHTable instance and set it into this format.createTable in class TableInputFormatparameters - a Configuration that holds at least the table name.protected org.apache.hadoop.hbase.client.Scan createScanner(Configuration parameters)
TableInputFormatScan object.createScanner in class TableInputFormatpublic void mapResultToRecord(Record record, HBaseKey key, HBaseResult result)
TableInputFormatmapResultToRecord in class TableInputFormatCopyright © 2013–2014. All rights reserved.