public class ShardInfo extends Object
Modifier and Type | Method and Description |
---|---|
int[] |
asArray()
Return this
ShardInfo object in array representation: [index, count] |
static ShardInfo |
create(int index,
int count) |
boolean |
equals(Object o) |
String |
format()
Return a string form of this
ShardInfo using the following pattern: index,count |
int |
getCount()
Return the shard count represented by this
ShardInfo . |
int |
getIndex()
Return the shard index represented by this
ShardInfo . |
int |
hashCode() |
String |
toString() |
public static ShardInfo create(int index, int count)
public int getIndex()
ShardInfo
.public int getCount()
ShardInfo
.public int[] asArray()
ShardInfo
object in array representation: [index, count]index
and count
public String format()
ShardInfo
using the following pattern: index,count