| Modifier and Type | Field and Description |
|---|---|
static RandomPartitionerTokenRing |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
double |
getRingFraction(String start,
String end)
Returns ring fraction (value between 0 and 1) represented by the token range
|
BigInteger |
getTokenCountInRange(String startToken,
String endToken)
Returns token count in a given range
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateForPartitionerpublic static final RandomPartitionerTokenRing INSTANCE
public double getRingFraction(String start, String end)
TokenRinggetRingFraction in interface TokenRingstart - exclusiveend - inclusivepublic BigInteger getTokenCountInRange(String startToken, String endToken)
TokenRinggetTokenCountInRange in interface TokenRingCopyright © 2012–2021. All rights reserved.