com.espertech.esper.epl.subquery
Class SubselectAggregatorViewBase
java.lang.Object
com.espertech.esper.view.ViewSupport
com.espertech.esper.epl.subquery.SubselectAggregatorViewBase
- All Implemented Interfaces:
- EventCollection, View, Viewable, java.lang.Iterable<EventBean>
- Direct Known Subclasses:
- SubselectAggregatorViewFilteredGrouped, SubselectAggregatorViewFilteredUngrouped, SubselectAggregatorViewUnfilteredGrouped, SubselectAggregatorViewUnfilteredUngrouped
public abstract class SubselectAggregatorViewBase
- extends ViewSupport
View handling the insert and remove stream generated by a subselect
for application to aggregation state.
Method Summary |
protected boolean |
filter(boolean isNewData)
|
protected java.lang.Object |
generateGroupKey(boolean isNewData)
|
EventType |
getEventType()
Provides metadata information about the type of object the event collection contains. |
java.util.Iterator<EventBean> |
iterator()
Allows iteration through all elements in this event collection. |
Methods inherited from class com.espertech.esper.view.ViewSupport |
addView, addView, dumpChildViews, dumpUpdateParams, dumpUpdateParams, findDescendent, findViewIndex, getParent, getViews, hasViews, removeAllViews, removeView, removeView, setParent, updateChildren, updateChildren |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.espertech.esper.view.View |
update |
aggregationService
protected final AggregationService aggregationService
optionalFilterExpr
protected final ExprEvaluator optionalFilterExpr
exprEvaluatorContext
protected final ExprEvaluatorContext exprEvaluatorContext
groupKeys
protected final ExprEvaluator[] groupKeys
eventsPerStream
protected final EventBean[] eventsPerStream
SubselectAggregatorViewBase
public SubselectAggregatorViewBase(AggregationService aggregationService,
ExprEvaluator optionalFilterExpr,
ExprEvaluatorContext exprEvaluatorContext,
ExprEvaluator[] groupKeys)
getEventType
public EventType getEventType()
- Description copied from interface:
EventCollection
- Provides metadata information about the type of object the event collection contains.
- Returns:
- metadata for the objects in the collection
iterator
public java.util.Iterator<EventBean> iterator()
- Description copied from interface:
EventCollection
- Allows iteration through all elements in this event collection.
The iterator will return the elements in the collection in their natural order, or,
if there is no natural ordering, in some unpredictable order.
- Returns:
- an iterator which will go through all current elements in the collection.
filter
protected boolean filter(boolean isNewData)
generateGroupKey
protected java.lang.Object generateGroupKey(boolean isNewData)