public class DoubleValueSum extends java.lang.Object implements ValueAggregator
| Constructor and Description |
|---|
DoubleValueSum()
The default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNextValue(double val)
add a value to the aggregator
|
void |
addNextValue(java.lang.Object val)
add a value to the aggregator
|
java.util.ArrayList<java.lang.String> |
getCombinerOutput() |
java.lang.String |
getReport() |
double |
getSum() |
void |
reset()
reset the aggregator
|
public void addNextValue(java.lang.Object val)
addNextValue in interface ValueAggregatorval - an object whose string representation represents a double value.public void addNextValue(double val)
val - a double value.public java.lang.String getReport()
getReport in interface ValueAggregatorpublic double getSum()
public void reset()
reset in interface ValueAggregatorpublic java.util.ArrayList<java.lang.String> getCombinerOutput()
getCombinerOutput in interface ValueAggregatorCopyright © 2009 The Apache Software Foundation