-
Method Summary
int
Returns the master node index for this partition.
int
Returns the replica index for this partition.
-
Method Details
-
primary
int primary()
Returns the master node index for this partition.
- Returns:
- the master node index.
-
replica
int replica(int num)
Returns the replica index for this partition.
- Parameters:
num - number of replica.
- Returns:
- the replica node index, -1 if not set.