public class CalciteSqlFunction
extends org.apache.calcite.sql.SqlFunction
SqlFunction which provide isDeterministic() as a constructor parameter to simplify construct a new SqlFunction in
FlinkSqlOperatorTable.| Constructor and Description |
|---|
CalciteSqlFunction(String name,
org.apache.calcite.sql.SqlKind kind,
org.apache.calcite.sql.type.SqlReturnTypeInference returnTypeInference,
org.apache.calcite.sql.type.SqlOperandTypeInference operandTypeInference,
org.apache.calcite.sql.type.SqlOperandTypeChecker operandTypeChecker,
org.apache.calcite.sql.SqlFunctionCategory category,
boolean deterministic)
Creates a new SqlFunction for a call to a builtin function.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDeterministic() |
deriveType, getFunctionType, getNameAsId, getParamNames, 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 CalciteSqlFunction(String name, org.apache.calcite.sql.SqlKind kind, org.apache.calcite.sql.type.SqlReturnTypeInference returnTypeInference, org.apache.calcite.sql.type.SqlOperandTypeInference operandTypeInference, org.apache.calcite.sql.type.SqlOperandTypeChecker operandTypeChecker, org.apache.calcite.sql.SqlFunctionCategory category, boolean deterministic)
name - Name of builtin functionkind - kind of operator implemented by functionreturnTypeInference - strategy to use for return type inferenceoperandTypeInference - strategy to use for parameter type inferenceoperandTypeChecker - strategy to use for parameter type checkingcategory - categorization for functiondeterministic - whether this operator is guaranteed to always return the same result
given the same operandsCopyright © 2014–2021 The Apache Software Foundation. All rights reserved.