Class CqlQueryOptions
Represents options available on a per-query basis.
Inheritance
System.Object
CqlQueryOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dse.Mapping
Assembly: Dse.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(Int32)
Sets the page size for automatic paging for the query.
Declaration
public CqlQueryOptions SetPageSize(int pageSize)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | 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 |
---|---|---|
System.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(Nullable<DateTimeOffset>)
Sets the timestamp for the query.
Declaration
public CqlQueryOptions SetTimestamp(DateTimeOffset? timestamp)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.DateTimeOffset> | timestamp |
Returns
Type | Description |
---|---|
CqlQueryOptions |