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 ShardGenerationsbuild()ShardGenerations.Builderput(IndexId indexId, int shardId, java.lang.String generation)ShardGenerations.BuilderputAll(ShardGenerations shardGenerations)ShardGenerations.BuilderretainIndicesAndPruneDeletes(java.util.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
-