Package org.apache.hadoop.hbase.util
Enum Class Order
- All Implemented Interfaces:
- Serializable,- Comparable<Order>,- Constable
Used to describe or modify the lexicographical sort order of a 
byte[]. Default ordering
 is considered ASCENDING. The order of a byte[] can be inverted, resulting in
 DESCENDING order, by replacing each byte with its 1's compliment.- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract byteapply(byte val) Apply order to the byteval.abstract voidapply(byte[] val) Apply order to the byte arrayval.abstract voidapply(byte[] val, int offset, int length) Apply order to a range within the byte arrayval.abstract intcmp(int cmp) Returns the adjusted trichotomous value according to the ordering imposed by thisOrder.static OrderReturns the enum constant of this class with the specified name.static Order[]values()Returns an array containing the constants of this enum class, in the order they are declared.
- 
Enum Constant Details- 
ASCENDING
- 
DESCENDING
 
- 
- 
Constructor Details- 
Orderprivate Order()
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
cmpReturns the adjusted trichotomous value according to the ordering imposed by thisOrder.
- 
applyApply order to the byteval.
- 
applyApply order to the byte arrayval.
- 
applyApply order to a range within the byte arrayval.
 
-