public final class JsonConstructorFunction extends OperationN implements ExpressionWithFlags, NamedExpression
args, argsCount, typeAUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESESADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS| Constructor and Description |
|---|
JsonConstructorFunction(boolean array)
Creates a new instance of JSON constructor function.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getFlags()
Returns the flags.
|
static java.lang.StringBuilder |
getJsonFunctionFlagsSQL(java.lang.StringBuilder builder,
int flags,
boolean forArray)
Appends flags of a JSON function to the specified string builder.
|
java.lang.String |
getName()
Get the name.
|
java.lang.StringBuilder |
getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
Get the SQL statement of this expression.
|
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
void |
setFlags(int flags)
Set the flags for this expression.
|
addParameter, doneWithParameters, getCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, optimizeArguments, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnName, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getNullable, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getTableName, getWhenSQL, getWhenValue, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic JsonConstructorFunction(boolean array)
array - false for JSON_OBJECT, true for
JSON_ARRAY.public void setFlags(int flags)
ExpressionWithFlagssetFlags in interface ExpressionWithFlagsflags - the flags to setpublic int getFlags()
ExpressionWithFlagsgetFlags in interface ExpressionWithFlagspublic Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic static java.lang.StringBuilder getJsonFunctionFlagsSQL(java.lang.StringBuilder builder,
int flags,
boolean forArray)
builder - string builder to append toflags - flags to appendforArray - whether the function is an array functionpublic java.lang.String getName()
NamedExpressiongetName in interface NamedExpression