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
Exception
public static void afterClass() throws Exception
Exception
public void before() throws IOException
IOException
public static org.apache.hadoop.hbase.client.Table createAndFillTable(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOException
private static void createPutCommand(org.apache.hadoop.hbase.client.Table table) throws IOException
IOException
public void shouldNumberOfReduceTaskNotExceedNumberOfRegionsForGivenTable() throws IOException
IOException
public void shouldNumberOfMapTaskNotExceedNumberOfRegionsForGivenTable() throws IOException
IOException
public void shoudBeValidMapReduceEvaluation() throws Exception
Exception
public void shoudBeValidMapReduceWithPartitionerEvaluation() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.