public class LongSumReducer<KEY> extends Reducer<KEY,LongWritable,KEY,LongWritable>
Reducer.Context| 构造器和说明 |
|---|
LongSumReducer() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
reduce(KEY key,
Iterable<LongWritable> values,
Reducer.Context context)
This method is called once for each key.
|
public void reduce(KEY key, Iterable<LongWritable> values, Reducer.Context context) throws IOException, InterruptedException
Reducerreduce 在类中 Reducer<KEY,LongWritable,KEY,LongWritable>IOExceptionInterruptedExceptionCopyright © 2009 The Apache Software Foundation