org.apache.hadoop.mapreduce.lib.reduce
Class LongSumReducer<KEY>
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>
org.apache.hadoop.mapreduce.lib.reduce.LongSumReducer<KEY>
@InterfaceAudience.Public
@InterfaceStability.Stable
public class LongSumReducer<KEY>
- extends Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LongSumReducer
public LongSumReducer()
reduce
public void reduce(KEY key,
Iterable<org.apache.hadoop.io.LongWritable> values,
Reducer.Context context)
throws IOException,
InterruptedException
- Description copied from class:
Reducer
- This method is called once for each key. Most applications will define
their reduce class by overriding this method. The default implementation
is an identity function.
- Overrides:
reduce
in class Reducer<KEY,org.apache.hadoop.io.LongWritable,KEY,org.apache.hadoop.io.LongWritable>
- Throws:
IOException
InterruptedException
Copyright © 2012 Apache Software Foundation. All Rights Reserved.