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

All Known Implementing Classes:
AggregationStateImpl, AggregationStateJoinImpl

public interface AggregationStateLinear


Method Summary
 java.util.Collection<EventBean> collectionReadOnly()
          Returns all events for the group.
 EventBean getFirstNthValue(int index)
          Counting from the first element to the last, returns the oldest (first) value entered for index zero and the n-th oldest value for index N.
 EventBean getFirstValue()
          Returns the first (oldest) value entered.
 EventBean getLastNthValue(int index)
          Counting from the last element to the first, returns the newest (last) value entered for index zero and the n-th newest value for index N.
 EventBean getLastValue()
          Returns the newest (last) value entered.
 java.util.Iterator<EventBean> iterator()
          Returns all events for the group.
 int size()
          Returns the number of events in the group.
 

Method Detail

getFirstValue

EventBean getFirstValue()
Returns the first (oldest) value entered.

Returns:
first value

getLastValue

EventBean getLastValue()
Returns the newest (last) value entered.

Returns:
last value

getFirstNthValue

EventBean getFirstNthValue(int index)
Counting from the first element to the last, returns the oldest (first) value entered for index zero and the n-th oldest value for index N.

Parameters:
index - index
Returns:
last value

getLastNthValue

EventBean getLastNthValue(int index)
Counting from the last element to the first, returns the newest (last) value entered for index zero and the n-th newest value for index N.

Parameters:
index - index
Returns:
last value

iterator

java.util.Iterator<EventBean> iterator()
Returns all events for the group.

Returns:
group event iterator

collectionReadOnly

java.util.Collection<EventBean> collectionReadOnly()
Returns all events for the group.

Returns:
group event iterator

size

int size()
Returns the number of events in the group.

Returns:
size

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