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 TypeMethodDescriptionboolean
Returns 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, isOptional
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, getAllowedSignatures, getConsistency, isOptional, or, typeInference, withGenerator
Methods inherited from interface org.apache.calcite.sql.type.SqlSingleOperandTypeChecker
and, or
-
Method Details
-
isFixedParameters
public boolean isFixedParameters()Description copied from interface:SqlOperandTypeChecker
Returns 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
DEFAULT
value for each parameter for which an argument is not supplied.- Specified by:
isFixedParameters
in interfaceSqlOperandTypeChecker
-
paramTypes
Description copied from interface:SqlOperandMetadata
Returns the types of the parameters.- Specified by:
paramTypes
in interfaceSqlOperandMetadata
-
paramNames
Description copied from interface:SqlOperandMetadata
Returns the names of the parameters.- Specified by:
paramNames
in interfaceSqlOperandMetadata
-