net.esper.filter
Class ExprNodeAdapter
java.lang.Object
net.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.
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 |
ExprNodeAdapter
public ExprNodeAdapter(ExprNode exprNode,
EventBean[] prototype)
- Ctor.
- Parameters:
exprNode
- is the boolean expressionprototype
- is the row of events the we are matching on
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