public final class CoalesceFunction extends FunctionN
| Modifier and Type | Field and Description |
|---|---|
static int |
COALESCE
COALESCE().
|
static int |
GREATEST
GREATEST() (non-standard).
|
static int |
LEAST
LEAST() (non-standard).
|
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 |
|---|
CoalesceFunction(int function) |
CoalesceFunction(int function,
Expression... args) |
| 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)
Return the resulting value for the current row.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
void |
setIgnoreNulls(boolean ignoreNulls) |
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 static final int COALESCE
public static final int GREATEST
public static final int LEAST
public CoalesceFunction(int function)
public CoalesceFunction(int function,
Expression... args)
public void setIgnoreNulls(boolean ignoreNulls)
public Value getValue(SessionLocal session)
Expressionpublic Expression optimize(SessionLocal session)
Expressionoptimize in class Expressionsession - the sessionpublic java.lang.String getName()
NamedExpressionpublic java.lang.StringBuilder getUnenclosedSQL(java.lang.StringBuilder builder,
int sqlFlags)
ExpressiongetUnenclosedSQL in class FunctionNbuilder - string buildersqlFlags - formatting flags