private static class TestTableInputFormatBase.TableInputFormatForMergeTesting extends org.apache.hadoop.hbase.mapreduce.TableInputFormat
TableInputFormat
to use in TestTableInputFormatBase.testNonSuccessiveSplitsAreNotMerged()
.
This class overrides TableInputFormatBase.includeRegionInSplit(byte[], byte[])
to exclude specific splits.Modifier and Type | Field and Description |
---|---|
private byte[] |
prefixEndKey |
private byte[] |
prefixStartKey |
private org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator |
sizeCalculator |
INPUT_TABLE, SCAN, SCAN_BATCHSIZE, SCAN_CACHEBLOCKS, SCAN_CACHEDROWS, SCAN_COLUMN_FAMILY, SCAN_COLUMNS, SCAN_MAXVERSIONS, SCAN_ROW_START, SCAN_ROW_STOP, SCAN_TIMERANGE_END, SCAN_TIMERANGE_START, SCAN_TIMESTAMP, SHUFFLE_MAPS
Modifier | Constructor and Description |
---|---|
private |
TableInputFormatForMergeTesting() |
Modifier and Type | Method and Description |
---|---|
protected org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator |
createRegionSizeCalculator(org.apache.hadoop.hbase.client.RegionLocator locator,
org.apache.hadoop.hbase.client.Admin admin) |
protected boolean |
includeRegionInSplit(byte[] startKey,
byte[] endKey)
Exclude regions which contain rows starting with "b".
|
protected void |
initializeTable(org.apache.hadoop.hbase.client.Connection connection,
org.apache.hadoop.hbase.TableName tableName) |
addColumns, configureSplitTable, createScanFromConfiguration, getConf, getSplits, getStartEndKeys, initialize, setConf
private byte[] prefixStartKey
private byte[] prefixEndKey
private org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator sizeCalculator
private TableInputFormatForMergeTesting()
protected boolean includeRegionInSplit(byte[] startKey, byte[] endKey)
includeRegionInSplit
in class org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
protected void initializeTable(org.apache.hadoop.hbase.client.Connection connection, org.apache.hadoop.hbase.TableName tableName) throws IOException
initializeTable
in class org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
IOException
protected org.apache.hadoop.hbase.mapreduce.RegionSizeCalculator createRegionSizeCalculator(org.apache.hadoop.hbase.client.RegionLocator locator, org.apache.hadoop.hbase.client.Admin admin) throws IOException
createRegionSizeCalculator
in class org.apache.hadoop.hbase.mapreduce.TableInputFormatBase
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.