Package org.apache.calcite.sql.type
Class OperandMetadataImpl
java.lang.Object
org.apache.calcite.sql.type.FamilyOperandTypeChecker
org.apache.calcite.sql.type.OperandMetadataImpl
- All Implemented Interfaces:
ImplicitCastOperandTypeChecker,SqlOperandMetadata,SqlOperandTypeChecker,SqlSingleOperandTypeChecker
Operand type-checking strategy user-defined functions (including user-defined
aggregate functions, table functions, and table macros).
UDFs have a fixed number of parameters is fixed. Per
SqlOperandMetadata, this interface provides the name and types of
each parameter.
-
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.FamilyOperandTypeChecker
families, optional -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether the list of parameters is fixed-length.Returns the names of the parameters.paramTypes(RelDataTypeFactory typeFactory) Returns the types of the parameters.Methods inherited from class org.apache.calcite.sql.type.FamilyOperandTypeChecker
checkOperandTypes, checkOperandTypesWithoutTypeCoercion, checkSingleOperandType, checkSingleOperandType, getAllowedSignatures, getOperandCountRange, getOperandSqlTypeFamily, isOptionalMethods 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, isOptional, or, typeInference, withGeneratorMethods inherited from interface org.apache.calcite.sql.type.SqlSingleOperandTypeChecker
and, or
-
Method Details
-
isFixedParameters
public boolean isFixedParameters()Description copied from interface:SqlOperandTypeCheckerReturns whether the list of parameters is fixed-length. In standard SQL, user-defined functions are fixed-length.If true, the validator should expand calls, supplying a
DEFAULTvalue for each parameter for which an argument is not supplied.- Specified by:
isFixedParametersin interfaceSqlOperandTypeChecker
-
paramTypes
Description copied from interface:SqlOperandMetadataReturns the types of the parameters.- Specified by:
paramTypesin interfaceSqlOperandMetadata
-
paramNames
Description copied from interface:SqlOperandMetadataReturns the names of the parameters.- Specified by:
paramNamesin interfaceSqlOperandMetadata
-