public class DoubleValueSum extends Object implements ValueAggregator
| 构造器和说明 |
|---|
DoubleValueSum()
The default constructor
|
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ValueAggregatorval - an object whose string representation represents a double value.public void addNextValue(double val)
val - a double value.public String getReport()
getReport 在接口中 ValueAggregatorpublic double getSum()
public void reset()
reset 在接口中 ValueAggregatorpublic ArrayList<String> getCombinerOutput()
getCombinerOutput 在接口中 ValueAggregatorCopyright © 2009 The Apache Software Foundation