public class EvalFilterStateNode extends EvalStateNode implements FilterHandleCallback
Modifier and Type | Field and Description |
---|---|
protected MatchedEventMap |
beginState |
protected EvalFilterNode |
evalFilterNode |
protected FilterServiceEntry |
filterServiceEntry |
protected EPStatementHandleCallback |
handle |
protected boolean |
isStarted |
Constructor and Description |
---|
EvalFilterStateNode(Evaluator parentNode,
EvalFilterNode evalFilterNode)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(EvalStateNodeVisitor visitor)
Accept a visitor.
|
EvalFilterNode |
getEvalFilterNode() |
EvalNode |
getFactoryNode()
Returns the factory node for the state node.
|
int |
getStatementId()
Returns the statement id.
|
boolean |
isFilterStateNode() |
boolean |
isNotOperator() |
boolean |
isObserverStateNodeNonRestarting() |
boolean |
isSubSelect()
Returns true if the filter applies to subselects.
|
void |
matchFound(EventBean theEvent,
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 |
removeMatch(Set<EventBean> matchEvent)
Remove matches that overlap with the provided events.
|
void |
start(MatchedEventMap beginState)
Starts the event expression or an instance of it.
|
protected void |
startFiltering() |
String |
toString() |
getParentEvaluator, setParentEvaluator
protected final EvalFilterNode evalFilterNode
protected boolean isStarted
protected EPStatementHandleCallback handle
protected FilterServiceEntry filterServiceEntry
protected MatchedEventMap beginState
public EvalFilterStateNode(Evaluator parentNode, EvalFilterNode evalFilterNode)
parentNode
- is the parent evaluator to call to indicate truth valueevalFilterNode
- is the factory node associated to the statepublic EvalNode getFactoryNode()
EvalStateNode
getFactoryNode
in class EvalStateNode
public int getStatementId()
FilterHandle
getStatementId
in interface FilterHandle
public final void start(MatchedEventMap beginState)
EvalStateNode
start
in class EvalStateNode
beginState
- begin statepublic final void quit()
EvalStateNode
quit
in class EvalStateNode
public EvalFilterNode getEvalFilterNode()
public void matchFound(EventBean theEvent, 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 specificationallStmtMatches
- - collection of matches that represent all matches for the same statementpublic final void accept(EvalStateNodeVisitor visitor)
EvalStateNode
accept
in class EvalStateNode
visitor
- on which the visit method is invoked by each nodepublic boolean isSubSelect()
FilterHandleCallback
isSubSelect
in interface FilterHandleCallback
public boolean isFilterStateNode()
isFilterStateNode
in class EvalStateNode
public boolean isNotOperator()
isNotOperator
in class EvalStateNode
public boolean isObserverStateNodeNonRestarting()
isObserverStateNodeNonRestarting
in class EvalStateNode
public void removeMatch(Set<EventBean> matchEvent)
EvalStateNode
removeMatch
in class EvalStateNode
matchEvent
- set of events to check forprotected void startFiltering()