Class ShardSnapshotResult

java.lang.Object
org.elasticsearch.repositories.ShardSnapshotResult
All Implemented Interfaces:
Writeable

public class ShardSnapshotResult extends Object implements Writeable
The details of a successful shard-level snapshot that are used to build the overall snapshot during finalization.
  • Constructor Details

    • ShardSnapshotResult

      public ShardSnapshotResult(ShardGeneration generation, ByteSizeValue size, int segmentCount)
      Parameters:
      generation - the shard generation UUID, which uniquely identifies the specific snapshot of the shard
      size - the total size of all the blobs that make up the shard snapshot, or equivalently, the size of the shard when restored
      segmentCount - the number of segments in this shard snapshot
    • ShardSnapshotResult

      public ShardSnapshotResult(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • getGeneration

      public ShardGeneration getGeneration()
      Returns:
      the shard generation UUID, which uniquely identifies the specific snapshot of the shard
    • getSize

      public ByteSizeValue getSize()
      Returns:
      the total size of all the blobs that make up the shard snapshot, or equivalently, the size of the shard when restored
    • getSegmentCount

      public int getSegmentCount()
      Returns:
      the number of segments in this shard snapshot
    • writeTo

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object