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
在接口中 ValueAggregator
val
- an object whose string representation represents a double value.public void addNextValue(double val)
val
- a double value.public String getReport()
getReport
在接口中 ValueAggregator
public double getSum()
public void reset()
reset
在接口中 ValueAggregator
public ArrayList<String> getCombinerOutput()
getCombinerOutput
在接口中 ValueAggregator
Copyright © 2009 The Apache Software Foundation