Class: Aerospike::WriteCommand
Overview
Instance Method Summary
collapse
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
Constructor Details
#initialize(cluster, policy, key, bins, operation) ⇒ WriteCommand
Returns a new instance of WriteCommand.
25
26
27
28
29
30
31
32
33
34
|
# File 'lib/aerospike/command/write_command.rb', line 25
def initialize(cluster, policy, key, bins, operation)
super(cluster, key)
@bins = bins
@operation = operation
@policy = policy
self
end
|
Instance Method Details
#get_node ⇒ Object
36
37
38
|
# File 'lib/aerospike/command/write_command.rb', line 36
def get_node
@cluster.master_node(@partition)
end
|
#write_bins ⇒ Object
40
41
42
|
# File 'lib/aerospike/command/write_command.rb', line 40
def write_bins
@bins
end
|
#write_buffer ⇒ Object
44
45
46
|
# File 'lib/aerospike/command/write_command.rb', line 44
def write_buffer
set_write(@policy, @operation, @key, @bins)
end
|