Class TestTableInputFormatScanBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestTableInputFormatScanBase
- Direct Known Subclasses:
TestTableInputFormatScan
,TestTableInputFormatScanEmptyToAPP
,TestTableInputFormatScanEmptyToBBA
,TestTableInputFormatScanEmptyToBBB
,TestTableInputFormatScanEmptyToEmpty
,TestTableInputFormatScanEmptyToOPP
,TestTableInputFormatScanOBBToOPP
,TestTableInputFormatScanOBBToQPP
,TestTableInputFormatScanOPPToEmpty
,TestTableInputFormatScanYYXToEmpty
,TestTableInputFormatScanYYYToEmpty
,TestTableInputFormatScanYZYToEmpty
Tests various scan start and stop row scenarios. This is set in a scan and tested in a MapReduce
job to see if that is handed over and done properly too.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Pass the key and value to reduce.static class
Checks the last and first key seen against the scanner boundaries. -
Field Summary
Modifier and TypeFieldDescription(package private) static final byte[][]
(package private) static final String
(package private) static final String
private static final org.slf4j.Logger
private static org.apache.hadoop.hbase.client.Table
(package private) static final org.apache.hadoop.hbase.TableName
(package private) static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
static void
protected void
Run MR job to test autobalance for setting number of mappers for TIF This does not run real MR jobprotected void
testNumOfSplits
(int splitsPerRegion, int expectedNumOfSplits) Tests Number of inputSplits for MR job when specify number of mappers for TableInputFormatXXX This test does not run MR jobprotected void
testNumOfSplitsMR
(int splitsPerRegion, int expectedNumOfSplits) Run MR job to check the number of mapper = expectedNumOfSplitsprotected void
Tests a MR scan using specific start and stop rows.protected void
testScanFromConfiguration
(String start, String stop, String last) Tests an MR Scan initialized from properties set in the Configuration.
-
Field Details
-
LOG
-
TEST_UTIL
-
TABLE_NAME
-
INPUT_FAMILYS
-
KEY_STARTROW
- See Also:
-
KEY_LASTROW
- See Also:
-
table
-
-
Constructor Details
-
TestTableInputFormatScanBase
public TestTableInputFormatScanBase()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testScanFromConfiguration
protected void testScanFromConfiguration(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException Tests an MR Scan initialized from properties set in the Configuration. -
testScan
protected void testScan(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException Tests a MR scan using specific start and stop rows. -
testNumOfSplits
protected void testNumOfSplits(int splitsPerRegion, int expectedNumOfSplits) throws IOException, InterruptedException, ClassNotFoundException Tests Number of inputSplits for MR job when specify number of mappers for TableInputFormatXXX This test does not run MR job -
testNumOfSplitsMR
protected void testNumOfSplitsMR(int splitsPerRegion, int expectedNumOfSplits) throws IOException, InterruptedException, ClassNotFoundException Run MR job to check the number of mapper = expectedNumOfSplits -
testAutobalanceNumOfSplit
Run MR job to test autobalance for setting number of mappers for TIF This does not run real MR job- Throws:
IOException
-