class Aerospike::BatchRecord
Batch key and record result.
Attributes
has_write[R]
Does this command contain a write operation. For internal use only.
in_doubt[RW]
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.
key[R]
Key
.
record[R]
Record
result after batch command has completed. Will be null if record was not found or an error occurred. See {BatchRecord#result_code}.
result_code[RW]
Result code for this returned record. See {ResultCode}. If not {ResultCode#OK}, the record will be null.
Public Class Methods
new(key, result_code: ResultCode::NO_RESPONSE, in_doubt: false, has_write: false)
click to toggle source
Constructor.
# File lib/aerospike/batch_record.rb, line 41 def initialize(key, result_code: ResultCode::NO_RESPONSE, in_doubt: false, has_write: false) @key = key @record = record @result_code = result_code @in_doubt = in_doubt @has_write = has_write end