org.apache.mahout.math.stats.entropy
Class DoubleSumReducer

java.lang.Object
  extended by org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Writable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.DoubleWritable>
      extended by org.apache.mahout.math.stats.entropy.DoubleSumReducer

public final class DoubleSumReducer
extends org.apache.hadoop.mapreduce.Reducer<org.apache.hadoop.io.Writable,org.apache.hadoop.io.DoubleWritable,org.apache.hadoop.io.Writable,org.apache.hadoop.io.DoubleWritable>

Analog of org.apache.hadoop.mapreduce.lib.reduce.IntSumReducer which sums the double values.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.hadoop.mapreduce.Reducer
org.apache.hadoop.mapreduce.Reducer.Context
 
Constructor Summary
DoubleSumReducer()
           
 
Method Summary
protected  void reduce(org.apache.hadoop.io.Writable key, Iterable<org.apache.hadoop.io.DoubleWritable> 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

DoubleSumReducer

public DoubleSumReducer()
Method Detail

reduce

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


Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.