Class TestRoundRobinTableInputFormat
java.lang.Object
org.apache.hadoop.hbase.mapreduce.TestRoundRobinTableInputFormat
Basic test of 
RoundRobinTableInputFormat; i.e. RRTIF.- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classPrivate comparator copied from private JobSubmmiter Hadoop class... - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static final String[]private static final int - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertLengthDescending(List<org.apache.hadoop.mapreduce.InputSplit> list) Assert that lengths are descending.private voidcheckRetainsBooleanValue(org.apache.hadoop.mapreduce.JobContext jobContext, org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif, boolean b) private List<org.apache.hadoop.mapreduce.InputSplit>Returns Splits made out ofKEYS.voidTest that configure/unconfigure set and properly undo the HBASE_REGIONSIZECALCULATOR_ENABLE configuration.private voidtestDistribution(List<org.apache.hadoop.mapreduce.InputSplit> list) voidTest default behavior. 
- 
Field Details
- 
CLASS_RULE
 - 
SERVERS_COUNT
- See Also:
 
 - 
KEYS
 
 - 
 - 
Constructor Details
- 
TestRoundRobinTableInputFormat
public TestRoundRobinTableInputFormat() 
 - 
 - 
Method Details
- 
testRoundRobinSplit
Test default behavior.- Throws:
 IOExceptionInterruptedException
 - 
createSplits
Returns Splits made out ofKEYS. Splits are for five Servers. Length is ZERO! - 
testDistribution
private void testDistribution(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException - Throws:
 IOExceptionInterruptedException
 - 
assertLengthDescending
private void assertLengthDescending(List<org.apache.hadoop.mapreduce.InputSplit> list) throws IOException, InterruptedException Assert that lengths are descending. RRTIF writes lengths in descending order so any subsequent sort using dump SplitComparator as is done in JobSubmitter up in Hadoop keeps our RRTIF ordering.- Throws:
 IOExceptionInterruptedException
 - 
testConfigureUnconfigure
Test that configure/unconfigure set and properly undo the HBASE_REGIONSIZECALCULATOR_ENABLE configuration. - 
checkRetainsBooleanValue
private void checkRetainsBooleanValue(org.apache.hadoop.mapreduce.JobContext jobContext, org.apache.hadoop.hbase.mapreduce.RoundRobinTableInputFormat rrtif, boolean b)  
 -