Interface Aggregator
-
- All Implemented Interfaces:
public interface Aggregator
The interface Aggregator represents an aggregator used by graph consumers.
- Since:
3.0
-
-
Method Summary
Modifier and Type Method Description abstract long
getCount()
Gets the number of aggregated values. abstract double
getResult()
Gets the result of the aggregation using stored values. abstract void
addValue(double value)
Adds the specified value to the storage of the current aggregator. abstract void
reset()
Reset the state of the aggregator. -
-
Method Detail
-
getCount
abstract long getCount()
Gets the number of aggregated values.
- Returns:
the number of aggregated values
-
getResult
abstract double getResult()
Gets the result of the aggregation using stored values.
- Returns:
the result of the aggregation.
-
addValue
abstract void addValue(double value)
Adds the specified value to the storage of the current aggregator.
- Parameters:
value
- the value to aggregate
-
reset
abstract void reset()
Reset the state of the aggregator.
-
-
-
-