org.apache.hadoop.examples
Class SecondarySort.Reduce
java.lang.Object
org.apache.hadoop.mapreduce.Reducer<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
org.apache.hadoop.examples.SecondarySort.Reduce
- Enclosing class:
- SecondarySort
public static class SecondarySort.Reduce
- extends org.apache.hadoop.mapreduce.Reducer<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
A reducer class that just emits the sum of the input values.
| Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer |
org.apache.hadoop.mapreduce.Reducer.Context |
| Methods inherited from class org.apache.hadoop.mapreduce.Reducer |
cleanup, run, setup |
| 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<org.apache.hadoop.io.IntWritable> values,
org.apache.hadoop.mapreduce.Reducer.Context context)
throws IOException,
InterruptedException
- Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
- Throws:
IOException
InterruptedException
Copyright © 2014 Apache Software Foundation. All Rights Reserved.