com.hazelcast.config
Class MapIndexConfigReadOnly
java.lang.Object
com.hazelcast.config.MapIndexConfig
com.hazelcast.config.MapIndexConfigReadOnly
public class MapIndexConfigReadOnly
- extends MapIndexConfig
Contains the configuration for a index of Map.
MapIndexConfigReadOnly
public MapIndexConfigReadOnly(MapIndexConfig config)
setAttribute
public MapIndexConfig setAttribute(String attribute)
- Description copied from class:
MapIndexConfig
- Sets the attribute that is going to be indexed.
- Overrides:
setAttribute
in class MapIndexConfig
- Parameters:
attribute
- the attribute that is going to be indexed.
- Returns:
- the updated MapIndexConfig.
setOrdered
public MapIndexConfig setOrdered(boolean ordered)
- Description copied from class:
MapIndexConfig
- Configures the index to be ordered or not ordered. Some indices can be ordered, e.g. age. Sometimes you
want to look for all people with an age equal or greater than X. In other cases an ordered index doesn't make
sense, e.g. a phone number of a person.
- Overrides:
setOrdered
in class MapIndexConfig
- Parameters:
ordered
- if the index should be an ordered index.
- Returns:
- the updated MapIndexConfig.
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.