Represents a prepared statement with the parameter values set, ready for execution.A can be created from a PreparedStatement instance using the Bind() method and can be executed using a ISession instance.
public class BoundStatement : Statement
Thetype exposes the following members.
Initializes a new instance of the Cassandra.BoundStatement class
Creates a new BoundStatement from the provided prepared statement.
Determines if the RowSet returned when executing this IStatement will automatically fetch the following result pages. Defaults to true.(Inherited from Statement.)
Gets the consistency level for this query.(Inherited from Statement.)
Gets the host configured on this Statement, or null if none is configured.(Inherited from Statement.)
Determines if this statement is idempotent, i.e. whether it can be applied multiple times without changing the result beyond the initial application.(Inherited from Statement.)
Idempotence of the statement plays a role in ISpeculativeExecutionPolicy. If a statement is not idempotent, the driver will not schedule speculative executions for it.When the property is null, the driver will use the default value from the GetDefaultIdempotence.
Gets whether tracing is enabled for this query or not.(Inherited from Statement.)
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.
Gets custom payload for that will be included when executing this Statement.(Inherited from Statement.)
Gets query's page size.(Inherited from Statement.)
This object represents the next page to be fetched if the query is multi page. It can be saved and reused later on a different execution.(Inherited from Statement.)
Gets the prepared statement on which this BoundStatement is based.
|QueryValues||(Inherited from Statement.)|
Gets the per-host read timeout for this statement.(Inherited from Statement.)
When the value is 0 or lower, the default value from the socket options will be used.
Gets the retry policy sets for this query, if any.(Inherited from Statement.)
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.
Gets the serial consistency level for this query.(Inherited from Statement.)
|SkipMetadata||(Inherited from Statement.)|
Gets the timestamp associated with this statement execution.(Inherited from Statement.)
Disable tracing for the statement.(Inherited from Statement.)
Enables tracing for the statement(Inherited from Statement.)
Determines whether the specified object is equal to the current object.(Inherited from .)
Allows this statement to be executed as a different user/role than the one currently authenticated (a.k.a. proxy execution).(Inherited from Statement.)
Serves as the default hash function.(Inherited from .)
Gets the(Inherited from of the current instance. .)
Sets the paging behavior. When set to true (default), the RowSet returned when executing this IStatement will automatically fetch the following result pages. When false, the RowSet returned will only contain the rows contained in the result page and will not fetch additional pages.(Inherited from Statement.)
Sets the consistency level for the query.(Inherited from Statement.)
The default consistency level, if this method is not called, is ConsistencyLevel.ONE.
Sets the Host that should handle this query.(Inherited from Statement.)
In the general case, use of this method is heavily discouraged and should only be used in the following cases:
Configuring a specific host causes the configured ILoadBalancingPolicy to be completely bypassed. However, if the load balancing policy dictates that the host is at distance Ignored or there is no active connectivity to the host, the request will fail with a NoHostAvailableException.
Sets whether this statement is idempotent.(Inherited from Statement.)
Idempotence of the statement plays a role in ISpeculativeExecutionPolicy. If a statement is not idempotent, the driver will not schedule speculative executions for it.
Sets a custom outgoing payload for this statement. Each time this statement is executed, this payload will be included in the request. Once it is set using this method, the payload should not be modified.(Inherited from Statement.)
Sets the page size for this query. The page size controls how much resulting rows will be retrieved simultaneously (the goal being to avoid loading too much results in memory for queries yielding large results). Please note that while value as low as 1 can be used, it is highly discouraged to use such a low value in practice as it will yield very poor performance. If in doubt, leaving the default is probably a good idea.(Inherited from Statement.)
Also note that only SELECT queries ever make use of that setting.the page size to use. If set to 0 or less, the default value will be used. To disable paging of the result set, use int.MaxValue
this Query object.
Sets the paging state, a token representing the current page state of query used to continue paging by retrieving the following result page. Setting the paging state will disable automatic paging.(Inherited from Statement.)
Overrides the default per-host read timeout ReadTimeoutMillis for this statement.(Inherited from Statement.)
Sets the retry policy to use for this query.(Inherited from Statement.)
Calling this method is only required when you want to override the default RetryPolicy set in the cluster configuration for this request or the one set in the execution profile (see RetryPolicy) for this request.
Use a IExtendedRetryPolicy implementation to cover all error scenarios.
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.
Sets the serial consistency level for the query. The serial consistency level is only used by conditional updates (so INSERT, UPDATE and DELETE with an IF condition). For those, the serial consistency level defines the consistency level of the serial phase (or "paxos" phase) while the normal consistency level defines the consistency for the "learn" phase, i.e. what type of reads will be guaranteed to see the update right away. For instance, if a conditional write has a regular consistency of QUORUM (and is successful), then a QUORUM read is guaranteed to see that write. But if the regular consistency of that write is ANY, then only a read with a consistency of SERIAL is guaranteed to see it (even a read with consistency ALL is not guaranteed to be enough).(Inherited from Statement.)
Sets the timestamp associated with this statement execution. If provided, this will replace the server side assigned timestamp as default timestamp. Note that a timestamp in the query itself will still override this timestamp.(Inherited from Statement.)
Returns a string that represents the current object.(Inherited from .)