com.espertech.esper.view.window
Class ExpressionViewBase
java.lang.Object
com.espertech.esper.view.ViewSupport
com.espertech.esper.view.window.ExpressionViewBase
- All Implemented Interfaces:
- VariableChangeCallback, StopCallback, CloneableView, DataWindowView, EventCollection, GroupableView, StoppableView, View, Viewable, ViewDataVisitable, java.lang.Iterable<EventBean>
- Direct Known Subclasses:
- ExpressionBatchView, ExpressionWindowView
public abstract class ExpressionViewBase
- extends ViewSupport
- implements DataWindowView, CloneableView, StoppableView, VariableChangeCallback, StopCallback
This view is a moving window extending the into the past until the expression passed to it returns false.
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, wait, wait, wait |
viewUpdatedCollection
protected final ViewUpdatedCollection viewUpdatedCollection
expiryExpression
protected final ExprEvaluator expiryExpression
builtinEventProps
protected final ObjectArrayEventBean builtinEventProps
eventsPerStream
protected final EventBean[] eventsPerStream
variableNames
protected final java.util.Set<java.lang.String> variableNames
agentInstanceContext
protected final AgentInstanceViewFactoryChainContext agentInstanceContext
scheduleSlot
protected final ScheduleSlot scheduleSlot
scheduleHandle
protected final EPStatementHandleCallback scheduleHandle
aggregationService
protected final AggregationService aggregationService
aggregateNodes
protected final java.util.List<AggregationServiceAggExpressionDesc> aggregateNodes
ExpressionViewBase
public ExpressionViewBase(ViewUpdatedCollection viewUpdatedCollection,
ExprEvaluator expiryExpression,
AggregationServiceFactoryDesc aggregationServiceFactoryDesc,
ObjectArrayEventBean builtinEventProps,
java.util.Set<java.lang.String> variableNames,
AgentInstanceViewFactoryChainContext agentInstanceContext)
scheduleCallback
public abstract void scheduleCallback()
- Implemented to check the expiry expression.
getViewName
public abstract java.lang.String getViewName()
getEventType
public final EventType getEventType()
- Description copied from interface:
EventCollection
- Provides metadata information about the type of object the event collection contains.
- Specified by:
getEventType
in interface EventCollection
- Returns:
- metadata for the objects in the collection
toString
public final java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
stopView
public void stopView()
- Specified by:
stopView
in interface StoppableView
stop
public void stop()
- Description copied from interface:
StopCallback
- Stops the underlying resources.
- Specified by:
stop
in interface StopCallback
stopScheduleAndVar
public void stopScheduleAndVar()
update
public void update(java.lang.Object newValue,
java.lang.Object oldValue)
- Description copied from interface:
VariableChangeCallback
- Indicate a change in variable value.
- Specified by:
update
in interface VariableChangeCallback
- Parameters:
newValue
- new valueoldValue
- old value
getViewUpdatedCollection
public ViewUpdatedCollection getViewUpdatedCollection()
getAggregationService
public AggregationService getAggregationService()