Package org.apache.beam.sdk.io.cassandra
Class RingRange
java.lang.Object
org.apache.beam.sdk.io.cassandra.RingRange
- All Implemented Interfaces:
Serializable
Models a Cassandra token range.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getEnd()
getStart()
int
hashCode()
boolean
static RingRange
of
(BigInteger start, BigInteger end) toString()
-
Method Details
-
getStart
-
getEnd
-
isWrapping
public boolean isWrapping()- Returns:
- true if 0 is inside of this range. Note that if start == end, then wrapping is true
-
toString
-
of
-
equals
-
hashCode
public int hashCode()
-