|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum
public class DoubleValueSum
This class implements a value aggregator that sums up a sequence of double values.
Constructor Summary | |
---|---|
DoubleValueSum()
The default constructor |
Method Summary | |
---|---|
void |
addNextValue(double val)
add a value to the aggregator |
void |
addNextValue(Object val)
add a value to the aggregator |
ArrayList<String> |
getCombinerOutput()
|
String |
getReport()
|
double |
getSum()
|
void |
reset()
reset the aggregator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DoubleValueSum()
Method Detail |
---|
public void addNextValue(Object val)
addNextValue
in interface ValueAggregator
val
- an object whose string representation represents a double value.public void addNextValue(double val)
val
- a double value.public String getReport()
getReport
in interface ValueAggregator
public double getSum()
public void reset()
reset
in interface ValueAggregator
public ArrayList<String> getCombinerOutput()
getCombinerOutput
in interface ValueAggregator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |