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.
  • Constructor Details

    • RepositoryShardId

      public RepositoryShardId​(IndexId index, int shard)
    • RepositoryShardId

      public RepositoryShardId​(StreamInput in) throws java.io.IOException
      Throws:
      java.io.IOException
  • Method Details

    • index

      public IndexId index()
    • indexName

      public java.lang.String indexName()
    • shardId

      public int shardId()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • writeTo

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

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object