Class: Aerospike::ExecuteCommand

Inherits:
ReadCommand show all
Defined in:
lib/aerospike/command/execute_command.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ReadCommand

ReadCommand::BIN_NAME_ENCODING

Instance Attribute Summary

Attributes inherited from ReadCommand

#policy, #record

Instance Method Summary collapse

Methods inherited from ReadCommand

#get_node, #handle_udf_error, #parse_record, #parse_result

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(cluster, policy, key, package_name, function_name, args) ⇒ ExecuteCommand

Returns a new instance of ExecuteCommand.



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

def initialize(cluster, policy, key, package_name, function_name, args)
  super(cluster, policy, key, nil)

  @package_name = package_name
  @function_name = function_name
  @args = ListValue.new(args)

  self
end

Instance Method Details

#write_bufferObject



36
37
38
# File 'lib/aerospike/command/execute_command.rb', line 36

def write_buffer
  set_udf(@policy, @key, @package_name, @function_name, @args)
end