org.htuple.examples
Class SecondarySort.Reduce

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<Tuple,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
      extended by org.htuple.examples.SecondarySort.Reduce
Enclosing class:
SecondarySort

public static class SecondarySort.Reduce
extends org.apache.hadoop.mapreduce.Reducer<Tuple,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>

The reducer just emits the map output values, allowing us to examine the resulting output and determine the results of the secondary sort.


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(Tuple key, Iterable<org.apache.hadoop.io.Text> 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(Tuple key,
                   Iterable<org.apache.hadoop.io.Text> values,
                   org.apache.hadoop.mapreduce.Reducer.Context context)
            throws IOException,
                   InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<Tuple,org.apache.hadoop.io.Text,org.apache.hadoop.io.Text,org.apache.hadoop.io.NullWritable>
Throws:
IOException
InterruptedException


Copyright © 2013. All Rights Reserved.