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
Nested ClassesModifier and TypeClassDescriptionstatic classPass the key and value to reduce.static classChecks the last and first key seen against the scanner boundaries. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final byte[][](package private) static final String(package private) static final Stringprivate static final org.slf4j.Loggerprivate static org.apache.hadoop.hbase.client.Table(package private) static final org.apache.hadoop.hbase.TableName(package private) static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidprotected voidRun MR job to test autobalance for setting number of mappers for TIF This does not run real MR jobprotected voidtestNumOfSplits(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 voidtestNumOfSplitsMR(int splitsPerRegion, int expectedNumOfSplits) Run MR job to check the number of mapper = expectedNumOfSplitsprotected voidTests a MR scan using specific start and stop rows.protected voidtestScanFromConfiguration(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
-