BatchWrite Class

Aerospike
Batch key and read/write operations with write policy.
Inheritance Hierarchy

SystemObject
  Aerospike.ClientBatchRecord
    Aerospike.ClientBatchWrite

Namespace:  Aerospike.Client
Assembly:  AerospikeClient (in AerospikeClient.dll) Version: 5.1.1.0 (5.1.1)
Syntax

C#
public sealed class BatchWrite : BatchRecord

The BatchWrite type exposes the following members.

Constructors

  NameDescription
Public methodBatchWrite(Key, Operation)
Initialize batch key and read/write operations.

Get is not allowed because it returns a variable number of bins and makes it difficult (sometimes impossible) to lineup operations with results. Instead, use Get(String) for each bin name.

Public methodBatchWrite(BatchWritePolicy, Key, Operation)
Initialize policy, batch key and read/write operations.

Get is not allowed because it returns a variable number of bins and makes it difficult (sometimes impossible) to lineup operations with results. Instead, use Get(String) for each bin name.

Top
Methods

  NameDescription
Public methodEquals
Optimized reference equality check to determine batch wire protocol repeat flag. For internal use only.
(Overrides BatchRecordEquals(BatchRecord).)
Public methodGetBatchType
Return batch command type.
(Overrides BatchRecordGetBatchType.)
Public methodPrepare
Prepare for upcoming batch call. Reset result fields because this instance might be reused. For internal use only.
(Inherited from BatchRecord.)
Public methodSetError
Set error result. For internal use only.
(Inherited from BatchRecord.)
Public methodSetRecord
Set record result. For internal use only.
(Inherited from BatchRecord.)
Public methodSize
Return wire protocol size. For internal use only.
(Overrides BatchRecordSize.)
Public methodToString
Convert to string.
(Inherited from BatchRecord.)
Top
Fields

  NameDescription
Public fieldhasWrite
Does this command contain a write operation. For internal use only.
(Inherited from BatchRecord.)
Public fieldinDoubt
Is it possible that the write transaction may have completed even though an error occurred for this record. This may be the case when a client error occurs (like timeout) after the command was sent to the server.
(Inherited from BatchRecord.)
Public fieldkey
Key.
(Inherited from BatchRecord.)
Public fieldops
Required operations for this key.
Public fieldpolicy
Optional write policy.
Public fieldrecord
Record result after batch command has completed. Will be null if record was not found or an error occurred. See resultCode.
(Inherited from BatchRecord.)
Public fieldresultCode
Result code for this returned record. See ResultCode. If not OK, the record will be null.
(Inherited from BatchRecord.)
Top
See Also

Reference