Package org.opensearch.repositories
Class ShardGenerations.Builder
java.lang.Object
org.opensearch.repositories.ShardGenerations.Builder
- Enclosing class:
- ShardGenerations
Builder for the shard generations.
- Opensearch.internal:
-
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 suppliedindices
and prunes allShardGenerations.DELETED_SHARD_GEN
entries from the builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
retainIndicesAndPruneDeletes
Filters out all generations that don't belong to any of the suppliedindices
and prunes allShardGenerations.DELETED_SHARD_GEN
entries from the builder.- Parameters:
indices
- indices to filter for- Returns:
- builder that contains only the given
indices
and noShardGenerations.DELETED_SHARD_GEN
entries
-
putAll
-
put
-
build
-