Module org.elasticsearch.server
Package org.elasticsearch.repositories
Class ShardGenerations.Builder
java.lang.Object
org.elasticsearch.repositories.ShardGenerations.Builder
- Enclosing class:
ShardGenerations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()put(IndexId indexId, int shardId, SnapshotsInProgress.ShardSnapshotStatus status) put(IndexId indexId, int shardId, ShardGeneration generation) putAll(ShardGenerations shardGenerations) retainIndicesAndPruneDeletes(Set<IndexId> indices) Filters out all generations that don't belong to any of the suppliedindicesand prunes allShardGenerations.DELETED_SHARD_GENentries from the builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retainIndicesAndPruneDeletes
Filters out all generations that don't belong to any of the suppliedindicesand prunes allShardGenerations.DELETED_SHARD_GENentries from the builder.- Parameters:
indices- indices to filter for- Returns:
- builder that contains only the given
indicesand noShardGenerations.DELETED_SHARD_GENentries
-
putAll
-
put
public ShardGenerations.Builder put(IndexId indexId, int shardId, SnapshotsInProgress.ShardSnapshotStatus status) -
put
-
build
-