public class TestTableMapReduceUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestTableMapReduceUtil.ClassificatorMapper |
(package private) static class |
TestTableMapReduceUtil.ClassificatorRowReduce |
| Modifier and Type | Field and Description |
|---|---|
private static String |
ACTOR_PATTERN |
private static Iterator<String> |
actorNames |
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> |
actorsRowKeys |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
COLUMN_FAMILY |
private static byte[] |
COLUMN_QUALIFIER |
private static org.slf4j.Logger |
LOG |
private static String |
PRESIDENT_PATTERN |
private static Iterator<String> |
presidentNames |
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> |
presidentsRowKeys |
private static org.apache.hadoop.hbase.client.Table |
presidentsTable |
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>> |
relation |
private static String |
TABLE_NAME |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestTableMapReduceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
afterClass() |
void |
before() |
static void |
beforeClass() |
static org.apache.hadoop.hbase.client.Table |
createAndFillTable(org.apache.hadoop.hbase.TableName tableName) |
private static void |
createPutCommand(org.apache.hadoop.hbase.client.Table table) |
void |
shoudBeValidMapReduceEvaluation() |
void |
shoudBeValidMapReduceWithPartitionerEvaluation() |
void |
shouldNumberOfMapTaskNotExceedNumberOfRegionsForGivenTable() |
void |
shouldNumberOfReduceTaskNotExceedNumberOfRegionsForGivenTable()
Check what the given number of reduce tasks for the given job configuration does not exceed the
number of regions for the given table.
|
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static org.apache.hadoop.hbase.client.Table presidentsTable
private static final String TABLE_NAME
private static final byte[] COLUMN_FAMILY
private static final byte[] COLUMN_QUALIFIER
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> presidentsRowKeys
private static Iterator<String> presidentNames
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String> actorsRowKeys
private static Iterator<String> actorNames
private static String PRESIDENT_PATTERN
private static String ACTOR_PATTERN
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,org.apache.hbase.thirdparty.com.google.common.collect.ImmutableSet<String>> relation
private static final HBaseTestingUtility UTIL
public TestTableMapReduceUtil()
public static void beforeClass() throws Exception
Exceptionpublic static void afterClass() throws Exception
Exceptionpublic void before() throws IOException
IOExceptionpublic static org.apache.hadoop.hbase.client.Table createAndFillTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate static void createPutCommand(org.apache.hadoop.hbase.client.Table table) throws IOException
IOExceptionpublic void shouldNumberOfReduceTaskNotExceedNumberOfRegionsForGivenTable() throws IOException
IOExceptionpublic void shouldNumberOfMapTaskNotExceedNumberOfRegionsForGivenTable() throws IOException
IOExceptionpublic void shoudBeValidMapReduceEvaluation() throws Exception
Exceptionpublic void shoudBeValidMapReduceWithPartitionerEvaluation() throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.