public final class Format extends Operation1
| Modifier and Type | Class and Description |
|---|---|
static class |
Format.FormatEnum
Supported formats.
|
arg, 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 |
|---|
Format(Expression arg,
Format.FormatEnum format) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getColumnName(SessionLocal session,
int columnIndex)
Get the column name or alias name of this expression.
|
int |
getNullable()
Check whether this expression is a column and can store NULL.
|
java.lang.String |
getTableName()
Get the table name, or null
|
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.
|
Value |
getValue(Value value)
Returns the value with applied format.
|
boolean |
isIdentity()
Check if this is an identity column.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, setEvaluatable, updateAggregateaddFilterConditions, createIndexConditions, getAlias, getBooleanValue, getColumnNameForView, getEnclosedSQL, getNonAliasExpression, getNotIfPossible, getSchemaName, getSQL, getSQL, getSQL, getSQL, getTableAlias, getWhenSQL, getWhenValue, isConstant, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic Format(Expression arg, Format.FormatEnum format)
public Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic Value getValue(Value value)
value - the valuepublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic boolean isIdentity()
ExpressionisIdentity in class Expressionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Expressionbuilder - string buildersqlFlags - formatting flagspublic int getNullable()
ExpressiongetNullable in class Expressionpublic java.lang.String getTableName()
ExpressiongetTableName in class Expressionpublic java.lang.String getColumnName(SessionLocal session, int columnIndex)
ExpressiongetColumnName in class Expressionsession - the sessioncolumnIndex - 0-based column index