public final class MathFunction extends Function1_2
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
ABS
ABS().
|
static int |
CEIL
CEIL() or CEILING().
|
static int |
FLOOR
FLOOR().
|
static int |
MOD
MOD().
|
static int |
ROUND
ROUND() (non-standard)
|
static int |
ROUNDMAGIC
ROUNDMAGIC() (non-standard)
|
static int |
SIGN
SIGN() (non-standard)
|
static int |
TRUNC
TRUNC() (non-standard)
|
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| 构造器和说明 |
|---|
MathFunction(Expression arg1,
Expression arg2,
int function) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getName()
Get the name.
|
Value |
getValue(SessionLocal session,
Value v1,
Value v2)
Returns the value of this function.
|
Expression |
optimize(SessionLocal session)
Try to optimize the expression.
|
getUnenclosedSQL, 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, isConstant, isIdentity, isNullConstant, isValueSet, isWhenConditionOperand, needParentheses, optimizeCondition, toString, writeExpressions, writeExpressionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTraceSQLpublic static final int ABS
public static final int MOD
public static final int FLOOR
public static final int CEIL
public static final int ROUND
public static final int ROUNDMAGIC
public static final int SIGN
public static final int TRUNC
public MathFunction(Expression arg1, Expression arg2, int function)
public Value getValue(SessionLocal session, Value v1, Value v2)
Function1_2getValue 在类中 Function1_2session - the sessionv1 - the value of first argumentv2 - the value of second argument, or nullpublic Expression optimize(SessionLocal session)
Expressionoptimize 在类中 Expressionsession - the sessionpublic String getName()
NamedExpressionCopyright © 2022. All rights reserved.