@InterfaceAudience.Public @InterfaceStability.Stable public class LongSumReducer<KEY> extends Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>
Reducer.Context
Constructor and Description |
---|
LongSumReducer() |
Modifier and Type | Method and Description |
---|---|
void |
reduce(KEY key,
Iterable<org.apache.hadoop.io.LongWritable> values,
Reducer.Context context)
This method is called once for each key.
|
public void reduce(KEY key, Iterable<org.apache.hadoop.io.LongWritable> values, Reducer.Context context) throws IOException, InterruptedException
Reducer
reduce
in class Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>
IOException
InterruptedException
Copyright © 2017 Apache Software Foundation. All Rights Reserved.