public enum SqlMonotonicity extends Enum<SqlMonotonicity>
| Enum Constant and Description |
|---|
CONSTANT |
DECREASING |
INCREASING |
MONOTONIC
Catch-all value for expressions that have some monotonic properties.
|
NOT_MONOTONIC |
STRICTLY_DECREASING |
STRICTLY_INCREASING |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isDecreasing()
Whether values of this monotonicity are decreasing.
|
boolean |
mayRepeat()
Returns whether values of this monotonicity may ever repeat after moving
to another value: true for
NOT_MONOTONIC and CONSTANT,
false otherwise. |
SqlMonotonicity |
reverse()
Returns the reverse monotonicity.
|
SqlMonotonicity |
unstrict()
If this is a strict monotonicity (StrictlyIncreasing, StrictlyDecreasing)
returns the non-strict equivalent (Increasing, Decreasing).
|
static SqlMonotonicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SqlMonotonicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SqlMonotonicity STRICTLY_INCREASING
public static final SqlMonotonicity INCREASING
public static final SqlMonotonicity STRICTLY_DECREASING
public static final SqlMonotonicity DECREASING
public static final SqlMonotonicity CONSTANT
public static final SqlMonotonicity MONOTONIC
public static final SqlMonotonicity NOT_MONOTONIC
public static SqlMonotonicity[] values()
for (SqlMonotonicity c : SqlMonotonicity.values()) System.out.println(c);
public static SqlMonotonicity valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is nullpublic SqlMonotonicity unstrict()
public SqlMonotonicity reverse()
public boolean isDecreasing()
public boolean mayRepeat()
NOT_MONOTONIC and CONSTANT,
false otherwise.
If a column is known not to repeat, a sort on that column can make progress before all of the input has been seen.
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.