lib/aerospike/command/batch_direct_command.rb
def parse_row(result_code)
      generation = @data_buffer.read_int32(6)
      expiration = @data_buffer.read_int32(10)
      field_count = @data_buffer.read_int16(18)
      op_count = @data_buffer.read_int16(20)

      key = parse_key(field_count)

      item = key_map[key.digest]
      if item
        if result_code == 0
          index = item.index
          key = item.key
          results[index] = parse_record(key, op_count, generation, expiration)
        end
      else
        Aerospike.logger.warn("Unexpected batch key returned: #{key}")
      end
    end
def parse_row(result_code)
      generation = @data_buffer.read_int32(6)
      expiration = @data_buffer.read_int32(10)
      field_count = @data_buffer.read_int16(18)
      op_count = @data_buffer.read_int16(20)

      key = parse_key(field_count)

      item = key_map[key.digest]
      if item
        if result_code == 0
          index = item.index
          key = item.key
          results[index] = parse_record(key, op_count, generation, expiration)
        end
      else
        Aerospike.logger.warn("Unexpected batch key returned: #{key}")
      end
    end
Parse all results in the batch.  Add records to shared list.
 If the record was not found, the bins will be nil.