Package org.apache.calcite.sql.validate
Class SqlUserDefinedTableFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.validate.SqlUserDefinedFunction
org.apache.calcite.sql.validate.SqlUserDefinedTableFunction
- All Implemented Interfaces:
- SqlTableFunction
User-defined table function.
 
Created by the validator, after resolving a function call to a function defined in a Calcite schema.
- 
Field SummaryFields inherited from class org.apache.calcite.sql.validate.SqlUserDefinedFunctionfunction, syntaxFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructorsConstructorDescriptionSqlUserDefinedTableFunction(SqlIdentifier opName, SqlKind kind, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandMetadata operandMetadata, TableFunction function) Creates a user-defined table function.SqlUserDefinedTableFunction(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandTypeChecker operandTypeChecker, List<RelDataType> paramTypes, TableFunction function) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptiongetElementType(SqlOperatorBinding callBinding) Returns the row type of the table yielded by this function when applied to given arguments.Returns function that implements given operator call.Returns the record type of the table yielded by this function when applied to given arguments.Methods inherited from class org.apache.calcite.sql.validate.SqlUserDefinedFunctiongetOperandTypeChecker, getParamNames, getSyntaxMethods inherited from class org.apache.calcite.sql.SqlFunctionderiveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, isQuantifierAllowed, unparse, validateCall, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, 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, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.sql.SqlTableFunctiontableCharacteristic
- 
Constructor Details- 
SqlUserDefinedTableFunction@Deprecated public SqlUserDefinedTableFunction(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandTypeChecker operandTypeChecker, List<RelDataType> paramTypes, TableFunction function) Deprecated.
- 
SqlUserDefinedTableFunctionpublic SqlUserDefinedTableFunction(SqlIdentifier opName, SqlKind kind, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, @Nullable SqlOperandMetadata operandMetadata, TableFunction function) Creates a user-defined table function.
 
- 
- 
Method Details- 
getFunctionReturns function that implements given operator call.- Overrides:
- getFunctionin class- SqlUserDefinedFunction
- Returns:
- function that implements given operator call
 
- 
getRowTypeInferenceDescription copied from interface:SqlTableFunctionReturns 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:
- getRowTypeInferencein interface- SqlTableFunction
- Returns:
- strategy to infer the row type of a call to this function
 
- 
getElementTypeReturns the row 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).- Parameters:
- callBinding- Operand bound to arguments
- Returns:
- element type of the table (e.g. Object[].class)
 
 
-