Package org.apache.calcite.sql.validate
Class SqlUserDefinedTableMacro
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.validate.SqlUserDefinedTableMacro
- All Implemented Interfaces:
SqlTableFunction
User-defined table macro.
Created by the validator, after resolving a function call to a function defined in a Calcite schema.
-
Field Summary
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
Constructor Summary
ConstructorDescriptionSqlUserDefinedTableMacro
(SqlIdentifier opName, SqlKind kind, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandMetadata operandMetadata, TableMacro tableMacro) Creates a user-defined table macro.SqlUserDefinedTableMacro
(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandTypeChecker operandTypeChecker, List<RelDataType> paramTypes, TableMacro tableMacro) Deprecated. -
Method Summary
Modifier and TypeMethodDescription@Nullable SqlOperandMetadata
UseSqlOperandMetadata.paramNames()
on the result ofSqlOperator.getOperandTypeChecker()
.Returns the record type of the table yielded by this function when applied to given arguments.getTable
(SqlOperatorBinding callBinding) Returns the table in this UDF, or null if there is no table.Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.calcite.sql.SqlTableFunction
tableCharacteristic
-
Constructor Details
-
SqlUserDefinedTableMacro
@Deprecated public SqlUserDefinedTableMacro(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandTypeChecker operandTypeChecker, List<RelDataType> paramTypes, TableMacro tableMacro) Deprecated. -
SqlUserDefinedTableMacro
public SqlUserDefinedTableMacro(SqlIdentifier opName, SqlKind kind, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandMetadata operandMetadata, TableMacro tableMacro) Creates a user-defined table macro.
-
-
Method Details
-
getOperandTypeChecker
- Overrides:
getOperandTypeChecker
in classSqlOperator
-
getParamNames
Description copied from class:SqlFunction
UseSqlOperandMetadata.paramNames()
on the result ofSqlOperator.getOperandTypeChecker()
.- Overrides:
getParamNames
in classSqlFunction
-
getTable
Returns the table in this UDF, or null if there is no table. -
getRowTypeInference
Description copied from interface:SqlTableFunction
Returns the record type of the table yielded by this function when applied to given arguments. Only literal arguments are passed, non-literal are replaced with default values (null, 0, false, etc).- Specified by:
getRowTypeInference
in interfaceSqlTableFunction
- Returns:
- strategy to infer the row type of a call to this function
-