public static class TestTableInputFormat.ExampleTIF extends TableInputFormatBase
INPUT_AUTOBALANCE_MAXSKEWRATIO, MAPREDUCE_INPUT_AUTOBALANCE, TABLE_ROW_TEXTKEY| Constructor and Description |
|---|
ExampleTIF() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initialize(JobContext job)
Handle subclass specific set up.
|
calculateRebalancedSplits, closeTable, createRecordReader, getAdmin, getHTable, getRegionLocator, getScan, getSplitKey, getSplits, getStartEndKeys, getTable, includeRegionInSplit, initializeTable, reverseDNS, setHTable, setScan, setTableRecordReaderprotected void initialize(JobContext job)
throws IOException
TableInputFormatBaseTableInputFormatBase.createRecordReader(InputSplit, TaskAttemptContext) and TableInputFormatBase.getSplits(JobContext),
will call TableInputFormatBase.initialize(JobContext) as a convenient centralized location to handle
retrieving the necessary configuration information and calling
TableInputFormatBase.initializeTable(Connection, TableName).
Subclasses should implement their initialize call such that it is safe to call multiple times.
The current TableInputFormatBase implementation relies on a non-null table reference to decide
if an initialize call is needed, but this behavior may change in the future. In particular,
it is critical that initializeTable not be called multiple times since this will leak
Connection instances.initialize in class TableInputFormatBaseIOException