BatchRead Class

Aerospike
Batch key and read only operations with default policy. Used in batch read commands where different bins are needed for each key.
Inheritance Hierarchy

SystemObject
  Aerospike.ClientBatchRecord
    Aerospike.ClientBatchRead

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

C#
public sealed class BatchRead : BatchRecord

The BatchRead type exposes the following members.

Constructors

  NameDescription
Public methodBatchRead(Key, Operation)
Initialize batch key and read operations.
Public methodBatchRead(Key, Boolean)
Initialize batch key and readAllBins indicator.
Public methodBatchRead(Key, String)
Initialize batch key and bins to retrieve.
Public methodBatchRead(BatchReadPolicy, Key, Operation)
Initialize batch policy, key and read operations.
Public methodBatchRead(BatchReadPolicy, Key, Boolean)
Initialize batch policy, key and readAllBins indicator.
Public methodBatchRead(BatchReadPolicy, Key, String)
Initialize batch policy, key and bins to retrieve.
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 fieldbinNames
Bins to retrieve for this key. binNames are mutually exclusive with ops.
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
Optional operations for this key. ops are mutually exclusive with binNames. A binName can be emulated with Get(String)
Public fieldpolicy
Optional read policy.
Public fieldreadAllBins
If true, ignore binNames and read all bins. If false and binNames are set, read specified binNames. If false and binNames are not set, read record header (generation, expiration) only.
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