Package org.elasticsearch.repositories
Class ShardSnapshotResult
java.lang.Object
org.elasticsearch.repositories.ShardSnapshotResult
- All Implemented Interfaces:
Writeable
public class ShardSnapshotResult extends java.lang.Object implements Writeable
The details of a successful shard-level snapshot that are used to build the overall snapshot during finalization.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors Constructor Description ShardSnapshotResult(java.lang.String generation, ByteSizeValue size, int segmentCount)ShardSnapshotResult(StreamInput in) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetGeneration()intgetSegmentCount()ByteSizeValuegetSize()inthashCode()java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
ShardSnapshotResult
- Parameters:
generation- the shard generation UUID, which uniquely identifies the specific snapshot of the shardsize- the total size of all the blobs that make up the shard snapshot, or equivalently, the size of the shard when restoredsegmentCount- the number of segments in this shard snapshot
-
ShardSnapshotResult
- Throws:
java.io.IOException
-
-
Method Details
-
getGeneration
public java.lang.String getGeneration()- Returns:
- the shard generation UUID, which uniquely identifies the specific snapshot of the shard
-
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
Description copied from interface:WriteableWrite this into the StreamOutput. -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-