aerospike 2.19.0 → 2.26.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 +354 -244
- data/lib/aerospike/atomic/atomic.rb +1 -1
- data/lib/aerospike/cdt/context.rb +137 -70
- data/lib/aerospike/cdt/list_return_type.rb +4 -0
- data/lib/aerospike/cdt/map_operation.rb +6 -6
- data/lib/aerospike/cdt/map_policy.rb +16 -2
- data/lib/aerospike/cdt/map_return_type.rb +13 -1
- data/lib/aerospike/client.rb +137 -115
- data/lib/aerospike/cluster/create_connection.rb +1 -1
- data/lib/aerospike/cluster.rb +41 -4
- data/lib/aerospike/command/admin_command.rb +368 -52
- data/lib/aerospike/command/batch_index_command.rb +4 -8
- data/lib/aerospike/command/batch_index_exists_command.rb +1 -1
- data/lib/aerospike/command/batch_index_node.rb +1 -1
- data/lib/aerospike/command/batch_item.rb +1 -1
- data/lib/aerospike/command/command.rb +180 -123
- data/lib/aerospike/command/field_type.rb +25 -24
- data/lib/aerospike/command/login_command.rb +164 -0
- data/lib/aerospike/command/multi_command.rb +25 -2
- data/lib/aerospike/command/operate_args.rb +99 -0
- data/lib/aerospike/command/operate_command.rb +6 -11
- data/lib/aerospike/command/read_command.rb +2 -2
- data/lib/aerospike/connection/authenticate.rb +36 -3
- data/lib/aerospike/exp/exp.rb +1329 -0
- data/lib/aerospike/exp/exp_bit.rb +388 -0
- data/lib/aerospike/exp/exp_hll.rb +169 -0
- data/lib/aerospike/exp/exp_list.rb +403 -0
- data/lib/aerospike/exp/exp_map.rb +493 -0
- data/lib/aerospike/exp/operation.rb +56 -0
- data/lib/aerospike/features.rb +22 -9
- data/lib/aerospike/host/parse.rb +2 -2
- data/lib/aerospike/key.rb +10 -1
- data/lib/aerospike/node/refresh/info.rb +1 -1
- data/lib/aerospike/node/verify/name.rb +1 -1
- data/lib/aerospike/node/verify/partition_generation.rb +1 -1
- data/lib/aerospike/node/verify/peers_generation.rb +1 -1
- data/lib/aerospike/node/verify/rebalance_generation.rb +1 -1
- data/lib/aerospike/node_validator.rb +6 -1
- data/lib/aerospike/operation.rb +20 -22
- data/lib/aerospike/policy/auth_mode.rb +36 -0
- data/lib/aerospike/policy/client_policy.rb +4 -1
- data/lib/aerospike/policy/policy.rb +29 -13
- data/lib/aerospike/policy/query_policy.rb +35 -2
- data/lib/aerospike/policy/scan_policy.rb +19 -2
- data/lib/aerospike/privilege.rb +133 -0
- data/lib/aerospike/query/filter.rb +44 -32
- data/lib/aerospike/query/node_partitions.rb +39 -0
- data/lib/aerospike/query/partition_filter.rb +66 -0
- data/lib/aerospike/{command/roles.rb → query/partition_status.rb} +16 -19
- data/lib/aerospike/query/partition_tracker.rb +347 -0
- data/lib/aerospike/query/query_command.rb +20 -10
- data/lib/aerospike/query/query_executor.rb +71 -0
- data/lib/aerospike/query/query_partition_command.rb +267 -0
- data/lib/aerospike/query/recordset.rb +9 -9
- data/lib/aerospike/query/scan_command.rb +3 -2
- data/lib/aerospike/query/scan_executor.rb +71 -0
- data/lib/aerospike/query/scan_partition_command.rb +49 -0
- data/lib/aerospike/query/statement.rb +8 -1
- data/lib/aerospike/query/stream_command.rb +17 -0
- data/lib/aerospike/result_code.rb +83 -8
- data/lib/aerospike/role.rb +55 -0
- data/lib/aerospike/task/execute_task.rb +19 -16
- data/lib/aerospike/task/index_task.rb +1 -1
- data/lib/aerospike/user_role.rb +26 -1
- data/lib/aerospike/utils/buffer.rb +93 -29
- data/lib/aerospike/utils/packer.rb +7 -6
- data/lib/aerospike/utils/pool.rb +1 -1
- data/lib/aerospike/value/particle_type.rb +1 -12
- data/lib/aerospike/value/value.rb +35 -60
- data/lib/aerospike/version.rb +1 -1
- data/lib/aerospike.rb +156 -136
- metadata +24 -6
data/lib/aerospike.rb
CHANGED
@@ -19,151 +19,171 @@ require "logger"
|
|
19
19
|
require "stringio"
|
20
20
|
require "monitor"
|
21
21
|
require "timeout"
|
22
|
-
require
|
23
|
-
require
|
24
|
-
require
|
25
|
-
require
|
22
|
+
require "resolv"
|
23
|
+
require "msgpack"
|
24
|
+
require "bcrypt"
|
25
|
+
require "zlib"
|
26
26
|
|
27
|
-
require
|
27
|
+
require "aerospike/atomic/atomic"
|
28
28
|
|
29
|
-
require
|
30
|
-
require
|
31
|
-
require
|
32
|
-
require
|
33
|
-
require
|
34
|
-
require
|
35
|
-
require
|
36
|
-
require
|
37
|
-
require
|
38
|
-
require
|
39
|
-
require
|
40
|
-
require
|
41
|
-
require
|
42
|
-
require
|
43
|
-
require
|
44
|
-
require
|
45
|
-
require
|
46
|
-
require
|
47
|
-
require
|
48
|
-
require
|
49
|
-
require
|
50
|
-
require
|
51
|
-
require
|
52
|
-
require
|
53
|
-
require
|
54
|
-
require
|
55
|
-
require
|
56
|
-
require
|
57
|
-
require
|
58
|
-
require
|
59
|
-
require
|
60
|
-
require
|
61
|
-
require
|
62
|
-
require
|
63
|
-
require
|
64
|
-
require
|
65
|
-
require
|
66
|
-
require
|
67
|
-
require
|
68
|
-
require
|
69
|
-
require
|
70
|
-
require
|
71
|
-
require
|
72
|
-
require
|
73
|
-
require
|
74
|
-
require
|
75
|
-
require
|
76
|
-
require
|
77
|
-
require
|
78
|
-
require
|
79
|
-
require
|
80
|
-
require
|
81
|
-
require
|
82
|
-
require
|
83
|
-
require
|
84
|
-
require
|
85
|
-
require
|
86
|
-
require
|
87
|
-
require
|
88
|
-
require
|
89
|
-
require
|
90
|
-
require
|
29
|
+
require "aerospike/client"
|
30
|
+
require "aerospike/features"
|
31
|
+
require "aerospike/utils/pool"
|
32
|
+
require "aerospike/utils/connection_pool"
|
33
|
+
require "aerospike/utils/packer"
|
34
|
+
require "aerospike/utils/unpacker"
|
35
|
+
require "aerospike/utils/buffer"
|
36
|
+
require "aerospike/utils/string_parser"
|
37
|
+
require "aerospike/host"
|
38
|
+
require "aerospike/host/parse"
|
39
|
+
require "aerospike/loggable"
|
40
|
+
require "aerospike/record"
|
41
|
+
require "aerospike/result_code"
|
42
|
+
require "aerospike/version"
|
43
|
+
require "aerospike/value/particle_type"
|
44
|
+
require "aerospike/value/value"
|
45
|
+
require "aerospike/command/single_command"
|
46
|
+
require "aerospike/command/batch_direct_node"
|
47
|
+
require "aerospike/command/batch_index_node"
|
48
|
+
require "aerospike/command/field_type"
|
49
|
+
require "aerospike/command/command"
|
50
|
+
require "aerospike/command/execute_command"
|
51
|
+
require "aerospike/command/write_command"
|
52
|
+
require "aerospike/command/batch_item"
|
53
|
+
require "aerospike/command/operate_command"
|
54
|
+
require "aerospike/command/exists_command"
|
55
|
+
require "aerospike/command/multi_command"
|
56
|
+
require "aerospike/command/batch_direct_command"
|
57
|
+
require "aerospike/command/batch_direct_exists_command"
|
58
|
+
require "aerospike/command/batch_index_command"
|
59
|
+
require "aerospike/command/batch_index_exists_command"
|
60
|
+
require "aerospike/command/read_header_command"
|
61
|
+
require "aerospike/command/touch_command"
|
62
|
+
require "aerospike/command/read_command"
|
63
|
+
require "aerospike/command/delete_command"
|
64
|
+
require "aerospike/command/admin_command"
|
65
|
+
require "aerospike/command/login_command"
|
66
|
+
require "aerospike/command/unsupported_particle_type_validator"
|
67
|
+
require "aerospike/command/operate_args"
|
68
|
+
require "aerospike/key"
|
69
|
+
require "aerospike/operation"
|
70
|
+
require "aerospike/cdt/context"
|
71
|
+
require "aerospike/cdt/list_operation"
|
72
|
+
require "aerospike/cdt/list_order"
|
73
|
+
require "aerospike/cdt/list_return_type"
|
74
|
+
require "aerospike/cdt/list_sort_flags"
|
75
|
+
require "aerospike/cdt/list_write_flags"
|
76
|
+
require "aerospike/cdt/list_policy"
|
77
|
+
require "aerospike/cdt/map_operation"
|
78
|
+
require "aerospike/cdt/map_order"
|
79
|
+
require "aerospike/cdt/map_return_type"
|
80
|
+
require "aerospike/cdt/map_write_flags"
|
81
|
+
require "aerospike/cdt/map_write_mode"
|
82
|
+
require "aerospike/cdt/map_policy"
|
83
|
+
require "aerospike/cdt/hll_operation"
|
84
|
+
require "aerospike/cdt/hll_write_flags"
|
85
|
+
require "aerospike/cdt/hll_policy"
|
86
|
+
require "aerospike/cdt/bit_operation"
|
87
|
+
require "aerospike/cdt/bit_overflow_action"
|
88
|
+
require "aerospike/cdt/bit_resize_flags"
|
89
|
+
require "aerospike/cdt/bit_write_flags"
|
90
|
+
require "aerospike/cdt/bit_policy"
|
91
|
+
require "aerospike/geo_json"
|
92
|
+
require "aerospike/ttl"
|
91
93
|
|
92
|
-
require
|
93
|
-
require
|
94
|
-
require
|
95
|
-
require
|
96
|
-
require
|
97
|
-
require
|
98
|
-
require
|
99
|
-
require
|
100
|
-
require
|
101
|
-
require
|
102
|
-
require
|
103
|
-
require
|
94
|
+
require "aerospike/policy/client_policy"
|
95
|
+
require "aerospike/policy/priority"
|
96
|
+
require "aerospike/policy/record_exists_action"
|
97
|
+
require "aerospike/policy/generation_policy"
|
98
|
+
require "aerospike/policy/policy"
|
99
|
+
require "aerospike/policy/batch_policy"
|
100
|
+
require "aerospike/policy/write_policy"
|
101
|
+
require "aerospike/policy/scan_policy"
|
102
|
+
require "aerospike/policy/query_policy"
|
103
|
+
require "aerospike/policy/consistency_level"
|
104
|
+
require "aerospike/policy/commit_level"
|
105
|
+
require "aerospike/policy/admin_policy"
|
106
|
+
require "aerospike/policy/auth_mode"
|
104
107
|
|
105
|
-
require
|
106
|
-
require
|
107
|
-
require
|
108
|
+
require "aerospike/socket/base"
|
109
|
+
require "aerospike/socket/ssl"
|
110
|
+
require "aerospike/socket/tcp"
|
108
111
|
|
109
|
-
require
|
110
|
-
require
|
112
|
+
require "aerospike/connection/authenticate"
|
113
|
+
require "aerospike/connection/create"
|
111
114
|
|
112
|
-
require
|
113
|
-
require
|
114
|
-
require
|
115
|
-
require
|
116
|
-
require
|
117
|
-
require
|
118
|
-
require
|
119
|
-
require
|
120
|
-
require
|
121
|
-
require
|
122
|
-
require
|
123
|
-
require
|
124
|
-
require
|
125
|
-
require
|
126
|
-
require
|
127
|
-
require
|
128
|
-
require
|
129
|
-
require
|
130
|
-
require
|
131
|
-
require
|
132
|
-
require
|
133
|
-
require
|
134
|
-
require
|
135
|
-
require
|
136
|
-
require
|
137
|
-
require
|
138
|
-
require
|
139
|
-
require
|
140
|
-
require
|
141
|
-
require
|
142
|
-
require
|
143
|
-
require
|
115
|
+
require "aerospike/cluster"
|
116
|
+
require "aerospike/cluster/create_connection"
|
117
|
+
require "aerospike/cluster/find_nodes_to_remove"
|
118
|
+
require "aerospike/cluster/find_node"
|
119
|
+
require "aerospike/cluster/partition"
|
120
|
+
require "aerospike/cluster/partition_parser"
|
121
|
+
require "aerospike/cluster/rack_parser"
|
122
|
+
require "aerospike/node"
|
123
|
+
require "aerospike/node/generation"
|
124
|
+
require "aerospike/node/rebalance"
|
125
|
+
require "aerospike/node/refresh/failed"
|
126
|
+
require "aerospike/node/refresh/friends"
|
127
|
+
require "aerospike/node/refresh/info"
|
128
|
+
require "aerospike/node/refresh/partitions"
|
129
|
+
require "aerospike/node/refresh/racks"
|
130
|
+
require "aerospike/node/refresh/peers"
|
131
|
+
require "aerospike/node/refresh/reset"
|
132
|
+
require "aerospike/node/verify/cluster_name"
|
133
|
+
require "aerospike/node/verify/name"
|
134
|
+
require "aerospike/node/verify/partition_generation"
|
135
|
+
require "aerospike/node/verify/rebalance_generation"
|
136
|
+
require "aerospike/node/verify/peers_generation"
|
137
|
+
require "aerospike/node_validator"
|
138
|
+
require "aerospike/peer"
|
139
|
+
require "aerospike/peers"
|
140
|
+
require "aerospike/peers/fetch"
|
141
|
+
require "aerospike/peers/parse"
|
142
|
+
require "aerospike/info"
|
143
|
+
require "aerospike/udf"
|
144
|
+
require "aerospike/bin"
|
145
|
+
require "aerospike/aerospike_exception"
|
146
|
+
require "aerospike/user_role"
|
147
|
+
require "aerospike/privilege"
|
148
|
+
require "aerospike/role"
|
144
149
|
|
145
|
-
require
|
146
|
-
require
|
147
|
-
require
|
148
|
-
require
|
149
|
-
require
|
150
|
-
require
|
150
|
+
require "aerospike/task/index_task"
|
151
|
+
require "aerospike/task/execute_task"
|
152
|
+
require "aerospike/task/udf_remove_task"
|
153
|
+
require "aerospike/task/udf_register_task"
|
154
|
+
require "aerospike/task/task"
|
155
|
+
require "aerospike/language"
|
151
156
|
|
152
|
-
require
|
153
|
-
require
|
154
|
-
require
|
155
|
-
require
|
156
|
-
require
|
157
|
-
require
|
158
|
-
require
|
157
|
+
require "aerospike/query/recordset"
|
158
|
+
require "aerospike/query/filter"
|
159
|
+
require "aerospike/query/stream_command"
|
160
|
+
require "aerospike/query/query_command"
|
161
|
+
require "aerospike/query/scan_command"
|
162
|
+
require "aerospike/query/statement"
|
163
|
+
require "aerospike/query/pred_exp"
|
164
|
+
require "aerospike/query/partition_tracker"
|
165
|
+
require "aerospike/query/partition_status"
|
166
|
+
require "aerospike/query/partition_filter"
|
167
|
+
require "aerospike/query/node_partitions"
|
168
|
+
require "aerospike/query/scan_executor"
|
169
|
+
require "aerospike/query/scan_partition_command"
|
170
|
+
require "aerospike/query/query_executor"
|
171
|
+
require "aerospike/query/query_partition_command"
|
159
172
|
|
160
|
-
require
|
161
|
-
require
|
162
|
-
require
|
163
|
-
require
|
164
|
-
require
|
165
|
-
require
|
166
|
-
|
173
|
+
require "aerospike/exp/exp"
|
174
|
+
require "aerospike/exp/exp_map"
|
175
|
+
require "aerospike/exp/exp_list"
|
176
|
+
require "aerospike/exp/exp_bit"
|
177
|
+
require "aerospike/exp/exp_hll"
|
178
|
+
require "aerospike/exp/operation"
|
179
|
+
|
180
|
+
require "aerospike/query/pred_exp/and_or"
|
181
|
+
require "aerospike/query/pred_exp/geo_json_value"
|
182
|
+
require "aerospike/query/pred_exp/integer_value"
|
183
|
+
require "aerospike/query/pred_exp/op"
|
184
|
+
require "aerospike/query/pred_exp/regex"
|
185
|
+
require "aerospike/query/pred_exp/regex_flags"
|
186
|
+
require "aerospike/query/pred_exp/string_value"
|
167
187
|
|
168
188
|
module Aerospike
|
169
189
|
extend Loggable
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aerospike
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.26.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Khosrow Afroozeh
|
8
8
|
- Jan Hecking
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2022-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|
@@ -97,17 +97,24 @@ files:
|
|
97
97
|
- lib/aerospike/command/execute_command.rb
|
98
98
|
- lib/aerospike/command/exists_command.rb
|
99
99
|
- lib/aerospike/command/field_type.rb
|
100
|
+
- lib/aerospike/command/login_command.rb
|
100
101
|
- lib/aerospike/command/multi_command.rb
|
102
|
+
- lib/aerospike/command/operate_args.rb
|
101
103
|
- lib/aerospike/command/operate_command.rb
|
102
104
|
- lib/aerospike/command/read_command.rb
|
103
105
|
- lib/aerospike/command/read_header_command.rb
|
104
|
-
- lib/aerospike/command/roles.rb
|
105
106
|
- lib/aerospike/command/single_command.rb
|
106
107
|
- lib/aerospike/command/touch_command.rb
|
107
108
|
- lib/aerospike/command/unsupported_particle_type_validator.rb
|
108
109
|
- lib/aerospike/command/write_command.rb
|
109
110
|
- lib/aerospike/connection/authenticate.rb
|
110
111
|
- lib/aerospike/connection/create.rb
|
112
|
+
- lib/aerospike/exp/exp.rb
|
113
|
+
- lib/aerospike/exp/exp_bit.rb
|
114
|
+
- lib/aerospike/exp/exp_hll.rb
|
115
|
+
- lib/aerospike/exp/exp_list.rb
|
116
|
+
- lib/aerospike/exp/exp_map.rb
|
117
|
+
- lib/aerospike/exp/operation.rb
|
111
118
|
- lib/aerospike/features.rb
|
112
119
|
- lib/aerospike/geo_json.rb
|
113
120
|
- lib/aerospike/host.rb
|
@@ -138,6 +145,7 @@ files:
|
|
138
145
|
- lib/aerospike/peers/fetch.rb
|
139
146
|
- lib/aerospike/peers/parse.rb
|
140
147
|
- lib/aerospike/policy/admin_policy.rb
|
148
|
+
- lib/aerospike/policy/auth_mode.rb
|
141
149
|
- lib/aerospike/policy/batch_policy.rb
|
142
150
|
- lib/aerospike/policy/client_policy.rb
|
143
151
|
- lib/aerospike/policy/commit_level.rb
|
@@ -152,7 +160,12 @@ files:
|
|
152
160
|
- lib/aerospike/policy/replica.rb
|
153
161
|
- lib/aerospike/policy/scan_policy.rb
|
154
162
|
- lib/aerospike/policy/write_policy.rb
|
163
|
+
- lib/aerospike/privilege.rb
|
155
164
|
- lib/aerospike/query/filter.rb
|
165
|
+
- lib/aerospike/query/node_partitions.rb
|
166
|
+
- lib/aerospike/query/partition_filter.rb
|
167
|
+
- lib/aerospike/query/partition_status.rb
|
168
|
+
- lib/aerospike/query/partition_tracker.rb
|
156
169
|
- lib/aerospike/query/pred_exp.rb
|
157
170
|
- lib/aerospike/query/pred_exp/and_or.rb
|
158
171
|
- lib/aerospike/query/pred_exp/geo_json_value.rb
|
@@ -162,12 +175,17 @@ files:
|
|
162
175
|
- lib/aerospike/query/pred_exp/regex_flags.rb
|
163
176
|
- lib/aerospike/query/pred_exp/string_value.rb
|
164
177
|
- lib/aerospike/query/query_command.rb
|
178
|
+
- lib/aerospike/query/query_executor.rb
|
179
|
+
- lib/aerospike/query/query_partition_command.rb
|
165
180
|
- lib/aerospike/query/recordset.rb
|
166
181
|
- lib/aerospike/query/scan_command.rb
|
182
|
+
- lib/aerospike/query/scan_executor.rb
|
183
|
+
- lib/aerospike/query/scan_partition_command.rb
|
167
184
|
- lib/aerospike/query/statement.rb
|
168
185
|
- lib/aerospike/query/stream_command.rb
|
169
186
|
- lib/aerospike/record.rb
|
170
187
|
- lib/aerospike/result_code.rb
|
188
|
+
- lib/aerospike/role.rb
|
171
189
|
- lib/aerospike/socket/base.rb
|
172
190
|
- lib/aerospike/socket/ssl.rb
|
173
191
|
- lib/aerospike/socket/tcp.rb
|
@@ -209,8 +227,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
209
227
|
- !ruby/object:Gem::Version
|
210
228
|
version: '0'
|
211
229
|
requirements: []
|
212
|
-
rubygems_version: 3.
|
213
|
-
signing_key:
|
230
|
+
rubygems_version: 3.3.5
|
231
|
+
signing_key:
|
214
232
|
specification_version: 4
|
215
233
|
summary: An Aerospike driver for Ruby.
|
216
234
|
test_files: []
|