Package org.apache.calcite.sql.fun
Class SqlJsonObjectAggAggFunction
- java.lang.Object
-
- org.apache.calcite.sql.SqlOperator
-
- org.apache.calcite.sql.SqlFunction
-
- org.apache.calcite.sql.SqlAggFunction
-
- org.apache.calcite.sql.fun.SqlJsonObjectAggAggFunction
-
public class SqlJsonObjectAggAggFunction extends SqlAggFunction
TheJSON_OBJECTAGG
aggregate function.
-
-
Field Summary
Fields Modifier and Type Field Description private SqlJsonConstructorNullClause
nullClause
-
Fields inherited from class org.apache.calcite.sql.SqlOperator
kind, MDX_PRECEDENCE, NL
-
-
Constructor Summary
Constructors Constructor Description SqlJsonObjectAggAggFunction(java.lang.String name, SqlJsonConstructorNullClause nullClause)
Creates a SqlJsonObjectAggAggFunction.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RelDataType
deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Derives the type of a call to this operator.SqlJsonConstructorNullClause
getNullClause()
java.lang.String
toString()
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)
-
Methods inherited from class org.apache.calcite.sql.SqlAggFunction
allowsFilter, getParameterTypes, getReturnType, isAggregator, isQuantifierAllowed, requiresGroupOrder, requiresOrder, requiresOver, unwrap, validateCall
-
Methods inherited from class org.apache.calcite.sql.SqlFunction
getFunctionType, getNameAsId, getParamNames, getParamTypes, getSqlIdentifier, getSyntax, validateQuantifier
-
Methods inherited from class org.apache.calcite.sql.SqlOperator
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, unparseListClause, unparseListClause, validateOperands, validRexOperands
-
-
-
-
Field Detail
-
nullClause
private final SqlJsonConstructorNullClause nullClause
-
-
Constructor Detail
-
SqlJsonObjectAggAggFunction
public SqlJsonObjectAggAggFunction(java.lang.String name, SqlJsonConstructorNullClause nullClause)
Creates a SqlJsonObjectAggAggFunction.
-
-
Method Detail
-
unparse
public void unparse(SqlWriter writer, SqlCall call, int leftPrec, int rightPrec)
Description copied from class:SqlOperator
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.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:
unparse
in classSqlFunction
-
deriveType
public RelDataType deriveType(SqlValidator validator, SqlValidatorScope scope, SqlCall call)
Description copied from class:SqlOperator
Derives 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:
deriveType
in classSqlFunction
- Parameters:
validator
- Validatorscope
- Scope of validationcall
- Call to this operator- Returns:
- Type of call
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSqlOperator
-
with
public SqlJsonObjectAggAggFunction with(SqlJsonConstructorNullClause nullClause)
-
getNullClause
public SqlJsonConstructorNullClause getNullClause()
-
-