public class LongValueSum extends Object implements ValueAggregator
| Constructor and Description |
|---|
LongValueSum()
the default constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNextValue(long val)
add a value to the aggregator
|
void |
addNextValue(Object val)
add a value to the aggregator
|
ArrayList<String> |
getCombinerOutput() |
String |
getReport() |
long |
getSum() |
void |
reset()
reset the aggregator
|
public void addNextValue(Object val)
addNextValue in interface ValueAggregatorval - an object whose string representation represents a long value.public void addNextValue(long val)
val - a long value.public long getSum()
public String getReport()
getReport in interface ValueAggregatorpublic void reset()
reset in interface ValueAggregatorpublic ArrayList<String> getCombinerOutput()
getCombinerOutput in interface ValueAggregatorCopyright © 2009 The Apache Software Foundation