Package org.elasticsearch.repositories
Class ShardSnapshotResult
java.lang.Object
org.elasticsearch.repositories.ShardSnapshotResult
- All Implemented Interfaces:
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
ConstructorDescriptionShardSnapshotResult(String generation, ByteSizeValue size, int segmentCount)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getSize()
int
hashCode()
toString()
void
writeTo(StreamOutput out)
Write this into the StreamOutput.
-
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:
IOException
-
-
Method Details
-
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:Writeable
Write this into the StreamOutput.- Specified by:
writeTo
in interfaceWriteable
- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
toString
-