public class LongValueSum extends Object implements ValueAggregator
构造器和说明 |
---|
LongValueSum()
the default constructor
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 ValueAggregator
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
在接口中 ValueAggregator
public void reset()
reset
在接口中 ValueAggregator
public ArrayList<String> getCombinerOutput()
getCombinerOutput
在接口中 ValueAggregator
Copyright © 2009 The Apache Software Foundation