Package org.apache.calcite.sql.type
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.CompositionNested 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 TypeMethodDescriptionbooleancheckSingleOperandType(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>getRules()Methods inherited from class org.apache.calcite.sql.type.CompositeOperandTypeChecker
checkOperandTypes, getAllowedSignatures, getOperandCountRange, isOptional, typeInference, withGeneratorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.type.SqlOperandTypeChecker
and, getAllowedSignatures, getConsistency, isFixedParameters, isOptional, or, typeInference, withGeneratorMethods 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:
getRulesin classorg.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:
checkSingleOperandTypein interfaceorg.apache.calcite.sql.type.SqlSingleOperandTypeChecker
-