Package org.elasticsearch.repositories
Class ShardGenerations.Builder
java.lang.Object
org.elasticsearch.repositories.ShardGenerations.Builder
- Enclosing class:
- ShardGenerations
public static final class ShardGenerations.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ShardGenerations
build()
ShardGenerations.Builder
put(IndexId indexId, int shardId, java.lang.String generation)
ShardGenerations.Builder
putAll(ShardGenerations shardGenerations)
ShardGenerations.Builder
retainIndicesAndPruneDeletes(java.util.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
-