public abstract class MultiTableInputFormatTestBase extends Object
Modifier and Type | Class and Description |
---|---|
static class |
MultiTableInputFormatTestBase.ScanMapper
Pass the key and value to reducer.
|
static class |
MultiTableInputFormatTestBase.ScanReducer
Checks the last and first keys seen against the scanner boundaries.
|
Modifier and Type | Field and Description |
---|---|
(package private) static byte[] |
INPUT_FAMILY |
(package private) static String |
KEY_LASTROW |
(package private) static String |
KEY_STARTROW |
(package private) static org.slf4j.Logger |
LOG |
(package private) static String |
TABLE_NAME |
(package private) static List<String> |
TABLES |
static HBaseTestingUtility |
TEST_UTIL |
Constructor and Description |
---|
MultiTableInputFormatTestBase() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
initJob(List<org.apache.hadoop.hbase.client.Scan> scans,
org.apache.hadoop.mapreduce.Job job) |
protected void |
runJob(String jobName,
org.apache.hadoop.conf.Configuration c,
List<org.apache.hadoop.hbase.client.Scan> scans) |
static void |
setUpBeforeClass() |
void |
tearDown() |
static void |
tearDownAfterClass() |
private void |
testScan(String start,
String stop,
String last)
Tests a MR scan using specific start and stop rows.
|
void |
testScanEmptyToAPP() |
void |
testScanEmptyToEmpty() |
void |
testScanOBBToOPP() |
void |
testScanYZYToEmpty() |
static final org.slf4j.Logger LOG
public static final HBaseTestingUtility TEST_UTIL
static final String TABLE_NAME
static final byte[] INPUT_FAMILY
static final String KEY_STARTROW
static final String KEY_LASTROW
public MultiTableInputFormatTestBase()
public static void setUpBeforeClass() throws Exception
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testScanEmptyToEmpty() throws IOException, InterruptedException, ClassNotFoundException
public void testScanEmptyToAPP() throws IOException, InterruptedException, ClassNotFoundException
public void testScanOBBToOPP() throws IOException, InterruptedException, ClassNotFoundException
public void testScanYZYToEmpty() throws IOException, InterruptedException, ClassNotFoundException
private void testScan(String start, String stop, String last) throws IOException, InterruptedException, ClassNotFoundException
protected void runJob(String jobName, org.apache.hadoop.conf.Configuration c, List<org.apache.hadoop.hbase.client.Scan> scans) throws IOException, InterruptedException, ClassNotFoundException
protected abstract void initJob(List<org.apache.hadoop.hbase.client.Scan> scans, org.apache.hadoop.mapreduce.Job job) throws IOException
IOException
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.