Package com.hazelcast.config
Enum BitmapIndexOptions.UniqueKeyTransformation
java.lang.Object
java.lang.Enum<BitmapIndexOptions.UniqueKeyTransformation>
com.hazelcast.config.BitmapIndexOptions.UniqueKeyTransformation
- All Implemented Interfaces:
Serializable
,Comparable<BitmapIndexOptions.UniqueKeyTransformation>
,java.lang.constant.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
-
Enum Constant Summary
Enum Constants Enum Constant Description LONG
Extracted unique key value is interpreted as a whole integer value of byte, short, int or long type.OBJECT
Extracted unique key value is interpreted as an object value.RAW
Extracted unique key value is interpreted as a whole integer value of byte, short, int or long type. -
Method Summary
Modifier and Type Method Description static BitmapIndexOptions.UniqueKeyTransformation
fromId(int id)
static BitmapIndexOptions.UniqueKeyTransformation
fromName(String name)
Resolves one of theBitmapIndexOptions.UniqueKeyTransformation
values by its name.int
getId()
String
toString()
static BitmapIndexOptions.UniqueKeyTransformation
valueOf(String name)
Returns the enum constant of this type with the specified name.static BitmapIndexOptions.UniqueKeyTransformation[]
values()
Returns an array containing the constants of this enum type, 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 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
-
fromName
Resolves one of theBitmapIndexOptions.UniqueKeyTransformation
values by its name.- Parameters:
name
- the name of theBitmapIndexOptions.UniqueKeyTransformation
value to resolve.- Returns:
- the resolved
BitmapIndexOptions.UniqueKeyTransformation
value. - Throws:
IllegalArgumentException
- if the given name doesn't correspond to any knownBitmapIndexOptions.UniqueKeyTransformation
name.
-
fromId
-
getId
public int getId()- Returns:
- the id of this transformation.
-
toString
- Overrides:
toString
in classEnum<BitmapIndexOptions.UniqueKeyTransformation>
-