public class BitmapIndexOptions extends Object implements IdentifiedDataSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
BitmapIndexOptions.UniqueKeyTransformation
Defines an assortment of transformations which can be applied to
unique key values. |
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_UNIQUE_KEY
The default for
unique key. |
static BitmapIndexOptions.UniqueKeyTransformation |
DEFAULT_UNIQUE_KEY_TRANSFORMATION
The default for
unique key
transformation. |
| Constructor and Description |
|---|
BitmapIndexOptions()
Constructs 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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getClassId()
Returns type identifier for this class.
|
int |
getFactoryId()
Returns DataSerializableFactory factory ID for this class.
|
String |
getUniqueKey()
Returns the unique key attribute configured in this index config.
|
BitmapIndexOptions.UniqueKeyTransformation |
getUniqueKeyTransformation()
Returns the unique key transformation configured in this index.
|
int |
hashCode() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
BitmapIndexOptions |
setUniqueKey(String uniqueKey)
Sets unique key attribute in this index config.
|
BitmapIndexOptions |
setUniqueKeyTransformation(BitmapIndexOptions.UniqueKeyTransformation uniqueKeyTransformation)
Sets unique key transformation in this index config.
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public static final String DEFAULT_UNIQUE_KEY
unique key.public static final BitmapIndexOptions.UniqueKeyTransformation DEFAULT_UNIQUE_KEY_TRANSFORMATION
unique key
transformation.public BitmapIndexOptions()
public BitmapIndexOptions(BitmapIndexOptions bitmapIndexOptions)
public String getUniqueKey()
__key. The unique key attribute is used as a source
of values which uniquely identify each entry being inserted into an index.public BitmapIndexOptions setUniqueKey(@Nonnull String uniqueKey)
uniqueKey - a unique key attribute to configure.public BitmapIndexOptions.UniqueKeyTransformation getUniqueKeyTransformation()
OBJECT. The transformation is
applied to every value extracted from unique key
attribue.public BitmapIndexOptions setUniqueKeyTransformation(@Nonnull BitmapIndexOptions.UniqueKeyTransformation uniqueKeyTransformation)
uniqueKeyTransformation - a unique key transformation to configure.public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
an IOException may be thrown if the
input stream has been closed.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getClassId()
IdentifiedDataSerializablegetClassId in interface IdentifiedDataSerializableCopyright © 2021 Hazelcast, Inc.. All rights reserved.