Class SqlPosixRegexOperator


public class SqlPosixRegexOperator extends SqlBinaryOperator
An operator describing the ~ operator.

Syntax: src-value [!] ~ [*] pattern-value

  • Method Details

    • not

      public SqlOperator not()
      Description copied from class: SqlOperator
      Returns the operator that is the logical inverse of this operator.

      For example, SqlStdOperatorTable.LIKE.not() returns SqlStdOperatorTable.NOT_LIKE, and vice versa.

      By default, returns null, which means there is no inverse operator.

      Overrides:
      not in class SqlOperator
      See Also:
    • getOperandCountRange

      public SqlOperandCountRange getOperandCountRange()
      Description copied from class: SqlOperator
      Returns a constraint on the number of operands expected by this operator. Subclasses may override this method; when they don't, the range is derived from the SqlOperandTypeChecker associated with this operator.
      Overrides:
      getOperandCountRange in class SqlOperator
      Returns:
      acceptable range
    • checkOperandTypes

      public boolean checkOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure)
      Description copied from class: SqlOperator
      Checks that the operand values in a SqlCall to this operator are valid. Subclasses must either override this method or supply an instance of SqlOperandTypeChecker to the constructor.
      Overrides:
      checkOperandTypes in class SqlOperator
      Parameters:
      callBinding - description of call
      throwOnFailure - whether to throw an exception if check fails (otherwise returns false in that case)
      Returns:
      whether check succeeded
    • unparse

      public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
      Description copied from class: SqlOperator
      Writes a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.

      The default implementation of this method delegates to SqlSyntax.unparse(org.apache.calcite.sql.SqlWriter, org.apache.calcite.sql.SqlOperator, org.apache.calcite.sql.SqlCall, int, int).

      Overrides:
      unparse in class SqlOperator
    • isCaseSensitive

      public boolean isCaseSensitive()
      Returns whether this operator matches the case of its operands.
      Returns:
      whether this operator matches the case of its operands
    • isNegated

      public boolean isNegated()
      Returns whether this is 'NOT' variant of an operator.
      See Also: