com.espertech.esper.epl.subquery
Class SubselectAggregatorViewBase

java.lang.Object
  extended by com.espertech.esper.view.ViewSupport
      extended by 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.


Field Summary
protected  AggregationService aggregationService
           
protected  EventBean[] eventsPerStream
           
protected  ExprEvaluatorContext exprEvaluatorContext
           
protected  ExprEvaluator[] groupKeys
           
protected  ExprEvaluator optionalFilterExpr
           
 
Fields inherited from class com.espertech.esper.view.ViewSupport
EMPTY_VIEW_ARRAY, parent
 
Constructor Summary
SubselectAggregatorViewBase(AggregationService aggregationService, ExprEvaluator optionalFilterExpr, ExprEvaluatorContext exprEvaluatorContext, ExprEvaluator[] groupKeys)
           
 
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
 

Field Detail

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
Constructor Detail

SubselectAggregatorViewBase

public SubselectAggregatorViewBase(AggregationService aggregationService,
                                   ExprEvaluator optionalFilterExpr,
                                   ExprEvaluatorContext exprEvaluatorContext,
                                   ExprEvaluator[] groupKeys)
Method Detail

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)

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