Batch Methods |
The Batch type exposes the following members.
Name | Description | |
---|---|---|
Append(CqlCommand) | ||
Append(IEnumerableCqlCommand) | ||
BeginExecute | ||
DisableTracing |
Disable tracing for the statement.
(Inherited from Statement.) | |
EnableTracing |
Enables tracing for the statement
(Inherited from Statement.) | |
EndExecute | ||
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Execute | ||
ExecuteAsync | ||
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
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. | |
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.) | |
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.)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. | |
SetSerialConsistencyLevel |
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.) | |
SetTimestamp | ||
ToString | Returns a string that represents the current object. (Inherited from Object.) |