T - the type of the node to be replicatedpublic final class ReplicationPartition<T extends Node> extends java.lang.Object implements Partition<T>
index
for each partition, that extends the Node.getKey().| Constructor and Description |
|---|
ReplicationPartition(int index,
T node) |
ReplicationPartition(int index,
T node,
long slot) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
getIndex() |
T |
getNode() |
java.lang.String |
getPartitionKey()
Return the partition key, used for slot calculation.
|
long |
getSlot() |
int |
hashCode() |
void |
setSlot(long slot) |
java.lang.String |
toString() |
public ReplicationPartition(int index,
T node)
public ReplicationPartition(int index,
T node,
long slot)
public int getIndex()
public java.lang.String getPartitionKey()
PartitiongetPartitionKey in interface Partition<T extends Node>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object