|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.epl.agg.access.AggregationStateSortedImpl
public class AggregationStateSortedImpl
Implementation of access function for single-stream (not joins).
Field Summary | |
---|---|
protected int |
size
|
protected java.util.TreeMap<java.lang.Object,java.lang.Object> |
sorted
|
protected AggregationStateSortedSpec |
spec
|
Constructor Summary | |
---|---|
AggregationStateSortedImpl(AggregationStateSortedSpec spec)
Ctor. |
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. |
protected boolean |
dereferenceEvent(EventBean theEvent)
|
protected static java.lang.Object |
getComparable(ExprEvaluator[] criteria,
EventBean[] eventsPerStream,
boolean istream,
ExprEvaluatorContext exprEvaluatorContext)
|
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. |
protected boolean |
referenceEvent(EventBean theEvent)
|
int |
size()
Must return the number of events currently held, if applicable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AggregationStateSortedSpec spec
protected final java.util.TreeMap<java.lang.Object,java.lang.Object> sorted
protected int size
Constructor Detail |
---|
public AggregationStateSortedImpl(AggregationStateSortedSpec spec)
spec
- aggregation specMethod 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 contextprotected boolean referenceEvent(EventBean theEvent)
protected boolean dereferenceEvent(EventBean theEvent)
public 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()
AggregationStateWithSize
size
in interface AggregationStateSorted
size
in interface AggregationStateWithSize
protected static java.lang.Object getComparable(ExprEvaluator[] criteria, EventBean[] eventsPerStream, boolean istream, ExprEvaluatorContext exprEvaluatorContext)
|
© 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 |