public class SqlUserDefinedTableFunction extends SqlUserDefinedFunction
Created by the validator, after resolving a function call to a function defined in a Calcite schema.
function
kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlUserDefinedTableFunction(SqlIdentifier opName,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
java.util.List<RelDataType> paramTypes,
TableFunction function) |
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Type |
getElementType(RelDataTypeFactory typeFactory,
java.util.List<SqlNode> operandList)
Returns the row type of the table yielded by this function when
applied to given arguments.
|
TableFunction |
getFunction()
Returns function that implements given operator call.
|
RelDataType |
getRowType(RelDataTypeFactory typeFactory,
java.util.List<SqlNode> operandList)
Returns the record type of the table yielded by this function when
applied to given arguments.
|
getParamNames
deriveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifier
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSignatureTemplate, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
public SqlUserDefinedTableFunction(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker, java.util.List<RelDataType> paramTypes, TableFunction function)
public TableFunction getFunction()
getFunction
in class SqlUserDefinedFunction
public RelDataType getRowType(RelDataTypeFactory typeFactory, java.util.List<SqlNode> operandList)
typeFactory
- Type factoryoperandList
- arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)public java.lang.reflect.Type getElementType(RelDataTypeFactory typeFactory, java.util.List<SqlNode> operandList)
operandList
- arguments of a function call (only literal arguments
are passed, nulls for non-literal ones)Object[].class
)Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.