Class IntegrationTestBulkLoad.LinkedListCheckingReducer
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey,IntegrationTestBulkLoad.LinkChain,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>
   
org.apache.hadoop.hbase.mapreduce.IntegrationTestBulkLoad.LinkedListCheckingReducer
- Enclosing class:
- IntegrationTestBulkLoad
public static class IntegrationTestBulkLoad.LinkedListCheckingReducer
extends org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey,IntegrationTestBulkLoad.LinkChain,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.NullWritable>   
Class that does the actual checking of the links. All links in the chain should be grouped and
 sorted when sent to this class. Then the chain will be traversed making sure that no link is
 missing and that the chain is the correct length. This will throw an exception if anything is
 not correct. That causes the job to fail if any data is corrupt.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducerorg.apache.hadoop.mapreduce.Reducer.Context
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static voidlogError(String msg, org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey, IntegrationTestBulkLoad.LinkChain, org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable>.org.apache.hadoop.mapreduce.Reducer.Context context) protected voidreduce(IntegrationTestBulkLoad.LinkKey key, Iterable<IntegrationTestBulkLoad.LinkChain> values, org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey, IntegrationTestBulkLoad.LinkChain, org.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable>.org.apache.hadoop.mapreduce.Reducer.Context context) Methods inherited from class org.apache.hadoop.mapreduce.Reducercleanup, run, setup
- 
Constructor Details- 
LinkedListCheckingReducerpublic LinkedListCheckingReducer()
 
- 
- 
Method Details- 
reduceprotected void reduce(IntegrationTestBulkLoad.LinkKey key, Iterable<IntegrationTestBulkLoad.LinkChain> values, org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey, IntegrationTestBulkLoad.LinkChain, throws IOException, InterruptedExceptionorg.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable>.org.apache.hadoop.mapreduce.Reducer.Context context) - Overrides:
- reducein class- org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey,- IntegrationTestBulkLoad.LinkChain, - org.apache.hadoop.io.NullWritable, - org.apache.hadoop.io.NullWritable> 
- Throws:
- IOException
- InterruptedException
 
- 
logErrorprivate static void logError(String msg, org.apache.hadoop.mapreduce.Reducer<IntegrationTestBulkLoad.LinkKey, IntegrationTestBulkLoad.LinkChain, throws IOExceptionorg.apache.hadoop.io.NullWritable, org.apache.hadoop.io.NullWritable>.org.apache.hadoop.mapreduce.Reducer.Context context) - Throws:
- IOException
 
 
-