Package org.apache.calcite.sql.fun
Class SqlJsonQueryFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.fun.SqlJsonQueryFunction
-
public class SqlJsonQueryFunction extends org.apache.calcite.sql.SqlFunctionTheJSON_QUERYfunction.This class was copied over from Calcite to support RETURNING clause in JSON_QUERY (CALCITE-6365). When upgrading to Calcite 1.38.0 version, please remove the entire class.
-
-
Constructor Summary
Constructors Constructor Description SqlJsonQueryFunction()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.calcite.sql.SqlCallcreateCall(@Nullable org.apache.calcite.sql.SqlLiteral functionQualifier, org.apache.calcite.sql.parser.SqlParserPos pos, @Nullable org.apache.calcite.sql.SqlNode... operands)@Nullable StringgetSignatureTemplate(int operandsCount)static booleanhasExplicitTypeSpec(@Nullable org.apache.calcite.sql.SqlNode[] operands)static List<org.apache.calcite.sql.SqlNode>removeTypeSpecOperands(org.apache.calcite.sql.SqlCall call)voidunparse(org.apache.calcite.sql.SqlWriter writer, org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)-
Methods inherited from class org.apache.calcite.sql.SqlFunction
deriveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, validateCall, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
acceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, checkOperandCount, checkOperandTypes, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandCountRange, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isAggregator, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, requiresOrder, requiresOver, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
-
-
-
Method Detail
-
getSignatureTemplate
public @Nullable String getSignatureTemplate(int operandsCount)
- Overrides:
getSignatureTemplatein classorg.apache.calcite.sql.SqlOperator
-
unparse
public void unparse(org.apache.calcite.sql.SqlWriter writer, org.apache.calcite.sql.SqlCall call, int leftPrec, int rightPrec)- Overrides:
unparsein classorg.apache.calcite.sql.SqlFunction
-
createCall
public org.apache.calcite.sql.SqlCall createCall(@Nullable org.apache.calcite.sql.SqlLiteral functionQualifier, org.apache.calcite.sql.parser.SqlParserPos pos, @Nullable org.apache.calcite.sql.SqlNode... operands)- Overrides:
createCallin classorg.apache.calcite.sql.SqlOperator
-
hasExplicitTypeSpec
public static boolean hasExplicitTypeSpec(@Nullable org.apache.calcite.sql.SqlNode[] operands)
-
removeTypeSpecOperands
public static List<org.apache.calcite.sql.SqlNode> removeTypeSpecOperands(org.apache.calcite.sql.SqlCall call)
-
-