public class AggregationStateMinMaxByEver extends java.lang.Object implements AggregationState, AggregationStateSorted
Constructor and Description |
---|
AggregationStateMinMaxByEver(AggregationStateMinMaxByEverSpec spec) |
Modifier and Type | Method and Description |
---|---|
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.
|
public AggregationStateMinMaxByEver(AggregationStateMinMaxByEverSpec spec)
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