public abstract class TestTableInputFormatScanBase extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestTableInputFormatScanBase.ScanMapper
Pass the key and value to reduce.
|
static class |
TestTableInputFormatScanBase.ScanReducer
Checks the last and first key seen against the scanner boundaries.
|
| Constructor and Description |
|---|
TestTableInputFormatScanBase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
protected void |
testAutobalanceNumOfSplit()
Run MR job to test autobalance for setting number of mappers for TIF This does not run real MR
job
|
protected 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 job
|
protected void |
testNumOfSplitsMR(int splitsPerRegion,
int expectedNumOfSplits)
Run MR job to check the number of mapper = expectedNumOfSplits
|
protected void |
testScan(String start,
String stop,
String last)
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.
|
public TestTableInputFormatScanBase()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionprotected void testScanFromConfiguration(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException
protected void testScan(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException
protected void testNumOfSplits(int splitsPerRegion, int expectedNumOfSplits) throws IOException, InterruptedException, ClassNotFoundException
protected void testNumOfSplitsMR(int splitsPerRegion, int expectedNumOfSplits) throws IOException, InterruptedException, ClassNotFoundException
protected void testAutobalanceNumOfSplit() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.