BatchWrite Class

Batch key and read/write operations with write policy.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 7.0.1
C#
public sealed class BatchWrite : BatchRecord
Inheritance
Object    BatchRecord    BatchWrite

Constructors

BatchWrite(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.

BatchWrite(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.

Methods

Equals Optimized reference equality check to determine batch wire protocol repeat flag. For internal use only.
(Overrides BatchRecordEquals(BatchRecord))
GetBatchType Return batch command type.
(Overrides BatchRecordGetBatchType)
Prepare Prepare for upcoming batch call. Reset result fields because this instance might be reused. For internal use only.
(Inherited from BatchRecord)
SetError Set error result. For internal use only.
(Inherited from BatchRecord)
SetRecord Set record result. For internal use only.
(Inherited from BatchRecord)
Size Return wire protocol size. For internal use only.
(Overrides BatchRecordSize(Policy))
ToString Convert to string.
(Inherited from BatchRecord)

Fields

hasWrite Does this command contain a write operation. For internal use only.
(Inherited from BatchRecord)
inDoubt 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)
key Key.
(Inherited from BatchRecord)
ops Required operations for this key.
policy Optional write policy.
record Record result after batch command has completed. Will be null if record was not found or an error occurred. See resultCode.
(Inherited from BatchRecord)
resultCode Result code for this returned record. See ResultCode. If not OK, the record will be null.
(Inherited from BatchRecord)

See Also