@Internal public final 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 | Method and Description |
---|---|
DataTypeFactory |
getDataTypeFactory() |
FunctionDefinition |
getDefinition() |
Optional<FunctionIdentifier> |
getIdentifier() |
List<String> |
getParamNames() |
org.apache.flink.table.planner.calcite.FlinkTypeFactory |
getTypeFactory() |
TypeInference |
getTypeInference() |
boolean |
isDeterministic() |
static BridgingSqlFunction |
of(DataTypeFactory dataTypeFactory,
org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory,
org.apache.calcite.sql.SqlKind kind,
FunctionIdentifier identifier,
FunctionDefinition definition,
TypeInference typeInference)
Creates an instance of a scalar or table function (either a system or user-defined function).
|
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, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
public static BridgingSqlFunction of(DataTypeFactory dataTypeFactory, org.apache.flink.table.planner.calcite.FlinkTypeFactory typeFactory, org.apache.calcite.sql.SqlKind kind, @Nullable FunctionIdentifier identifier, FunctionDefinition definition, TypeInference typeInference)
dataTypeFactory
- used for creating DataType
typeFactory
- used for bridging to RelDataType
kind
- commonly used SQL standard function; use SqlKind.OTHER_FUNCTION
if this
function cannot be mapped to a common function kind.identifier
- catalog identifierdefinition
- system or user-defined FunctionDefinition
typeInference
- type inference logicpublic DataTypeFactory getDataTypeFactory()
public org.apache.flink.table.planner.calcite.FlinkTypeFactory getTypeFactory()
public Optional<FunctionIdentifier> getIdentifier()
public FunctionDefinition getDefinition()
public TypeInference getTypeInference()
public List<String> getParamNames()
getParamNames
in class org.apache.calcite.sql.SqlFunction
public boolean isDeterministic()
isDeterministic
in class org.apache.calcite.sql.SqlOperator
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.