@InterfaceAudience.Public @InterfaceStability.Stable public class DoubleValueSum extends Object implements ValueAggregator<String>
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 DoubleValueSum()
public void addNextValue(Object val)
addNextValue
in interface ValueAggregator<String>
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<String>
public double getSum()
public void reset()
reset
in interface ValueAggregator<String>
public ArrayList<String> getCombinerOutput()
getCombinerOutput
in interface ValueAggregator<String>
Copyright © 2015 Apache Software Foundation. All rights reserved.