org.apache.hadoop.examples
Class SecondarySort.Reduce
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<SecondarySort.IntPair,IntWritable,Text,IntWritable>
org.apache.hadoop.examples.SecondarySort.Reduce
- Enclosing class:
- SecondarySort
public static class SecondarySort.Reduce
- extends Reducer<SecondarySort.IntPair,IntWritable,Text,IntWritable>
A reducer class that just emits the sum of the input values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecondarySort.Reduce
public SecondarySort.Reduce()
reduce
public void reduce(SecondarySort.IntPair key,
Iterable<IntWritable> 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<SecondarySort.IntPair,IntWritable,Text,IntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2009 The Apache Software Foundation