Uses of Class
com.datastax.driver.core.TokenRange
-
Packages that use TokenRange Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra. -
-
Uses of TokenRange in com.datastax.driver.core
Methods in com.datastax.driver.core that return TokenRange Modifier and Type Method Description TokenRangeTokenRange. mergeWith(TokenRange that)Merges this range with another one.TokenRangeMetadata. newTokenRange(Token start, Token end)Builds a newTokenRange.Methods in com.datastax.driver.core that return types with arguments of type TokenRange Modifier and Type Method 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.Methods in com.datastax.driver.core with parameters of type TokenRange Modifier and Type Method Description intTokenRange. compareTo(TokenRange other)Set<Host>Metadata. getReplicas(String keyspace, TokenRange range)Deprecated.List<Host>Metadata. getReplicasList(String keyspace, TokenRange range)Returns the list of hosts that are replica for a given token range.booleanTokenRange. 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.TokenRangeTokenRange. mergeWith(TokenRange that)Merges this range with another one.
-