|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||
java.lang.Objectjava.lang.Enum<SqlMonotonicity>
org.eigenbase.sql.validate.SqlMonotonicity
public enum SqlMonotonicity
Enumeration of types of monotonicity.
| Enum Constant Summary | |
|---|---|
Constant
|
|
Decreasing
|
|
Increasing
|
|
NotMonotonic
|
|
StrictlyDecreasing
|
|
StrictlyIncreasing
|
|
| Method Summary | |
|---|---|
boolean |
isDecreasing()
Whether values of this monotonicity are decreasing. |
boolean |
mayRepeat()
Returns whether values of this monotonicity may ever repeat: true for NotMonotonic 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're declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final SqlMonotonicity StrictlyIncreasing
public static final SqlMonotonicity Increasing
public static final SqlMonotonicity StrictlyDecreasing
public static final SqlMonotonicity Decreasing
public static final SqlMonotonicity Constant
public static final SqlMonotonicity NotMonotonic
| Method Detail |
|---|
public static final 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 namepublic SqlMonotonicity unstrict()
public SqlMonotonicity reverse()
public boolean isDecreasing()
public boolean mayRepeat()
NotMonotonic 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | ||||||||