Package | Description |
---|---|
com.datastax.oss.driver.api.core.metadata | |
com.datastax.oss.driver.api.core.metadata.token |
Modifier and Type | Method and Description |
---|---|
TokenRange |
TokenMap.newTokenRange(Token start,
Token end) |
Modifier and Type | Method and Description |
---|---|
Set<TokenRange> |
TokenMap.getTokenRanges()
The token ranges that define data distribution on the ring.
|
Set<TokenRange> |
TokenMap.getTokenRanges(CqlIdentifier keyspace,
Node replica)
The token ranges that are replicated on the given node, for the given keyspace.
|
Set<TokenRange> |
TokenMap.getTokenRanges(Node node)
The token ranges for which a given node is the primary replica.
|
default Set<TokenRange> |
TokenMap.getTokenRanges(String keyspaceName,
Node replica)
|
Modifier and Type | Method and Description |
---|---|
default Set<Node> |
TokenMap.getReplicas(CqlIdentifier keyspace,
TokenRange range)
The replicas for a given range in the given keyspace.
|
default Set<Node> |
TokenMap.getReplicas(String keyspaceName,
TokenRange range)
Shortcut for
getReplicas(CqlIdentifier.fromCql(keyspaceName), range) . |
Modifier and Type | Method and Description |
---|---|
TokenRange |
TokenRange.mergeWith(TokenRange that)
Merges this range with another one.
|
Modifier and Type | Method and Description |
---|---|
List<TokenRange> |
TokenRange.intersectWith(TokenRange that)
Computes the intersection of this range with another one, producing one or more ranges.
|
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 |
---|---|
boolean |
TokenRange.intersects(TokenRange that)
Whether this range intersects another one.
|
List<TokenRange> |
TokenRange.intersectWith(TokenRange that)
Computes the intersection of this range with another one, producing one or more ranges.
|
TokenRange |
TokenRange.mergeWith(TokenRange that)
Merges this range with another one.
|
Copyright © 2017–2019. All rights reserved.