public final class TrimFunction extends Function1_2
Modifier and Type | Field and Description |
---|---|
static int |
LEADING
The LEADING flag.
|
static int |
MULTI_CHARACTER
The multi-character flag.
|
static int |
TRAILING
The TRAILING flag.
|
left, right, type
AUTO_PARENTHESES, MAP_IN_AGGREGATE, MAP_IN_WINDOW, MAP_INITIAL, WITH_PARENTHESES, WITHOUT_PARENTHESES
ADD_PLAN_INFORMATION, DEFAULT_SQL_FLAGS, NO_CASTS, QUOTE_ONLY_WHEN_REQUIRED, REPLACE_LOBS_FOR_TRACE, TRACE_SQL_FLAGS
Constructor and Description |
---|
TrimFunction(Expression from,
Expression space,
int flags) |
Modifier and Type | Method and Description |
---|---|
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,
Value v1,
Value v2)
Returns the value of this function.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getValue
getCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, setEvaluatable, updateAggregate
addFilterConditions, 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, writeExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getTraceSQL
public static final int LEADING
public static final int TRAILING
public static final int MULTI_CHARACTER
public TrimFunction(Expression from, Expression space, int flags)
public Value getValue(SessionLocal session, Value v1, Value v2)
Function1_2
getValue
in class Function1_2
session
- the sessionv1
- the value of first argumentv2
- the value of second argument, or null
public Expression optimize(SessionLocal session)
Expression
optimize
in class Expression
session
- the sessionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder, int sqlFlags)
Expression
getUnenclosedSQL
in class Function1_2
builder
- string buildersqlFlags
- formatting flagspublic java.lang.String getName()
NamedExpression