T- type of data to aggregate
public interface Aggregator<T> extends Function<T>
evaluate()function. This is the function at the core of the aggregator package as it allows for a way to process the data series and get a result of the same type out of this operation. Note that some aggregators will compute the data at this point by iterating through the series of data previously stored (if any) while others might prefer to compute this value on the fly, every time
add(Object)is called. This interface doesn't make any assumption as to when the aggregation result should be computed.
|Modifier and Type||Method and Description|
Adds data to the series which will be aggregated.
Resets any series of data previously stored and returns the aggregator in the initial state.
data- Data to be added to the series which this aggregator will process/aggregate.
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.