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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
checkOperandTypes
(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, getTypeName
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, getConsistency, isFixedParameters, isOptional, or, typeInference, withGenerator
Methods 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:SqlOperandTypeChecker
Checks the types of all operands to an operator call.- Specified by:
checkOperandTypes
in interfaceSqlOperandTypeChecker
- Specified by:
checkOperandTypes
in interfaceSqlSingleOperandTypeChecker
- Overrides:
checkOperandTypes
in 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
-