@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
Reducerreduce in class Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>IOExceptionInterruptedExceptionCopyright © 2022 Apache Software Foundation. All rights reserved.