public class SqlJsonObjectAggAggFunction extends SqlAggFunction
JSON_OBJECTAGG
aggregate function.Modifier and Type | Field and Description |
---|---|
private SqlJsonConstructorNullClause |
nullClause |
kind, MDX_PRECEDENCE, NL
Constructor and Description |
---|
SqlJsonObjectAggAggFunction(SqlKind kind,
SqlJsonConstructorNullClause nullClause)
Creates a SqlJsonObjectAggAggFunction.
|
Modifier and Type | Method and Description |
---|---|
RelDataType |
deriveType(SqlValidator validator,
SqlValidatorScope scope,
SqlCall call)
Derives the type of a call to this operator.
|
SqlJsonConstructorNullClause |
getNullClause() |
void |
unparse(SqlWriter writer,
SqlCall call,
int leftPrec,
int rightPrec)
Writes a SQL representation of a call to this operator to a writer,
including parentheses if the operators on either side are of greater
precedence.
|
SqlJsonObjectAggAggFunction |
with(SqlJsonConstructorNullClause nullClause) |
allowsFilter, allowsNullTreatment, getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, 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, isDeterministic, isDynamicFunction, isGroup, isGroupAuxiliary, isName, leftPrec, preValidateCall, requiresDecimalExpansion, rewriteCall, rightPrec, toString, unparseListClause, unparseListClause, validateOperands, validRexOperands
private final SqlJsonConstructorNullClause nullClause
public SqlJsonObjectAggAggFunction(SqlKind kind, SqlJsonConstructorNullClause nullClause)
public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
SqlOperator
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)
.
unparse
in class SqlFunction
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
SqlOperator
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.
deriveType
in class SqlFunction
validator
- Validatorscope
- Scope of validationcall
- Call to this operatorpublic SqlJsonObjectAggAggFunction with(SqlJsonConstructorNullClause nullClause)
public SqlJsonConstructorNullClause getNullClause()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.