Package com.apple.foundationdb.tuple
Enum TupleOrdering.Direction
- All Implemented Interfaces:
Serializable
,Comparable<TupleOrdering.Direction>
,java.lang.constant.Constable
- Enclosing class:
- TupleOrdering
Direction of ordering.
ASC_NULLS_FIRST
corresponds to the default Tuple
packing and is included for completeness.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns a string that symbolizes the meaning of this enum constant.boolean
Get whether values are ordered ascending.boolean
Get whethernull
values sort at the opposite end as in the defaultTuple
packing.boolean
Get whether values are ordered descending.boolean
Get whether the byte ordering is inverted, that is, the opposite of the default unordered byte comparison of packedTuple
s.boolean
Get whether null values come earlier.boolean
Get whether null values come later.static TupleOrdering.Direction
Returns the enum constant of this type with the specified name.static TupleOrdering.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ASC_NULLS_FIRST
-
ASC_NULLS_LAST
-
DESC_NULLS_FIRST
-
DESC_NULLS_LAST
-
-
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
-
isInverted
public boolean isInverted()Get whether the byte ordering is inverted, that is, the opposite of the default unordered byte comparison of packedTuple
s.- Returns:
true
if byte order is inverted
-
isCounterflowNulls
public boolean isCounterflowNulls()Get whethernull
values sort at the opposite end as in the defaultTuple
packing.- Returns:
true
if nulls come at the end when ascending
-
getArrowIndicator
Returns a string that symbolizes the meaning of this enum constant.- Returns:
- the arrow indicator
-
isAscending
public boolean isAscending()Get whether values are ordered ascending. This is the opposite ofisInverted()
, viewed from the name of the enum, as opposed to what encoding would need to do.- Returns:
true
if greater values from first
-
isDescending
public boolean isDescending()Get whether values are ordered descending. This is the same asisInverted()
, viewed from the name of the enum, as opposed to what encoding would need to do.- Returns:
true
if greater values from first
-
isNullsFirst
public boolean isNullsFirst()Get whether null values come earlier. This corresponds to the second part of the enum name.- Returns:
true
if nulls values come before non-null values
-
isNullsLast
public boolean isNullsLast()Get whether null values come later. This corresponds to the second part of the enum name.- Returns:
true
if nulls values come after non-null values
-
reverseDirection
-