public abstract class TestTableMapReduceBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[][] |
columns |
protected static byte[] |
INPUT_FAMILY |
protected static org.apache.hadoop.hbase.TableName |
MULTI_REGION_TABLE_NAME |
protected static byte[] |
OUTPUT_FAMILY |
protected static org.apache.hadoop.hbase.TableName |
TABLE_FOR_NEGATIVE_TESTS |
protected static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestTableMapReduceBase() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
static void |
beforeClass() |
protected abstract org.slf4j.Logger |
getLog()
Retrieve my logger instance.
|
protected static org.apache.hadoop.hbase.client.Put |
map(org.apache.hadoop.hbase.io.ImmutableBytesWritable key,
org.apache.hadoop.hbase.client.Result value)
Implements mapper logic for use across APIs.
|
protected abstract void |
runTestOnTable(org.apache.hadoop.hbase.client.Table table)
Handles API-specifics for setting up and executing the job.
|
void |
testCombiner() |
void |
testMultiRegionTable()
Test a map/reduce against a multi-region table
|
protected void |
verify(org.apache.hadoop.hbase.TableName tableName) |
private void |
verifyAttempt(org.apache.hadoop.hbase.client.Table table)
Looks at every value of the mapreduce output and verifies that indeed
the values have been reversed.
|
protected static final HBaseTestingUtility UTIL
protected static final org.apache.hadoop.hbase.TableName MULTI_REGION_TABLE_NAME
protected static final org.apache.hadoop.hbase.TableName TABLE_FOR_NEGATIVE_TESTS
protected static final byte[] INPUT_FAMILY
protected static final byte[] OUTPUT_FAMILY
protected static final byte[][] columns
public TestTableMapReduceBase()
protected abstract org.slf4j.Logger getLog()
protected abstract void runTestOnTable(org.apache.hadoop.hbase.client.Table table) throws IOException
IOExceptionpublic static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void testMultiRegionTable() throws IOException
IOExceptionpublic void testCombiner() throws IOException
IOExceptionprotected static org.apache.hadoop.hbase.client.Put map(org.apache.hadoop.hbase.io.ImmutableBytesWritable key, org.apache.hadoop.hbase.client.Result value) throws IOException
IOExceptionprotected void verify(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate void verifyAttempt(org.apache.hadoop.hbase.client.Table table) throws IOException, NullPointerException
table - Table to scan.IOExceptionNullPointerException - if we failed to find a cell valueCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.