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 ValueAggregator
val
- 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 ValueAggregator
public double getSum()
public void reset()
reset
in interface ValueAggregator
public java.util.ArrayList<java.lang.String> getCombinerOutput()
getCombinerOutput
in interface ValueAggregator
Copyright © 2009 The Apache Software Foundation