Class CqlQueryOptions
Represents options available on a per-query basis.
Inheritance
CqlQueryOptions
Assembly: Cassandra.dll
Syntax
public class CqlQueryOptions
Methods
DisableTracing()
Disables tracing for the query.
Declaration
public CqlQueryOptions DisableTracing()
Returns
DoNotPrepare()
Specifies that a PreparedStatement should not be used for executing the query.
Declaration
public CqlQueryOptions DoNotPrepare()
Returns
EnableTracing()
Enables tracing for the query.
Declaration
public CqlQueryOptions EnableTracing()
Returns
New()
Creates a new instance of CqlQueryOptions.
Declaration
public static CqlQueryOptions New()
Returns
SetConsistencyLevel(ConsistencyLevel)
Sets the consistency level to be used when executing the query.
Declaration
public CqlQueryOptions SetConsistencyLevel(ConsistencyLevel consistencyLevel)
Parameters
Returns
SetPageSize(int)
Sets the page size for automatic paging for the query.
Declaration
public CqlQueryOptions SetPageSize(int pageSize)
Parameters
Type |
Name |
Description |
int |
pageSize |
|
Returns
SetPagingState(byte[])
Sets the token representing the page state for the query.
Use null
to get the first page of results.
Declaration
public CqlQueryOptions SetPagingState(byte[] pagingState)
Parameters
Type |
Name |
Description |
byte[] |
pagingState |
|
Returns
SetRetryPolicy(IRetryPolicy)
Sets the retry policy for the query.
Declaration
public CqlQueryOptions SetRetryPolicy(IRetryPolicy retryPolicy)
Parameters
Returns
SetSerialConsistencyLevel(ConsistencyLevel)
Sets the serial consistency level for execution of the query. (NOTE: This only applies to queries using lightweight
transactions -- LWT).
Declaration
public CqlQueryOptions SetSerialConsistencyLevel(ConsistencyLevel consistencyLevel)
Parameters
Returns
SetTimestamp(DateTimeOffset?)
Sets the timestamp for the query.
Declaration
public CqlQueryOptions SetTimestamp(DateTimeOffset? timestamp)
Parameters
Returns