public final class CastSpecification extends Function1_2
left, right, 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 |
|---|
CastSpecification(Expression arg,
Column column) |
CastSpecification(Expression arg,
Column column,
Expression template) |
CastSpecification(Expression arg,
TypeInfo type) |
| 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.
|
protected Value |
getValue(SessionLocal session,
Value v1,
Value v2)
Returns the value of this function.
|
boolean |
isConstant()
Check if this expression will always return the same value.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getValuegetCost, 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, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic CastSpecification(Expression arg, Column column, Expression template)
public CastSpecification(Expression arg, Column column)
public CastSpecification(Expression arg, TypeInfo type)
protected Value getValue(SessionLocal session, Value v1, Value v2)
Function1_2getValue in class Function1_2session - the sessionv1 - the value of first argumentv2 - the value of second argument, or nullpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic boolean isConstant()
ExpressionisConstant in class Expressionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class Function1_2builder - string buildersqlFlags - formatting flagspublic java.lang.String getName()
NamedExpression