Class Statement
Base class for statements that contains the options.
Inheritance
System.Object
Statement
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
Assembly: Dse.dll
Syntax
public abstract class Statement : IStatement
Constructors
Statement()
Declaration
Statement(QueryProtocolOptions)
Declaration
protected Statement(QueryProtocolOptions queryProtocolOptions)
Parameters
Fields
ProxyExecuteKey
Declaration
protected const string ProxyExecuteKey = "ProxyExecute"
Field Value
Type |
Description |
System.String |
|
Properties
AutoPage
Declaration
public bool AutoPage { get; }
Property Value
Type |
Description |
System.Boolean |
|
ConsistencyLevel
Declaration
public ConsistencyLevel? ConsistencyLevel { get; }
Property Value
Host
Declaration
public Host Host { get; }
Property Value
IsIdempotent
Declaration
public bool? IsIdempotent { get; }
Property Value
Type |
Description |
System.Nullable<System.Boolean> |
|
IsTracing
Declaration
public bool IsTracing { get; }
Property Value
Type |
Description |
System.Boolean |
|
Keyspace
Declaration
public abstract string Keyspace { get; }
Property Value
Type |
Description |
System.String |
|
OutgoingPayload
Declaration
public IDictionary<string, byte[]> OutgoingPayload { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Byte[]> |
|
PageSize
Declaration
public int PageSize { get; }
Property Value
Type |
Description |
System.Int32 |
|
PagingState
Declaration
public byte[] PagingState { get; }
Property Value
Type |
Description |
System.Byte[] |
|
QueryValues
Declaration
public virtual object[] QueryValues { get; }
Property Value
Type |
Description |
System.Object[] |
|
ReadTimeoutMillis
Declaration
public int ReadTimeoutMillis { get; }
Property Value
Type |
Description |
System.Int32 |
|
RetryPolicy
Declaration
public IRetryPolicy RetryPolicy { get; }
Property Value
RoutingKey
Declaration
public abstract RoutingKey RoutingKey { get; }
Property Value
SerialConsistencyLevel
Gets the serial consistency level for this query.
Declaration
public ConsistencyLevel SerialConsistencyLevel { get; }
Property Value
Declaration
public bool SkipMetadata { get; }
Property Value
Type |
Description |
System.Boolean |
|
Timestamp
Declaration
public DateTimeOffset? Timestamp { get; }
Property Value
Type |
Description |
System.Nullable<System.DateTimeOffset> |
|
Methods
DisableTracing()
Declaration
public IStatement DisableTracing()
Returns
EnableTracing(Boolean)
Declaration
public IStatement EnableTracing(bool enable = true)
Parameters
Type |
Name |
Description |
System.Boolean |
enable |
|
Returns
ExecutingAs(String)
Declaration
public IStatement ExecutingAs(string userOrRole)
Parameters
Type |
Name |
Description |
System.String |
userOrRole |
|
Returns
SetAutoPage(Boolean)
Declaration
public IStatement SetAutoPage(bool autoPage)
Parameters
Type |
Name |
Description |
System.Boolean |
autoPage |
|
Returns
SetConsistencyLevel(Nullable<ConsistencyLevel>)
Declaration
public IStatement SetConsistencyLevel(ConsistencyLevel? consistency)
Parameters
Returns
SetHost(Host)
Sets the Host that should handle this query.
In the general case, use of this method is heavily discouraged and should only be
used in the following cases:
- Querying node-local tables, such as tables in the
system
and system_views
keyspaces. - Applying a series of schema changes, where it may be advantageous to execute schema
changes in sequence on the same node.
Configuring a specific host causes the configured ILoadBalancingPolicy to be
completely bypassed. However, if the load balancing policy dictates that the host is at
distance Ignored or there is no active connectivity to the host, the
request will fail with a NoHostAvailableException.
Declaration
public IStatement SetHost(Host host)
Parameters
Type |
Name |
Description |
Host |
host |
The host that should be used to handle executions of this statement or null to
delegate to the configured load balancing policy.
|
Returns
SetIdempotence(Boolean)
Declaration
public IStatement SetIdempotence(bool value)
Parameters
Type |
Name |
Description |
System.Boolean |
value |
|
Returns
SetOutgoingPayload(IDictionary<String, Byte[]>)
Declaration
public IStatement SetOutgoingPayload(IDictionary<string, byte[]> payload)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IDictionary<System.String, System.Byte[]> |
payload |
|
Returns
SetPageSize(Int32)
Declaration
public IStatement SetPageSize(int pageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
pageSize |
|
Returns
SetPagingState(Byte[])
Declaration
public IStatement SetPagingState(byte[] pagingState)
Parameters
Type |
Name |
Description |
System.Byte[] |
pagingState |
|
Returns
SetReadTimeoutMillis(Int32)
Declaration
public IStatement SetReadTimeoutMillis(int timeout)
Parameters
Type |
Name |
Description |
System.Int32 |
timeout |
|
Returns
SetRetryPolicy(IRetryPolicy)
Declaration
public IStatement SetRetryPolicy(IRetryPolicy policy)
Parameters
Returns
SetSerialConsistencyLevel(ConsistencyLevel)
Declaration
public IStatement SetSerialConsistencyLevel(ConsistencyLevel serialConsistency)
Parameters
Returns
SetTimestamp(DateTimeOffset)
Declaration
public IStatement SetTimestamp(DateTimeOffset value)
Parameters
Type |
Name |
Description |
System.DateTimeOffset |
value |
|
Returns
Implements