Class VirtualDataWindowEventConsumerAdd
java.lang.Object
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowEvent
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowEventConsumerBase
com.espertech.esper.common.client.hook.vdw.VirtualDataWindowEventConsumerAdd
Event indicating a named-window consuming statement is being added.
-
Constructor Summary
ConstructorDescriptionVirtualDataWindowEventConsumerAdd
(String namedWindowName, Object consumerObject, String statementName, int agentInstanceId, ExprEvaluator filter, ExprEvaluatorContext exprEvaluatorContext) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the expression evaluator context for evaluating filter expressions.Provides the filter expressions.Methods inherited from class com.espertech.esper.common.client.hook.vdw.VirtualDataWindowEventConsumerBase
getAgentInstanceId, getConsumerObject, getNamedWindowName, getStatementName
-
Constructor Details
-
VirtualDataWindowEventConsumerAdd
public VirtualDataWindowEventConsumerAdd(String namedWindowName, Object consumerObject, String statementName, int agentInstanceId, ExprEvaluator filter, ExprEvaluatorContext exprEvaluatorContext) Ctor.- Parameters:
namedWindowName
- the named window nameconsumerObject
- an object that identifies the consumer, the same instance or the add and for the remove eventstatementName
- statement nameagentInstanceId
- agent instance idfilter
- filter expressionsexprEvaluatorContext
- for expression evaluation
-
-
Method Details
-
getFilter
Provides the filter expressions.Evaluate filter expressions, if any, as follows:
Boolean pass = filter[...].getExprEvaluator().evaluate(new EventBean[] {vdwEvent}, true, addEvent.getExprEvaluatorContext());
Filter expressions must be evaluated using the same ExprEvaluatorContext instance as provided by this event.
- Returns:
- filter expression list
-
getExprEvaluatorContext
Returns the expression evaluator context for evaluating filter expressions.- Returns:
- expression evaluator context
-