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_group

Methods inherited from MultiCommand

#compressed?, #get_node, #parse_group, #parse_key, #parse_record, #parse_result, #read_bytes, #skip_key, #stop, #valid?

Methods inherited from Command

#execute, #set_delete, #set_exists, #set_operate, #set_query, #set_read, #set_read_for_key_only, #set_read_header, #set_scan, #set_touch, #set_udf, #set_write, #write_bins

Constructor Details

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

Returns a new instance of ScanCommand.



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

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

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

Instance Method Details

#write_bufferObject



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

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