Class LikeExpression

java.lang.Object
com.espertech.esper.common.client.soda.ExpressionBase
com.espertech.esper.common.client.soda.LikeExpression
All Implemented Interfaces:
Expression, Serializable

public class LikeExpression extends ExpressionBase
SQL-Like expression for matching '%' and '_' wildcard strings following SQL standards.
See Also:
  • Constructor Details

    • LikeExpression

      public LikeExpression()
      Ctor - for use to create an expression tree, without child expression.

      Use add methods to add child expressions to acts upon.

    • LikeExpression

      public LikeExpression(boolean isNot)
      Ctor - for use to create an expression tree, without child expression.

      Use add methods to add child expressions to acts upon.

      Parameters:
      isNot - if the like-expression is negated
    • LikeExpression

      public LikeExpression(Expression left, Expression right)
      Ctor.
      Parameters:
      left - provides the value to match
      right - provides the like-expression to match against
    • LikeExpression

      public LikeExpression(Expression left, Expression right, Expression escape)
      Ctor.
      Parameters:
      left - provides the value to match
      right - provides the like-expression to match against
      escape - is the expression providing the string escape character
    • LikeExpression

      public LikeExpression(Expression left, Expression right, boolean isNot)
      Ctor.
      Parameters:
      left - provides the value to match
      right - provides the like-expression to match against
      isNot - if the like-expression is negated
    • LikeExpression

      public LikeExpression(Expression left, Expression right, Expression escape, boolean isNot)
      Ctor.
      Parameters:
      left - provides the value to match
      right - provides the like-expression to match against
      escape - is the expression providing the string escape character
      isNot - if the like-expression is negated
  • Method Details

    • getPrecedence

      public ExpressionPrecedenceEnum getPrecedence()
      Description copied from interface: Expression
      Returns precedence.
      Returns:
      precedence
    • toPrecedenceFreeEPL

      public void toPrecedenceFreeEPL(StringWriter writer)
      Description copied from class: ExpressionBase
      Renders the expressions and all it's child expression, in full tree depth, as a string in language syntax.
      Specified by:
      toPrecedenceFreeEPL in class ExpressionBase
      Parameters:
      writer - is the output to use
    • isNot

      public boolean isNot()
      Returns true if this is a "not like", or false if just a like
      Returns:
      indicator whether negated or not
    • setNot

      public void setNot(boolean not)
      Set to true if this is a "not like", or false if just a like
      Parameters:
      not - indicator whether negated or not
    • getNot

      public boolean getNot()
      Returns true if this is a "not like", or false if just a like
      Returns:
      indicator whether negated or not