BoundStatement Class |
Represents a prepared statement with the parameter values set, ready for execution.
A BoundStatement can be created from a PreparedStatement instance using the Bind() method and can be executed using a ISession instance.Namespace: Dse
public class BoundStatement : Statement
The BoundStatement type exposes the following members.
Name | Description | |
---|---|---|
BoundStatement |
Initializes a new instance of the Cassandra.BoundStatement class
| |
BoundStatement(PreparedStatement) |
Creates a new BoundStatement from the provided prepared
statement.
|
Name | Description | |
---|---|---|
Keyspace |
Returns the keyspace this query operates on, based on the PreparedStatement metadata.
(Overrides StatementKeyspace.)The keyspace returned is used as a hint for token-aware routing. | |
PreparedStatement |
Gets the prepared statement on which this BoundStatement is based.
| |
RoutingKey |
Gets the routing key for this bound query. (Overrides StatementRoutingKey.)This method will return a non-null value if:
Note that if the routing key has been set through PreparedStatement.SetRoutingKey, that value takes precedence even if the partition key is part of the bound variables. |
Name | Description | |
---|---|---|
SetRoutingKey |
Set the routing key for this query. This method allows to manually
provide a routing key for this BoundStatement. It is thus optional since the routing
key is only an hint for token aware load balancing policy but is never
mandatory.
|