public class BinReducer extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,RecordInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
Reducer
that collects all the records assigned to a bin. Additionally calculates fields aggregations for each bin and emits the resulting records.Constructor and Description |
---|
BinReducer() |
Modifier and Type | Method and Description |
---|---|
protected void |
reduce(org.apache.hadoop.io.LongWritable key, java.lang.Iterable<RecordInfo> values, org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void |
setup(org.apache.hadoop.mapreduce.Reducer.Context context) |
protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
setup
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,RecordInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
java.io.IOException
java.lang.InterruptedException
protected void reduce(org.apache.hadoop.io.LongWritable key, java.lang.Iterable<RecordInfo> values, org.apache.hadoop.mapreduce.Reducer.Context context) throws java.io.IOException, java.lang.InterruptedException
reduce
in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.LongWritable,RecordInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>
java.io.IOException
java.lang.InterruptedException