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()
false.public MapIndexConfig(String attribute, boolean ordered)
attribute - the attribute that is going to be indexedordered - true if the index is ordered, false otherwisesetOrdered(boolean),
setAttribute(String)public MapIndexConfig(MapIndexConfig config)
public MapIndexConfigReadOnly getAsReadOnly()
public String getAttribute()
null is returned.setAttribute(String)public MapIndexConfig setAttribute(String attribute)
attribute - the attribute that is going to be indexedIllegalArgumentException - if attribute is null or an empty stringpublic boolean isOrdered()
true if ordered, false otherwisesetOrdered(boolean)public MapIndexConfig setOrdered(boolean ordered)
ordered - if the index should be an ordered indexCopyright © 2017. All Rights Reserved.