|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.config.MapIndexConfig
public class MapIndexConfig
Contains the configuration for an index in a map. This class should be used in combination
with the MapConfig
. THe reason to create an map index, is to speed up searches for
particular map entries.
Constructor Summary | |
---|---|
MapIndexConfig()
Creates a MapIndexConfig without an attribute and with ordered is false. |
|
MapIndexConfig(MapIndexConfig config)
|
|
MapIndexConfig(String attribute,
boolean ordered)
Creates a MapIndexConfig with the given attribute and ordered setting. |
Method Summary | |
---|---|
MapIndexConfigReadOnly |
getAsReadOnly()
|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MapIndexConfig()
public MapIndexConfig(String attribute, boolean ordered)
attribute
- the attribute that is going to be indexed.ordered
- if the index is ordered.setOrdered(boolean)
,
setAttribute(String)
public MapIndexConfig(MapIndexConfig config)
Method Detail |
---|
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.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |