Package org.opensearch.cluster.metadata
Class IndexGraveyard.Builder
java.lang.Object
org.opensearch.cluster.metadata.IndexGraveyard.Builder
- Enclosing class:
IndexGraveyard
A class to build an IndexGraveyard.
- Opensearch.api:
-
Method Summary
Modifier and TypeMethodDescriptionaddTombstone
(org.opensearch.core.index.Index index) Add a deleted index to the list of tombstones in the cluster state.addTombstones
(Collection<org.opensearch.core.index.Index> indices) Add a set of deleted indexes to the list of tombstones in the cluster state.build()
int
Get the number of tombstones that were purged.A copy of the current tombstones in the builder.
-
Method Details
-
tombstones
A copy of the current tombstones in the builder. -
addTombstone
Add a deleted index to the list of tombstones in the cluster state. -
addTombstones
Add a set of deleted indexes to the list of tombstones in the cluster state. -
getNumPurged
public int getNumPurged()Get the number of tombstones that were purged. This should *only* be called after build() has been called. -
build
-
build
-