|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.esper.eql.agg.DistinctValueAggregator
public class DistinctValueAggregator
AggregationMethod for use on top of another aggregator that handles unique value aggregation (versus all-value aggregation) for the underlying aggregator.
Constructor Summary | |
---|---|
DistinctValueAggregator(AggregationMethod inner,
Class childType)
Ctor. |
Method Summary | |
---|---|
void |
enter(Object value)
Apply the value as entering aggregation (entering window). |
Object |
getValue()
Returns the current value held. |
Class |
getValueType()
Returns the type of the current value. |
void |
leave(Object value)
Apply the value as leaving aggregation (leaving window). |
AggregationMethod |
newAggregator(MethodResolutionService methodResolutionService)
Make a new, initalized aggregation state. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DistinctValueAggregator(AggregationMethod inner, Class childType)
inner
- is the aggregator function computing aggregation valueschildType
- is the return type of the inner expression to aggregate, if anyMethod Detail |
---|
public void enter(Object value)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
enter
in interface AggregationMethod
value
- to add to aggregatepublic void leave(Object value)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
leave
in interface AggregationMethod
value
- to remove from aggregatepublic Object getValue()
AggregationMethod
getValue
in interface AggregationMethod
public Class getValueType()
AggregationMethod
getValueType
in interface AggregationMethod
public AggregationMethod newAggregator(MethodResolutionService methodResolutionService)
AggregationMethod
newAggregator
in interface AggregationMethod
methodResolutionService
- for use in creating new aggregation method instances as a factory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |