de.kumpe.hadooptimizer.hadoop
Class HadoopTest.IntSumReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.DoubleWritable,Integer,org.apache.hadoop.io.DoubleWritable,Integer>
      extended by de.kumpe.hadooptimizer.hadoop.HadoopTest.IntSumReducer
Enclosing class:
HadoopTest

public static class HadoopTest.IntSumReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.DoubleWritable,Integer,org.apache.hadoop.io.DoubleWritable,Integer>


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
HadoopTest.IntSumReducer()
           
 
Method Summary
 void reduce(org.apache.hadoop.io.DoubleWritable key, Iterable<Integer> values, org.apache.hadoop.mapreduce.Reducer.Context context)
           
protected  void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
           
 
Methods inherited from class org.apache.hadoop.mapreduce.Reducer
cleanup, run
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HadoopTest.IntSumReducer

public HadoopTest.IntSumReducer()
Method Detail

setup

protected void setup(org.apache.hadoop.mapreduce.Reducer.Context context)
              throws IOException,
                     InterruptedException
Overrides:
setup in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.DoubleWritable,Integer,org.apache.hadoop.io.DoubleWritable,Integer>
Throws:
IOException
InterruptedException

reduce

public void reduce(org.apache.hadoop.io.DoubleWritable key,
                   Iterable<Integer> values,
                   org.apache.hadoop.mapreduce.Reducer.Context context)
            throws IOException,
                   InterruptedException
Overrides:
reduce in class org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.DoubleWritable,Integer,org.apache.hadoop.io.DoubleWritable,Integer>
Throws:
IOException
InterruptedException


Copyright © 2011 Christian Kumpe. All Rights Reserved.