public static final class IndexGraveyard.Builder
extends java.lang.Object
Modifier and Type | Method | Description |
---|---|---|
IndexGraveyard.Builder |
addTombstone(Index index) |
Add a deleted index to the list of tombstones in the cluster state.
|
IndexGraveyard.Builder |
addTombstones(java.util.Collection<Index> indices) |
Add a set of deleted indexes to the list of tombstones in the cluster state.
|
IndexGraveyard |
build() |
|
IndexGraveyard |
build(Settings settings) |
|
int |
getNumPurged() |
Get the number of tombstones that were purged.
|
java.util.List<IndexGraveyard.Tombstone> |
tombstones() |
A copy of the current tombstones in the builder.
|
public java.util.List<IndexGraveyard.Tombstone> tombstones()
public IndexGraveyard.Builder addTombstone(Index index)
public IndexGraveyard.Builder addTombstones(java.util.Collection<Index> indices)
public int getNumPurged()
public IndexGraveyard build()
public IndexGraveyard build(Settings settings)