Class SqlMultisetMemberOfOperator


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

      • SqlMultisetMemberOfOperator

        public SqlMultisetMemberOfOperator()
    • Method Detail

      • 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