public class MapIndexConfig extends Object
MapConfig
. The reason to create an map index is to speed up searches for
particular map entries.Constructor and Description |
---|
MapIndexConfig()
Creates a MapIndexConfig without an attribute and with ordered set to false.
|
MapIndexConfig(MapIndexConfig config) |
MapIndexConfig(String attribute,
boolean ordered)
Creates a MapIndexConfig with the given attribute and ordered setting.
|
Modifier and Type | Method and Description |
---|---|
MapIndexConfigReadOnly |
getAsReadOnly()
Deprecated.
this method will be removed in 4.0; it is meant for internal usage only.
|
String |
getAttribute()
Gets the attribute that is going to be indexed.
|
boolean |
isOrdered()
Checks if the index should be ordered.
|
MapIndexConfig |
setAttribute(String attribute)
Sets the attribute that is going to be indexed.
|
MapIndexConfig |
setOrdered(boolean ordered)
Configures the index to be ordered or not ordered.
|
String |
toString() |
static String |
validateIndexAttribute(String attribute)
Validates index attribute content
|
public MapIndexConfig()
public MapIndexConfig(String attribute, boolean ordered)
attribute
- the attribute that is going to be indexed.ordered
- true if the index is ordered.setOrdered(boolean)
,
setAttribute(String)
public MapIndexConfig(MapIndexConfig config)
public MapIndexConfigReadOnly getAsReadOnly()
public String getAttribute()
setAttribute(String)
public MapIndexConfig setAttribute(String attribute)
attribute
- the attribute that is going to be indexed.IllegalArgumentException
- if attribute is null or an empty string.public boolean isOrdered()
setOrdered(boolean)
public MapIndexConfig setOrdered(boolean ordered)
ordered
- if the index should be an ordered index.Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.