public class BinReducer extends org.apache.hadoop.mapred.MapReduceBase implements org.apache.hadoop.mapred.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 |
|---|---|
void |
configure(org.apache.hadoop.mapred.JobConf jobConf) |
void |
reduce(org.apache.hadoop.io.LongWritable key, java.util.Iterator<RecordInfo> values, org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> output, org.apache.hadoop.mapred.Reporter reporter) |
public void configure(org.apache.hadoop.mapred.JobConf jobConf)
configure in interface org.apache.hadoop.mapred.JobConfigurableconfigure in class org.apache.hadoop.mapred.MapReduceBase
public void reduce(org.apache.hadoop.io.LongWritable key,
java.util.Iterator<RecordInfo> values,
org.apache.hadoop.mapred.OutputCollector<org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text> output,
org.apache.hadoop.mapred.Reporter reporter)
throws java.io.IOException
reduce in interface org.apache.hadoop.mapred.Reducer<org.apache.hadoop.io.LongWritable,RecordInfo,org.apache.hadoop.io.NullWritable,org.apache.hadoop.io.Text>java.io.IOExceptionCopyright © 2016 Oracle and/or its affiliates. All Rights Reserved.