Class: Aerospike::ScanCommand

Inherits:
StreamCommand show all
Defined in:
lib/aerospike/query/scan_command.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from StreamCommand

#parse_record_results

Methods inherited from BatchCommand

#parse_key, #parse_record, #parse_result, #read_bytes, #stop, #valid?

Methods inherited from Command

#execute, #set_batch_exists, #set_batch_get, #set_delete, #set_exists, #set_operate, #set_read, #set_read_for_key_only, #set_read_header, #set_scan, #set_touch, #set_udf, #set_write

Constructor Details

#initialize(node, policy, namespace, set_name, bin_names, recordset) ⇒ ScanCommand

Returns a new instance of ScanCommand.



26
27
28
29
30
31
32
33
34
# File 'lib/aerospike/query/scan_command.rb', line 26

def initialize(node, policy, namespace, set_name, bin_names, recordset)
  super(node)

  @policy = policy
  @namespace = namespace
  @set_name = set_name
  @bin_names = bin_names
  @recordset = recordset
end

Instance Method Details

#write_bufferObject



36
37
38
# File 'lib/aerospike/query/scan_command.rb', line 36

def write_buffer
  set_scan(@policy, @namespace, @set_name, @bin_names)
end