Uses of Class
com.datastax.driver.core.Token
-
Packages that use Token Package Description com.datastax.driver.core The main package for the Java Driver for Cassandra. -
-
Uses of Token in com.datastax.driver.core
Methods in com.datastax.driver.core that return Token Modifier and Type Method Description TokenTokenRange. getEnd()Return the end of the range.TokenRow. getPartitionKeyToken()Returns the value of the first column containing aToken.TokenTokenRange. getStart()Return the start of the range.TokenRow. getToken(int i)Returns theith value of this row as aToken.TokenRow. getToken(String name)Returns the value of columnnameas aToken.TokenMetadata. newToken(com.datastax.driver.core.Token.Factory partitioner, ByteBuffer... components)Builds a newTokenfrom a partition key.TokenMetadata. newToken(String tokenStr)Builds a newTokenfrom its string representation, according to the partitioner reported by the Cassandra nodes.Methods in com.datastax.driver.core that return types with arguments of type Token Modifier and Type Method Description Set<Token>Host. getTokens()Returns the tokens that this host owns.Methods in com.datastax.driver.core with parameters of type Token Modifier and Type Method Description booleanTokenRange. contains(Token token)Checks whether this range contains a given token.TokenRangeMetadata. newTokenRange(Token start, Token end)Builds a newTokenRange.BoundStatementBoundStatement. setPartitionKeyToken(Token v)Sets the value for (all occurrences of) variable "partition key token" to the provided token (this is the name generated by Cassandra for markers corresponding to atoken(...)call).BoundStatementBoundStatement. setToken(int i, Token v)Sets theith value to the providedToken.BoundStatementBoundStatement. setToken(String name, Token v)Sets the value for (all occurrences of) variablenameto the provided token.intShardingInfo. shardId(Token t)
-