com.espertech.esper.epl.agg.access
Interface AggregationAccessor

All Known Implementing Classes:
AggregationAccessorAll, AggregationAccessorFirst, AggregationAccessorFirstLastIndex, AggregationAccessorLast, AggregationAccessorMinMaxBy, AggregationAccessorSorted

public interface AggregationAccessor

Accessor for access aggregation functions.


Method Summary
 EventBean getEnumerableEvent(AggregationState state)
          Return the aggregation state value consisting of a single event.
 java.util.Collection<EventBean> getEnumerableEvents(AggregationState state)
          Return the aggregation state value consisting of a collection of events.
 java.lang.Object getValue(AggregationState state)
          Return the aggregation state value either as a scalar value or any other object.
 

Method Detail

getValue

java.lang.Object getValue(AggregationState state)
Return the aggregation state value either as a scalar value or any other object.

For enumeration over scalar values or objects return an array or collection of scalar or object values.

Use the #getEnumerableEvents method to return a collection of events.

Use the #getEnumerableEvent to return a single events.

Parameters:
state - aggregation state, downcast as needed
Returns:
return value

getEnumerableEvents

java.util.Collection<EventBean> getEnumerableEvents(AggregationState state)
Return the aggregation state value consisting of a collection of events.

Parameters:
state - aggregation state, downcast as needed
Returns:
return collection of events or null or empty collection

getEnumerableEvent

EventBean getEnumerableEvent(AggregationState state)
Return the aggregation state value consisting of a single event.

Parameters:
state - aggregation state, downcast as needed
Returns:
return event or null

© 2006-2014 EsperTech Inc.
All rights reserved.
Visit us at espertech.com