public class DoubleValueSum extends 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(Object val)
add a value to the aggregator
|
ArrayList<String> |
getCombinerOutput() |
String |
getReport() |
double |
getSum() |
void |
reset()
reset the aggregator
|
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
Copyright © 2010 The Apache Software Foundation