public static enum RelFieldCollation.Direction extends java.lang.Enum<RelFieldCollation.Direction>
Enum Constant and Description |
---|
ASCENDING
Ascending direction: A value is always followed by a greater or equal
value.
|
CLUSTERED
Clustered direction: Values occur in no particular order, and the
same value may occur in contiguous groups, but never occurs after
that.
|
DESCENDING
Descending direction: A value is always followed by a lesser or equal
value.
|
STRICTLY_ASCENDING
Strictly ascending direction: A value is always followed by a greater
value.
|
STRICTLY_DESCENDING
Strictly descending direction: A value is always followed by a lesser
value.
|
Modifier and Type | Field and Description |
---|---|
java.lang.String |
shortString |
Modifier and Type | Method and Description |
---|---|
RelFieldCollation.NullDirection |
defaultNullDirection()
Returns the null direction if not specified.
|
boolean |
isDescending()
Returns whether this is
DESCENDING or
STRICTLY_DESCENDING . |
SqlMonotonicity |
monotonicity()
Converts the direction to a
SqlMonotonicity . |
static RelFieldCollation.Direction |
of(SqlMonotonicity monotonicity)
Converts a
SqlMonotonicity to a direction. |
static RelFieldCollation.Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RelFieldCollation.Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RelFieldCollation.Direction ASCENDING
public static final RelFieldCollation.Direction STRICTLY_ASCENDING
public static final RelFieldCollation.Direction DESCENDING
public static final RelFieldCollation.Direction STRICTLY_DESCENDING
public static final RelFieldCollation.Direction CLUSTERED
public static RelFieldCollation.Direction[] values()
for (RelFieldCollation.Direction c : RelFieldCollation.Direction.values()) System.out.println(c);
public static RelFieldCollation.Direction valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic SqlMonotonicity monotonicity()
SqlMonotonicity
.public static RelFieldCollation.Direction of(SqlMonotonicity monotonicity)
SqlMonotonicity
to a direction.@Nonnull public RelFieldCollation.NullDirection defaultNullDirection()
public boolean isDescending()
DESCENDING
or
STRICTLY_DESCENDING
.Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.