public abstract class TestTableMapReduceBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static byte[][] |
columns |
protected static byte[] |
INPUT_FAMILY |
protected static TableName |
MULTI_REGION_TABLE_NAME |
protected static byte[] |
OUTPUT_FAMILY |
protected static 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 Put |
map(ImmutableBytesWritable key,
Result value)
Implements mapper logic for use across APIs.
|
protected abstract void |
runTestOnTable(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(TableName tableName) |
protected static final HBaseTestingUtility UTIL
protected static final TableName MULTI_REGION_TABLE_NAME
protected static final 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(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 Put map(ImmutableBytesWritable key, Result value) throws IOException
IOExceptionprotected void verify(TableName tableName) throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.