Class CqlQueryOptions
Represents options available on a per-query basis.
Inheritance
object
CqlQueryOptions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Mapping
Assembly: Cassandra.dll
Syntax
public class CqlQueryOptions
Methods
DisableTracing()
Disables tracing for the query.
Declaration
public CqlQueryOptions DisableTracing()
Returns
Type | Description |
---|---|
CqlQueryOptions |
DoNotPrepare()
Specifies that a PreparedStatement should not be used for executing the query.
Declaration
public CqlQueryOptions DoNotPrepare()
Returns
Type | Description |
---|---|
CqlQueryOptions |
EnableTracing()
Enables tracing for the query.
Declaration
public CqlQueryOptions EnableTracing()
Returns
Type | Description |
---|---|
CqlQueryOptions |
New()
Creates a new instance of CqlQueryOptions.
Declaration
public static CqlQueryOptions New()
Returns
Type | Description |
---|---|
CqlQueryOptions |
SetConsistencyLevel(ConsistencyLevel)
Sets the consistency level to be used when executing the query.
Declaration
public CqlQueryOptions SetConsistencyLevel(ConsistencyLevel consistencyLevel)
Parameters
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistencyLevel |
Returns
Type | Description |
---|---|
CqlQueryOptions |
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
Type | Description |
---|---|
CqlQueryOptions |
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
Type | Description |
---|---|
CqlQueryOptions |
SetRetryPolicy(IRetryPolicy)
Sets the retry policy for the query.
Declaration
public CqlQueryOptions SetRetryPolicy(IRetryPolicy retryPolicy)
Parameters
Type | Name | Description |
---|---|---|
IRetryPolicy | retryPolicy |
Returns
Type | Description |
---|---|
CqlQueryOptions |
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
Type | Name | Description |
---|---|---|
ConsistencyLevel | consistencyLevel |
Returns
Type | Description |
---|---|
CqlQueryOptions |
SetTimestamp(DateTimeOffset?)
Sets the timestamp for the query.
Declaration
public CqlQueryOptions SetTimestamp(DateTimeOffset? timestamp)
Parameters
Type | Name | Description |
---|---|---|
DateTimeOffset? | timestamp |
Returns
Type | Description |
---|---|
CqlQueryOptions |