public class IndexConfigReadOnly extends IndexConfig
IndexConfig
class.DEFAULT_TYPE
Constructor and Description |
---|
IndexConfigReadOnly(IndexConfig other) |
Modifier and Type | Method and Description |
---|---|
IndexConfig |
addAttribute(String attribute)
Adds an index attribute with the given.
|
List<String> |
getAttributes()
Gets index attributes.
|
IndexConfig |
setAttributes(List<String> attributes)
Sets index attributes.
|
IndexConfig |
setName(String name)
Sets name of the index.
|
IndexConfig |
setType(IndexType type)
Sets type of the index.
|
addAttributeInternal, equals, getClassId, getFactoryId, getName, getType, hashCode, readData, toString, writeData
public IndexConfigReadOnly(IndexConfig other)
public IndexConfig setName(String name)
IndexConfig
setName
in class IndexConfig
name
- Name of the index or null
if index name should be generated automatically.public IndexConfig setType(IndexType type)
IndexConfig
Defaults to IndexType.SORTED
.
setType
in class IndexConfig
type
- Type of the index.public List<String> getAttributes()
IndexConfig
getAttributes
in class IndexConfig
public IndexConfig addAttribute(String attribute)
IndexConfig
addAttribute
in class IndexConfig
attribute
- Attribute name.public IndexConfig setAttributes(List<String> attributes)
IndexConfig
setAttributes
in class IndexConfig
attributes
- Index attributes.Copyright © 2019 Hazelcast, Inc.. All rights reserved.