Class Batch
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: Cassandra.dll
Syntax
public abstract class Batch : Statement, IStatement
Fields
_batchType
Declaration
protected BatchType _batchType
Field Value
_session
Declaration
protected readonly ISession _session
Field Value
_timestamp
Declaration
protected DateTimeOffset? _timestamp
Field Value
Type |
Description |
DateTimeOffset? |
|
Properties
IsEmpty
Declaration
public abstract bool IsEmpty { get; }
Property Value
Keyspace
Returns the keyspace this query operates on.
Note that not all Statement implementations specify on which keyspace they operate on
so this method can return null. If null, it will operate on the default keyspace set during initialization (if it was set).
The keyspace returned is used as a hint for token-aware routing.
Declaration
public override string Keyspace { get; }
Property Value
Overrides
Remarks
QueryAbortTimeout
Declaration
protected int QueryAbortTimeout { get; }
Property Value
QueryTrace
Declaration
public QueryTrace QueryTrace { get; }
Property Value
RoutingKey
Declaration
public override RoutingKey RoutingKey { get; }
Property Value
Overrides
Methods
Append(CqlCommand)
Declaration
public abstract void Append(CqlCommand cqlCommand)
Parameters
Append(IEnumerable<CqlCommand>)
Declaration
public Batch Append(IEnumerable<CqlCommand> cqlCommands)
Parameters
Type |
Name |
Description |
IEnumerable<CqlCommand> |
cqlCommands |
|
Returns
BatchTypeString()
Declaration
protected string BatchTypeString()
Returns
BeginExecute(AsyncCallback, object)
Declaration
public IAsyncResult BeginExecute(AsyncCallback callback, object state)
Parameters
Type |
Name |
Description |
AsyncCallback |
callback |
|
object |
state |
|
Returns
Type |
Description |
IAsyncResult |
|
EndExecute(IAsyncResult)
Declaration
public void EndExecute(IAsyncResult ar)
Parameters
Type |
Name |
Description |
IAsyncResult |
ar |
|
Execute()
Declaration
Execute(string)
Declaration
public void Execute(string executionProfile)
Parameters
Type |
Name |
Description |
string |
executionProfile |
|
ExecuteAsync()
Declaration
public Task ExecuteAsync()
Returns
ExecuteAsync(string)
Declaration
public Task ExecuteAsync(string executionProfile)
Parameters
Type |
Name |
Description |
string |
executionProfile |
|
Returns
InternalExecuteAsync()
Declaration
protected abstract Task<RowSet> InternalExecuteAsync()
Returns
InternalExecuteAsync(string)
Declaration
protected abstract Task<RowSet> InternalExecuteAsync(string executionProfile)
Parameters
Type |
Name |
Description |
string |
executionProfile |
|
Returns
SetConsistencyLevel(ConsistencyLevel?)
Declaration
public Batch SetConsistencyLevel(ConsistencyLevel? consistencyLevel)
Parameters
Returns
SetTimestamp(DateTimeOffset)
Declaration
public Batch SetTimestamp(DateTimeOffset timestamp)
Parameters
Type |
Name |
Description |
DateTimeOffset |
timestamp |
|
Returns
Implements