Class EvalEveryStateSpawnEvaluator

java.lang.Object
com.espertech.esper.common.internal.epl.pattern.every.EvalEveryStateSpawnEvaluator
All Implemented Interfaces:
Evaluator

public final class EvalEveryStateSpawnEvaluator extends Object implements Evaluator
This class contains the state of an 'every' operator in the evaluation state tree. EVERY nodes work as a factory for new state subnodes. When a child node of an EVERY node calls the evaluateTrue method on the EVERY node, the EVERY node will call newState on its child node BEFORE it calls evaluateTrue on its parent node. It keeps a reference to the new child in its list. (BEFORE because the root node could call quit on child nodes for stopping all listeners).
  • Constructor Details

    • EvalEveryStateSpawnEvaluator

      public EvalEveryStateSpawnEvaluator(String statementName)
  • Method Details

    • isEvaluatedTrue

      public final boolean isEvaluatedTrue()
    • evaluateTrue

      public final void evaluateTrue(MatchedEventMap matchEvent, EvalStateNode fromNode, boolean isQuitted, EventBean optionalTriggeringEvent)
      Description copied from interface: Evaluator
      Indicate a change in truth value to true.
      Specified by:
      evaluateTrue in interface Evaluator
      Parameters:
      matchEvent - is the container for events that caused the change in truth value
      fromNode - is the node that indicates the change
      isQuitted - is an indication of whether the node continues listenening or stops listening
      optionalTriggeringEvent - in case the truth value changed to true in direct response to an event arriving, provides that event
    • evaluateFalse

      public final void evaluateFalse(EvalStateNode fromNode, boolean restartable)
      Description copied from interface: Evaluator
      Indicate a change in truth value to false.
      Specified by:
      evaluateFalse in interface Evaluator
      Parameters:
      fromNode - is the node that indicates the change
      restartable - whether the evaluator can be restarted
    • isFilterChildNonQuitting

      public boolean isFilterChildNonQuitting()
      Specified by:
      isFilterChildNonQuitting in interface Evaluator