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