Package org.elasticsearch.repositories
Class RepositoryShardId
java.lang.Object
org.elasticsearch.repositories.RepositoryShardId
- All Implemented Interfaces:
Writeable
public final class RepositoryShardId extends java.lang.Object implements Writeable
Represents a shard snapshot in a repository.
-
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 RepositoryShardId(StreamInput in)RepositoryShardId(IndexId index, int shard) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()IndexIdindex()java.lang.StringindexName()intshardId()java.lang.StringtoString()voidwriteTo(StreamOutput out)Write this into the StreamOutput.
-
Constructor Details
-
RepositoryShardId
-
RepositoryShardId
- Throws:
java.io.IOException
-
-
Method Details
-
index
-
indexName
public java.lang.String indexName() -
shardId
public int shardId() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
writeTo
Description copied from interface:WriteableWrite this into the StreamOutput. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-