hyperdex 1.4.5.1.gc197953

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1258 @@
1
+ /* Copyright (c) 2013-2014, Cornell University
2
+ * All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions are met:
6
+ *
7
+ * * Redistributions of source code must retain the above copyright notice,
8
+ * this list of conditions and the following disclaimer.
9
+ * * Redistributions in binary form must reproduce the above copyright
10
+ * notice, this list of conditions and the following disclaimer in the
11
+ * documentation and/or other materials provided with the distribution.
12
+ * * Neither the name of HyperDex nor the names of its contributors may be
13
+ * used to endorse or promote products derived from this software without
14
+ * specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
+ * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23
+ * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
+ */
27
+
28
+ /* This file is generated by bindings/ruby.py */
29
+
30
+ static VALUE
31
+ hyperdex_ruby_client_asynccall__spacename_key__status_attributes(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, enum hyperdex_client_returncode* status, const struct hyperdex_client_attribute** attrs, size_t* attrs_sz), VALUE self, VALUE spacename, VALUE key)
32
+ {
33
+ VALUE deferred;
34
+ struct hyperdex_client* client = IV2PTR(self, "@client");
35
+ const char* in_space;
36
+ const char* in_key;
37
+ size_t in_key_sz;
38
+ int64_t reqid;
39
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
40
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
41
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
42
+ const struct hyperdex_client_attribute** attrs = IV2PTR(deferred, "@attrs_ptr");
43
+ size_t* attrs_sz = IV2PTR(deferred, "@attrs_sz_ptr");
44
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
45
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
46
+
47
+ reqid = f(client, in_space, in_key, in_key_sz, status, attrs, attrs_sz);
48
+
49
+ if (reqid < 0)
50
+ {
51
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
52
+ }
53
+
54
+ rb_iv_set(deferred, "@status", Qtrue);
55
+ rb_iv_set(deferred, "@attrs", Qtrue);
56
+ rb_iv_set(deferred, "@attrs_sz", Qtrue);
57
+
58
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
59
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
60
+ return deferred;
61
+ }
62
+
63
+ static VALUE
64
+ hyperdex_ruby_client_asynccall__spacename_key_attributenames__status_attributes(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const char** attrnames, size_t attrnames_sz, enum hyperdex_client_returncode* status, const struct hyperdex_client_attribute** attrs, size_t* attrs_sz), VALUE self, VALUE spacename, VALUE key, VALUE attributenames)
65
+ {
66
+ VALUE deferred;
67
+ struct hyperdex_client* client = IV2PTR(self, "@client");
68
+ const char* in_space;
69
+ const char* in_key;
70
+ size_t in_key_sz;
71
+ const char** in_attrnames;
72
+ size_t in_attrnames_sz;
73
+ int64_t reqid;
74
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
75
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
76
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
77
+ const struct hyperdex_client_attribute** attrs = IV2PTR(deferred, "@attrs_ptr");
78
+ size_t* attrs_sz = IV2PTR(deferred, "@attrs_sz_ptr");
79
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
80
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
81
+ hyperdex_ruby_client_convert_attributenames(arena, attributenames, &in_attrnames, &in_attrnames_sz);
82
+
83
+ reqid = f(client, in_space, in_key, in_key_sz, in_attrnames, in_attrnames_sz, status, attrs, attrs_sz);
84
+
85
+ if (reqid < 0)
86
+ {
87
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
88
+ }
89
+
90
+ rb_iv_set(deferred, "@status", Qtrue);
91
+ rb_iv_set(deferred, "@attrs", Qtrue);
92
+ rb_iv_set(deferred, "@attrs_sz", Qtrue);
93
+
94
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
95
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
96
+ return deferred;
97
+ }
98
+
99
+ static VALUE
100
+ hyperdex_ruby_client_asynccall__spacename_key_attributes__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const struct hyperdex_client_attribute* attrs, size_t attrs_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key, VALUE attributes)
101
+ {
102
+ VALUE deferred;
103
+ struct hyperdex_client* client = IV2PTR(self, "@client");
104
+ const char* in_space;
105
+ const char* in_key;
106
+ size_t in_key_sz;
107
+ const struct hyperdex_client_attribute* in_attrs;
108
+ size_t in_attrs_sz;
109
+ int64_t reqid;
110
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
111
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
112
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
113
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
114
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
115
+ hyperdex_ruby_client_convert_attributes(arena, attributes, &in_attrs, &in_attrs_sz);
116
+
117
+ reqid = f(client, in_space, in_key, in_key_sz, in_attrs, in_attrs_sz, status);
118
+
119
+ if (reqid < 0)
120
+ {
121
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
122
+ }
123
+
124
+ rb_iv_set(deferred, "@status", Qtrue);
125
+
126
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
127
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
128
+ return deferred;
129
+ }
130
+
131
+ static VALUE
132
+ hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, const struct hyperdex_client_attribute* attrs, size_t attrs_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
133
+ {
134
+ VALUE deferred;
135
+ struct hyperdex_client* client = IV2PTR(self, "@client");
136
+ const char* in_space;
137
+ const char* in_key;
138
+ size_t in_key_sz;
139
+ const struct hyperdex_client_attribute_check* in_checks;
140
+ size_t in_checks_sz;
141
+ const struct hyperdex_client_attribute* in_attrs;
142
+ size_t in_attrs_sz;
143
+ int64_t reqid;
144
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
145
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
146
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
147
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
148
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
149
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
150
+ hyperdex_ruby_client_convert_attributes(arena, attributes, &in_attrs, &in_attrs_sz);
151
+
152
+ reqid = f(client, in_space, in_key, in_key_sz, in_checks, in_checks_sz, in_attrs, in_attrs_sz, status);
153
+
154
+ if (reqid < 0)
155
+ {
156
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
157
+ }
158
+
159
+ rb_iv_set(deferred, "@status", Qtrue);
160
+
161
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
162
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
163
+ return deferred;
164
+ }
165
+
166
+ static VALUE
167
+ hyperdex_ruby_client_asynccall__spacename_key__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key)
168
+ {
169
+ VALUE deferred;
170
+ struct hyperdex_client* client = IV2PTR(self, "@client");
171
+ const char* in_space;
172
+ const char* in_key;
173
+ size_t in_key_sz;
174
+ int64_t reqid;
175
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
176
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
177
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
178
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
179
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
180
+
181
+ reqid = f(client, in_space, in_key, in_key_sz, status);
182
+
183
+ if (reqid < 0)
184
+ {
185
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
186
+ }
187
+
188
+ rb_iv_set(deferred, "@status", Qtrue);
189
+
190
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
191
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
192
+ return deferred;
193
+ }
194
+
195
+ static VALUE
196
+ hyperdex_ruby_client_asynccall__spacename_key_predicates__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key, VALUE predicates)
197
+ {
198
+ VALUE deferred;
199
+ struct hyperdex_client* client = IV2PTR(self, "@client");
200
+ const char* in_space;
201
+ const char* in_key;
202
+ size_t in_key_sz;
203
+ const struct hyperdex_client_attribute_check* in_checks;
204
+ size_t in_checks_sz;
205
+ int64_t reqid;
206
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
207
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
208
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
209
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
210
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
211
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
212
+
213
+ reqid = f(client, in_space, in_key, in_key_sz, in_checks, in_checks_sz, status);
214
+
215
+ if (reqid < 0)
216
+ {
217
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
218
+ }
219
+
220
+ rb_iv_set(deferred, "@status", Qtrue);
221
+
222
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
223
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
224
+ return deferred;
225
+ }
226
+
227
+ static VALUE
228
+ hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const struct hyperdex_client_map_attribute* mapattrs, size_t mapattrs_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
229
+ {
230
+ VALUE deferred;
231
+ struct hyperdex_client* client = IV2PTR(self, "@client");
232
+ const char* in_space;
233
+ const char* in_key;
234
+ size_t in_key_sz;
235
+ const struct hyperdex_client_map_attribute* in_mapattrs;
236
+ size_t in_mapattrs_sz;
237
+ int64_t reqid;
238
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
239
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
240
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
241
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
242
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
243
+ hyperdex_ruby_client_convert_mapattributes(arena, mapattributes, &in_mapattrs, &in_mapattrs_sz);
244
+
245
+ reqid = f(client, in_space, in_key, in_key_sz, in_mapattrs, in_mapattrs_sz, status);
246
+
247
+ if (reqid < 0)
248
+ {
249
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
250
+ }
251
+
252
+ rb_iv_set(deferred, "@status", Qtrue);
253
+
254
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
255
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
256
+ return deferred;
257
+ }
258
+
259
+ static VALUE
260
+ hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const char* key, size_t key_sz, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, const struct hyperdex_client_map_attribute* mapattrs, size_t mapattrs_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
261
+ {
262
+ VALUE deferred;
263
+ struct hyperdex_client* client = IV2PTR(self, "@client");
264
+ const char* in_space;
265
+ const char* in_key;
266
+ size_t in_key_sz;
267
+ const struct hyperdex_client_attribute_check* in_checks;
268
+ size_t in_checks_sz;
269
+ const struct hyperdex_client_map_attribute* in_mapattrs;
270
+ size_t in_mapattrs_sz;
271
+ int64_t reqid;
272
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
273
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
274
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
275
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
276
+ hyperdex_ruby_client_convert_key(arena, key, &in_key, &in_key_sz);
277
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
278
+ hyperdex_ruby_client_convert_mapattributes(arena, mapattributes, &in_mapattrs, &in_mapattrs_sz);
279
+
280
+ reqid = f(client, in_space, in_key, in_key_sz, in_checks, in_checks_sz, in_mapattrs, in_mapattrs_sz, status);
281
+
282
+ if (reqid < 0)
283
+ {
284
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
285
+ }
286
+
287
+ rb_iv_set(deferred, "@status", Qtrue);
288
+
289
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
290
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
291
+ return deferred;
292
+ }
293
+
294
+ static VALUE
295
+ hyperdex_ruby_client_iterator__spacename_predicates__status_attributes(int64_t (*f)(struct hyperdex_client* client, const char* space, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, enum hyperdex_client_returncode* status, const struct hyperdex_client_attribute** attrs, size_t* attrs_sz), VALUE self, VALUE spacename, VALUE predicates)
296
+ {
297
+ VALUE iterator;
298
+ struct hyperdex_client* client = IV2PTR(self, "@client");
299
+ const char* in_space;
300
+ const struct hyperdex_client_attribute_check* in_checks;
301
+ size_t in_checks_sz;
302
+ int64_t reqid;
303
+ iterator = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Iterator"));
304
+ struct hyperdex_ds_arena* arena = IV2PTR(iterator, "@arena_ptr");
305
+ enum hyperdex_client_returncode* status = IV2PTR(iterator, "@status_ptr");
306
+ const struct hyperdex_client_attribute** attrs = IV2PTR(iterator, "@attrs_ptr");
307
+ size_t* attrs_sz = IV2PTR(iterator, "@attrs_sz_ptr");
308
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
309
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
310
+
311
+ reqid = f(client, in_space, in_checks, in_checks_sz, status, attrs, attrs_sz);
312
+
313
+ if (reqid < 0)
314
+ {
315
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
316
+ }
317
+
318
+ rb_iv_set(iterator, "@status", Qtrue);
319
+ rb_iv_set(iterator, "@attrs", Qtrue);
320
+ rb_iv_set(iterator, "@attrs_sz", Qtrue);
321
+
322
+ rb_iv_set(iterator, "@reqid", LONG2NUM(reqid));
323
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), iterator);
324
+ return iterator;
325
+ }
326
+
327
+ static VALUE
328
+ hyperdex_ruby_client_asynccall__spacename_predicates__status_description(int64_t (*f)(struct hyperdex_client* client, const char* space, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, enum hyperdex_client_returncode* status, const char** description), VALUE self, VALUE spacename, VALUE predicates)
329
+ {
330
+ VALUE deferred;
331
+ struct hyperdex_client* client = IV2PTR(self, "@client");
332
+ const char* in_space;
333
+ const struct hyperdex_client_attribute_check* in_checks;
334
+ size_t in_checks_sz;
335
+ int64_t reqid;
336
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
337
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
338
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
339
+ const char** description = IV2PTR(deferred, "@description_ptr");
340
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
341
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
342
+
343
+ reqid = f(client, in_space, in_checks, in_checks_sz, status, description);
344
+
345
+ if (reqid < 0)
346
+ {
347
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
348
+ }
349
+
350
+ rb_iv_set(deferred, "@status", Qtrue);
351
+ rb_iv_set(deferred, "@description", Qtrue);
352
+
353
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
354
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
355
+ return deferred;
356
+ }
357
+
358
+ static VALUE
359
+ hyperdex_ruby_client_iterator__spacename_predicates_sortby_limit_maxmin__status_attributes(int64_t (*f)(struct hyperdex_client* client, const char* space, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, const char* sort_by, uint64_t limit, int maxmin, enum hyperdex_client_returncode* status, const struct hyperdex_client_attribute** attrs, size_t* attrs_sz), VALUE self, VALUE spacename, VALUE predicates, VALUE sortby, VALUE limit, VALUE maxmin)
360
+ {
361
+ VALUE iterator;
362
+ struct hyperdex_client* client = IV2PTR(self, "@client");
363
+ const char* in_space;
364
+ const struct hyperdex_client_attribute_check* in_checks;
365
+ size_t in_checks_sz;
366
+ const char* in_sort_by;
367
+ uint64_t in_limit;
368
+ int in_maxmin;
369
+ int64_t reqid;
370
+ iterator = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Iterator"));
371
+ struct hyperdex_ds_arena* arena = IV2PTR(iterator, "@arena_ptr");
372
+ enum hyperdex_client_returncode* status = IV2PTR(iterator, "@status_ptr");
373
+ const struct hyperdex_client_attribute** attrs = IV2PTR(iterator, "@attrs_ptr");
374
+ size_t* attrs_sz = IV2PTR(iterator, "@attrs_sz_ptr");
375
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
376
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
377
+ hyperdex_ruby_client_convert_sortby(arena, sortby, &in_sort_by);
378
+ hyperdex_ruby_client_convert_limit(arena, limit, &in_limit);
379
+ hyperdex_ruby_client_convert_maxmin(arena, maxmin, &in_maxmin);
380
+
381
+ reqid = f(client, in_space, in_checks, in_checks_sz, in_sort_by, in_limit, in_maxmin, status, attrs, attrs_sz);
382
+
383
+ if (reqid < 0)
384
+ {
385
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
386
+ }
387
+
388
+ rb_iv_set(iterator, "@status", Qtrue);
389
+ rb_iv_set(iterator, "@attrs", Qtrue);
390
+ rb_iv_set(iterator, "@attrs_sz", Qtrue);
391
+
392
+ rb_iv_set(iterator, "@reqid", LONG2NUM(reqid));
393
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), iterator);
394
+ return iterator;
395
+ }
396
+
397
+ static VALUE
398
+ hyperdex_ruby_client_asynccall__spacename_predicates__status(int64_t (*f)(struct hyperdex_client* client, const char* space, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, enum hyperdex_client_returncode* status), VALUE self, VALUE spacename, VALUE predicates)
399
+ {
400
+ VALUE deferred;
401
+ struct hyperdex_client* client = IV2PTR(self, "@client");
402
+ const char* in_space;
403
+ const struct hyperdex_client_attribute_check* in_checks;
404
+ size_t in_checks_sz;
405
+ int64_t reqid;
406
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
407
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
408
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
409
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
410
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
411
+
412
+ reqid = f(client, in_space, in_checks, in_checks_sz, status);
413
+
414
+ if (reqid < 0)
415
+ {
416
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
417
+ }
418
+
419
+ rb_iv_set(deferred, "@status", Qtrue);
420
+
421
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
422
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
423
+ return deferred;
424
+ }
425
+
426
+ static VALUE
427
+ hyperdex_ruby_client_asynccall__spacename_predicates__status_count(int64_t (*f)(struct hyperdex_client* client, const char* space, const struct hyperdex_client_attribute_check* checks, size_t checks_sz, enum hyperdex_client_returncode* status, uint64_t* count), VALUE self, VALUE spacename, VALUE predicates)
428
+ {
429
+ VALUE deferred;
430
+ struct hyperdex_client* client = IV2PTR(self, "@client");
431
+ const char* in_space;
432
+ const struct hyperdex_client_attribute_check* in_checks;
433
+ size_t in_checks_sz;
434
+ int64_t reqid;
435
+ deferred = rb_class_new_instance(1, &self, rb_path2class("HyperDex::Client::Deferred"));
436
+ struct hyperdex_ds_arena* arena = IV2PTR(deferred, "@arena_ptr");
437
+ enum hyperdex_client_returncode* status = IV2PTR(deferred, "@status_ptr");
438
+ uint64_t* count = IV2PTR(deferred, "@count_ptr");
439
+ hyperdex_ruby_client_convert_spacename(arena, spacename, &in_space);
440
+ hyperdex_ruby_client_convert_predicates(arena, predicates, &in_checks, &in_checks_sz);
441
+
442
+ reqid = f(client, in_space, in_checks, in_checks_sz, status, count);
443
+
444
+ if (reqid < 0)
445
+ {
446
+ hyperdex_ruby_client_throw_exception(*status, hyperdex_client_error_message(client));
447
+ }
448
+
449
+ rb_iv_set(deferred, "@status", Qtrue);
450
+ rb_iv_set(deferred, "@count", Qtrue);
451
+
452
+ rb_iv_set(deferred, "@reqid", LONG2NUM(reqid));
453
+ rb_hash_aset(rb_iv_get(self, "@ops"), LONG2NUM(reqid), deferred);
454
+ return deferred;
455
+ }
456
+ static VALUE
457
+ hyperdex_ruby_client_get(VALUE self, VALUE spacename, VALUE key)
458
+ {
459
+ return hyperdex_ruby_client_asynccall__spacename_key__status_attributes(hyperdex_client_get, self, spacename, key);
460
+ }
461
+ VALUE
462
+ hyperdex_ruby_client_wait_get(VALUE self, VALUE spacename, VALUE key)
463
+ {
464
+ VALUE deferred = hyperdex_ruby_client_get(self, spacename, key);
465
+ return rb_funcall(deferred, rb_intern("wait"), 0);
466
+ }
467
+
468
+ static VALUE
469
+ hyperdex_ruby_client_get_partial(VALUE self, VALUE spacename, VALUE key, VALUE attributenames)
470
+ {
471
+ return hyperdex_ruby_client_asynccall__spacename_key_attributenames__status_attributes(hyperdex_client_get_partial, self, spacename, key, attributenames);
472
+ }
473
+ VALUE
474
+ hyperdex_ruby_client_wait_get_partial(VALUE self, VALUE spacename, VALUE key, VALUE attributenames)
475
+ {
476
+ VALUE deferred = hyperdex_ruby_client_get_partial(self, spacename, key, attributenames);
477
+ return rb_funcall(deferred, rb_intern("wait"), 0);
478
+ }
479
+
480
+ static VALUE
481
+ hyperdex_ruby_client_put(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
482
+ {
483
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_put, self, spacename, key, attributes);
484
+ }
485
+ VALUE
486
+ hyperdex_ruby_client_wait_put(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
487
+ {
488
+ VALUE deferred = hyperdex_ruby_client_put(self, spacename, key, attributes);
489
+ return rb_funcall(deferred, rb_intern("wait"), 0);
490
+ }
491
+
492
+ static VALUE
493
+ hyperdex_ruby_client_cond_put(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
494
+ {
495
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_put, self, spacename, key, predicates, attributes);
496
+ }
497
+ VALUE
498
+ hyperdex_ruby_client_wait_cond_put(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
499
+ {
500
+ VALUE deferred = hyperdex_ruby_client_cond_put(self, spacename, key, predicates, attributes);
501
+ return rb_funcall(deferred, rb_intern("wait"), 0);
502
+ }
503
+
504
+ static VALUE
505
+ hyperdex_ruby_client_put_if_not_exist(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
506
+ {
507
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_put_if_not_exist, self, spacename, key, attributes);
508
+ }
509
+ VALUE
510
+ hyperdex_ruby_client_wait_put_if_not_exist(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
511
+ {
512
+ VALUE deferred = hyperdex_ruby_client_put_if_not_exist(self, spacename, key, attributes);
513
+ return rb_funcall(deferred, rb_intern("wait"), 0);
514
+ }
515
+
516
+ static VALUE
517
+ hyperdex_ruby_client_del(VALUE self, VALUE spacename, VALUE key)
518
+ {
519
+ return hyperdex_ruby_client_asynccall__spacename_key__status(hyperdex_client_del, self, spacename, key);
520
+ }
521
+ VALUE
522
+ hyperdex_ruby_client_wait_del(VALUE self, VALUE spacename, VALUE key)
523
+ {
524
+ VALUE deferred = hyperdex_ruby_client_del(self, spacename, key);
525
+ return rb_funcall(deferred, rb_intern("wait"), 0);
526
+ }
527
+
528
+ static VALUE
529
+ hyperdex_ruby_client_cond_del(VALUE self, VALUE spacename, VALUE key, VALUE predicates)
530
+ {
531
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates__status(hyperdex_client_cond_del, self, spacename, key, predicates);
532
+ }
533
+ VALUE
534
+ hyperdex_ruby_client_wait_cond_del(VALUE self, VALUE spacename, VALUE key, VALUE predicates)
535
+ {
536
+ VALUE deferred = hyperdex_ruby_client_cond_del(self, spacename, key, predicates);
537
+ return rb_funcall(deferred, rb_intern("wait"), 0);
538
+ }
539
+
540
+ static VALUE
541
+ hyperdex_ruby_client_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
542
+ {
543
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_add, self, spacename, key, attributes);
544
+ }
545
+ VALUE
546
+ hyperdex_ruby_client_wait_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
547
+ {
548
+ VALUE deferred = hyperdex_ruby_client_atomic_add(self, spacename, key, attributes);
549
+ return rb_funcall(deferred, rb_intern("wait"), 0);
550
+ }
551
+
552
+ static VALUE
553
+ hyperdex_ruby_client_cond_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
554
+ {
555
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_add, self, spacename, key, predicates, attributes);
556
+ }
557
+ VALUE
558
+ hyperdex_ruby_client_wait_cond_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
559
+ {
560
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_add(self, spacename, key, predicates, attributes);
561
+ return rb_funcall(deferred, rb_intern("wait"), 0);
562
+ }
563
+
564
+ static VALUE
565
+ hyperdex_ruby_client_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
566
+ {
567
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_sub, self, spacename, key, attributes);
568
+ }
569
+ VALUE
570
+ hyperdex_ruby_client_wait_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
571
+ {
572
+ VALUE deferred = hyperdex_ruby_client_atomic_sub(self, spacename, key, attributes);
573
+ return rb_funcall(deferred, rb_intern("wait"), 0);
574
+ }
575
+
576
+ static VALUE
577
+ hyperdex_ruby_client_cond_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
578
+ {
579
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_sub, self, spacename, key, predicates, attributes);
580
+ }
581
+ VALUE
582
+ hyperdex_ruby_client_wait_cond_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
583
+ {
584
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_sub(self, spacename, key, predicates, attributes);
585
+ return rb_funcall(deferred, rb_intern("wait"), 0);
586
+ }
587
+
588
+ static VALUE
589
+ hyperdex_ruby_client_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
590
+ {
591
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_mul, self, spacename, key, attributes);
592
+ }
593
+ VALUE
594
+ hyperdex_ruby_client_wait_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
595
+ {
596
+ VALUE deferred = hyperdex_ruby_client_atomic_mul(self, spacename, key, attributes);
597
+ return rb_funcall(deferred, rb_intern("wait"), 0);
598
+ }
599
+
600
+ static VALUE
601
+ hyperdex_ruby_client_cond_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
602
+ {
603
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_mul, self, spacename, key, predicates, attributes);
604
+ }
605
+ VALUE
606
+ hyperdex_ruby_client_wait_cond_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
607
+ {
608
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_mul(self, spacename, key, predicates, attributes);
609
+ return rb_funcall(deferred, rb_intern("wait"), 0);
610
+ }
611
+
612
+ static VALUE
613
+ hyperdex_ruby_client_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
614
+ {
615
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_div, self, spacename, key, attributes);
616
+ }
617
+ VALUE
618
+ hyperdex_ruby_client_wait_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
619
+ {
620
+ VALUE deferred = hyperdex_ruby_client_atomic_div(self, spacename, key, attributes);
621
+ return rb_funcall(deferred, rb_intern("wait"), 0);
622
+ }
623
+
624
+ static VALUE
625
+ hyperdex_ruby_client_cond_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
626
+ {
627
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_div, self, spacename, key, predicates, attributes);
628
+ }
629
+ VALUE
630
+ hyperdex_ruby_client_wait_cond_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
631
+ {
632
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_div(self, spacename, key, predicates, attributes);
633
+ return rb_funcall(deferred, rb_intern("wait"), 0);
634
+ }
635
+
636
+ static VALUE
637
+ hyperdex_ruby_client_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
638
+ {
639
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_mod, self, spacename, key, attributes);
640
+ }
641
+ VALUE
642
+ hyperdex_ruby_client_wait_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
643
+ {
644
+ VALUE deferred = hyperdex_ruby_client_atomic_mod(self, spacename, key, attributes);
645
+ return rb_funcall(deferred, rb_intern("wait"), 0);
646
+ }
647
+
648
+ static VALUE
649
+ hyperdex_ruby_client_cond_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
650
+ {
651
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_mod, self, spacename, key, predicates, attributes);
652
+ }
653
+ VALUE
654
+ hyperdex_ruby_client_wait_cond_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
655
+ {
656
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_mod(self, spacename, key, predicates, attributes);
657
+ return rb_funcall(deferred, rb_intern("wait"), 0);
658
+ }
659
+
660
+ static VALUE
661
+ hyperdex_ruby_client_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
662
+ {
663
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_and, self, spacename, key, attributes);
664
+ }
665
+ VALUE
666
+ hyperdex_ruby_client_wait_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
667
+ {
668
+ VALUE deferred = hyperdex_ruby_client_atomic_and(self, spacename, key, attributes);
669
+ return rb_funcall(deferred, rb_intern("wait"), 0);
670
+ }
671
+
672
+ static VALUE
673
+ hyperdex_ruby_client_cond_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
674
+ {
675
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_and, self, spacename, key, predicates, attributes);
676
+ }
677
+ VALUE
678
+ hyperdex_ruby_client_wait_cond_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
679
+ {
680
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_and(self, spacename, key, predicates, attributes);
681
+ return rb_funcall(deferred, rb_intern("wait"), 0);
682
+ }
683
+
684
+ static VALUE
685
+ hyperdex_ruby_client_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
686
+ {
687
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_or, self, spacename, key, attributes);
688
+ }
689
+ VALUE
690
+ hyperdex_ruby_client_wait_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
691
+ {
692
+ VALUE deferred = hyperdex_ruby_client_atomic_or(self, spacename, key, attributes);
693
+ return rb_funcall(deferred, rb_intern("wait"), 0);
694
+ }
695
+
696
+ static VALUE
697
+ hyperdex_ruby_client_cond_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
698
+ {
699
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_or, self, spacename, key, predicates, attributes);
700
+ }
701
+ VALUE
702
+ hyperdex_ruby_client_wait_cond_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
703
+ {
704
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_or(self, spacename, key, predicates, attributes);
705
+ return rb_funcall(deferred, rb_intern("wait"), 0);
706
+ }
707
+
708
+ static VALUE
709
+ hyperdex_ruby_client_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
710
+ {
711
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_atomic_xor, self, spacename, key, attributes);
712
+ }
713
+ VALUE
714
+ hyperdex_ruby_client_wait_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
715
+ {
716
+ VALUE deferred = hyperdex_ruby_client_atomic_xor(self, spacename, key, attributes);
717
+ return rb_funcall(deferred, rb_intern("wait"), 0);
718
+ }
719
+
720
+ static VALUE
721
+ hyperdex_ruby_client_cond_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
722
+ {
723
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_atomic_xor, self, spacename, key, predicates, attributes);
724
+ }
725
+ VALUE
726
+ hyperdex_ruby_client_wait_cond_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
727
+ {
728
+ VALUE deferred = hyperdex_ruby_client_cond_atomic_xor(self, spacename, key, predicates, attributes);
729
+ return rb_funcall(deferred, rb_intern("wait"), 0);
730
+ }
731
+
732
+ static VALUE
733
+ hyperdex_ruby_client_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
734
+ {
735
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_string_prepend, self, spacename, key, attributes);
736
+ }
737
+ VALUE
738
+ hyperdex_ruby_client_wait_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
739
+ {
740
+ VALUE deferred = hyperdex_ruby_client_string_prepend(self, spacename, key, attributes);
741
+ return rb_funcall(deferred, rb_intern("wait"), 0);
742
+ }
743
+
744
+ static VALUE
745
+ hyperdex_ruby_client_cond_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
746
+ {
747
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_string_prepend, self, spacename, key, predicates, attributes);
748
+ }
749
+ VALUE
750
+ hyperdex_ruby_client_wait_cond_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
751
+ {
752
+ VALUE deferred = hyperdex_ruby_client_cond_string_prepend(self, spacename, key, predicates, attributes);
753
+ return rb_funcall(deferred, rb_intern("wait"), 0);
754
+ }
755
+
756
+ static VALUE
757
+ hyperdex_ruby_client_string_append(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
758
+ {
759
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_string_append, self, spacename, key, attributes);
760
+ }
761
+ VALUE
762
+ hyperdex_ruby_client_wait_string_append(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
763
+ {
764
+ VALUE deferred = hyperdex_ruby_client_string_append(self, spacename, key, attributes);
765
+ return rb_funcall(deferred, rb_intern("wait"), 0);
766
+ }
767
+
768
+ static VALUE
769
+ hyperdex_ruby_client_cond_string_append(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
770
+ {
771
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_string_append, self, spacename, key, predicates, attributes);
772
+ }
773
+ VALUE
774
+ hyperdex_ruby_client_wait_cond_string_append(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
775
+ {
776
+ VALUE deferred = hyperdex_ruby_client_cond_string_append(self, spacename, key, predicates, attributes);
777
+ return rb_funcall(deferred, rb_intern("wait"), 0);
778
+ }
779
+
780
+ static VALUE
781
+ hyperdex_ruby_client_list_lpush(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
782
+ {
783
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_list_lpush, self, spacename, key, attributes);
784
+ }
785
+ VALUE
786
+ hyperdex_ruby_client_wait_list_lpush(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
787
+ {
788
+ VALUE deferred = hyperdex_ruby_client_list_lpush(self, spacename, key, attributes);
789
+ return rb_funcall(deferred, rb_intern("wait"), 0);
790
+ }
791
+
792
+ static VALUE
793
+ hyperdex_ruby_client_cond_list_lpush(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
794
+ {
795
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_list_lpush, self, spacename, key, predicates, attributes);
796
+ }
797
+ VALUE
798
+ hyperdex_ruby_client_wait_cond_list_lpush(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
799
+ {
800
+ VALUE deferred = hyperdex_ruby_client_cond_list_lpush(self, spacename, key, predicates, attributes);
801
+ return rb_funcall(deferred, rb_intern("wait"), 0);
802
+ }
803
+
804
+ static VALUE
805
+ hyperdex_ruby_client_list_rpush(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
806
+ {
807
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_list_rpush, self, spacename, key, attributes);
808
+ }
809
+ VALUE
810
+ hyperdex_ruby_client_wait_list_rpush(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
811
+ {
812
+ VALUE deferred = hyperdex_ruby_client_list_rpush(self, spacename, key, attributes);
813
+ return rb_funcall(deferred, rb_intern("wait"), 0);
814
+ }
815
+
816
+ static VALUE
817
+ hyperdex_ruby_client_cond_list_rpush(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
818
+ {
819
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_list_rpush, self, spacename, key, predicates, attributes);
820
+ }
821
+ VALUE
822
+ hyperdex_ruby_client_wait_cond_list_rpush(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
823
+ {
824
+ VALUE deferred = hyperdex_ruby_client_cond_list_rpush(self, spacename, key, predicates, attributes);
825
+ return rb_funcall(deferred, rb_intern("wait"), 0);
826
+ }
827
+
828
+ static VALUE
829
+ hyperdex_ruby_client_set_add(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
830
+ {
831
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_set_add, self, spacename, key, attributes);
832
+ }
833
+ VALUE
834
+ hyperdex_ruby_client_wait_set_add(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
835
+ {
836
+ VALUE deferred = hyperdex_ruby_client_set_add(self, spacename, key, attributes);
837
+ return rb_funcall(deferred, rb_intern("wait"), 0);
838
+ }
839
+
840
+ static VALUE
841
+ hyperdex_ruby_client_cond_set_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
842
+ {
843
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_set_add, self, spacename, key, predicates, attributes);
844
+ }
845
+ VALUE
846
+ hyperdex_ruby_client_wait_cond_set_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
847
+ {
848
+ VALUE deferred = hyperdex_ruby_client_cond_set_add(self, spacename, key, predicates, attributes);
849
+ return rb_funcall(deferred, rb_intern("wait"), 0);
850
+ }
851
+
852
+ static VALUE
853
+ hyperdex_ruby_client_set_remove(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
854
+ {
855
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_set_remove, self, spacename, key, attributes);
856
+ }
857
+ VALUE
858
+ hyperdex_ruby_client_wait_set_remove(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
859
+ {
860
+ VALUE deferred = hyperdex_ruby_client_set_remove(self, spacename, key, attributes);
861
+ return rb_funcall(deferred, rb_intern("wait"), 0);
862
+ }
863
+
864
+ static VALUE
865
+ hyperdex_ruby_client_cond_set_remove(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
866
+ {
867
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_set_remove, self, spacename, key, predicates, attributes);
868
+ }
869
+ VALUE
870
+ hyperdex_ruby_client_wait_cond_set_remove(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
871
+ {
872
+ VALUE deferred = hyperdex_ruby_client_cond_set_remove(self, spacename, key, predicates, attributes);
873
+ return rb_funcall(deferred, rb_intern("wait"), 0);
874
+ }
875
+
876
+ static VALUE
877
+ hyperdex_ruby_client_set_intersect(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
878
+ {
879
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_set_intersect, self, spacename, key, attributes);
880
+ }
881
+ VALUE
882
+ hyperdex_ruby_client_wait_set_intersect(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
883
+ {
884
+ VALUE deferred = hyperdex_ruby_client_set_intersect(self, spacename, key, attributes);
885
+ return rb_funcall(deferred, rb_intern("wait"), 0);
886
+ }
887
+
888
+ static VALUE
889
+ hyperdex_ruby_client_cond_set_intersect(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
890
+ {
891
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_set_intersect, self, spacename, key, predicates, attributes);
892
+ }
893
+ VALUE
894
+ hyperdex_ruby_client_wait_cond_set_intersect(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
895
+ {
896
+ VALUE deferred = hyperdex_ruby_client_cond_set_intersect(self, spacename, key, predicates, attributes);
897
+ return rb_funcall(deferred, rb_intern("wait"), 0);
898
+ }
899
+
900
+ static VALUE
901
+ hyperdex_ruby_client_set_union(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
902
+ {
903
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_set_union, self, spacename, key, attributes);
904
+ }
905
+ VALUE
906
+ hyperdex_ruby_client_wait_set_union(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
907
+ {
908
+ VALUE deferred = hyperdex_ruby_client_set_union(self, spacename, key, attributes);
909
+ return rb_funcall(deferred, rb_intern("wait"), 0);
910
+ }
911
+
912
+ static VALUE
913
+ hyperdex_ruby_client_cond_set_union(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
914
+ {
915
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_set_union, self, spacename, key, predicates, attributes);
916
+ }
917
+ VALUE
918
+ hyperdex_ruby_client_wait_cond_set_union(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
919
+ {
920
+ VALUE deferred = hyperdex_ruby_client_cond_set_union(self, spacename, key, predicates, attributes);
921
+ return rb_funcall(deferred, rb_intern("wait"), 0);
922
+ }
923
+
924
+ static VALUE
925
+ hyperdex_ruby_client_map_add(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
926
+ {
927
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_add, self, spacename, key, mapattributes);
928
+ }
929
+ VALUE
930
+ hyperdex_ruby_client_wait_map_add(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
931
+ {
932
+ VALUE deferred = hyperdex_ruby_client_map_add(self, spacename, key, mapattributes);
933
+ return rb_funcall(deferred, rb_intern("wait"), 0);
934
+ }
935
+
936
+ static VALUE
937
+ hyperdex_ruby_client_cond_map_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
938
+ {
939
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_add, self, spacename, key, predicates, mapattributes);
940
+ }
941
+ VALUE
942
+ hyperdex_ruby_client_wait_cond_map_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
943
+ {
944
+ VALUE deferred = hyperdex_ruby_client_cond_map_add(self, spacename, key, predicates, mapattributes);
945
+ return rb_funcall(deferred, rb_intern("wait"), 0);
946
+ }
947
+
948
+ static VALUE
949
+ hyperdex_ruby_client_map_remove(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
950
+ {
951
+ return hyperdex_ruby_client_asynccall__spacename_key_attributes__status(hyperdex_client_map_remove, self, spacename, key, attributes);
952
+ }
953
+ VALUE
954
+ hyperdex_ruby_client_wait_map_remove(VALUE self, VALUE spacename, VALUE key, VALUE attributes)
955
+ {
956
+ VALUE deferred = hyperdex_ruby_client_map_remove(self, spacename, key, attributes);
957
+ return rb_funcall(deferred, rb_intern("wait"), 0);
958
+ }
959
+
960
+ static VALUE
961
+ hyperdex_ruby_client_cond_map_remove(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
962
+ {
963
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_attributes__status(hyperdex_client_cond_map_remove, self, spacename, key, predicates, attributes);
964
+ }
965
+ VALUE
966
+ hyperdex_ruby_client_wait_cond_map_remove(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE attributes)
967
+ {
968
+ VALUE deferred = hyperdex_ruby_client_cond_map_remove(self, spacename, key, predicates, attributes);
969
+ return rb_funcall(deferred, rb_intern("wait"), 0);
970
+ }
971
+
972
+ static VALUE
973
+ hyperdex_ruby_client_map_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
974
+ {
975
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_add, self, spacename, key, mapattributes);
976
+ }
977
+ VALUE
978
+ hyperdex_ruby_client_wait_map_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
979
+ {
980
+ VALUE deferred = hyperdex_ruby_client_map_atomic_add(self, spacename, key, mapattributes);
981
+ return rb_funcall(deferred, rb_intern("wait"), 0);
982
+ }
983
+
984
+ static VALUE
985
+ hyperdex_ruby_client_cond_map_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
986
+ {
987
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_add, self, spacename, key, predicates, mapattributes);
988
+ }
989
+ VALUE
990
+ hyperdex_ruby_client_wait_cond_map_atomic_add(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
991
+ {
992
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_add(self, spacename, key, predicates, mapattributes);
993
+ return rb_funcall(deferred, rb_intern("wait"), 0);
994
+ }
995
+
996
+ static VALUE
997
+ hyperdex_ruby_client_map_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
998
+ {
999
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_sub, self, spacename, key, mapattributes);
1000
+ }
1001
+ VALUE
1002
+ hyperdex_ruby_client_wait_map_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1003
+ {
1004
+ VALUE deferred = hyperdex_ruby_client_map_atomic_sub(self, spacename, key, mapattributes);
1005
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1006
+ }
1007
+
1008
+ static VALUE
1009
+ hyperdex_ruby_client_cond_map_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1010
+ {
1011
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_sub, self, spacename, key, predicates, mapattributes);
1012
+ }
1013
+ VALUE
1014
+ hyperdex_ruby_client_wait_cond_map_atomic_sub(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1015
+ {
1016
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_sub(self, spacename, key, predicates, mapattributes);
1017
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1018
+ }
1019
+
1020
+ static VALUE
1021
+ hyperdex_ruby_client_map_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1022
+ {
1023
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_mul, self, spacename, key, mapattributes);
1024
+ }
1025
+ VALUE
1026
+ hyperdex_ruby_client_wait_map_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1027
+ {
1028
+ VALUE deferred = hyperdex_ruby_client_map_atomic_mul(self, spacename, key, mapattributes);
1029
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1030
+ }
1031
+
1032
+ static VALUE
1033
+ hyperdex_ruby_client_cond_map_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1034
+ {
1035
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_mul, self, spacename, key, predicates, mapattributes);
1036
+ }
1037
+ VALUE
1038
+ hyperdex_ruby_client_wait_cond_map_atomic_mul(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1039
+ {
1040
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_mul(self, spacename, key, predicates, mapattributes);
1041
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1042
+ }
1043
+
1044
+ static VALUE
1045
+ hyperdex_ruby_client_map_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1046
+ {
1047
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_div, self, spacename, key, mapattributes);
1048
+ }
1049
+ VALUE
1050
+ hyperdex_ruby_client_wait_map_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1051
+ {
1052
+ VALUE deferred = hyperdex_ruby_client_map_atomic_div(self, spacename, key, mapattributes);
1053
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1054
+ }
1055
+
1056
+ static VALUE
1057
+ hyperdex_ruby_client_cond_map_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1058
+ {
1059
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_div, self, spacename, key, predicates, mapattributes);
1060
+ }
1061
+ VALUE
1062
+ hyperdex_ruby_client_wait_cond_map_atomic_div(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1063
+ {
1064
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_div(self, spacename, key, predicates, mapattributes);
1065
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1066
+ }
1067
+
1068
+ static VALUE
1069
+ hyperdex_ruby_client_map_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1070
+ {
1071
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_mod, self, spacename, key, mapattributes);
1072
+ }
1073
+ VALUE
1074
+ hyperdex_ruby_client_wait_map_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1075
+ {
1076
+ VALUE deferred = hyperdex_ruby_client_map_atomic_mod(self, spacename, key, mapattributes);
1077
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1078
+ }
1079
+
1080
+ static VALUE
1081
+ hyperdex_ruby_client_cond_map_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1082
+ {
1083
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_mod, self, spacename, key, predicates, mapattributes);
1084
+ }
1085
+ VALUE
1086
+ hyperdex_ruby_client_wait_cond_map_atomic_mod(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1087
+ {
1088
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_mod(self, spacename, key, predicates, mapattributes);
1089
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1090
+ }
1091
+
1092
+ static VALUE
1093
+ hyperdex_ruby_client_map_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1094
+ {
1095
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_and, self, spacename, key, mapattributes);
1096
+ }
1097
+ VALUE
1098
+ hyperdex_ruby_client_wait_map_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1099
+ {
1100
+ VALUE deferred = hyperdex_ruby_client_map_atomic_and(self, spacename, key, mapattributes);
1101
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1102
+ }
1103
+
1104
+ static VALUE
1105
+ hyperdex_ruby_client_cond_map_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1106
+ {
1107
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_and, self, spacename, key, predicates, mapattributes);
1108
+ }
1109
+ VALUE
1110
+ hyperdex_ruby_client_wait_cond_map_atomic_and(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1111
+ {
1112
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_and(self, spacename, key, predicates, mapattributes);
1113
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1114
+ }
1115
+
1116
+ static VALUE
1117
+ hyperdex_ruby_client_map_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1118
+ {
1119
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_or, self, spacename, key, mapattributes);
1120
+ }
1121
+ VALUE
1122
+ hyperdex_ruby_client_wait_map_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1123
+ {
1124
+ VALUE deferred = hyperdex_ruby_client_map_atomic_or(self, spacename, key, mapattributes);
1125
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1126
+ }
1127
+
1128
+ static VALUE
1129
+ hyperdex_ruby_client_cond_map_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1130
+ {
1131
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_or, self, spacename, key, predicates, mapattributes);
1132
+ }
1133
+ VALUE
1134
+ hyperdex_ruby_client_wait_cond_map_atomic_or(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1135
+ {
1136
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_or(self, spacename, key, predicates, mapattributes);
1137
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1138
+ }
1139
+
1140
+ static VALUE
1141
+ hyperdex_ruby_client_map_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1142
+ {
1143
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_atomic_xor, self, spacename, key, mapattributes);
1144
+ }
1145
+ VALUE
1146
+ hyperdex_ruby_client_wait_map_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1147
+ {
1148
+ VALUE deferred = hyperdex_ruby_client_map_atomic_xor(self, spacename, key, mapattributes);
1149
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1150
+ }
1151
+
1152
+ static VALUE
1153
+ hyperdex_ruby_client_cond_map_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1154
+ {
1155
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_atomic_xor, self, spacename, key, predicates, mapattributes);
1156
+ }
1157
+ VALUE
1158
+ hyperdex_ruby_client_wait_cond_map_atomic_xor(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1159
+ {
1160
+ VALUE deferred = hyperdex_ruby_client_cond_map_atomic_xor(self, spacename, key, predicates, mapattributes);
1161
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1162
+ }
1163
+
1164
+ static VALUE
1165
+ hyperdex_ruby_client_map_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1166
+ {
1167
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_string_prepend, self, spacename, key, mapattributes);
1168
+ }
1169
+ VALUE
1170
+ hyperdex_ruby_client_wait_map_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1171
+ {
1172
+ VALUE deferred = hyperdex_ruby_client_map_string_prepend(self, spacename, key, mapattributes);
1173
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1174
+ }
1175
+
1176
+ static VALUE
1177
+ hyperdex_ruby_client_cond_map_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1178
+ {
1179
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_string_prepend, self, spacename, key, predicates, mapattributes);
1180
+ }
1181
+ VALUE
1182
+ hyperdex_ruby_client_wait_cond_map_string_prepend(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1183
+ {
1184
+ VALUE deferred = hyperdex_ruby_client_cond_map_string_prepend(self, spacename, key, predicates, mapattributes);
1185
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1186
+ }
1187
+
1188
+ static VALUE
1189
+ hyperdex_ruby_client_map_string_append(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1190
+ {
1191
+ return hyperdex_ruby_client_asynccall__spacename_key_mapattributes__status(hyperdex_client_map_string_append, self, spacename, key, mapattributes);
1192
+ }
1193
+ VALUE
1194
+ hyperdex_ruby_client_wait_map_string_append(VALUE self, VALUE spacename, VALUE key, VALUE mapattributes)
1195
+ {
1196
+ VALUE deferred = hyperdex_ruby_client_map_string_append(self, spacename, key, mapattributes);
1197
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1198
+ }
1199
+
1200
+ static VALUE
1201
+ hyperdex_ruby_client_cond_map_string_append(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1202
+ {
1203
+ return hyperdex_ruby_client_asynccall__spacename_key_predicates_mapattributes__status(hyperdex_client_cond_map_string_append, self, spacename, key, predicates, mapattributes);
1204
+ }
1205
+ VALUE
1206
+ hyperdex_ruby_client_wait_cond_map_string_append(VALUE self, VALUE spacename, VALUE key, VALUE predicates, VALUE mapattributes)
1207
+ {
1208
+ VALUE deferred = hyperdex_ruby_client_cond_map_string_append(self, spacename, key, predicates, mapattributes);
1209
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1210
+ }
1211
+
1212
+ static VALUE
1213
+ hyperdex_ruby_client_search(VALUE self, VALUE spacename, VALUE predicates)
1214
+ {
1215
+ return hyperdex_ruby_client_iterator__spacename_predicates__status_attributes(hyperdex_client_search, self, spacename, predicates);
1216
+ }
1217
+
1218
+ static VALUE
1219
+ hyperdex_ruby_client_search_describe(VALUE self, VALUE spacename, VALUE predicates)
1220
+ {
1221
+ return hyperdex_ruby_client_asynccall__spacename_predicates__status_description(hyperdex_client_search_describe, self, spacename, predicates);
1222
+ }
1223
+ VALUE
1224
+ hyperdex_ruby_client_wait_search_describe(VALUE self, VALUE spacename, VALUE predicates)
1225
+ {
1226
+ VALUE deferred = hyperdex_ruby_client_search_describe(self, spacename, predicates);
1227
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1228
+ }
1229
+
1230
+ static VALUE
1231
+ hyperdex_ruby_client_sorted_search(VALUE self, VALUE spacename, VALUE predicates, VALUE sortby, VALUE limit, VALUE maxmin)
1232
+ {
1233
+ return hyperdex_ruby_client_iterator__spacename_predicates_sortby_limit_maxmin__status_attributes(hyperdex_client_sorted_search, self, spacename, predicates, sortby, limit, maxmin);
1234
+ }
1235
+
1236
+ static VALUE
1237
+ hyperdex_ruby_client_group_del(VALUE self, VALUE spacename, VALUE predicates)
1238
+ {
1239
+ return hyperdex_ruby_client_asynccall__spacename_predicates__status(hyperdex_client_group_del, self, spacename, predicates);
1240
+ }
1241
+ VALUE
1242
+ hyperdex_ruby_client_wait_group_del(VALUE self, VALUE spacename, VALUE predicates)
1243
+ {
1244
+ VALUE deferred = hyperdex_ruby_client_group_del(self, spacename, predicates);
1245
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1246
+ }
1247
+
1248
+ static VALUE
1249
+ hyperdex_ruby_client_count(VALUE self, VALUE spacename, VALUE predicates)
1250
+ {
1251
+ return hyperdex_ruby_client_asynccall__spacename_predicates__status_count(hyperdex_client_count, self, spacename, predicates);
1252
+ }
1253
+ VALUE
1254
+ hyperdex_ruby_client_wait_count(VALUE self, VALUE spacename, VALUE predicates)
1255
+ {
1256
+ VALUE deferred = hyperdex_ruby_client_count(self, spacename, predicates);
1257
+ return rb_funcall(deferred, rb_intern("wait"), 0);
1258
+ }