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 SummaryNested ClassesModifier and TypeClassDescriptionstatic classPass the key and value to reduce.static classChecks the last and first key seen against the scanner boundaries.
- 
Field SummaryFieldsModifier 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 HBaseTestingUtil
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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- 
TestTableInputFormatScanBasepublic TestTableInputFormatScanBase()
 
- 
- 
Method Details- 
setUpBeforeClass- Throws:
- Exception
 
- 
tearDownAfterClass- Throws:
- Exception
 
- 
testScanFromConfigurationprotected void testScanFromConfiguration(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException Tests an MR Scan initialized from properties set in the Configuration.
- 
testScanprotected void testScan(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException Tests a MR scan using specific start and stop rows.
- 
testNumOfSplitsprotected 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
- 
testNumOfSplitsMRprotected void testNumOfSplitsMR(int splitsPerRegion, int expectedNumOfSplits) throws IOException, InterruptedException, ClassNotFoundException Run MR job to check the number of mapper = expectedNumOfSplits
- 
testAutobalanceNumOfSplitRun MR job to test autobalance for setting number of mappers for TIF This does not run real MR job- Throws:
- IOException
 
 
-