public class ShardId extends Object implements Streamable, Comparable<ShardId>
Constructor and Description |
---|
ShardId(Index index,
int shardId) |
ShardId(String index,
int shardId) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ShardId o) |
boolean |
equals(Object o) |
int |
getId() |
String |
getIndex() |
int |
hashCode() |
int |
id() |
Index |
index() |
void |
readFrom(StreamInput in) |
static ShardId |
readShardId(StreamInput in) |
String |
toString() |
void |
writeTo(StreamOutput out) |
public ShardId(String index, int shardId)
public ShardId(Index index, int shardId)
public Index index()
public String getIndex()
public int id()
public int getId()
public static ShardId readShardId(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
public int compareTo(ShardId o)
compareTo
in interface Comparable<ShardId>
Copyright © 2009–2016. All rights reserved.