Package com.hazelcast.config
Enum BitmapIndexOptions.UniqueKeyTransformation
- java.lang.Object
-
- java.lang.Enum<BitmapIndexOptions.UniqueKeyTransformation>
-
- com.hazelcast.config.BitmapIndexOptions.UniqueKeyTransformation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BitmapIndexOptions.UniqueKeyTransformation>
- Enclosing class:
- BitmapIndexOptions
public static enum BitmapIndexOptions.UniqueKeyTransformation extends java.lang.Enum<BitmapIndexOptions.UniqueKeyTransformation>
Defines an assortment of transformations which can be applied tounique key
values.
-
-
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BitmapIndexOptions.UniqueKeyTransformation
fromId(int id)
static BitmapIndexOptions.UniqueKeyTransformation
fromName(java.lang.String name)
Resolves one of theBitmapIndexOptions.UniqueKeyTransformation
values by its name.int
getId()
java.lang.String
toString()
static BitmapIndexOptions.UniqueKeyTransformation
valueOf(java.lang.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 Detail
-
OBJECT
public static final BitmapIndexOptions.UniqueKeyTransformation OBJECT
Extracted unique key value is interpreted as an object value. Non-negative unique ID is assigned to every distinct object value.
-
LONG
public static final BitmapIndexOptions.UniqueKeyTransformation 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
public static final BitmapIndexOptions.UniqueKeyTransformation 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 Detail
-
values
public static BitmapIndexOptions.UniqueKeyTransformation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BitmapIndexOptions.UniqueKeyTransformation c : BitmapIndexOptions.UniqueKeyTransformation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BitmapIndexOptions.UniqueKeyTransformation valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromName
public static BitmapIndexOptions.UniqueKeyTransformation fromName(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if the given name doesn't correspond to any knownBitmapIndexOptions.UniqueKeyTransformation
name.
-
fromId
public static BitmapIndexOptions.UniqueKeyTransformation fromId(int id)
-
getId
public int getId()
- Returns:
- the id of this transformation.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<BitmapIndexOptions.UniqueKeyTransformation>
-
-