Method: Aerospike::BatchIndexCommand#parse_row
- Defined in:
- lib/aerospike/command/batch_index_command.rb
#parse_row(result_code) ⇒ Object
Parse all results in the batch. Add records to shared list. If the record was not found, the bins will be nil.
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/aerospike/command/batch_index_command.rb', line 102 def parse_row(result_code) generation = @data_buffer.read_int32(6) expiration = @data_buffer.read_int32(10) batch_index = @data_buffer.read_int32(14) field_count = @data_buffer.read_int16(18) op_count = @data_buffer.read_int16(20) skip_key(field_count) req_key = batch.key_for_index(batch_index) if result_code == 0 record = parse_record(req_key, op_count, generation, expiration) results[batch_index] = record end end |