Package org.apache.calcite.sql.type
Class NotNullOperandTypeChecker
java.lang.Object
org.apache.calcite.sql.type.SameOperandTypeChecker
org.apache.calcite.sql.type.NotNullOperandTypeChecker
- All Implemented Interfaces:
SqlOperandTypeChecker,SqlSingleOperandTypeChecker
Parameter type-checking strategy where all operand types must not be NULL.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.calcite.sql.type.SqlOperandTypeChecker
SqlOperandTypeChecker.Consistency -
Field Summary
Fields inherited from class org.apache.calcite.sql.type.SameOperandTypeChecker
nOperands -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) Checks the types of all operands to an operator call.Methods inherited from class org.apache.calcite.sql.type.SameOperandTypeChecker
checkOperandTypes, checkOperandTypesImpl, checkSingleOperandType, getAllowedSignatures, getOperandCountRange, getOperandList, getTypeNameMethods 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, getConsistency, isFixedParameters, isOptional, or, typeInference, withGeneratorMethods inherited from interface org.apache.calcite.sql.type.SqlSingleOperandTypeChecker
and, or
-
Constructor Details
-
NotNullOperandTypeChecker
public NotNullOperandTypeChecker(int nOperands, boolean allowCast)
-
-
Method Details
-
checkOperandTypes
Description copied from interface:SqlOperandTypeCheckerChecks the types of all operands to an operator call.- Specified by:
checkOperandTypesin interfaceSqlOperandTypeChecker- Specified by:
checkOperandTypesin interfaceSqlSingleOperandTypeChecker- Overrides:
checkOperandTypesin classSameOperandTypeChecker- Parameters:
callBinding- description of the call to be checkedthrowOnFailure- whether to throw an exception if check fails (otherwise returns false in that case)- Returns:
- whether check succeeded
-