Class MultiTableInputFormatTestBase
java.lang.Object
org.apache.hadoop.hbase.mapreduce.MultiTableInputFormatTestBase
- Direct Known Subclasses:
TestMultiTableInputFormat
,TestMultiTableSnapshotInputFormat
Base set of tests and setup for input formats touching multiple tables.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Pass the key and value to reducer.static class
Checks the last and first keys 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
(package private) static final org.slf4j.Logger
(package private) static final String
static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
protected void
runJob
(String jobName, org.apache.hadoop.conf.Configuration c, List<org.apache.hadoop.hbase.client.Scan> scans) static void
void
tearDown()
static void
private void
Tests a MR scan using specific start and stop rows.void
void
void
void
-
Field Details
-
LOG
-
TEST_UTIL
-
TABLE_NAME
- See Also:
-
INPUT_FAMILY
-
KEY_STARTROW
- See Also:
-
KEY_LASTROW
- See Also:
-
TABLES
-
-
Constructor Details
-
MultiTableInputFormatTestBase
public MultiTableInputFormatTestBase()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testScanEmptyToEmpty
-
testScanEmptyToAPP
-
testScanOBBToOPP
-
testScanYZYToEmpty
-
testScan
private void testScan(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException Tests a MR scan using specific start and stop rows. -
runJob
protected void runJob(String jobName, org.apache.hadoop.conf.Configuration c, List<org.apache.hadoop.hbase.client.Scan> scans) throws IOException, InterruptedException, ClassNotFoundException -
initJob
protected abstract void initJob(List<org.apache.hadoop.hbase.client.Scan> scans, org.apache.hadoop.mapreduce.Job job) throws IOException - Throws:
IOException
-