public class TestRoundRobinTableInputFormat extends Object
RoundRobinTableInputFormat
; i.e. RRTIF.Modifier and Type | Class and Description |
---|---|
private static class |
TestRoundRobinTableInputFormat.SplitComparator
Private comparator copied from private JobSubmmiter Hadoop class...
|
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static String[] |
KEYS |
private static int |
SERVERS_COUNT |
Constructor and Description |
---|
TestRoundRobinTableInputFormat() |
Modifier and Type | Method and Description |
---|---|
private void |
assertLengthDescending(List<org.apache.hadoop.mapreduce.InputSplit> list)
Assert that lengths are descending.
|
private void |
checkRetainsBooleanValue(org.apache.hadoop.mapreduce.JobContext jobContext,
org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif,
boolean b) |
private List<org.apache.hadoop.mapreduce.InputSplit> |
createSplits()
Returns Splits made out of
KEYS . |
void |
testConfigureUnconfigure()
Test that configure/unconfigure set and properly undo the HBASE_REGIONSIZECALCULATOR_ENABLE
configuration.
|
private void |
testDistribution(List<org.apache.hadoop.mapreduce.InputSplit> list) |
void |
testRoundRobinSplit()
Test default behavior.
|
public static final HBaseClassTestRule CLASS_RULE
private static final int SERVERS_COUNT
public TestRoundRobinTableInputFormat()
public void testRoundRobinSplit() throws IOException, InterruptedException
IOException
InterruptedException
private List<org.apache.hadoop.mapreduce.InputSplit> createSplits()
KEYS
. Splits are for five Servers. Length is ZERO!private void testDistribution(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException
IOException
InterruptedException
private void assertLengthDescending(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException
IOException
InterruptedException
public void testConfigureUnconfigure()
private void checkRetainsBooleanValue(org.apache.hadoop.mapreduce.JobContext jobContext, org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif, boolean b)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.