public class SqlUserDefinedTableMacro extends SqlFunction
Created by the validator, after resolving a function call to a function defined in a Calcite schema.
kind, MDX_PRECEDENCE, NL| Constructor and Description |
|---|
SqlUserDefinedTableMacro(SqlIdentifier opName,
SqlReturnTypeInference returnTypeInference,
SqlOperandTypeInference operandTypeInference,
SqlOperandTypeChecker operandTypeChecker,
TableMacro tableMacro) |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
convertArguments(RelDataTypeFactory typeFactory,
List<SqlNode> operandList,
Function function,
SqlIdentifier opName,
boolean failOnNonLiteral)
Converts arguments from
SqlNode to
java object format. |
TranslatableTable |
getTable(RelDataTypeFactory typeFactory,
List<SqlNode> operandList)
Returns the table in this UDF, or null if there is no table.
|
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 SqlUserDefinedTableMacro(SqlIdentifier opName, SqlReturnTypeInference returnTypeInference, SqlOperandTypeInference operandTypeInference, SqlOperandTypeChecker operandTypeChecker, TableMacro tableMacro)
public TranslatableTable getTable(RelDataTypeFactory typeFactory, List<SqlNode> operandList)
public static List<Object> convertArguments(RelDataTypeFactory typeFactory, List<SqlNode> operandList, Function function, SqlIdentifier opName, boolean failOnNonLiteral)
SqlNode to
java object format.typeFactory - type factory used to convert the argumentsoperandList - input argumentsfunction - target function to get parameter types fromopName - name of the operator to use in error messagefailOnNonLiteral - true when conversion should fail on non-literalCopyright © 2012–2015 The Apache Software Foundation. All rights reserved.