Method: Aerospike::MultiCommand#skip_key

Defined in:
lib/aerospike/command/multi_command.rb

#skip_key(field_count) ⇒ Object



159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/aerospike/command/multi_command.rb', line 159

def skip_key(field_count)
  # in Stream queries, there are no keys
  return unless field_count > 0

  i = 0
  while i < field_count
    read_bytes(4)

    fieldlen = @data_buffer.read_int32(0)
    read_bytes(fieldlen)

    i = i.succ
  end

  nil
end