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, com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator filter, com.espertech.esper.common.internal.epl.expression.core.ExprEvaluatorContext exprEvaluatorContext) Ctor. -
Method Summary
Modifier and TypeMethodDescriptioncom.espertech.esper.common.internal.epl.expression.core.ExprEvaluatorContext
Returns the expression evaluator context for evaluating filter expressions.com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator
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, com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator filter, com.espertech.esper.common.internal.epl.expression.core.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
public com.espertech.esper.common.internal.epl.expression.core.ExprEvaluator 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
public com.espertech.esper.common.internal.epl.expression.core.ExprEvaluatorContext getExprEvaluatorContext()Returns the expression evaluator context for evaluating filter expressions.- Returns:
- expression evaluator context
-