com.espertech.esper.pattern
Class EvalRootNode
java.lang.Object
com.espertech.esper.pattern.EvalNodeBase
com.espertech.esper.pattern.EvalRootNode
- All Implemented Interfaces:
- EvalNode, PatternStarter
public class EvalRootNode
- extends EvalNodeBase
- implements PatternStarter
This class is always the root node in the evaluation tree representing an event expression.
It hold the handle to the EPStatement implementation for notifying when matches are found.
Method Summary |
EvalNode |
getChildNode()
|
EvalRootFactoryNode |
getFactoryNode()
|
EvalStateNode |
newState(Evaluator parentNode,
EvalStateNodeNumber stateNodeNumber,
long stateNodeId)
Create the evaluation state node containing the truth value state for each operator in an
event expression. |
EvalRootState |
start(PatternMatchCallback callback,
PatternContext context,
boolean isRecoveringResilient)
An event expression was started and supplies the callback to use when matching events appear. |
EvalRootState |
start(PatternMatchCallback callback,
PatternContext context,
MatchedEventMap beginState,
boolean isRecoveringResilient)
|
protected EvalRootState |
startInternal(PatternMatchCallback callback,
PatternContext context,
MatchedEventMap beginState,
boolean isRecoveringResilient)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
factoryNode
protected final EvalRootFactoryNode factoryNode
childNode
protected final EvalNode childNode
EvalRootNode
public EvalRootNode(PatternAgentInstanceContext context,
EvalRootFactoryNode factoryNode,
EvalNode childNode)
getChildNode
public EvalNode getChildNode()
getFactoryNode
public EvalRootFactoryNode getFactoryNode()
start
public EvalRootState start(PatternMatchCallback callback,
PatternContext context,
boolean isRecoveringResilient)
- Description copied from interface:
PatternStarter
- An event expression was started and supplies the callback to use when matching events appear.
Returns the callback to use to stop the event expression.
- Specified by:
start
in interface PatternStarter
- Parameters:
callback
- must be supplied to indicate what to call when the expression turns truecontext
- is the context for handles to services required for evaluation.
- Returns:
- a callback to stop the expression again
start
public EvalRootState start(PatternMatchCallback callback,
PatternContext context,
MatchedEventMap beginState,
boolean isRecoveringResilient)
startInternal
protected EvalRootState startInternal(PatternMatchCallback callback,
PatternContext context,
MatchedEventMap beginState,
boolean isRecoveringResilient)
newState
public EvalStateNode newState(Evaluator parentNode,
EvalStateNodeNumber stateNodeNumber,
long stateNodeId)
- Description copied from class:
EvalNodeBase
- Create the evaluation state node containing the truth value state for each operator in an
event expression.
- Specified by:
newState
in interface EvalNode
- Specified by:
newState
in class EvalNodeBase
- Parameters:
parentNode
- is the parent evaluator node that this node indicates a change in truth value to
- Returns:
- state node containing the truth value state for the operator