Class IndexGraveyard.IndexGraveyardDiff

java.lang.Object
org.elasticsearch.cluster.metadata.IndexGraveyard.IndexGraveyardDiff
All Implemented Interfaces:
Diff<Metadata.Custom>, NamedDiff<Metadata.Custom>, NamedWriteable, Writeable
Enclosing class:
IndexGraveyard

public static final class IndexGraveyard.IndexGraveyardDiff
extends java.lang.Object
implements NamedDiff<Metadata.Custom>
A class representing a diff of two IndexGraveyard objects.
  • Method Details

    • writeTo

      public void writeTo​(StreamOutput out) throws java.io.IOException
      Description copied from interface: Writeable
      Write this into the StreamOutput.
      Specified by:
      writeTo in interface Writeable
      Throws:
      java.io.IOException
    • apply

      public IndexGraveyard apply​(Metadata.Custom previous)
      Description copied from interface: Diff
      Applies difference to the specified part and returns the resulted part
      Specified by:
      apply in interface Diff<Metadata.Custom>
    • getAdded

      public java.util.List<IndexGraveyard.Tombstone> getAdded()
      The index tombstones that were added between two states
    • getRemovedCount

      public int getRemovedCount()
      The number of index tombstones that were removed between two states
    • getWriteableName

      public java.lang.String getWriteableName()
      Description copied from interface: NamedWriteable
      Returns the name of the writeable object
      Specified by:
      getWriteableName in interface NamedWriteable