Class ExprEqualsNodeImpl

java.lang.Object
com.espertech.esper.common.internal.epl.expression.core.ExprNodeBase
com.espertech.esper.common.internal.epl.expression.ops.ExprEqualsNodeImpl
All Implemented Interfaces:
ExprNode, ExprNodeRenderable, ExprValidator, ExprEqualsNode

public class ExprEqualsNodeImpl extends ExprNodeBase implements ExprEqualsNode
Represents an equals (=) comparator in a filter expressiun tree.
  • Constructor Details

    • ExprEqualsNodeImpl

      public ExprEqualsNodeImpl(boolean isNotEquals, boolean isIs)
      Ctor.
      Parameters:
      isNotEquals - - true if this is a (!=) not equals rather then equals, false if its a '=' equals
      isIs - - true when "is" or "is not" (instead of = or <>)
  • Method Details

    • getExprEvaluator

      public ExprEvaluator getExprEvaluator()
    • getForge

      public ExprForge getForge()
      Specified by:
      getForge in interface ExprNode
    • validate

      public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException
      Specified by:
      validate in interface ExprValidator
      Throws:
      ExprValidationException
    • isConstantResult

      public boolean isConstantResult()
    • getEventType

      public Map<String,Object> getEventType()
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer, ExprNodeRenderableFlags flags)
      Specified by:
      toPrecedenceFreeEPL in class ExprNodeBase
    • getPrecedence

      public ExprPrecedenceEnum getPrecedence()
      Description copied from interface: ExprNode
      Returns precedence.
      Specified by:
      getPrecedence in interface ExprNode
      Returns:
      precedence
    • equalsNode

      public boolean equalsNode(ExprNode node, boolean ignoreStreamPrefix)
      Description copied from interface: ExprNode
      Return true if a expression node semantically equals the current node, or false if not.

      Concrete implementations should compare the type and any additional information that impact the evaluation of a node.

      Specified by:
      equalsNode in interface ExprNode
      Parameters:
      node - to compare to
      ignoreStreamPrefix - when the equals-comparison can ignore prefix of event properties
      Returns:
      true if semantically equal, or false if not equals
    • isNotEquals

      public boolean isNotEquals()
      Description copied from interface: ExprEqualsNode
      Returns true if this is a NOT EQUALS node, false if this is a EQUALS node.
      Specified by:
      isNotEquals in interface ExprEqualsNode
      Returns:
      true for !=, false for =
    • isIs

      public boolean isIs()
      Description copied from interface: ExprEqualsNode
      Returns true if this is a "IS" or "IS NOT" node, false if this is a EQUALS or NOT EQUALS node.
      Specified by:
      isIs in interface ExprEqualsNode
      Returns:
      true for !=, false for =