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()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
-
build
-