Class ExpressionViewBase
java.lang.Object
com.espertech.esper.common.internal.view.core.ViewSupport
com.espertech.esper.common.internal.view.expression.ExpressionViewBase
- All Implemented Interfaces:
AgentInstanceMgmtCallback
,VariableChangeCallback
,DataWindowView
,View
,Viewable
,ViewDataVisitable
,Iterable<EventBean>
- Direct Known Subclasses:
ExpressionBatchView
,ExpressionWindowView
public abstract class ExpressionViewBase
extends ViewSupport
implements DataWindowView, AgentInstanceMgmtCallback, VariableChangeCallback
This view is a moving window extending the into the past until the expression passed to it returns false.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AgentInstanceContext
protected final AggregationService
protected final ObjectArrayEventBean
protected final EventBean[]
protected final ExpressionViewFactoryBase
protected final EPStatementHandleCallbackSchedule
protected final long
protected final ViewUpdatedCollection
Fields inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
child, parent
Fields inherited from interface com.espertech.esper.common.internal.context.util.AgentInstanceMgmtCallback
INSTANCE_NO_ACTION
-
Constructor Summary
ConstructorDescriptionExpressionViewBase
(ExpressionViewFactoryBase factory, ViewUpdatedCollection viewUpdatedCollection, ObjectArrayEventBean builtinEventProps, AgentInstanceViewFactoryChainContext agentInstanceContext) -
Method Summary
Modifier and TypeMethodDescriptionfinal EventType
Provides metadata information about the type of object the event collection contains.abstract void
Implemented to check the expiry expression.void
stop
(AgentInstanceStopServices services) final String
toString()
void
Indicate a change in variable value.Methods inherited from class com.espertech.esper.common.internal.view.core.ViewSupport
getChild, getParent, setChild, setParent
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.espertech.esper.common.internal.context.util.AgentInstanceMgmtCallback
transfer
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.espertech.esper.common.internal.view.core.View
getParent, setParent, update
Methods inherited from interface com.espertech.esper.common.internal.view.core.Viewable
getChild, iterator, setChild
Methods inherited from interface com.espertech.esper.common.internal.view.core.ViewDataVisitable
visitView
-
Field Details
-
factory
-
viewUpdatedCollection
-
builtinEventProps
-
eventsPerStream
-
agentInstanceContext
-
scheduleSlot
protected final long scheduleSlot -
scheduleHandle
-
aggregationService
-
-
Constructor Details
-
ExpressionViewBase
public ExpressionViewBase(ExpressionViewFactoryBase factory, ViewUpdatedCollection viewUpdatedCollection, ObjectArrayEventBean builtinEventProps, AgentInstanceViewFactoryChainContext agentInstanceContext)
-
-
Method Details
-
scheduleCallback
public abstract void scheduleCallback()Implemented to check the expiry expression. -
getEventType
Description copied from interface:Viewable
Provides metadata information about the type of object the event collection contains.- Specified by:
getEventType
in interfaceViewable
- Returns:
- metadata for the objects in the collection
-
toString
-
stop
- Specified by:
stop
in interfaceAgentInstanceMgmtCallback
-
update
Description copied from interface:VariableChangeCallback
Indicate a change in variable value.- Specified by:
update
in interfaceVariableChangeCallback
- Parameters:
newValue
- new valueoldValue
- old value
-
getViewUpdatedCollection
-
getAggregationService
-
getViewFactory
-