SimpleStatement Methods |
The SimpleStatement type exposes the following members.
Name | Description | |
---|---|---|
Bind | Obsolete.
Sets the parameter values for the query.
The same amount of values must be provided as parameter markers in the query. Specify the parameter values by the position of the markers in the query or by name, using a single instance of an anonymous type, with property names as parameter names. | |
BindObjects | Obsolete. | |
SetKeyspace |
Sets the keyspace of this SimpleStatement to be used as a hint for token-aware routing.
| |
SetQueryString | ||
SetRoutingKey |
Set the routing key for this query. This method allows to manually provide a routing key for this query. It is thus optional since the routing key is only an hint for token aware load balancing policy but is never mandatory. If the partition key for the query is composite, use the #setRoutingKey(ByteBuffer...) method instead to build the routing key. | |
SetRoutingValues |
Sets the partition key values in order to route the query to the correct replicas.
For simple partition keys, set the partition key value. For composite partition keys, set the multiple the partition key values in correct order. |