VMware GemFire Java API Reference
Package org.apache.geode.cache.query
Interface Aggregator
-
public interface AggregatorBehavior of a user-defined aggregator. Aggregates values and returns a result. In addition to the methods in the interface, implementing classes must have a 0-arg public constructor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccumulate(Object value)Accumulate the next scalar valuevoidinit()Initialize the AggregatorObjectterminate()Finish the aggregation and return the operation result.
-
-
-
Method Detail
-
init
void init()
Initialize the Aggregator
-
accumulate
void accumulate(Object value)
Accumulate the next scalar value- Parameters:
value- the scalar value to accumulate
-
terminate
Object terminate()
Finish the aggregation and return the operation result.- Returns:
- Return the result scalar value
-
-