public class TestMultithreadedTableMapper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TestMultithreadedTableMapper.ProcessContentsMapper
Pass the given key and processed record reduce
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) static byte[] |
INPUT_FAMILY |
private static org.slf4j.Logger |
LOG |
(package private) static org.apache.hadoop.hbase.TableName |
MULTI_REGION_TABLE_NAME |
(package private) static int |
NUMBER_OF_THREADS |
(package private) static byte[] |
OUTPUT_FAMILY |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestMultithreadedTableMapper() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
static void |
beforeClass() |
private void |
runTestOnTable(org.apache.hadoop.hbase.client.Table table) |
void |
testMultithreadedTableMapper()
Test multithreadedTableMappper map/reduce against a multi-region table nnn
|
private 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.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
static final org.apache.hadoop.hbase.TableName MULTI_REGION_TABLE_NAME
static final byte[] INPUT_FAMILY
static final byte[] OUTPUT_FAMILY
static final int NUMBER_OF_THREADS
public TestMultithreadedTableMapper()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void testMultithreadedTableMapper() throws IOException, InterruptedException, ClassNotFoundException
private void runTestOnTable(org.apache.hadoop.hbase.client.Table table) throws IOException, InterruptedException, ClassNotFoundException
private void verify(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private void verifyAttempt(org.apache.hadoop.hbase.client.Table table) throws IOException, NullPointerException
table
- Table to scan. n * @throws NullPointerException if we failed to find a cell valueIOException
NullPointerException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.