Interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard>
- All Superinterfaces:
IndexComponent
,Iterable<T>
- All Known Implementing Classes:
IndexService
- Enclosing class:
- IndicesClusterStateService
public static interface IndicesClusterStateService.AllocatedIndex<T extends IndicesClusterStateService.Shard>
extends Iterable<T>, IndexComponent
-
Method Summary
Modifier and TypeMethodDescriptionReturns the index settings of this index.getShardOrNull(int shardId)
Returns shard with given id.void
removeShard(int shardId, String message)
Removes shard with given id.void
updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata)
Updates the mappings by applying the incoming onesvoid
updateMetadata(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata)
Updates the metadata of this index.Methods inherited from interface org.elasticsearch.index.IndexComponent
index
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getIndexSettings
IndexSettings getIndexSettings()Returns the index settings of this index. -
updateMetadata
Updates the metadata of this index. Changes become visible throughgetIndexSettings()
.- Parameters:
currentIndexMetadata
- the current index metadatanewIndexMetadata
- the new index metadata
-
updateMapping
void updateMapping(IndexMetadata currentIndexMetadata, IndexMetadata newIndexMetadata) throws IOExceptionUpdates the mappings by applying the incoming ones- Throws:
IOException
-
getShardOrNull
Returns shard with given id. -
removeShard
Removes shard with given id.
-