Package | Description |
---|---|
com.datastax.driver.core |
The main package for the DataStax Java driver for Cassandra.
|
Modifier and Type | Method and Description |
---|---|
Token |
TokenRange.getEnd()
Return the end of the range.
|
Token |
Row.getPartitionKeyToken()
Returns the value of the first column containing a
Token . |
Token |
TokenRange.getStart()
Return the start of the range.
|
Token |
Row.getToken(int i)
Returns the
i th value of this row as a Token . |
Token |
Row.getToken(String name)
Returns the value of column
name as a Token . |
Token |
Metadata.newToken(ByteBuffer... components)
Builds a new
Token from a partition key. |
Token |
Metadata.newToken(String tokenStr)
Builds a new
Token from its string representation, according to the partitioner
reported by the Cassandra nodes. |
Modifier and Type | Method and Description |
---|---|
Set<Token> |
Host.getTokens()
Returns the tokens that this host owns.
|
Modifier and Type | Method and Description |
---|---|
boolean |
TokenRange.contains(Token token)
Checks whether this range contains a given token.
|
TokenRange |
Metadata.newTokenRange(Token start,
Token end)
Builds a new
TokenRange . |
BoundStatement |
BoundStatement.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 a token(...) call). |
BoundStatement |
BoundStatement.setToken(int i,
Token v)
Sets the
i th value to the provided Token . |
BoundStatement |
BoundStatement.setToken(String name,
Token v)
Sets the value for (all occurrences of) variable
name to the
provided token. |