Package org.apache.calcite.sql.fun
Class SqlJsonObjectFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.fun.SqlJsonObjectFunction
The 
JSON_OBJECT function.- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidcheckOperandCount(SqlValidator validator, @Nullable SqlOperandTypeChecker argType, SqlCall call) booleancheckOperandTypes(SqlCallBinding callBinding, boolean throwOnFailure) Checks that the operand values in aSqlCallto this operator are valid.createCall(@Nullable SqlLiteral functionQualifier, SqlParserPos pos, @Nullable SqlNode... operands) Creates a call to this operator with an array of operands.Returns a constraint on the number of operands expected by this operator.@Nullable StringgetSignatureTemplate(int operandsCount) Returns a template describing how the operator signature is to be built.voidWrites a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.Methods inherited from class org.apache.calcite.sql.SqlFunctionderiveType, getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, isQuantifierAllowed, validateCall, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, acceptCall, adjustType, allowsFraming, argumentMustBeScalar, constructArgNameList, constructArgTypeList, constructOperandList, createCall, createCall, createCall, createCall, createCall, createCall, deriveOperandType, equals, getAllowedSignatures, getAllowedSignatures, getKind, getLeftPrec, getMonotonicity, getMonotonicity, getName, getOperandTypeChecker, getOperandTypeInference, getReturnTypeInference, getRightPrec, getSqlCallFactory, 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
- 
Constructor Details- 
SqlJsonObjectFunctionpublic SqlJsonObjectFunction()
 
- 
- 
Method Details- 
getOperandCountRangeDescription copied from class:SqlOperatorReturns a constraint on the number of operands expected by this operator. Subclasses may override this method; when they don't, the range is derived from theSqlOperandTypeCheckerassociated with this operator.- Overrides:
- getOperandCountRangein class- SqlOperator
- Returns:
- acceptable range
 
- 
checkOperandCountprotected void checkOperandCount(SqlValidator validator, @Nullable SqlOperandTypeChecker argType, SqlCall call) - Overrides:
- checkOperandCountin class- SqlOperator
 
- 
checkOperandTypesDescription copied from class:SqlOperatorChecks that the operand values in aSqlCallto this operator are valid. Subclasses must either override this method or supply an instance ofSqlOperandTypeCheckerto the constructor.- Overrides:
- checkOperandTypesin class- SqlOperator
- Parameters:
- callBinding- description of call
- throwOnFailure- whether to throw an exception if check fails (otherwise returns false in that case)
- Returns:
- whether check succeeded
 
- 
createCallpublic SqlCall createCall(@Nullable SqlLiteral functionQualifier, SqlParserPos pos, @Nullable SqlNode... operands) Description copied from class:SqlOperatorCreates a call to this operator with an array of operands.The position of the resulting call is the union of the posand the positions of all of the operands.- Overrides:
- createCallin class- SqlOperator
- Parameters:
- functionQualifier- Function qualifier (e.g. "DISTINCT"), or null
- pos- Parser position of the identifier of the call
- operands- Array of operands
 
- 
getSignatureTemplateDescription copied from class:SqlOperatorReturns a template describing how the operator signature is to be built. E.g for the binary + operator the template looks like "{1} {0} {2}" {0} is the operator, subsequent numbers are operands.- Overrides:
- getSignatureTemplatein class- SqlOperator
- Parameters:
- operandsCount- is used with functions that can take a variable number of operands
- Returns:
- signature template, or null to indicate that a default template will suffice
 
- 
unparseDescription copied from class:SqlOperatorWrites a SQL representation of a call to this operator to a writer, including parentheses if the operators on either side are of greater precedence.The default implementation of this method delegates to SqlSyntax.unparse(org.apache.calcite.sql.SqlWriter, org.apache.calcite.sql.SqlOperator, org.apache.calcite.sql.SqlCall, int, int).- Overrides:
- unparsein class- SqlFunction
 
 
-