Package org.apache.calcite.rel
Enum RelFieldCollation.Direction
- All Implemented Interfaces:
Serializable
,Comparable<RelFieldCollation.Direction>
,Constable
- Enclosing class:
RelFieldCollation
Direction that a field is ordered in.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAscending direction: A value is always followed by a greater or equal value.Clustered direction: Values occur in no particular order, and the same value may occur in contiguous groups, but never occurs after that.Descending direction: A value is always followed by a lesser or equal value.Strictly ascending direction: A value is always followed by a greater value.Strictly descending direction: A value is always followed by a lesser value. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the null direction if not specified.boolean
Returns whether this isDESCENDING
orSTRICTLY_DESCENDING
.lax()
Removes strictness.Converts the direction to aSqlMonotonicity
.static RelFieldCollation.Direction
of
(SqlMonotonicity monotonicity) Converts aSqlMonotonicity
to a direction.reverse()
Returns the reverse of this direction.static RelFieldCollation.Direction
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.
-
Enum Constant Details
-
ASCENDING
Ascending direction: A value is always followed by a greater or equal value. -
STRICTLY_ASCENDING
Strictly ascending direction: A value is always followed by a greater value. -
DESCENDING
Descending direction: A value is always followed by a lesser or equal value. -
STRICTLY_DESCENDING
Strictly descending direction: A value is always followed by a lesser value. -
CLUSTERED
Clustered direction: Values occur in no particular order, and the same value may occur in contiguous groups, but never occurs after that. This sort order tends to occur when values are ordered according to a hash-key.
-
-
Field Details
-
shortString
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
monotonicity
Converts the direction to aSqlMonotonicity
. -
of
Converts aSqlMonotonicity
to a direction. -
defaultNullDirection
Returns the null direction if not specified. Consistent with Oracle, NULLS are sorted as if they were positive infinity. -
isDescending
public boolean isDescending()Returns whether this isDESCENDING
orSTRICTLY_DESCENDING
. -
reverse
Returns the reverse of this direction.- Returns:
- reverse of the input direction
-
lax
Removes strictness.
-