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.booleanGet whether values are ordered ascending.booleanGet whethernullvalues sort at the opposite end as in the defaultTuplepacking.booleanGet whether values are ordered descending.booleanGet whether the byte ordering is inverted, that is, the opposite of the default unordered byte comparison of packedTuples.booleanGet whether null values come earlier.booleanGet whether null values come later.static TupleOrdering.DirectionReturns 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 packedTuples.- Returns:
trueif byte order is inverted
-
isCounterflowNulls
public boolean isCounterflowNulls()Get whethernullvalues sort at the opposite end as in the defaultTuplepacking.- Returns:
trueif 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:
trueif 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:
trueif 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:
trueif 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:
trueif nulls values come after non-null values
-
reverseDirection
-