BoundStatement MembersA C# client driver for Apache Cassandra

The BoundStatement type exposes the following members.
Constructors

  NameDescription
Public methodBoundStatement
Creates a new
BoundStatement
from the provided prepared statement.
Back to Top
Methods

  NameDescription
Protected methodBeginSessionExecute (Overrides Query BeginSessionExecute(Session, Object, AsyncCallback, Object).)
Public methodBind
Bound values to the variables of this statement. This method provides a convenience to bound all the variables of the
BoundStatement
in one call.
Public methodDisableTracing
Disable tracing for this query.
(Inherited from Query.)
Public methodEnableTracing
Enable tracing for this query. By default (i.e. unless you call this method), tracing is not enabled.
(Inherited from Query.)
Protected methodEndSessionExecute (Overrides Query EndSessionExecute(Session, IAsyncResult).)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnlineFinalize
Allows an OnlineObject to attempt to free resources and perform other cleanup operations before the OnlineObject is reclaimed by garbage collection.
(Inherited from OnlineObject.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Public methodSetConsistencyLevel
Sets the consistency level for the query.

The default consistency level, if this method is not called, is ConsistencyLevel.ONE.

(Inherited from Query.)
Public methodSetRetryPolicy
Sets the retry policy to use for this query.

The default retry policy, if this method is not called, is the one returned by Policies#RetryPolicy in the cluster configuration. This method is thus only useful in case you want to punctually override the default policy for this request.

(Inherited from Query.)
Public methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Back to Top
Properties

  NameDescription
Public propertyConsistencyLevel
Gets the consistency level.
(Inherited from Query.)
Public propertyIsTracing
Gets whether tracing is enabled for this query or not.
(Inherited from Query.)
Public propertyPreparedStatement
Gets the prepared statement on which this BoundStatement is based.
Public propertyRetryPolicy
Gets the retry policy sets for this query, if any.
(Inherited from Query.)
Public propertyRoutingKey
Gets the routing key for this bound query.

This method will return a non-

value if:
  • either all the TableColumns composing the partition key are bound variables of this
    BoundStatement
    . The routing key will then be built using the values provided for these partition key TableColumns.
  • or the routing key has been set through PreparedStatement#setRoutingKey for the
    PreparedStatement
    this statement has been built from.
Otherwise, is returned.

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.

(Overrides Query RoutingKey.)
Back to Top
See Also