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 boolean
equals(java.lang.Object obj)
int
hashCode()
IndexId
index()
java.lang.String
indexName()
int
shardId()
java.lang.String
toString()
void
writeTo(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
writeTo
Description copied from interface:Writeable
Write this into the StreamOutput. -
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-