Modifier and Type | Method and Description |
---|---|
default Token |
GraphStatement.getRoutingToken()
Graph statements can't be routed, this method always returns
null . |
Modifier and Type | Field and Description |
---|---|
protected Token |
StatementBuilder.routingToken |
Modifier and Type | Method and Description |
---|---|
Token |
PrepareRequest.getRoutingTokenForBoundStatements()
The routing key to use for the bound statements that will be created from the prepared
statement.
|
Modifier and Type | Method and Description |
---|---|
SelfT |
StatementBuilder.setRoutingToken(Token routingToken) |
SelfT |
Statement.setRoutingToken(Token newRoutingToken)
Sets the token to use for token-aware routing.
|
Constructor and Description |
---|
BoundStatementBuilder(PreparedStatement preparedStatement,
ColumnDefinitions variableDefinitions,
ByteBuffer[] values,
String executionProfileName,
DriverExecutionProfile executionProfile,
CqlIdentifier routingKeyspace,
ByteBuffer routingKey,
Token routingToken,
Map<String,ByteBuffer> customPayload,
Boolean idempotent,
boolean tracing,
long timestamp,
ByteBuffer pagingState,
int pageSize,
ConsistencyLevel consistencyLevel,
ConsistencyLevel serialConsistencyLevel,
Duration timeout,
CodecRegistry codecRegistry,
ProtocolVersion protocolVersion) |
Modifier and Type | Method and Description |
---|---|
default Token |
GettableById.getToken(CqlIdentifier id)
Returns the value for the first occurrence of
id as a token. |
default Token |
GettableByIndex.getToken(int i)
Returns the
i th value as a token. |
default Token |
GettableByName.getToken(String name)
Returns the value for the first occurrence of
name as a token. |
Modifier and Type | Method and Description |
---|---|
default SelfT |
SettableById.setToken(CqlIdentifier id,
Token v)
Sets the value for all occurrences of
id to the provided token. |
default SelfT |
SettableByIndex.setToken(int i,
Token v)
Sets the
i th value to the provided token. |
default SelfT |
SettableByName.setToken(String name,
Token v)
Sets the value for all occurrences of
name to the provided token. |
Modifier and Type | Method and Description |
---|---|
Token |
TokenMap.newToken(ByteBuffer... partitionKey)
Builds a token from a partition key.
|
Token |
TokenMap.parse(String tokenString)
Builds a token from its string representation.
|
Modifier and Type | Method and Description |
---|---|
default Set<Token> |
TokenMap.getTokens(Node node)
The tokens owned by the given node.
|
Modifier and Type | Method and Description |
---|---|
String |
TokenMap.format(Token token)
Formats a token into a string representation appropriate for concatenation in a CQL query.
|
Set<Node> |
TokenMap.getReplicas(CqlIdentifier keyspace,
Token token)
The replicas for a given token in the given keyspace.
|
default Set<Node> |
TokenMap.getReplicas(String keyspaceName,
Token token)
Shortcut for
getReplicas(CqlIdentifier.fromCql(keyspaceName), token) . |
TokenRange |
TokenMap.newTokenRange(Token start,
Token end) |
Modifier and Type | Method and Description |
---|---|
Token |
TokenRange.getEnd()
The end of the range (inclusive).
|
Token |
TokenRange.getStart()
The start of the range (exclusive).
|
Modifier and Type | Method and Description |
---|---|
boolean |
TokenRange.contains(Token token)
Checks whether this range contains a given token, i.e.
|
Modifier and Type | Method and Description |
---|---|
Token |
Request.getRoutingToken()
The token to use for token-aware routing.
|
Copyright © 2017–2021. All rights reserved.