SimpleStatement Class |
Namespace: Dse
public class SimpleStatement : RegularStatement
The SimpleStatement type exposes the following members.
Name | Description | |
---|---|---|
SimpleStatement |
Creates a new instance of SimpleStatement without any query string or parameters.
| |
SimpleStatement(String) |
Creates a new instance of SimpleStatement with the provided CQL query.
| |
SimpleStatement(IDictionaryString, Object, String) |
Creates a new instance of SimpleStatement using a dictionary of parameters and a query with
named parameters.
| |
SimpleStatement(String, Object) |
Creates a new instance of SimpleStatement with the provided CQL query and values provided.
|
Name | Description | |
---|---|---|
Keyspace |
Returns the keyspace this query operates on, as set using SetKeyspace(String) (Overrides StatementKeyspace.)The keyspace returned is used as a hint for token-aware routing. | |
QueryString |
Gets the query string.
(Overrides RegularStatementQueryString.) | |
RoutingKey |
Gets the routing key for the query.
(Overrides StatementRoutingKey.)Routing key can be provided using the SetRoutingValues(Object) method. |
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 this Statement operates on. The keyspace should only be set when the
IStatement applies to a different keyspace to the logged keyspace of the
ISession.
| |
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. |