Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
TokenRange |
TokenRange.mergeWith(TokenRange that)
Merges this range with another one.
|
TokenRange |
Metadata.newTokenRange(Token start,
Token end)
Builds a new
TokenRange . |
Modifier and Type | Method and Description |
---|---|
Set<TokenRange> |
Metadata.getTokenRanges()
Returns the token ranges that define data distribution in the ring.
|
Set<TokenRange> |
Metadata.getTokenRanges(String keyspace,
Host host)
Returns the token ranges that are replicated on the given host, for the given
keyspace.
|
List<TokenRange> |
TokenRange.intersectWith(TokenRange that)
Computes the intersection of this range with another one.
|
List<TokenRange> |
TokenRange.splitEvenly(int numberOfSplits)
Splits this range into a number of smaller ranges of equal "size" (referring to the number of tokens, not the actual amount of data).
|
List<TokenRange> |
TokenRange.unwrap()
Splits this range into a list of two non-wrapping ranges.
|
Modifier and Type | Method and Description |
---|---|
int |
TokenRange.compareTo(TokenRange other) |
Set<Host> |
Metadata.getReplicas(String keyspace,
TokenRange range)
Returns the set of hosts that are replica for a given token range.
|
boolean |
TokenRange.intersects(TokenRange that)
Returns whether this range intersects another one.
|
List<TokenRange> |
TokenRange.intersectWith(TokenRange that)
Computes the intersection of this range with another one.
|
TokenRange |
TokenRange.mergeWith(TokenRange that)
Merges this range with another one.
|
Copyright © 2012–2018. All rights reserved.