org.apache.hadoop.examples
Class SecondarySort.Reduce

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<SecondarySort.IntPair,org.apache.hadoop.io.IntWritable,org.apache.hadoop.io.Text,org.apache.hadoop.io.IntWritable>
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
SecondarySort.Reduce()
           
 
Method Summary
 void reduce(SecondarySort.IntPair key, Iterable<org.apache.hadoop.io.IntWritable> values, org.apache.hadoop.mapreduce.Reducer.Context 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
 

Constructor Detail

SecondarySort.Reduce

public SecondarySort.Reduce()
Method Detail

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 © 2012 Apache Software Foundation. All Rights Reserved.