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