Package com.hazelcast.config
Class BitmapIndexOptions
java.lang.Object
com.hazelcast.config.BitmapIndexOptions
- All Implemented Interfaces:
DataSerializable
,IdentifiedDataSerializable
Configures indexing options specific to bitmap indexes.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Defines an assortment of transformations which can be applied tounique key
values. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The default forunique key
.static final BitmapIndexOptions.UniqueKeyTransformation
The default forunique key transformation
. -
Constructor Summary
ConstructorDescriptionConstructs a new bitmap index options instance with all options set to default values.BitmapIndexOptions
(BitmapIndexOptions bitmapIndexOptions) Constructs a new bitmap index options instance by copying the passed bitmap index options. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
Returns type identifier for this class.int
Returns DataSerializableFactory factory ID for this class.Returns the unique key attribute configured in this index config.Returns the unique key transformation configured in this index.int
hashCode()
void
Reads fields from the input streamsetUniqueKey
(String uniqueKey) Sets unique key attribute in this index config.setUniqueKeyTransformation
(BitmapIndexOptions.UniqueKeyTransformation uniqueKeyTransformation) Sets unique key transformation in this index config.toString()
void
Writes object fields to output stream
-
Field Details
-
DEFAULT_UNIQUE_KEY
The default forunique key
. -
DEFAULT_UNIQUE_KEY_TRANSFORMATION
The default forunique key transformation
.
-
-
Constructor Details
-
BitmapIndexOptions
public BitmapIndexOptions()Constructs a new bitmap index options instance with all options set to default values. -
BitmapIndexOptions
Constructs a new bitmap index options instance by copying the passed bitmap index options.
-
-
Method Details
-
getUniqueKey
Returns the unique key attribute configured in this index config. Defaults to__key
. The unique key attribute is used as a source of values which uniquely identify each entry being inserted into an index.- Returns:
- the configured unique key attribute.
-
setUniqueKey
Sets unique key attribute in this index config.- Parameters:
uniqueKey
- a unique key attribute to configure.
-
getUniqueKeyTransformation
Returns the unique key transformation configured in this index. Defaults toOBJECT
. The transformation is applied to every value extracted fromunique key attribue
.- Returns:
- the configured unique key transformation.
-
setUniqueKeyTransformation
public BitmapIndexOptions setUniqueKeyTransformation(@Nonnull BitmapIndexOptions.UniqueKeyTransformation uniqueKeyTransformation) Sets unique key transformation in this index config.- Parameters:
uniqueKeyTransformation
- a unique key transformation to configure.
-
writeData
Description copied from interface:DataSerializable
Writes object fields to output stream- Specified by:
writeData
in interfaceDataSerializable
- Parameters:
out
- output- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the output stream has been closed.
-
readData
Description copied from interface:DataSerializable
Reads fields from the input stream- Specified by:
readData
in interfaceDataSerializable
- Parameters:
in
- input- Throws:
IOException
- if an I/O error occurs. In particular, anIOException
may be thrown if the input stream has been closed.
-
getFactoryId
public int getFactoryId()Description copied from interface:IdentifiedDataSerializable
Returns DataSerializableFactory factory ID for this class.- Specified by:
getFactoryId
in interfaceIdentifiedDataSerializable
- Returns:
- factory ID
-
getClassId
public int getClassId()Description copied from interface:IdentifiedDataSerializable
Returns type identifier for this class. It should be unique per DataSerializableFactory.- Specified by:
getClassId
in interfaceIdentifiedDataSerializable
- Returns:
- type ID
-
toString
-
equals
-
hashCode
public int hashCode()
-