Package com.hazelcast.config
Enum Class BitmapIndexOptions.UniqueKeyTransformation
java.lang.Object
java.lang.Enum<BitmapIndexOptions.UniqueKeyTransformation>
com.hazelcast.config.BitmapIndexOptions.UniqueKeyTransformation
- All Implemented Interfaces:
Serializable,Comparable<BitmapIndexOptions.UniqueKeyTransformation>,Constable
- Enclosing class:
- BitmapIndexOptions
public static enum BitmapIndexOptions.UniqueKeyTransformation
extends Enum<BitmapIndexOptions.UniqueKeyTransformation>
Defines an assortment of transformations which can be applied to
unique key values.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExtracted unique key value is interpreted as a whole integer value of byte, short, int or long type.Extracted unique key value is interpreted as an object value.Extracted unique key value is interpreted as a whole integer value of byte, short, int or long type. -
Method Summary
Modifier and TypeMethodDescriptionfromId(int id) Resolves one of theBitmapIndexOptions.UniqueKeyTransformationvalues by its name.intgetId()toString()Returns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OBJECT
Extracted unique key value is interpreted as an object value. Non-negative unique ID is assigned to every distinct object value. -
LONG
Extracted unique key value is interpreted as a whole integer value of byte, short, int or long type. The extracted value is upcasted to long (if necessary) and unique non-negative ID is assigned to every distinct value. -
RAW
Extracted unique key value is interpreted as a whole integer value of byte, short, int or long type. The extracted value is upcasted to long (if necessary) and the resulting value is used directly as an ID.
-
-
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
-
fromName
Resolves one of theBitmapIndexOptions.UniqueKeyTransformationvalues by its name.- Parameters:
name- the name of theBitmapIndexOptions.UniqueKeyTransformationvalue to resolve.- Returns:
- the resolved
BitmapIndexOptions.UniqueKeyTransformationvalue. - Throws:
IllegalArgumentException- if the given name doesn't correspond to any knownBitmapIndexOptions.UniqueKeyTransformationname.
-
fromId
-
getId
public int getId()- Returns:
- the id of this transformation.
-
toString
- Overrides:
toStringin classEnum<BitmapIndexOptions.UniqueKeyTransformation>
-