@Internal
public class BridgingSqlFunction
extends org.apache.calcite.sql.SqlFunction
FunctionDefinition to Calcite's representation of a scalar or table function
(either a system or user-defined function).| Modifier and Type | Class and Description |
|---|---|
static class |
BridgingSqlFunction.WithTableFunction
Special flavor of
BridgingSqlFunction to indicate a table function to Calcite. |
| Modifier and Type | Method and Description |
|---|---|
org.apache.flink.table.catalog.DataTypeFactory |
getDataTypeFactory() |
org.apache.flink.table.functions.FunctionDefinition |
getDefinition() |
List<String> |
getParamNames() |
org.apache.flink.table.catalog.ContextResolvedFunction |
getResolvedFunction() |
org.apache.flink.table.planner.calcite.FlinkTypeFactory |
getTypeFactory() |
org.apache.flink.table.types.inference.TypeInference |
getTypeInference() |
boolean |
isDeterministic() |
static BridgingSqlFunction |
of(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory,
org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory,
org.apache.calcite.sql.SqlKind kind,
org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction,
org.apache.flink.table.types.inference.TypeInference typeInference)
Creates an instance of a scalar or table function (either a system or user-defined function).
|
static BridgingSqlFunction |
of(org.apache.flink.table.planner.calcite.FlinkContext context,
org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory,
org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction)
Creates an instance of a scalar or table function during translation.
|
static BridgingSqlFunction |
of(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.flink.table.functions.BuiltInFunctionDefinition functionDefinition)
Creates an instance of a scalar or table built-in function during translation.
|
static BridgingSqlFunction |
of(org.apache.calcite.plan.RelOptCluster cluster,
org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction)
Creates an instance of a scalar or table function during translation.
|
deriveType, getFunctionType, getNameAsId, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, unparse, validateCall, validateQuantifieracceptCall, 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, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandspublic static BridgingSqlFunction of(org.apache.flink.table.catalog.DataTypeFactory dataTypeFactory, org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory, org.apache.calcite.sql.SqlKind kind, org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction, org.apache.flink.table.types.inference.TypeInference typeInference)
dataTypeFactory - used for creating DataTypetypeFactory - used for bridging to RelDataTypekind - commonly used SQL standard function; use SqlKind.OTHER_FUNCTION if this
function cannot be mapped to a common function kind.resolvedFunction - system or user-defined FunctionDefinition with contexttypeInference - type inference logicpublic static BridgingSqlFunction of(org.apache.flink.table.planner.calcite.FlinkContext context, org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory, org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction)
public static BridgingSqlFunction of(org.apache.calcite.plan.RelOptCluster cluster, org.apache.flink.table.catalog.ContextResolvedFunction resolvedFunction)
public static BridgingSqlFunction of(org.apache.calcite.plan.RelOptCluster cluster, org.apache.flink.table.functions.BuiltInFunctionDefinition functionDefinition)
public org.apache.flink.table.catalog.DataTypeFactory getDataTypeFactory()
public org.apache.flink.table.planner.calcite.FlinkTypeFactory getTypeFactory()
public org.apache.flink.table.catalog.ContextResolvedFunction getResolvedFunction()
public org.apache.flink.table.functions.FunctionDefinition getDefinition()
public org.apache.flink.table.types.inference.TypeInference getTypeInference()
public List<String> getParamNames()
getParamNames in class org.apache.calcite.sql.SqlFunctionpublic boolean isDeterministic()
isDeterministic in class org.apache.calcite.sql.SqlOperatorCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.