| Modifier and Type | Class and Description |
|---|---|
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private TypeInfo | |
| private static final int | INTERVAL_DAY_DIGITS
Number of digits enough to hold
|
| private static final TypeInfo | |
| private static final TypeInfo | |
| private static final int | INTERVAL_YEAR_DIGITS
Number of digits enough to hold
|
| private final IntervalOperation. |
| Access | Constructor and Description |
|---|---|
| public | IntervalOperation(IntervalOperation.
|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Value | |
| pack-priv static StringBuilder | |
| private void | |
| private char | |
| private long | |
| public StringBuilder | getUnenclosedSQL(StringBuilder
string builder builder, int formatting flags sqlFlags)Implements abstract org. Get the SQL statement of this expression. |
| public Value | getValue(SessionLocal
the session session)Implements abstract org. Return the resulting value for the current row. |
| private static BigInteger | |
| public boolean | needParentheses()
Overrides org. Returns whether this expressions needs to be wrapped in parentheses when it is used as an argument of other expressions. |
| public Expression | optimize(SessionLocal
the session session)Implements abstract org. Try to optimize the expression. |
| forcedType | back to summary |
|---|---|
| private TypeInfo forcedType | |
| INTERVAL_DAY_DIGITS | back to summary |
|---|---|
| private static final int INTERVAL_DAY_DIGITS Number of digits enough to hold
| |
| INTERVAL_DIVIDE_INTERVAL_DAY_TYPE | back to summary |
|---|---|
| private static final TypeInfo INTERVAL_DIVIDE_INTERVAL_DAY_TYPE | |
| INTERVAL_DIVIDE_INTERVAL_YEAR_TYPE | back to summary |
|---|---|
| private static final TypeInfo INTERVAL_DIVIDE_INTERVAL_YEAR_TYPE | |
| INTERVAL_YEAR_DIGITS | back to summary |
|---|---|
| private static final int INTERVAL_YEAR_DIGITS Number of digits enough to hold
| |
| opType | back to summary |
|---|---|
| private final IntervalOperation. | |
| IntervalOperation | back to summary |
|---|---|
| public IntervalOperation(IntervalOperation. | |
| IntervalOperation | back to summary |
|---|---|
| public IntervalOperation(IntervalOperation. | |
| getDateTimeWithInterval | back to summary |
|---|---|
| private Value getDateTimeWithInterval(SessionLocal session, Value l, Value r, int lType, int rType) | |
| getForcedTypeSQL | back to summary |
|---|---|
| pack-priv static StringBuilder getForcedTypeSQL(StringBuilder builder, TypeInfo forcedType) | |
| getInnerSQL2 | back to summary |
|---|---|
| private void getInnerSQL2(StringBuilder builder, int sqlFlags) | |
| getOperationToken | back to summary |
|---|---|
| private char getOperationToken() | |
| getTimeWithInterval | back to summary |
|---|---|
| private long getTimeWithInterval(Value r, long nanos) | |
| getUnenclosedSQL | back to summary |
|---|---|
| public StringBuilder getUnenclosedSQL(StringBuilder builder, int sqlFlags) Implements abstract org. Doc from org. Get the SQL statement of this expression. This may not always be the original SQL statement, especially after optimization. Enclosing '(' and ')' are never appended.
| |
| getValue | back to summary |
|---|---|
| public Value getValue(SessionLocal session) Implements abstract org. Doc from org. Return the resulting value for the current row.
| |
| nanosFromValue | back to summary |
|---|---|
| private static BigInteger nanosFromValue(SessionLocal session, Value v) | |
| needParentheses | back to summary |
|---|---|
| public boolean needParentheses() Overrides org. Doc from org. Returns whether this expressions needs to be wrapped in parentheses when it is used as an argument of other expressions.
| |
| optimize | back to summary |
|---|---|
| public Expression optimize(SessionLocal session) Implements abstract org. Doc from org. Try to optimize the expression.
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final IntervalOperation. | DATETIME_MINUS_DATETIME
Date-time minus date-time. |
| public static final IntervalOperation. | DATETIME_MINUS_INTERVAL
Date-time minus interval. |
| public static final IntervalOperation. | DATETIME_PLUS_INTERVAL
Date-time plus interval. |
| public static final IntervalOperation. | INTERVAL_DIVIDE_INTERVAL
Interval divided by interval (non-standard). |
| public static final IntervalOperation. | INTERVAL_DIVIDE_NUMERIC
Interval divided by numeric. |
| public static final IntervalOperation. | INTERVAL_MINUS_INTERVAL
Interval minus interval. |
| public static final IntervalOperation. | INTERVAL_MULTIPLY_NUMERIC
Interval multiplied by numeric. |
| public static final IntervalOperation. | INTERVAL_PLUS_INTERVAL
Interval plus interval. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static IntervalOperation. | |
| public static IntervalOperation. |
| DATETIME_MINUS_DATETIME | back to summary |
|---|---|
| public static final IntervalOperation. Date-time minus date-time. | |
| DATETIME_MINUS_INTERVAL | back to summary |
|---|---|
| public static final IntervalOperation. Date-time minus interval. | |
| DATETIME_PLUS_INTERVAL | back to summary |
|---|---|
| public static final IntervalOperation. Date-time plus interval. | |
| INTERVAL_DIVIDE_INTERVAL | back to summary |
|---|---|
| public static final IntervalOperation. Interval divided by interval (non-standard). | |
| INTERVAL_DIVIDE_NUMERIC | back to summary |
|---|---|
| public static final IntervalOperation. Interval divided by numeric. | |
| INTERVAL_MINUS_INTERVAL | back to summary |
|---|---|
| public static final IntervalOperation. Interval minus interval. | |
| INTERVAL_MULTIPLY_NUMERIC | back to summary |
|---|---|
| public static final IntervalOperation. Interval multiplied by numeric. | |
| INTERVAL_PLUS_INTERVAL | back to summary |
|---|---|
| public static final IntervalOperation. Interval plus interval. | |
| IntervalOpType | back to summary |
|---|---|
| private IntervalOpType() | |
| valueOf | back to summary |
|---|---|
| public static IntervalOperation. | |
| values | back to summary |
|---|---|
| public static IntervalOperation. | |