Package net.sf.ehcache.search.aggregator
Class Min<T>
- java.lang.Object
-
- net.sf.ehcache.search.aggregator.Min<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
AggregatorInstance<T>
public class Min<T> extends java.lang.Object implements AggregatorInstance<T>
Determine the minimum value- Author:
- teck
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(java.lang.Object input)Add the given value to the aggregator functionTaggregateResult()Retrieve the final resultMin<T>createClone()Create a clone of this aggregator, detaching from its resultAttributegetAttribute()Get the attribute to pass to aggregator
-
-
-
Constructor Detail
-
Min
public Min(Attribute<?> attribute)
- Parameters:
attribute-
-
-
Method Detail
-
createClone
public Min<T> createClone()
Create a clone of this aggregator, detaching from its result- Specified by:
createClonein interfaceAggregatorInstance<T>- Returns:
-
aggregateResult
public T aggregateResult()
Retrieve the final resultNOTE: May return null if no input provided
- Specified by:
aggregateResultin interfaceAggregatorInstance<T>- Returns:
- aggregate result
-
accept
public void accept(java.lang.Object input) throws AggregatorExceptionAdd the given value to the aggregator functionNOTE: null input values are ignored
- Specified by:
acceptin interfaceAggregatorInstance<T>- Parameters:
input- a single input value- Throws:
AggregatorException- if the function cannot be computed, possibly due to unsupported types
-
getAttribute
public Attribute getAttribute()
Get the attribute to pass to aggregator- Specified by:
getAttributein interfaceAggregatorInstance<T>- Returns:
- attribute to aggregate (null if no attribute is applicable to function)
-
-