CqlCommand Class |
Namespace: Dse.Data.Linq
public abstract class CqlCommand : SimpleStatement
The CqlCommand type exposes the following members.
Name | Description | |
---|---|---|
BeginExecute |
Starts executing the statement async
| |
Bind | Obsolete.
Sets the parameter values for the query.
(Inherited from SimpleStatement.)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. (Inherited from SimpleStatement.) | |
DisableTracing |
Disable tracing for the statement.
(Inherited from Statement.) | |
EnableTracing |
Enables tracing for the statement
(Inherited from Statement.) | |
EndExecute |
Starts the async executing of the statement
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute |
Executes the command using the ISession.
| |
ExecuteAsync |
Evaluates the Linq command and executes asynchronously the cql statement.
| |
ExecutingAs |
Allows this statement to be executed as a different user/role than the one
currently authenticated (a.k.a. proxy execution).
(Inherited from Statement.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetTable | ||
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetAutoPage |
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.) | |
SetConsistencyLevel | ||
SetIdempotence |
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. | |
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.
(Inherited from SimpleStatement.) | |
SetOutgoingPayload |
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.) | |
SetPageSize |
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.MaxValueReturn ValueType:this Query object. | |
SetPagingState |
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.) | |
SetQueryString | (Inherited from SimpleStatement.) | |
SetQueryTrace | ||
SetReadTimeoutMillis |
Overrides the default per-host read timeout ReadTimeoutMillis for this statement.
(Inherited from Statement.) | |
SetRetryPolicy |
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. Use a IExtendedRetryPolicy implementation to cover all error scenarios. | |
SetRoutingKey |
Set the routing key for this query. (Inherited from SimpleStatement.)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.
(Inherited from SimpleStatement.)For simple partition keys, set the partition key value. For composite partition keys, set the multiple the partition key values in correct order. | |
SetSerialConsistencyLevel | ||
SetTimestamp |
Sets the timestamp associated with this statement execution.
| |
SetTTL |
Sets the time for data in a column to expire (TTL) for INSERT and UPDATE commands .
| |
ToString | (Inherited from RegularStatement.) |
Name | Description | |
---|---|---|
AutoPage |
Determines if the RowSet returned when executing this IStatement will automatically fetch the following result pages. Defaults to true.
(Inherited from Statement.) | |
ConsistencyLevel |
Gets the consistency level for this query.
(Inherited from Statement.) | |
Expression | ||
IsIdempotent |
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. | |
IsTracing |
Gets whether tracing is enabled for this query or not.
(Inherited from Statement.) | |
Keyspace |
Returns the keyspace this query operates on, as set using SetKeyspace(String) (Inherited from SimpleStatement.)The keyspace returned is used as a hint for token-aware routing. | |
OutgoingPayload |
Gets custom payload for that will be included when executing this Statement.
(Inherited from Statement.) | |
PageSize |
Gets query's page size.
(Inherited from Statement.) | |
PagingState |
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.) | |
QueryString |
Gets the query string.
(Overrides SimpleStatementQueryString.) | |
QueryTrace |
After being executed, it retrieves the trace of the CQL query.
Use EnableTracing(Boolean) to enable tracing. Note that enabling query trace introduces server-side overhead by storing request information, so it's recommended that you only enable query tracing when trying to identify possible issues / debugging. | |
QueryValues | (Overrides StatementQueryValues.) | |
ReadTimeoutMillis |
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. | |
RetryPolicy |
Gets the retry policy sets for this query, if any.
(Inherited from Statement.) | |
RoutingKey |
Gets the routing key for the query.
(Inherited from SimpleStatement.)Routing key can be provided using the SetRoutingValues(Object) method. | |
SerialConsistencyLevel |
Gets the serial consistency level for this query.
(Inherited from Statement.) | |
SkipMetadata | (Inherited from Statement.) | |
Timestamp |
Gets the timestamp associated with this statement execution.
(Inherited from Statement.) |