com.espertech.esper.filter
Class ExprNodeAdapter

java.lang.Object
  extended by com.espertech.esper.filter.ExprNodeAdapter

public class ExprNodeAdapter
extends Object

Adapter for use by FilterParamIndexBooleanExpr to evaluate boolean expressions, providing events per stream to expression nodes. Generated by @{link FilterSpecParamExprNode} for boolean expression filter parameters.


Constructor Summary
ExprNodeAdapter(ExprNode exprNode, EventBean[] prototype, VariableService variableService)
          Ctor.
 
Method Summary
 boolean evaluate(EventBean event)
          Evaluate the boolean expression given the event as a stream zero event.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExprNodeAdapter

public ExprNodeAdapter(ExprNode exprNode,
                       EventBean[] prototype,
                       VariableService variableService)
Ctor.

Parameters:
exprNode - is the boolean expression
prototype - is the row of events the we are matching on
variableService - for setting variable version for evaluating variables, if required
Method Detail

evaluate

public boolean evaluate(EventBean event)
Evaluate the boolean expression given the event as a stream zero event.

Parameters:
event - is the stream zero event (current event)
Returns:
boolean result of the expression

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com