Class SqlMultisetMemberOfOperator

public class SqlMultisetMemberOfOperator extends SqlBinaryOperator
Multiset MEMBER OF. Checks to see if a element belongs to a multiset.
'green' MEMBER OF MULTISET['red','almost green','blue'] returns false.
  • Constructor Details

    • SqlMultisetMemberOfOperator

      public SqlMultisetMemberOfOperator()
  • Method Details

    • 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.
      checkOperandTypes in class SqlOperator
      callBinding - description of call
      throwOnFailure - whether to throw an exception if check fails (otherwise returns false in that case)
      whether check succeeded
    • 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.
      getOperandCountRange in class SqlOperator
      acceptable range