|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.agg.access.AggregationStateMinMaxByEver
public class AggregationStateMinMaxByEver
Implementation of access function for single-stream (not joins).
Field Summary | |
---|---|
protected java.lang.Object |
currentMinMax
|
protected EventBean |
currentMinMaxBean
|
protected AggregationStateMinMaxByEverSpec |
spec
|
Constructor Summary | |
---|---|
AggregationStateMinMaxByEver(AggregationStateMinMaxByEverSpec spec)
|
Method Summary | |
---|---|
void |
applyEnter(EventBean[] eventsPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Enter an event. |
void |
applyLeave(EventBean[] eventsPerStream,
ExprEvaluatorContext exprEvaluatorContext)
Remove an event. |
void |
clear()
Clear all events in the group. |
java.util.Collection<EventBean> |
collectionReadOnly()
Returns all events for the group. |
EventBean |
getFirstValue()
Returns the first (oldest) value entered. |
EventBean |
getLastValue()
Returns the newest (last) value entered. |
java.util.Iterator<EventBean> |
getReverseIterator()
|
java.util.Iterator<EventBean> |
iterator()
Returns all events for the group. |
int |
size()
Returns the number of events in the group. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AggregationStateMinMaxByEverSpec spec
protected EventBean currentMinMaxBean
protected java.lang.Object currentMinMax
Constructor Detail |
---|
public AggregationStateMinMaxByEver(AggregationStateMinMaxByEverSpec spec)
Method Detail |
---|
public void clear()
AggregationState
clear
in interface AggregationState
public void applyEnter(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
AggregationState
applyEnter
in interface AggregationState
eventsPerStream
- all events in all streams, typically implementations pick the relevant stream's events to addexprEvaluatorContext
- expression eval contextpublic void applyLeave(EventBean[] eventsPerStream, ExprEvaluatorContext exprEvaluatorContext)
AggregationState
applyLeave
in interface AggregationState
eventsPerStream
- all events in all streams, typically implementations pick the relevant stream's events to removeexprEvaluatorContext
- expression eval contextpublic EventBean getFirstValue()
AggregationStateSorted
getFirstValue
in interface AggregationStateSorted
public EventBean getLastValue()
AggregationStateSorted
getLastValue
in interface AggregationStateSorted
public java.util.Iterator<EventBean> iterator()
AggregationStateSorted
iterator
in interface AggregationStateSorted
public java.util.Iterator<EventBean> getReverseIterator()
getReverseIterator
in interface AggregationStateSorted
public java.util.Collection<EventBean> collectionReadOnly()
AggregationStateSorted
collectionReadOnly
in interface AggregationStateSorted
public int size()
AggregationStateSorted
size
in interface AggregationStateSorted
|
© 2006-2015 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |