aerospike 2.28.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -3
- data/lib/aerospike/cdt/map_operation.rb +24 -10
- data/lib/aerospike/cdt/map_policy.rb +6 -3
- data/lib/aerospike/client.rb +9 -5
- data/lib/aerospike/command/batch_direct_command.rb +1 -1
- data/lib/aerospike/command/batch_index_command.rb +1 -1
- data/lib/aerospike/command/command.rb +138 -49
- data/lib/aerospike/command/single_command.rb +1 -1
- data/lib/aerospike/exp/exp.rb +31 -2
- data/lib/aerospike/exp/exp_list.rb +14 -8
- data/lib/aerospike/exp/exp_map.rb +19 -8
- data/lib/aerospike/node.rb +13 -0
- data/lib/aerospike/query/query_command.rb +3 -205
- data/lib/aerospike/query/query_executor.rb +2 -2
- data/lib/aerospike/query/query_partition_command.rb +4 -230
- data/lib/aerospike/query/scan_executor.rb +2 -2
- data/lib/aerospike/query/scan_partition_command.rb +3 -3
- data/lib/aerospike/query/server_command.rb +2 -3
- data/lib/aerospike/task/execute_task.rb +2 -2
- data/lib/aerospike/version.rb +1 -1
- metadata +2 -2
@@ -23,9 +23,9 @@ module Aerospike
|
|
23
23
|
|
24
24
|
class ScanPartitionCommand < StreamCommand #:nodoc:
|
25
25
|
|
26
|
-
def initialize(policy, tracker, node_partitions, namespace, set_name, bin_names, recordset)
|
26
|
+
def initialize(cluster, policy, tracker, node_partitions, namespace, set_name, bin_names, recordset)
|
27
27
|
super(node_partitions.node)
|
28
|
-
|
28
|
+
@cluster = cluster
|
29
29
|
@policy = policy
|
30
30
|
@namespace = namespace
|
31
31
|
@set_name = set_name
|
@@ -36,7 +36,7 @@ module Aerospike
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def write_buffer
|
39
|
-
set_scan(@policy, @namespace, @set_name, @bin_names, @node_partitions)
|
39
|
+
set_scan(@cluster, @policy, @namespace, @set_name, @bin_names, @node_partitions)
|
40
40
|
end
|
41
41
|
|
42
42
|
def should_retry(e)
|
@@ -33,12 +33,11 @@ module Aerospike
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def write_buffer
|
36
|
-
set_query(@policy, @statement,
|
36
|
+
set_query(@cluster, @policy, @statement, true, nil)
|
37
37
|
end
|
38
38
|
|
39
|
-
def parse_row
|
39
|
+
def parse_row(result_code)
|
40
40
|
field_count = @data_buffer.read_int16(18)
|
41
|
-
result_code = @data_buffer.read(5).ord & 0xFF
|
42
41
|
skip_key(field_count)
|
43
42
|
|
44
43
|
if result_code != 0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright 2013-
|
1
|
+
# Copyright 2013-2023 Aerospike, Inc.
|
2
2
|
#
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
@@ -47,7 +47,7 @@ module Aerospike
|
|
47
47
|
end
|
48
48
|
|
49
49
|
conn = node.get_connection(0)
|
50
|
-
responseMap,
|
50
|
+
responseMap, = Info.request(conn, command)
|
51
51
|
node.put_connection(conn)
|
52
52
|
|
53
53
|
response = responseMap[command]
|
data/lib/aerospike/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aerospike
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khosrow Afroozeh
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2023-
|
13
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: msgpack
|