Class TransformNumericExceptFirstOperandChecker

  • All Implemented Interfaces:
    org.apache.calcite.sql.type.SqlOperandTypeChecker

    public class TransformNumericExceptFirstOperandChecker
    extends Object
    implements org.apache.calcite.sql.type.SqlOperandTypeChecker
    Parameter type-checking strategy where all operand types except first one must be numeric type.
    • Constructor Detail

      • TransformNumericExceptFirstOperandChecker

        public TransformNumericExceptFirstOperandChecker​(int nOperands)
    • Method Detail

      • checkOperandTypes

        public boolean checkOperandTypes​(org.apache.calcite.sql.SqlCallBinding callBinding,
                                         boolean throwOnFailure)
        Specified by:
        checkOperandTypes in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
      • getOperandCountRange

        public org.apache.calcite.sql.SqlOperandCountRange getOperandCountRange()
        Specified by:
        getOperandCountRange in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
      • getAllowedSignatures

        public String getAllowedSignatures​(org.apache.calcite.sql.SqlOperator op,
                                           String opName)
        Specified by:
        getAllowedSignatures in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
      • getConsistency

        public org.apache.calcite.sql.type.SqlOperandTypeChecker.Consistency getConsistency()
        Specified by:
        getConsistency in interface org.apache.calcite.sql.type.SqlOperandTypeChecker
      • isOptional

        public boolean isOptional​(int i)
        Specified by:
        isOptional in interface org.apache.calcite.sql.type.SqlOperandTypeChecker