Class NumericExceptFirstOperandChecker

java.lang.Object
org.apache.flink.table.planner.plan.type.NumericExceptFirstOperandChecker
All Implemented Interfaces:
org.apache.calcite.sql.type.SqlOperandTypeChecker

public class NumericExceptFirstOperandChecker extends Object implements org.apache.calcite.sql.type.SqlOperandTypeChecker
Parameter type-checking strategy where all operand types except first one must be numeric type.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.calcite.sql.type.SqlOperandTypeChecker

    org.apache.calcite.sql.type.SqlOperandTypeChecker.Consistency
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkOperandTypes(org.apache.calcite.sql.SqlCallBinding callBinding, boolean throwOnFailure)
     
    getAllowedSignatures(org.apache.calcite.sql.SqlOperator op, String opName)
     
    org.apache.calcite.sql.type.SqlOperandTypeChecker.Consistency
     
    org.apache.calcite.sql.SqlOperandCountRange
     
    boolean
    isOptional(int i)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.apache.calcite.sql.type.SqlOperandTypeChecker

    and, isFixedParameters, or, typeInference, withGenerator
  • Constructor Details

    • NumericExceptFirstOperandChecker

      public NumericExceptFirstOperandChecker(int nOperands)
  • Method Details

    • 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