Package net.sf.ehcache.search.aggregator
Interface AggregatorInstance<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaccept(java.lang.Object input)Add the given value to the aggregator functionjava.lang.ObjectaggregateResult()Retrieve the final resultAggregatorInstance<T>createClone()Create a clone of this aggregator, detaching from its resultAttribute<?>getAttribute()Get the attribute to pass to aggregator
-
-
-
Method Detail
-
accept
void accept(java.lang.Object input) throws AggregatorExceptionAdd the given value to the aggregator function- Parameters:
input- a single input value- Throws:
AggregatorException- if the function cannot be computed, possibly due to unsupported types
-
aggregateResult
java.lang.Object aggregateResult()
Retrieve the final result- Returns:
- aggregate result
-
getAttribute
Attribute<?> getAttribute()
Get the attribute to pass to aggregator- Returns:
- attribute to aggregate (null if no attribute is applicable to function)
-
createClone
AggregatorInstance<T> createClone()
Create a clone of this aggregator, detaching from its result- Returns:
-
-