Package org.apache.cassandra.db.marshal
Enum Class AbstractType.ComparisonType
java.lang.Object
java.lang.Enum<AbstractType.ComparisonType>
org.apache.cassandra.db.marshal.AbstractType.ComparisonType
- All Implemented Interfaces:
Serializable,Comparable<AbstractType.ComparisonType>,Constable
- Enclosing class:
- AbstractType<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis type is always compared by its sequence of unsigned bytesThis type can only be compared by calling the type's compareCustom() method, which may be expensive.This type should never be compared -
Method Summary
Modifier and TypeMethodDescriptionstatic AbstractType.ComparisonTypeReturns the enum constant of this class with the specified name.static AbstractType.ComparisonType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_COMPARABLE
This type should never be compared -
BYTE_ORDER
This type is always compared by its sequence of unsigned bytes -
CUSTOM
This type can only be compared by calling the type's compareCustom() method, which may be expensive. Support for this may be removed in a major release of Cassandra, however upgrade facilities will be provided if and when this happens.
-
-
Method Details
-
values
Returns 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
-
valueOf
Returns 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 nameNullPointerException- if the argument is null
-