public final class LengthFunction extends Function1
| Modifier and Type | Field and Description |
|---|---|
static int |
BIT_LENGTH
BIT_LENGTH() (non-standard).
|
static int |
CHAR_LENGTH
CHAR_LENGTH().
|
static int |
OCTET_LENGTH
OCTET_LENGTH().
|
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 |
|---|
LengthFunction(Expression arg,
int function) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name.
|
Value |
getValue(SessionLocal session)
Return the resulting value for the current row.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getUnenclosedSQLgetCost, getSubexpression, getSubexpressionCount, getType, isEverything, mapColumns, 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 static final int CHAR_LENGTH
public static final int OCTET_LENGTH
public static final int BIT_LENGTH
public LengthFunction(Expression arg, int function)
public Value getValue(SessionLocal session)
ExpressiongetValue in class Expressionsession - the sessionpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic java.lang.String getName()
NamedExpression