com.datastax.spark.connector.rdd.partitioner.dht
Number of tokens in a range from token1
to token2
.
Number of tokens in a range from token1
to token2
.
If token2 < token1
, then range wraps around.
Defines how to group tokens into buckets, useful for partitioning
Creates a token from its string representation
Defines how to compare tokens
Converts a token to its string representation
Total token count in a ring.
Fraction of the ring in a range from token1
to token2
.
Fraction of the ring in a range from token1
to token2
.
If token2 < token1
, then range wraps around.
Returns 1.0 for a full ring range, 0.0 for an empty range.