Package org.apache.calcite.sql.type
Class ArrayInsertOperandTypeChecker
java.lang.Object
org.apache.calcite.sql.type.SameOperandTypeChecker
org.apache.calcite.sql.type.ArrayInsertOperandTypeChecker
- All Implemented Interfaces:
SqlOperandTypeChecker,SqlSingleOperandTypeChecker
Parameter type checking strategy, where the operand size is 3, and the first type is array,
the second type is integer, and the third type is the component type of the first array (
strictly matched without leastRestrictive conversion).
-
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
-
ArrayInsertOperandTypeChecker
public ArrayInsertOperandTypeChecker()
-
-
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
-