Class CompositeSingleOperandTypeChecker

java.lang.Object
org.apache.calcite.sql.type.CompositeOperandTypeChecker
org.apache.calcite.sql.type.CompositeSingleOperandTypeChecker
All Implemented Interfaces:
org.apache.calcite.sql.type.SqlOperandTypeChecker, org.apache.calcite.sql.type.SqlSingleOperandTypeChecker

public class CompositeSingleOperandTypeChecker extends org.apache.calcite.sql.type.CompositeOperandTypeChecker implements org.apache.calcite.sql.type.SqlSingleOperandTypeChecker
Default implementation of CompositeOperandTypeChecker, the class was copied over because of current Calcite issue CALCITE-5380.

Lines 73 ~ 78, 101 ~ 107

  • Nested Class Summary

    Nested classes/interfaces inherited from class org.apache.calcite.sql.type.CompositeOperandTypeChecker

    org.apache.calcite.sql.type.CompositeOperandTypeChecker.Composition

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

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

    Fields inherited from class org.apache.calcite.sql.type.CompositeOperandTypeChecker

    allowedRules, composition
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    checkSingleOperandType(org.apache.calcite.sql.SqlCallBinding callBinding, org.apache.calcite.sql.SqlNode node, int iFormalOperand, boolean throwOnFailure)
     
    com.google.common.collect.ImmutableList<? extends org.apache.calcite.sql.type.SqlSingleOperandTypeChecker>
     

    Methods inherited from class org.apache.calcite.sql.type.CompositeOperandTypeChecker

    checkOperandTypes, getAllowedSignatures, getOperandCountRange, isOptional, typeInference, withGenerator

    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, getAllowedSignatures, getConsistency, isFixedParameters, isOptional, or, typeInference, withGenerator

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

    and, checkOperandTypes, getOperandCountRange, or
  • Method Details

    • getRules

      public com.google.common.collect.ImmutableList<? extends org.apache.calcite.sql.type.SqlSingleOperandTypeChecker> getRules()
      Overrides:
      getRules in class org.apache.calcite.sql.type.CompositeOperandTypeChecker
    • checkSingleOperandType

      public boolean checkSingleOperandType(org.apache.calcite.sql.SqlCallBinding callBinding, org.apache.calcite.sql.SqlNode node, int iFormalOperand, boolean throwOnFailure)
      Specified by:
      checkSingleOperandType in interface org.apache.calcite.sql.type.SqlSingleOperandTypeChecker