public class ShardId extends java.lang.Object implements Streamable, java.lang.Comparable<ShardId>
Constructor and Description |
---|
ShardId(Index index,
int shardId) |
ShardId(java.lang.String index,
java.lang.String indexUUID,
int shardId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ShardId o) |
boolean |
equals(java.lang.Object o) |
static ShardId |
fromString(java.lang.String shardIdString)
Parse the string representation of this shardId back to an object.
|
int |
getId() |
Index |
getIndex() |
java.lang.String |
getIndexName() |
int |
hashCode() |
int |
id() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
static ShardId |
readShardId(StreamInput in) |
java.lang.String |
toString() |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
public ShardId(Index index, int shardId)
public ShardId(java.lang.String index, java.lang.String indexUUID, int shardId)
public Index getIndex()
public java.lang.String getIndexName()
public int id()
public int getId()
public java.lang.String toString()
toString
in class java.lang.Object
public static ShardId fromString(java.lang.String shardIdString)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static ShardId readShardId(StreamInput in) throws java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
java.io.IOException