Package org.apache.calcite.sql.fun
Class SqlJsonArrayAggAggFunction
java.lang.Object
org.apache.calcite.sql.SqlOperator
org.apache.calcite.sql.SqlFunction
org.apache.calcite.sql.SqlAggFunction
org.apache.calcite.sql.fun.SqlJsonArrayAggAggFunction
The 
JSON_OBJECTAGG aggregate function.- 
Field SummaryFields inherited from class org.apache.calcite.sql.SqlOperatorkind, MDX_PRECEDENCE, NL
- 
Constructor SummaryConstructorsConstructorDescriptionSqlJsonArrayAggAggFunction(SqlKind kind, SqlJsonConstructorNullClause nullClause) 
- 
Method SummaryModifier and TypeMethodDescriptioncreateCall(@Nullable SqlLiteral functionQualifier, SqlParserPos pos, @Nullable SqlNode... operands) Creates a call to this operator with an array of operands.deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call) Derives the type of a call to this operator.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.with(SqlJsonConstructorNullClause nullClause) Methods inherited from class org.apache.calcite.sql.SqlAggFunctionallowsFilter, allowsNullTreatment, getDistinctOptionality, getParameterTypes, getReturnType, getRollup, isAggregator, isPercentile, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCallMethods inherited from class org.apache.calcite.sql.SqlFunctiongetFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, validateQuantifierMethods inherited from class org.apache.calcite.sql.SqlOperatoracceptCall, 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, getSignatureTemplate, getSqlCallFactory, getStrongPolicyInference, hashCode, inferReturnType, inferReturnType, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, isSymmetrical, leftPrec, not, preValidateCall, requiresDecimalExpansion, reverse, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperandsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.calcite.schema.WrappermaybeUnwrap, unwrapOrThrow
- 
Constructor Details- 
SqlJsonArrayAggAggFunction
 
- 
- 
Method Details- 
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
 
- 
deriveTypeDescription copied from class:SqlOperatorDerives the type of a call to this operator.This method is an intrinsic part of the validation process so, unlike SqlOperator.inferReturnType(org.apache.calcite.sql.SqlOperatorBinding), specific operators would not typically override this method.- Overrides:
- deriveTypein class- SqlFunction
- Parameters:
- validator- Validator
- scope- Scope of validation
- call- Call to this operator
- Returns:
- Type of call
 
- 
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
 
- 
with
- 
getNullClause
 
-