|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.espertech.esper.pattern.EvalStateNode
com.espertech.esper.pattern.EvalFilterStateNode
public class EvalFilterStateNode
This class contains the state of a single filter expression in the evaluation state tree.
Field Summary | |
---|---|
protected MatchedEventMap |
beginState
|
protected EvalFilterNode |
evalFilterNode
|
protected EPStatementHandleCallback |
handle
|
protected boolean |
isStarted
|
Constructor Summary | |
---|---|
EvalFilterStateNode(Evaluator parentNode,
EvalFilterNode evalFilterNode)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
accept(EvalStateNodeVisitor visitor,
java.lang.Object data)
Accept a visitor. |
java.lang.Object |
childrenAccept(EvalStateNodeVisitor visitor,
java.lang.Object data)
Pass the visitor to all child nodes. |
EvalFilterNode |
getEvalFilterNode()
|
EvalNode |
getFactoryNode()
Returns the factory node for the state node. |
java.lang.String |
getStatementId()
Returns the statement id. |
boolean |
isFilterStateNode()
|
boolean |
isNotOperator()
|
boolean |
isSubSelect()
Returns true if the filter applies to subselects. |
void |
matchFound(EventBean theEvent,
java.util.Collection<FilterHandleCallback> allStmtMatches)
Indicate that an event was evaluated by the FilterService
which matches the filter specification FilterSpecCompiled associated with this callback. |
void |
quit()
Stops the event expression or an instance of it. |
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it. |
protected void |
startFiltering()
|
java.lang.String |
toString()
|
Methods inherited from class com.espertech.esper.pattern.EvalStateNode |
---|
getParentEvaluator, setParentEvaluator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final EvalFilterNode evalFilterNode
protected boolean isStarted
protected EPStatementHandleCallback handle
protected MatchedEventMap beginState
Constructor Detail |
---|
public EvalFilterStateNode(Evaluator parentNode, EvalFilterNode evalFilterNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalFilterNode
- is the factory node associated to the stateMethod Detail |
---|
public EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public java.lang.String getStatementId()
FilterHandle
getStatementId
in interface FilterHandle
public final void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
public final void quit()
EvalStateNode
quit
in class EvalStateNode
public EvalFilterNode getEvalFilterNode()
public void matchFound(EventBean theEvent, java.util.Collection<FilterHandleCallback> allStmtMatches)
FilterHandleCallback
FilterService
which matches the filter specification FilterSpecCompiled
associated with this callback.
matchFound
in interface FilterHandleCallback
theEvent
- - the event received that matches the filter specificationpublic final java.lang.Object accept(EvalStateNodeVisitor visitor, java.lang.Object data)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodedata
- any additional data the visitor may need is passed in this parameter
public final java.lang.Object childrenAccept(EvalStateNodeVisitor visitor, java.lang.Object data)
EvalStateNode
childrenAccept
in class EvalStateNode
visitor
- is the instance to be passed to all child nodesdata
- any additional data the visitor may need is passed in this parameter
public boolean isSubSelect()
FilterHandleCallback
isSubSelect
in interface FilterHandleCallback
public final java.lang.String toString()
toString
in class java.lang.Object
public boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public boolean isNotOperator()
isNotOperator
in class EvalStateNode
protected void startFiltering()
|
© 2006-2011 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |