cassandra 0.15.0 → 0.16.0

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.
File without changes
@@ -0,0 +1,2571 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.8.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'cassandra_types'
9
+
10
+ module CassandraThrift
11
+ module Cassandra
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def login(auth_request)
16
+ send_login(auth_request)
17
+ recv_login()
18
+ end
19
+
20
+ def send_login(auth_request)
21
+ send_message('login', Login_args, :auth_request => auth_request)
22
+ end
23
+
24
+ def recv_login()
25
+ result = receive_message(Login_result)
26
+ raise result.authnx unless result.authnx.nil?
27
+ raise result.authzx unless result.authzx.nil?
28
+ return
29
+ end
30
+
31
+ def set_keyspace(keyspace)
32
+ send_set_keyspace(keyspace)
33
+ recv_set_keyspace()
34
+ end
35
+
36
+ def send_set_keyspace(keyspace)
37
+ send_message('set_keyspace', Set_keyspace_args, :keyspace => keyspace)
38
+ end
39
+
40
+ def recv_set_keyspace()
41
+ result = receive_message(Set_keyspace_result)
42
+ raise result.ire unless result.ire.nil?
43
+ return
44
+ end
45
+
46
+ def get(key, column_path, consistency_level)
47
+ send_get(key, column_path, consistency_level)
48
+ return recv_get()
49
+ end
50
+
51
+ def send_get(key, column_path, consistency_level)
52
+ send_message('get', Get_args, :key => key, :column_path => column_path, :consistency_level => consistency_level)
53
+ end
54
+
55
+ def recv_get()
56
+ result = receive_message(Get_result)
57
+ return result.success unless result.success.nil?
58
+ raise result.ire unless result.ire.nil?
59
+ raise result.nfe unless result.nfe.nil?
60
+ raise result.ue unless result.ue.nil?
61
+ raise result.te unless result.te.nil?
62
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
63
+ end
64
+
65
+ def get_slice(key, column_parent, predicate, consistency_level)
66
+ send_get_slice(key, column_parent, predicate, consistency_level)
67
+ return recv_get_slice()
68
+ end
69
+
70
+ def send_get_slice(key, column_parent, predicate, consistency_level)
71
+ send_message('get_slice', Get_slice_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
72
+ end
73
+
74
+ def recv_get_slice()
75
+ result = receive_message(Get_slice_result)
76
+ return result.success unless result.success.nil?
77
+ raise result.ire unless result.ire.nil?
78
+ raise result.ue unless result.ue.nil?
79
+ raise result.te unless result.te.nil?
80
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice failed: unknown result')
81
+ end
82
+
83
+ def get_count(key, column_parent, predicate, consistency_level)
84
+ send_get_count(key, column_parent, predicate, consistency_level)
85
+ return recv_get_count()
86
+ end
87
+
88
+ def send_get_count(key, column_parent, predicate, consistency_level)
89
+ send_message('get_count', Get_count_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
90
+ end
91
+
92
+ def recv_get_count()
93
+ result = receive_message(Get_count_result)
94
+ return result.success unless result.success.nil?
95
+ raise result.ire unless result.ire.nil?
96
+ raise result.ue unless result.ue.nil?
97
+ raise result.te unless result.te.nil?
98
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_count failed: unknown result')
99
+ end
100
+
101
+ def multiget_slice(keys, column_parent, predicate, consistency_level)
102
+ send_multiget_slice(keys, column_parent, predicate, consistency_level)
103
+ return recv_multiget_slice()
104
+ end
105
+
106
+ def send_multiget_slice(keys, column_parent, predicate, consistency_level)
107
+ send_message('multiget_slice', Multiget_slice_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
108
+ end
109
+
110
+ def recv_multiget_slice()
111
+ result = receive_message(Multiget_slice_result)
112
+ return result.success unless result.success.nil?
113
+ raise result.ire unless result.ire.nil?
114
+ raise result.ue unless result.ue.nil?
115
+ raise result.te unless result.te.nil?
116
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_slice failed: unknown result')
117
+ end
118
+
119
+ def multiget_count(keys, column_parent, predicate, consistency_level)
120
+ send_multiget_count(keys, column_parent, predicate, consistency_level)
121
+ return recv_multiget_count()
122
+ end
123
+
124
+ def send_multiget_count(keys, column_parent, predicate, consistency_level)
125
+ send_message('multiget_count', Multiget_count_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
126
+ end
127
+
128
+ def recv_multiget_count()
129
+ result = receive_message(Multiget_count_result)
130
+ return result.success unless result.success.nil?
131
+ raise result.ire unless result.ire.nil?
132
+ raise result.ue unless result.ue.nil?
133
+ raise result.te unless result.te.nil?
134
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_count failed: unknown result')
135
+ end
136
+
137
+ def get_range_slices(column_parent, predicate, range, consistency_level)
138
+ send_get_range_slices(column_parent, predicate, range, consistency_level)
139
+ return recv_get_range_slices()
140
+ end
141
+
142
+ def send_get_range_slices(column_parent, predicate, range, consistency_level)
143
+ send_message('get_range_slices', Get_range_slices_args, :column_parent => column_parent, :predicate => predicate, :range => range, :consistency_level => consistency_level)
144
+ end
145
+
146
+ def recv_get_range_slices()
147
+ result = receive_message(Get_range_slices_result)
148
+ return result.success unless result.success.nil?
149
+ raise result.ire unless result.ire.nil?
150
+ raise result.ue unless result.ue.nil?
151
+ raise result.te unless result.te.nil?
152
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_range_slices failed: unknown result')
153
+ end
154
+
155
+ def get_paged_slice(column_family, range, start_column, consistency_level)
156
+ send_get_paged_slice(column_family, range, start_column, consistency_level)
157
+ return recv_get_paged_slice()
158
+ end
159
+
160
+ def send_get_paged_slice(column_family, range, start_column, consistency_level)
161
+ send_message('get_paged_slice', Get_paged_slice_args, :column_family => column_family, :range => range, :start_column => start_column, :consistency_level => consistency_level)
162
+ end
163
+
164
+ def recv_get_paged_slice()
165
+ result = receive_message(Get_paged_slice_result)
166
+ return result.success unless result.success.nil?
167
+ raise result.ire unless result.ire.nil?
168
+ raise result.ue unless result.ue.nil?
169
+ raise result.te unless result.te.nil?
170
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_paged_slice failed: unknown result')
171
+ end
172
+
173
+ def get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
174
+ send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
175
+ return recv_get_indexed_slices()
176
+ end
177
+
178
+ def send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
179
+ send_message('get_indexed_slices', Get_indexed_slices_args, :column_parent => column_parent, :index_clause => index_clause, :column_predicate => column_predicate, :consistency_level => consistency_level)
180
+ end
181
+
182
+ def recv_get_indexed_slices()
183
+ result = receive_message(Get_indexed_slices_result)
184
+ return result.success unless result.success.nil?
185
+ raise result.ire unless result.ire.nil?
186
+ raise result.ue unless result.ue.nil?
187
+ raise result.te unless result.te.nil?
188
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexed_slices failed: unknown result')
189
+ end
190
+
191
+ def insert(key, column_parent, column, consistency_level)
192
+ send_insert(key, column_parent, column, consistency_level)
193
+ recv_insert()
194
+ end
195
+
196
+ def send_insert(key, column_parent, column, consistency_level)
197
+ send_message('insert', Insert_args, :key => key, :column_parent => column_parent, :column => column, :consistency_level => consistency_level)
198
+ end
199
+
200
+ def recv_insert()
201
+ result = receive_message(Insert_result)
202
+ raise result.ire unless result.ire.nil?
203
+ raise result.ue unless result.ue.nil?
204
+ raise result.te unless result.te.nil?
205
+ return
206
+ end
207
+
208
+ def add(key, column_parent, column, consistency_level)
209
+ send_add(key, column_parent, column, consistency_level)
210
+ recv_add()
211
+ end
212
+
213
+ def send_add(key, column_parent, column, consistency_level)
214
+ send_message('add', Add_args, :key => key, :column_parent => column_parent, :column => column, :consistency_level => consistency_level)
215
+ end
216
+
217
+ def recv_add()
218
+ result = receive_message(Add_result)
219
+ raise result.ire unless result.ire.nil?
220
+ raise result.ue unless result.ue.nil?
221
+ raise result.te unless result.te.nil?
222
+ return
223
+ end
224
+
225
+ def remove(key, column_path, timestamp, consistency_level)
226
+ send_remove(key, column_path, timestamp, consistency_level)
227
+ recv_remove()
228
+ end
229
+
230
+ def send_remove(key, column_path, timestamp, consistency_level)
231
+ send_message('remove', Remove_args, :key => key, :column_path => column_path, :timestamp => timestamp, :consistency_level => consistency_level)
232
+ end
233
+
234
+ def recv_remove()
235
+ result = receive_message(Remove_result)
236
+ raise result.ire unless result.ire.nil?
237
+ raise result.ue unless result.ue.nil?
238
+ raise result.te unless result.te.nil?
239
+ return
240
+ end
241
+
242
+ def remove_counter(key, path, consistency_level)
243
+ send_remove_counter(key, path, consistency_level)
244
+ recv_remove_counter()
245
+ end
246
+
247
+ def send_remove_counter(key, path, consistency_level)
248
+ send_message('remove_counter', Remove_counter_args, :key => key, :path => path, :consistency_level => consistency_level)
249
+ end
250
+
251
+ def recv_remove_counter()
252
+ result = receive_message(Remove_counter_result)
253
+ raise result.ire unless result.ire.nil?
254
+ raise result.ue unless result.ue.nil?
255
+ raise result.te unless result.te.nil?
256
+ return
257
+ end
258
+
259
+ def batch_mutate(mutation_map, consistency_level)
260
+ send_batch_mutate(mutation_map, consistency_level)
261
+ recv_batch_mutate()
262
+ end
263
+
264
+ def send_batch_mutate(mutation_map, consistency_level)
265
+ send_message('batch_mutate', Batch_mutate_args, :mutation_map => mutation_map, :consistency_level => consistency_level)
266
+ end
267
+
268
+ def recv_batch_mutate()
269
+ result = receive_message(Batch_mutate_result)
270
+ raise result.ire unless result.ire.nil?
271
+ raise result.ue unless result.ue.nil?
272
+ raise result.te unless result.te.nil?
273
+ return
274
+ end
275
+
276
+ def truncate(cfname)
277
+ send_truncate(cfname)
278
+ recv_truncate()
279
+ end
280
+
281
+ def send_truncate(cfname)
282
+ send_message('truncate', Truncate_args, :cfname => cfname)
283
+ end
284
+
285
+ def recv_truncate()
286
+ result = receive_message(Truncate_result)
287
+ raise result.ire unless result.ire.nil?
288
+ raise result.ue unless result.ue.nil?
289
+ raise result.te unless result.te.nil?
290
+ return
291
+ end
292
+
293
+ def describe_schema_versions()
294
+ send_describe_schema_versions()
295
+ return recv_describe_schema_versions()
296
+ end
297
+
298
+ def send_describe_schema_versions()
299
+ send_message('describe_schema_versions', Describe_schema_versions_args)
300
+ end
301
+
302
+ def recv_describe_schema_versions()
303
+ result = receive_message(Describe_schema_versions_result)
304
+ return result.success unless result.success.nil?
305
+ raise result.ire unless result.ire.nil?
306
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_schema_versions failed: unknown result')
307
+ end
308
+
309
+ def describe_keyspaces()
310
+ send_describe_keyspaces()
311
+ return recv_describe_keyspaces()
312
+ end
313
+
314
+ def send_describe_keyspaces()
315
+ send_message('describe_keyspaces', Describe_keyspaces_args)
316
+ end
317
+
318
+ def recv_describe_keyspaces()
319
+ result = receive_message(Describe_keyspaces_result)
320
+ return result.success unless result.success.nil?
321
+ raise result.ire unless result.ire.nil?
322
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspaces failed: unknown result')
323
+ end
324
+
325
+ def describe_cluster_name()
326
+ send_describe_cluster_name()
327
+ return recv_describe_cluster_name()
328
+ end
329
+
330
+ def send_describe_cluster_name()
331
+ send_message('describe_cluster_name', Describe_cluster_name_args)
332
+ end
333
+
334
+ def recv_describe_cluster_name()
335
+ result = receive_message(Describe_cluster_name_result)
336
+ return result.success unless result.success.nil?
337
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_cluster_name failed: unknown result')
338
+ end
339
+
340
+ def describe_version()
341
+ send_describe_version()
342
+ return recv_describe_version()
343
+ end
344
+
345
+ def send_describe_version()
346
+ send_message('describe_version', Describe_version_args)
347
+ end
348
+
349
+ def recv_describe_version()
350
+ result = receive_message(Describe_version_result)
351
+ return result.success unless result.success.nil?
352
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_version failed: unknown result')
353
+ end
354
+
355
+ def describe_ring(keyspace)
356
+ send_describe_ring(keyspace)
357
+ return recv_describe_ring()
358
+ end
359
+
360
+ def send_describe_ring(keyspace)
361
+ send_message('describe_ring', Describe_ring_args, :keyspace => keyspace)
362
+ end
363
+
364
+ def recv_describe_ring()
365
+ result = receive_message(Describe_ring_result)
366
+ return result.success unless result.success.nil?
367
+ raise result.ire unless result.ire.nil?
368
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_ring failed: unknown result')
369
+ end
370
+
371
+ def describe_token_map()
372
+ send_describe_token_map()
373
+ return recv_describe_token_map()
374
+ end
375
+
376
+ def send_describe_token_map()
377
+ send_message('describe_token_map', Describe_token_map_args)
378
+ end
379
+
380
+ def recv_describe_token_map()
381
+ result = receive_message(Describe_token_map_result)
382
+ return result.success unless result.success.nil?
383
+ raise result.ire unless result.ire.nil?
384
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_token_map failed: unknown result')
385
+ end
386
+
387
+ def describe_partitioner()
388
+ send_describe_partitioner()
389
+ return recv_describe_partitioner()
390
+ end
391
+
392
+ def send_describe_partitioner()
393
+ send_message('describe_partitioner', Describe_partitioner_args)
394
+ end
395
+
396
+ def recv_describe_partitioner()
397
+ result = receive_message(Describe_partitioner_result)
398
+ return result.success unless result.success.nil?
399
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_partitioner failed: unknown result')
400
+ end
401
+
402
+ def describe_snitch()
403
+ send_describe_snitch()
404
+ return recv_describe_snitch()
405
+ end
406
+
407
+ def send_describe_snitch()
408
+ send_message('describe_snitch', Describe_snitch_args)
409
+ end
410
+
411
+ def recv_describe_snitch()
412
+ result = receive_message(Describe_snitch_result)
413
+ return result.success unless result.success.nil?
414
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_snitch failed: unknown result')
415
+ end
416
+
417
+ def describe_keyspace(keyspace)
418
+ send_describe_keyspace(keyspace)
419
+ return recv_describe_keyspace()
420
+ end
421
+
422
+ def send_describe_keyspace(keyspace)
423
+ send_message('describe_keyspace', Describe_keyspace_args, :keyspace => keyspace)
424
+ end
425
+
426
+ def recv_describe_keyspace()
427
+ result = receive_message(Describe_keyspace_result)
428
+ return result.success unless result.success.nil?
429
+ raise result.nfe unless result.nfe.nil?
430
+ raise result.ire unless result.ire.nil?
431
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspace failed: unknown result')
432
+ end
433
+
434
+ def describe_splits(cfName, start_token, end_token, keys_per_split)
435
+ send_describe_splits(cfName, start_token, end_token, keys_per_split)
436
+ return recv_describe_splits()
437
+ end
438
+
439
+ def send_describe_splits(cfName, start_token, end_token, keys_per_split)
440
+ send_message('describe_splits', Describe_splits_args, :cfName => cfName, :start_token => start_token, :end_token => end_token, :keys_per_split => keys_per_split)
441
+ end
442
+
443
+ def recv_describe_splits()
444
+ result = receive_message(Describe_splits_result)
445
+ return result.success unless result.success.nil?
446
+ raise result.ire unless result.ire.nil?
447
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_splits failed: unknown result')
448
+ end
449
+
450
+ def system_add_column_family(cf_def)
451
+ send_system_add_column_family(cf_def)
452
+ return recv_system_add_column_family()
453
+ end
454
+
455
+ def send_system_add_column_family(cf_def)
456
+ send_message('system_add_column_family', System_add_column_family_args, :cf_def => cf_def)
457
+ end
458
+
459
+ def recv_system_add_column_family()
460
+ result = receive_message(System_add_column_family_result)
461
+ return result.success unless result.success.nil?
462
+ raise result.ire unless result.ire.nil?
463
+ raise result.sde unless result.sde.nil?
464
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_column_family failed: unknown result')
465
+ end
466
+
467
+ def system_drop_column_family(column_family)
468
+ send_system_drop_column_family(column_family)
469
+ return recv_system_drop_column_family()
470
+ end
471
+
472
+ def send_system_drop_column_family(column_family)
473
+ send_message('system_drop_column_family', System_drop_column_family_args, :column_family => column_family)
474
+ end
475
+
476
+ def recv_system_drop_column_family()
477
+ result = receive_message(System_drop_column_family_result)
478
+ return result.success unless result.success.nil?
479
+ raise result.ire unless result.ire.nil?
480
+ raise result.sde unless result.sde.nil?
481
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_column_family failed: unknown result')
482
+ end
483
+
484
+ def system_add_keyspace(ks_def)
485
+ send_system_add_keyspace(ks_def)
486
+ return recv_system_add_keyspace()
487
+ end
488
+
489
+ def send_system_add_keyspace(ks_def)
490
+ send_message('system_add_keyspace', System_add_keyspace_args, :ks_def => ks_def)
491
+ end
492
+
493
+ def recv_system_add_keyspace()
494
+ result = receive_message(System_add_keyspace_result)
495
+ return result.success unless result.success.nil?
496
+ raise result.ire unless result.ire.nil?
497
+ raise result.sde unless result.sde.nil?
498
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_keyspace failed: unknown result')
499
+ end
500
+
501
+ def system_drop_keyspace(keyspace)
502
+ send_system_drop_keyspace(keyspace)
503
+ return recv_system_drop_keyspace()
504
+ end
505
+
506
+ def send_system_drop_keyspace(keyspace)
507
+ send_message('system_drop_keyspace', System_drop_keyspace_args, :keyspace => keyspace)
508
+ end
509
+
510
+ def recv_system_drop_keyspace()
511
+ result = receive_message(System_drop_keyspace_result)
512
+ return result.success unless result.success.nil?
513
+ raise result.ire unless result.ire.nil?
514
+ raise result.sde unless result.sde.nil?
515
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_keyspace failed: unknown result')
516
+ end
517
+
518
+ def system_update_keyspace(ks_def)
519
+ send_system_update_keyspace(ks_def)
520
+ return recv_system_update_keyspace()
521
+ end
522
+
523
+ def send_system_update_keyspace(ks_def)
524
+ send_message('system_update_keyspace', System_update_keyspace_args, :ks_def => ks_def)
525
+ end
526
+
527
+ def recv_system_update_keyspace()
528
+ result = receive_message(System_update_keyspace_result)
529
+ return result.success unless result.success.nil?
530
+ raise result.ire unless result.ire.nil?
531
+ raise result.sde unless result.sde.nil?
532
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_keyspace failed: unknown result')
533
+ end
534
+
535
+ def system_update_column_family(cf_def)
536
+ send_system_update_column_family(cf_def)
537
+ return recv_system_update_column_family()
538
+ end
539
+
540
+ def send_system_update_column_family(cf_def)
541
+ send_message('system_update_column_family', System_update_column_family_args, :cf_def => cf_def)
542
+ end
543
+
544
+ def recv_system_update_column_family()
545
+ result = receive_message(System_update_column_family_result)
546
+ return result.success unless result.success.nil?
547
+ raise result.ire unless result.ire.nil?
548
+ raise result.sde unless result.sde.nil?
549
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_column_family failed: unknown result')
550
+ end
551
+
552
+ def execute_cql_query(query, compression)
553
+ send_execute_cql_query(query, compression)
554
+ return recv_execute_cql_query()
555
+ end
556
+
557
+ def send_execute_cql_query(query, compression)
558
+ send_message('execute_cql_query', Execute_cql_query_args, :query => query, :compression => compression)
559
+ end
560
+
561
+ def recv_execute_cql_query()
562
+ result = receive_message(Execute_cql_query_result)
563
+ return result.success unless result.success.nil?
564
+ raise result.ire unless result.ire.nil?
565
+ raise result.ue unless result.ue.nil?
566
+ raise result.te unless result.te.nil?
567
+ raise result.sde unless result.sde.nil?
568
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_cql_query failed: unknown result')
569
+ end
570
+
571
+ def prepare_cql_query(query, compression)
572
+ send_prepare_cql_query(query, compression)
573
+ return recv_prepare_cql_query()
574
+ end
575
+
576
+ def send_prepare_cql_query(query, compression)
577
+ send_message('prepare_cql_query', Prepare_cql_query_args, :query => query, :compression => compression)
578
+ end
579
+
580
+ def recv_prepare_cql_query()
581
+ result = receive_message(Prepare_cql_query_result)
582
+ return result.success unless result.success.nil?
583
+ raise result.ire unless result.ire.nil?
584
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'prepare_cql_query failed: unknown result')
585
+ end
586
+
587
+ def execute_prepared_cql_query(itemId, values)
588
+ send_execute_prepared_cql_query(itemId, values)
589
+ return recv_execute_prepared_cql_query()
590
+ end
591
+
592
+ def send_execute_prepared_cql_query(itemId, values)
593
+ send_message('execute_prepared_cql_query', Execute_prepared_cql_query_args, :itemId => itemId, :values => values)
594
+ end
595
+
596
+ def recv_execute_prepared_cql_query()
597
+ result = receive_message(Execute_prepared_cql_query_result)
598
+ return result.success unless result.success.nil?
599
+ raise result.ire unless result.ire.nil?
600
+ raise result.ue unless result.ue.nil?
601
+ raise result.te unless result.te.nil?
602
+ raise result.sde unless result.sde.nil?
603
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_prepared_cql_query failed: unknown result')
604
+ end
605
+
606
+ def set_cql_version(version)
607
+ send_set_cql_version(version)
608
+ recv_set_cql_version()
609
+ end
610
+
611
+ def send_set_cql_version(version)
612
+ send_message('set_cql_version', Set_cql_version_args, :version => version)
613
+ end
614
+
615
+ def recv_set_cql_version()
616
+ result = receive_message(Set_cql_version_result)
617
+ raise result.ire unless result.ire.nil?
618
+ return
619
+ end
620
+
621
+ end
622
+
623
+ class Processor
624
+ include ::Thrift::Processor
625
+
626
+ def process_login(seqid, iprot, oprot)
627
+ args = read_args(iprot, Login_args)
628
+ result = Login_result.new()
629
+ begin
630
+ @handler.login(args.auth_request)
631
+ rescue CassandraThrift::AuthenticationException => authnx
632
+ result.authnx = authnx
633
+ rescue CassandraThrift::AuthorizationException => authzx
634
+ result.authzx = authzx
635
+ end
636
+ write_result(result, oprot, 'login', seqid)
637
+ end
638
+
639
+ def process_set_keyspace(seqid, iprot, oprot)
640
+ args = read_args(iprot, Set_keyspace_args)
641
+ result = Set_keyspace_result.new()
642
+ begin
643
+ @handler.set_keyspace(args.keyspace)
644
+ rescue CassandraThrift::InvalidRequestException => ire
645
+ result.ire = ire
646
+ end
647
+ write_result(result, oprot, 'set_keyspace', seqid)
648
+ end
649
+
650
+ def process_get(seqid, iprot, oprot)
651
+ args = read_args(iprot, Get_args)
652
+ result = Get_result.new()
653
+ begin
654
+ result.success = @handler.get(args.key, args.column_path, args.consistency_level)
655
+ rescue CassandraThrift::InvalidRequestException => ire
656
+ result.ire = ire
657
+ rescue CassandraThrift::NotFoundException => nfe
658
+ result.nfe = nfe
659
+ rescue CassandraThrift::UnavailableException => ue
660
+ result.ue = ue
661
+ rescue CassandraThrift::TimedOutException => te
662
+ result.te = te
663
+ end
664
+ write_result(result, oprot, 'get', seqid)
665
+ end
666
+
667
+ def process_get_slice(seqid, iprot, oprot)
668
+ args = read_args(iprot, Get_slice_args)
669
+ result = Get_slice_result.new()
670
+ begin
671
+ result.success = @handler.get_slice(args.key, args.column_parent, args.predicate, args.consistency_level)
672
+ rescue CassandraThrift::InvalidRequestException => ire
673
+ result.ire = ire
674
+ rescue CassandraThrift::UnavailableException => ue
675
+ result.ue = ue
676
+ rescue CassandraThrift::TimedOutException => te
677
+ result.te = te
678
+ end
679
+ write_result(result, oprot, 'get_slice', seqid)
680
+ end
681
+
682
+ def process_get_count(seqid, iprot, oprot)
683
+ args = read_args(iprot, Get_count_args)
684
+ result = Get_count_result.new()
685
+ begin
686
+ result.success = @handler.get_count(args.key, args.column_parent, args.predicate, args.consistency_level)
687
+ rescue CassandraThrift::InvalidRequestException => ire
688
+ result.ire = ire
689
+ rescue CassandraThrift::UnavailableException => ue
690
+ result.ue = ue
691
+ rescue CassandraThrift::TimedOutException => te
692
+ result.te = te
693
+ end
694
+ write_result(result, oprot, 'get_count', seqid)
695
+ end
696
+
697
+ def process_multiget_slice(seqid, iprot, oprot)
698
+ args = read_args(iprot, Multiget_slice_args)
699
+ result = Multiget_slice_result.new()
700
+ begin
701
+ result.success = @handler.multiget_slice(args.keys, args.column_parent, args.predicate, args.consistency_level)
702
+ rescue CassandraThrift::InvalidRequestException => ire
703
+ result.ire = ire
704
+ rescue CassandraThrift::UnavailableException => ue
705
+ result.ue = ue
706
+ rescue CassandraThrift::TimedOutException => te
707
+ result.te = te
708
+ end
709
+ write_result(result, oprot, 'multiget_slice', seqid)
710
+ end
711
+
712
+ def process_multiget_count(seqid, iprot, oprot)
713
+ args = read_args(iprot, Multiget_count_args)
714
+ result = Multiget_count_result.new()
715
+ begin
716
+ result.success = @handler.multiget_count(args.keys, args.column_parent, args.predicate, args.consistency_level)
717
+ rescue CassandraThrift::InvalidRequestException => ire
718
+ result.ire = ire
719
+ rescue CassandraThrift::UnavailableException => ue
720
+ result.ue = ue
721
+ rescue CassandraThrift::TimedOutException => te
722
+ result.te = te
723
+ end
724
+ write_result(result, oprot, 'multiget_count', seqid)
725
+ end
726
+
727
+ def process_get_range_slices(seqid, iprot, oprot)
728
+ args = read_args(iprot, Get_range_slices_args)
729
+ result = Get_range_slices_result.new()
730
+ begin
731
+ result.success = @handler.get_range_slices(args.column_parent, args.predicate, args.range, args.consistency_level)
732
+ rescue CassandraThrift::InvalidRequestException => ire
733
+ result.ire = ire
734
+ rescue CassandraThrift::UnavailableException => ue
735
+ result.ue = ue
736
+ rescue CassandraThrift::TimedOutException => te
737
+ result.te = te
738
+ end
739
+ write_result(result, oprot, 'get_range_slices', seqid)
740
+ end
741
+
742
+ def process_get_paged_slice(seqid, iprot, oprot)
743
+ args = read_args(iprot, Get_paged_slice_args)
744
+ result = Get_paged_slice_result.new()
745
+ begin
746
+ result.success = @handler.get_paged_slice(args.column_family, args.range, args.start_column, args.consistency_level)
747
+ rescue CassandraThrift::InvalidRequestException => ire
748
+ result.ire = ire
749
+ rescue CassandraThrift::UnavailableException => ue
750
+ result.ue = ue
751
+ rescue CassandraThrift::TimedOutException => te
752
+ result.te = te
753
+ end
754
+ write_result(result, oprot, 'get_paged_slice', seqid)
755
+ end
756
+
757
+ def process_get_indexed_slices(seqid, iprot, oprot)
758
+ args = read_args(iprot, Get_indexed_slices_args)
759
+ result = Get_indexed_slices_result.new()
760
+ begin
761
+ result.success = @handler.get_indexed_slices(args.column_parent, args.index_clause, args.column_predicate, args.consistency_level)
762
+ rescue CassandraThrift::InvalidRequestException => ire
763
+ result.ire = ire
764
+ rescue CassandraThrift::UnavailableException => ue
765
+ result.ue = ue
766
+ rescue CassandraThrift::TimedOutException => te
767
+ result.te = te
768
+ end
769
+ write_result(result, oprot, 'get_indexed_slices', seqid)
770
+ end
771
+
772
+ def process_insert(seqid, iprot, oprot)
773
+ args = read_args(iprot, Insert_args)
774
+ result = Insert_result.new()
775
+ begin
776
+ @handler.insert(args.key, args.column_parent, args.column, args.consistency_level)
777
+ rescue CassandraThrift::InvalidRequestException => ire
778
+ result.ire = ire
779
+ rescue CassandraThrift::UnavailableException => ue
780
+ result.ue = ue
781
+ rescue CassandraThrift::TimedOutException => te
782
+ result.te = te
783
+ end
784
+ write_result(result, oprot, 'insert', seqid)
785
+ end
786
+
787
+ def process_add(seqid, iprot, oprot)
788
+ args = read_args(iprot, Add_args)
789
+ result = Add_result.new()
790
+ begin
791
+ @handler.add(args.key, args.column_parent, args.column, args.consistency_level)
792
+ rescue CassandraThrift::InvalidRequestException => ire
793
+ result.ire = ire
794
+ rescue CassandraThrift::UnavailableException => ue
795
+ result.ue = ue
796
+ rescue CassandraThrift::TimedOutException => te
797
+ result.te = te
798
+ end
799
+ write_result(result, oprot, 'add', seqid)
800
+ end
801
+
802
+ def process_remove(seqid, iprot, oprot)
803
+ args = read_args(iprot, Remove_args)
804
+ result = Remove_result.new()
805
+ begin
806
+ @handler.remove(args.key, args.column_path, args.timestamp, args.consistency_level)
807
+ rescue CassandraThrift::InvalidRequestException => ire
808
+ result.ire = ire
809
+ rescue CassandraThrift::UnavailableException => ue
810
+ result.ue = ue
811
+ rescue CassandraThrift::TimedOutException => te
812
+ result.te = te
813
+ end
814
+ write_result(result, oprot, 'remove', seqid)
815
+ end
816
+
817
+ def process_remove_counter(seqid, iprot, oprot)
818
+ args = read_args(iprot, Remove_counter_args)
819
+ result = Remove_counter_result.new()
820
+ begin
821
+ @handler.remove_counter(args.key, args.path, args.consistency_level)
822
+ rescue CassandraThrift::InvalidRequestException => ire
823
+ result.ire = ire
824
+ rescue CassandraThrift::UnavailableException => ue
825
+ result.ue = ue
826
+ rescue CassandraThrift::TimedOutException => te
827
+ result.te = te
828
+ end
829
+ write_result(result, oprot, 'remove_counter', seqid)
830
+ end
831
+
832
+ def process_batch_mutate(seqid, iprot, oprot)
833
+ args = read_args(iprot, Batch_mutate_args)
834
+ result = Batch_mutate_result.new()
835
+ begin
836
+ @handler.batch_mutate(args.mutation_map, args.consistency_level)
837
+ rescue CassandraThrift::InvalidRequestException => ire
838
+ result.ire = ire
839
+ rescue CassandraThrift::UnavailableException => ue
840
+ result.ue = ue
841
+ rescue CassandraThrift::TimedOutException => te
842
+ result.te = te
843
+ end
844
+ write_result(result, oprot, 'batch_mutate', seqid)
845
+ end
846
+
847
+ def process_truncate(seqid, iprot, oprot)
848
+ args = read_args(iprot, Truncate_args)
849
+ result = Truncate_result.new()
850
+ begin
851
+ @handler.truncate(args.cfname)
852
+ rescue CassandraThrift::InvalidRequestException => ire
853
+ result.ire = ire
854
+ rescue CassandraThrift::UnavailableException => ue
855
+ result.ue = ue
856
+ rescue CassandraThrift::TimedOutException => te
857
+ result.te = te
858
+ end
859
+ write_result(result, oprot, 'truncate', seqid)
860
+ end
861
+
862
+ def process_describe_schema_versions(seqid, iprot, oprot)
863
+ args = read_args(iprot, Describe_schema_versions_args)
864
+ result = Describe_schema_versions_result.new()
865
+ begin
866
+ result.success = @handler.describe_schema_versions()
867
+ rescue CassandraThrift::InvalidRequestException => ire
868
+ result.ire = ire
869
+ end
870
+ write_result(result, oprot, 'describe_schema_versions', seqid)
871
+ end
872
+
873
+ def process_describe_keyspaces(seqid, iprot, oprot)
874
+ args = read_args(iprot, Describe_keyspaces_args)
875
+ result = Describe_keyspaces_result.new()
876
+ begin
877
+ result.success = @handler.describe_keyspaces()
878
+ rescue CassandraThrift::InvalidRequestException => ire
879
+ result.ire = ire
880
+ end
881
+ write_result(result, oprot, 'describe_keyspaces', seqid)
882
+ end
883
+
884
+ def process_describe_cluster_name(seqid, iprot, oprot)
885
+ args = read_args(iprot, Describe_cluster_name_args)
886
+ result = Describe_cluster_name_result.new()
887
+ result.success = @handler.describe_cluster_name()
888
+ write_result(result, oprot, 'describe_cluster_name', seqid)
889
+ end
890
+
891
+ def process_describe_version(seqid, iprot, oprot)
892
+ args = read_args(iprot, Describe_version_args)
893
+ result = Describe_version_result.new()
894
+ result.success = @handler.describe_version()
895
+ write_result(result, oprot, 'describe_version', seqid)
896
+ end
897
+
898
+ def process_describe_ring(seqid, iprot, oprot)
899
+ args = read_args(iprot, Describe_ring_args)
900
+ result = Describe_ring_result.new()
901
+ begin
902
+ result.success = @handler.describe_ring(args.keyspace)
903
+ rescue CassandraThrift::InvalidRequestException => ire
904
+ result.ire = ire
905
+ end
906
+ write_result(result, oprot, 'describe_ring', seqid)
907
+ end
908
+
909
+ def process_describe_token_map(seqid, iprot, oprot)
910
+ args = read_args(iprot, Describe_token_map_args)
911
+ result = Describe_token_map_result.new()
912
+ begin
913
+ result.success = @handler.describe_token_map()
914
+ rescue CassandraThrift::InvalidRequestException => ire
915
+ result.ire = ire
916
+ end
917
+ write_result(result, oprot, 'describe_token_map', seqid)
918
+ end
919
+
920
+ def process_describe_partitioner(seqid, iprot, oprot)
921
+ args = read_args(iprot, Describe_partitioner_args)
922
+ result = Describe_partitioner_result.new()
923
+ result.success = @handler.describe_partitioner()
924
+ write_result(result, oprot, 'describe_partitioner', seqid)
925
+ end
926
+
927
+ def process_describe_snitch(seqid, iprot, oprot)
928
+ args = read_args(iprot, Describe_snitch_args)
929
+ result = Describe_snitch_result.new()
930
+ result.success = @handler.describe_snitch()
931
+ write_result(result, oprot, 'describe_snitch', seqid)
932
+ end
933
+
934
+ def process_describe_keyspace(seqid, iprot, oprot)
935
+ args = read_args(iprot, Describe_keyspace_args)
936
+ result = Describe_keyspace_result.new()
937
+ begin
938
+ result.success = @handler.describe_keyspace(args.keyspace)
939
+ rescue CassandraThrift::NotFoundException => nfe
940
+ result.nfe = nfe
941
+ rescue CassandraThrift::InvalidRequestException => ire
942
+ result.ire = ire
943
+ end
944
+ write_result(result, oprot, 'describe_keyspace', seqid)
945
+ end
946
+
947
+ def process_describe_splits(seqid, iprot, oprot)
948
+ args = read_args(iprot, Describe_splits_args)
949
+ result = Describe_splits_result.new()
950
+ begin
951
+ result.success = @handler.describe_splits(args.cfName, args.start_token, args.end_token, args.keys_per_split)
952
+ rescue CassandraThrift::InvalidRequestException => ire
953
+ result.ire = ire
954
+ end
955
+ write_result(result, oprot, 'describe_splits', seqid)
956
+ end
957
+
958
+ def process_system_add_column_family(seqid, iprot, oprot)
959
+ args = read_args(iprot, System_add_column_family_args)
960
+ result = System_add_column_family_result.new()
961
+ begin
962
+ result.success = @handler.system_add_column_family(args.cf_def)
963
+ rescue CassandraThrift::InvalidRequestException => ire
964
+ result.ire = ire
965
+ rescue CassandraThrift::SchemaDisagreementException => sde
966
+ result.sde = sde
967
+ end
968
+ write_result(result, oprot, 'system_add_column_family', seqid)
969
+ end
970
+
971
+ def process_system_drop_column_family(seqid, iprot, oprot)
972
+ args = read_args(iprot, System_drop_column_family_args)
973
+ result = System_drop_column_family_result.new()
974
+ begin
975
+ result.success = @handler.system_drop_column_family(args.column_family)
976
+ rescue CassandraThrift::InvalidRequestException => ire
977
+ result.ire = ire
978
+ rescue CassandraThrift::SchemaDisagreementException => sde
979
+ result.sde = sde
980
+ end
981
+ write_result(result, oprot, 'system_drop_column_family', seqid)
982
+ end
983
+
984
+ def process_system_add_keyspace(seqid, iprot, oprot)
985
+ args = read_args(iprot, System_add_keyspace_args)
986
+ result = System_add_keyspace_result.new()
987
+ begin
988
+ result.success = @handler.system_add_keyspace(args.ks_def)
989
+ rescue CassandraThrift::InvalidRequestException => ire
990
+ result.ire = ire
991
+ rescue CassandraThrift::SchemaDisagreementException => sde
992
+ result.sde = sde
993
+ end
994
+ write_result(result, oprot, 'system_add_keyspace', seqid)
995
+ end
996
+
997
+ def process_system_drop_keyspace(seqid, iprot, oprot)
998
+ args = read_args(iprot, System_drop_keyspace_args)
999
+ result = System_drop_keyspace_result.new()
1000
+ begin
1001
+ result.success = @handler.system_drop_keyspace(args.keyspace)
1002
+ rescue CassandraThrift::InvalidRequestException => ire
1003
+ result.ire = ire
1004
+ rescue CassandraThrift::SchemaDisagreementException => sde
1005
+ result.sde = sde
1006
+ end
1007
+ write_result(result, oprot, 'system_drop_keyspace', seqid)
1008
+ end
1009
+
1010
+ def process_system_update_keyspace(seqid, iprot, oprot)
1011
+ args = read_args(iprot, System_update_keyspace_args)
1012
+ result = System_update_keyspace_result.new()
1013
+ begin
1014
+ result.success = @handler.system_update_keyspace(args.ks_def)
1015
+ rescue CassandraThrift::InvalidRequestException => ire
1016
+ result.ire = ire
1017
+ rescue CassandraThrift::SchemaDisagreementException => sde
1018
+ result.sde = sde
1019
+ end
1020
+ write_result(result, oprot, 'system_update_keyspace', seqid)
1021
+ end
1022
+
1023
+ def process_system_update_column_family(seqid, iprot, oprot)
1024
+ args = read_args(iprot, System_update_column_family_args)
1025
+ result = System_update_column_family_result.new()
1026
+ begin
1027
+ result.success = @handler.system_update_column_family(args.cf_def)
1028
+ rescue CassandraThrift::InvalidRequestException => ire
1029
+ result.ire = ire
1030
+ rescue CassandraThrift::SchemaDisagreementException => sde
1031
+ result.sde = sde
1032
+ end
1033
+ write_result(result, oprot, 'system_update_column_family', seqid)
1034
+ end
1035
+
1036
+ def process_execute_cql_query(seqid, iprot, oprot)
1037
+ args = read_args(iprot, Execute_cql_query_args)
1038
+ result = Execute_cql_query_result.new()
1039
+ begin
1040
+ result.success = @handler.execute_cql_query(args.query, args.compression)
1041
+ rescue CassandraThrift::InvalidRequestException => ire
1042
+ result.ire = ire
1043
+ rescue CassandraThrift::UnavailableException => ue
1044
+ result.ue = ue
1045
+ rescue CassandraThrift::TimedOutException => te
1046
+ result.te = te
1047
+ rescue CassandraThrift::SchemaDisagreementException => sde
1048
+ result.sde = sde
1049
+ end
1050
+ write_result(result, oprot, 'execute_cql_query', seqid)
1051
+ end
1052
+
1053
+ def process_prepare_cql_query(seqid, iprot, oprot)
1054
+ args = read_args(iprot, Prepare_cql_query_args)
1055
+ result = Prepare_cql_query_result.new()
1056
+ begin
1057
+ result.success = @handler.prepare_cql_query(args.query, args.compression)
1058
+ rescue CassandraThrift::InvalidRequestException => ire
1059
+ result.ire = ire
1060
+ end
1061
+ write_result(result, oprot, 'prepare_cql_query', seqid)
1062
+ end
1063
+
1064
+ def process_execute_prepared_cql_query(seqid, iprot, oprot)
1065
+ args = read_args(iprot, Execute_prepared_cql_query_args)
1066
+ result = Execute_prepared_cql_query_result.new()
1067
+ begin
1068
+ result.success = @handler.execute_prepared_cql_query(args.itemId, args.values)
1069
+ rescue CassandraThrift::InvalidRequestException => ire
1070
+ result.ire = ire
1071
+ rescue CassandraThrift::UnavailableException => ue
1072
+ result.ue = ue
1073
+ rescue CassandraThrift::TimedOutException => te
1074
+ result.te = te
1075
+ rescue CassandraThrift::SchemaDisagreementException => sde
1076
+ result.sde = sde
1077
+ end
1078
+ write_result(result, oprot, 'execute_prepared_cql_query', seqid)
1079
+ end
1080
+
1081
+ def process_set_cql_version(seqid, iprot, oprot)
1082
+ args = read_args(iprot, Set_cql_version_args)
1083
+ result = Set_cql_version_result.new()
1084
+ begin
1085
+ @handler.set_cql_version(args.version)
1086
+ rescue CassandraThrift::InvalidRequestException => ire
1087
+ result.ire = ire
1088
+ end
1089
+ write_result(result, oprot, 'set_cql_version', seqid)
1090
+ end
1091
+
1092
+ end
1093
+
1094
+ # HELPER FUNCTIONS AND STRUCTURES
1095
+
1096
+ class Login_args
1097
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1098
+ AUTH_REQUEST = 1
1099
+
1100
+ FIELDS = {
1101
+ AUTH_REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'auth_request', :class => CassandraThrift::AuthenticationRequest}
1102
+ }
1103
+
1104
+ def struct_fields; FIELDS; end
1105
+
1106
+ def validate
1107
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field auth_request is unset!') unless @auth_request
1108
+ end
1109
+
1110
+ ::Thrift::Struct.generate_accessors self
1111
+ end
1112
+
1113
+ class Login_result
1114
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1115
+ AUTHNX = 1
1116
+ AUTHZX = 2
1117
+
1118
+ FIELDS = {
1119
+ AUTHNX => {:type => ::Thrift::Types::STRUCT, :name => 'authnx', :class => CassandraThrift::AuthenticationException},
1120
+ AUTHZX => {:type => ::Thrift::Types::STRUCT, :name => 'authzx', :class => CassandraThrift::AuthorizationException}
1121
+ }
1122
+
1123
+ def struct_fields; FIELDS; end
1124
+
1125
+ def validate
1126
+ end
1127
+
1128
+ ::Thrift::Struct.generate_accessors self
1129
+ end
1130
+
1131
+ class Set_keyspace_args
1132
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1133
+ KEYSPACE = 1
1134
+
1135
+ FIELDS = {
1136
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
1137
+ }
1138
+
1139
+ def struct_fields; FIELDS; end
1140
+
1141
+ def validate
1142
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
1143
+ end
1144
+
1145
+ ::Thrift::Struct.generate_accessors self
1146
+ end
1147
+
1148
+ class Set_keyspace_result
1149
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1150
+ IRE = 1
1151
+
1152
+ FIELDS = {
1153
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1154
+ }
1155
+
1156
+ def struct_fields; FIELDS; end
1157
+
1158
+ def validate
1159
+ end
1160
+
1161
+ ::Thrift::Struct.generate_accessors self
1162
+ end
1163
+
1164
+ class Get_args
1165
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1166
+ KEY = 1
1167
+ COLUMN_PATH = 2
1168
+ CONSISTENCY_LEVEL = 3
1169
+
1170
+ FIELDS = {
1171
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1172
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
1173
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1174
+ }
1175
+
1176
+ def struct_fields; FIELDS; end
1177
+
1178
+ def validate
1179
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1180
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
1181
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1182
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1183
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1184
+ end
1185
+ end
1186
+
1187
+ ::Thrift::Struct.generate_accessors self
1188
+ end
1189
+
1190
+ class Get_result
1191
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1192
+ SUCCESS = 0
1193
+ IRE = 1
1194
+ NFE = 2
1195
+ UE = 3
1196
+ TE = 4
1197
+
1198
+ FIELDS = {
1199
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::ColumnOrSuperColumn},
1200
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1201
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException},
1202
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1203
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1204
+ }
1205
+
1206
+ def struct_fields; FIELDS; end
1207
+
1208
+ def validate
1209
+ end
1210
+
1211
+ ::Thrift::Struct.generate_accessors self
1212
+ end
1213
+
1214
+ class Get_slice_args
1215
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1216
+ KEY = 1
1217
+ COLUMN_PARENT = 2
1218
+ PREDICATE = 3
1219
+ CONSISTENCY_LEVEL = 4
1220
+
1221
+ FIELDS = {
1222
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1223
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1224
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1225
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1226
+ }
1227
+
1228
+ def struct_fields; FIELDS; end
1229
+
1230
+ def validate
1231
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1232
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1233
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1234
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1235
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1236
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1237
+ end
1238
+ end
1239
+
1240
+ ::Thrift::Struct.generate_accessors self
1241
+ end
1242
+
1243
+ class Get_slice_result
1244
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1245
+ SUCCESS = 0
1246
+ IRE = 1
1247
+ UE = 2
1248
+ TE = 3
1249
+
1250
+ FIELDS = {
1251
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}},
1252
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1253
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1254
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1255
+ }
1256
+
1257
+ def struct_fields; FIELDS; end
1258
+
1259
+ def validate
1260
+ end
1261
+
1262
+ ::Thrift::Struct.generate_accessors self
1263
+ end
1264
+
1265
+ class Get_count_args
1266
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1267
+ KEY = 1
1268
+ COLUMN_PARENT = 2
1269
+ PREDICATE = 3
1270
+ CONSISTENCY_LEVEL = 4
1271
+
1272
+ FIELDS = {
1273
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1274
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1275
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1276
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1277
+ }
1278
+
1279
+ def struct_fields; FIELDS; end
1280
+
1281
+ def validate
1282
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1283
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1284
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1285
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1286
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1287
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1288
+ end
1289
+ end
1290
+
1291
+ ::Thrift::Struct.generate_accessors self
1292
+ end
1293
+
1294
+ class Get_count_result
1295
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1296
+ SUCCESS = 0
1297
+ IRE = 1
1298
+ UE = 2
1299
+ TE = 3
1300
+
1301
+ FIELDS = {
1302
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1303
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1304
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1305
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1306
+ }
1307
+
1308
+ def struct_fields; FIELDS; end
1309
+
1310
+ def validate
1311
+ end
1312
+
1313
+ ::Thrift::Struct.generate_accessors self
1314
+ end
1315
+
1316
+ class Multiget_slice_args
1317
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1318
+ KEYS = 1
1319
+ COLUMN_PARENT = 2
1320
+ PREDICATE = 3
1321
+ CONSISTENCY_LEVEL = 4
1322
+
1323
+ FIELDS = {
1324
+ KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1325
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1326
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1327
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1328
+ }
1329
+
1330
+ def struct_fields; FIELDS; end
1331
+
1332
+ def validate
1333
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
1334
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1335
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1336
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1337
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1338
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1339
+ end
1340
+ end
1341
+
1342
+ ::Thrift::Struct.generate_accessors self
1343
+ end
1344
+
1345
+ class Multiget_slice_result
1346
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1347
+ SUCCESS = 0
1348
+ IRE = 1
1349
+ UE = 2
1350
+ TE = 3
1351
+
1352
+ FIELDS = {
1353
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}}},
1354
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1355
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1356
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1357
+ }
1358
+
1359
+ def struct_fields; FIELDS; end
1360
+
1361
+ def validate
1362
+ end
1363
+
1364
+ ::Thrift::Struct.generate_accessors self
1365
+ end
1366
+
1367
+ class Multiget_count_args
1368
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1369
+ KEYS = 1
1370
+ COLUMN_PARENT = 2
1371
+ PREDICATE = 3
1372
+ CONSISTENCY_LEVEL = 4
1373
+
1374
+ FIELDS = {
1375
+ KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1376
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1377
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1378
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1379
+ }
1380
+
1381
+ def struct_fields; FIELDS; end
1382
+
1383
+ def validate
1384
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
1385
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1386
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1387
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1388
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1389
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1390
+ end
1391
+ end
1392
+
1393
+ ::Thrift::Struct.generate_accessors self
1394
+ end
1395
+
1396
+ class Multiget_count_result
1397
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1398
+ SUCCESS = 0
1399
+ IRE = 1
1400
+ UE = 2
1401
+ TE = 3
1402
+
1403
+ FIELDS = {
1404
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::I32}},
1405
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1406
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1407
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1408
+ }
1409
+
1410
+ def struct_fields; FIELDS; end
1411
+
1412
+ def validate
1413
+ end
1414
+
1415
+ ::Thrift::Struct.generate_accessors self
1416
+ end
1417
+
1418
+ class Get_range_slices_args
1419
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1420
+ COLUMN_PARENT = 1
1421
+ PREDICATE = 2
1422
+ RANGE = 3
1423
+ CONSISTENCY_LEVEL = 4
1424
+
1425
+ FIELDS = {
1426
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1427
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1428
+ RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraThrift::KeyRange},
1429
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1430
+ }
1431
+
1432
+ def struct_fields; FIELDS; end
1433
+
1434
+ def validate
1435
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1436
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1437
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
1438
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1439
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1440
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1441
+ end
1442
+ end
1443
+
1444
+ ::Thrift::Struct.generate_accessors self
1445
+ end
1446
+
1447
+ class Get_range_slices_result
1448
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1449
+ SUCCESS = 0
1450
+ IRE = 1
1451
+ UE = 2
1452
+ TE = 3
1453
+
1454
+ FIELDS = {
1455
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
1456
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1457
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1458
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1459
+ }
1460
+
1461
+ def struct_fields; FIELDS; end
1462
+
1463
+ def validate
1464
+ end
1465
+
1466
+ ::Thrift::Struct.generate_accessors self
1467
+ end
1468
+
1469
+ class Get_paged_slice_args
1470
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1471
+ COLUMN_FAMILY = 1
1472
+ RANGE = 2
1473
+ START_COLUMN = 3
1474
+ CONSISTENCY_LEVEL = 4
1475
+
1476
+ FIELDS = {
1477
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
1478
+ RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraThrift::KeyRange},
1479
+ START_COLUMN => {:type => ::Thrift::Types::STRING, :name => 'start_column', :binary => true},
1480
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1481
+ }
1482
+
1483
+ def struct_fields; FIELDS; end
1484
+
1485
+ def validate
1486
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
1487
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
1488
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_column is unset!') unless @start_column
1489
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1490
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1491
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1492
+ end
1493
+ end
1494
+
1495
+ ::Thrift::Struct.generate_accessors self
1496
+ end
1497
+
1498
+ class Get_paged_slice_result
1499
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1500
+ SUCCESS = 0
1501
+ IRE = 1
1502
+ UE = 2
1503
+ TE = 3
1504
+
1505
+ FIELDS = {
1506
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
1507
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1508
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1509
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1510
+ }
1511
+
1512
+ def struct_fields; FIELDS; end
1513
+
1514
+ def validate
1515
+ end
1516
+
1517
+ ::Thrift::Struct.generate_accessors self
1518
+ end
1519
+
1520
+ class Get_indexed_slices_args
1521
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1522
+ COLUMN_PARENT = 1
1523
+ INDEX_CLAUSE = 2
1524
+ COLUMN_PREDICATE = 3
1525
+ CONSISTENCY_LEVEL = 4
1526
+
1527
+ FIELDS = {
1528
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1529
+ INDEX_CLAUSE => {:type => ::Thrift::Types::STRUCT, :name => 'index_clause', :class => CassandraThrift::IndexClause},
1530
+ COLUMN_PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'column_predicate', :class => CassandraThrift::SlicePredicate},
1531
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1532
+ }
1533
+
1534
+ def struct_fields; FIELDS; end
1535
+
1536
+ def validate
1537
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1538
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field index_clause is unset!') unless @index_clause
1539
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_predicate is unset!') unless @column_predicate
1540
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1541
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1542
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1543
+ end
1544
+ end
1545
+
1546
+ ::Thrift::Struct.generate_accessors self
1547
+ end
1548
+
1549
+ class Get_indexed_slices_result
1550
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1551
+ SUCCESS = 0
1552
+ IRE = 1
1553
+ UE = 2
1554
+ TE = 3
1555
+
1556
+ FIELDS = {
1557
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
1558
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1559
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1560
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1561
+ }
1562
+
1563
+ def struct_fields; FIELDS; end
1564
+
1565
+ def validate
1566
+ end
1567
+
1568
+ ::Thrift::Struct.generate_accessors self
1569
+ end
1570
+
1571
+ class Insert_args
1572
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1573
+ KEY = 1
1574
+ COLUMN_PARENT = 2
1575
+ COLUMN = 3
1576
+ CONSISTENCY_LEVEL = 4
1577
+
1578
+ FIELDS = {
1579
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1580
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1581
+ COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraThrift::Column},
1582
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1583
+ }
1584
+
1585
+ def struct_fields; FIELDS; end
1586
+
1587
+ def validate
1588
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1589
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1590
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
1591
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1592
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1593
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1594
+ end
1595
+ end
1596
+
1597
+ ::Thrift::Struct.generate_accessors self
1598
+ end
1599
+
1600
+ class Insert_result
1601
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1602
+ IRE = 1
1603
+ UE = 2
1604
+ TE = 3
1605
+
1606
+ FIELDS = {
1607
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1608
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1609
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1610
+ }
1611
+
1612
+ def struct_fields; FIELDS; end
1613
+
1614
+ def validate
1615
+ end
1616
+
1617
+ ::Thrift::Struct.generate_accessors self
1618
+ end
1619
+
1620
+ class Add_args
1621
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1622
+ KEY = 1
1623
+ COLUMN_PARENT = 2
1624
+ COLUMN = 3
1625
+ CONSISTENCY_LEVEL = 4
1626
+
1627
+ FIELDS = {
1628
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1629
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1630
+ COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraThrift::CounterColumn},
1631
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1632
+ }
1633
+
1634
+ def struct_fields; FIELDS; end
1635
+
1636
+ def validate
1637
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1638
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1639
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
1640
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1641
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1642
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1643
+ end
1644
+ end
1645
+
1646
+ ::Thrift::Struct.generate_accessors self
1647
+ end
1648
+
1649
+ class Add_result
1650
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1651
+ IRE = 1
1652
+ UE = 2
1653
+ TE = 3
1654
+
1655
+ FIELDS = {
1656
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1657
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1658
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1659
+ }
1660
+
1661
+ def struct_fields; FIELDS; end
1662
+
1663
+ def validate
1664
+ end
1665
+
1666
+ ::Thrift::Struct.generate_accessors self
1667
+ end
1668
+
1669
+ class Remove_args
1670
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1671
+ KEY = 1
1672
+ COLUMN_PATH = 2
1673
+ TIMESTAMP = 3
1674
+ CONSISTENCY_LEVEL = 4
1675
+
1676
+ FIELDS = {
1677
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1678
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
1679
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1680
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1681
+ }
1682
+
1683
+ def struct_fields; FIELDS; end
1684
+
1685
+ def validate
1686
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1687
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
1688
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
1689
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1690
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1691
+ end
1692
+ end
1693
+
1694
+ ::Thrift::Struct.generate_accessors self
1695
+ end
1696
+
1697
+ class Remove_result
1698
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1699
+ IRE = 1
1700
+ UE = 2
1701
+ TE = 3
1702
+
1703
+ FIELDS = {
1704
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1705
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1706
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1707
+ }
1708
+
1709
+ def struct_fields; FIELDS; end
1710
+
1711
+ def validate
1712
+ end
1713
+
1714
+ ::Thrift::Struct.generate_accessors self
1715
+ end
1716
+
1717
+ class Remove_counter_args
1718
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1719
+ KEY = 1
1720
+ PATH = 2
1721
+ CONSISTENCY_LEVEL = 3
1722
+
1723
+ FIELDS = {
1724
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1725
+ PATH => {:type => ::Thrift::Types::STRUCT, :name => 'path', :class => CassandraThrift::ColumnPath},
1726
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1727
+ }
1728
+
1729
+ def struct_fields; FIELDS; end
1730
+
1731
+ def validate
1732
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1733
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field path is unset!') unless @path
1734
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1735
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1736
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1737
+ end
1738
+ end
1739
+
1740
+ ::Thrift::Struct.generate_accessors self
1741
+ end
1742
+
1743
+ class Remove_counter_result
1744
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1745
+ IRE = 1
1746
+ UE = 2
1747
+ TE = 3
1748
+
1749
+ FIELDS = {
1750
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1751
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1752
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1753
+ }
1754
+
1755
+ def struct_fields; FIELDS; end
1756
+
1757
+ def validate
1758
+ end
1759
+
1760
+ ::Thrift::Struct.generate_accessors self
1761
+ end
1762
+
1763
+ class Batch_mutate_args
1764
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1765
+ MUTATION_MAP = 1
1766
+ CONSISTENCY_LEVEL = 2
1767
+
1768
+ FIELDS = {
1769
+ MUTATION_MAP => {:type => ::Thrift::Types::MAP, :name => 'mutation_map', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::Mutation}}}},
1770
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1771
+ }
1772
+
1773
+ def struct_fields; FIELDS; end
1774
+
1775
+ def validate
1776
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field mutation_map is unset!') unless @mutation_map
1777
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1778
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1779
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1780
+ end
1781
+ end
1782
+
1783
+ ::Thrift::Struct.generate_accessors self
1784
+ end
1785
+
1786
+ class Batch_mutate_result
1787
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1788
+ IRE = 1
1789
+ UE = 2
1790
+ TE = 3
1791
+
1792
+ FIELDS = {
1793
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1794
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1795
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1796
+ }
1797
+
1798
+ def struct_fields; FIELDS; end
1799
+
1800
+ def validate
1801
+ end
1802
+
1803
+ ::Thrift::Struct.generate_accessors self
1804
+ end
1805
+
1806
+ class Truncate_args
1807
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1808
+ CFNAME = 1
1809
+
1810
+ FIELDS = {
1811
+ CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfname'}
1812
+ }
1813
+
1814
+ def struct_fields; FIELDS; end
1815
+
1816
+ def validate
1817
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfname is unset!') unless @cfname
1818
+ end
1819
+
1820
+ ::Thrift::Struct.generate_accessors self
1821
+ end
1822
+
1823
+ class Truncate_result
1824
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1825
+ IRE = 1
1826
+ UE = 2
1827
+ TE = 3
1828
+
1829
+ FIELDS = {
1830
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1831
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1832
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1833
+ }
1834
+
1835
+ def struct_fields; FIELDS; end
1836
+
1837
+ def validate
1838
+ end
1839
+
1840
+ ::Thrift::Struct.generate_accessors self
1841
+ end
1842
+
1843
+ class Describe_schema_versions_args
1844
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1845
+
1846
+ FIELDS = {
1847
+
1848
+ }
1849
+
1850
+ def struct_fields; FIELDS; end
1851
+
1852
+ def validate
1853
+ end
1854
+
1855
+ ::Thrift::Struct.generate_accessors self
1856
+ end
1857
+
1858
+ class Describe_schema_versions_result
1859
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1860
+ SUCCESS = 0
1861
+ IRE = 1
1862
+
1863
+ FIELDS = {
1864
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
1865
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1866
+ }
1867
+
1868
+ def struct_fields; FIELDS; end
1869
+
1870
+ def validate
1871
+ end
1872
+
1873
+ ::Thrift::Struct.generate_accessors self
1874
+ end
1875
+
1876
+ class Describe_keyspaces_args
1877
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1878
+
1879
+ FIELDS = {
1880
+
1881
+ }
1882
+
1883
+ def struct_fields; FIELDS; end
1884
+
1885
+ def validate
1886
+ end
1887
+
1888
+ ::Thrift::Struct.generate_accessors self
1889
+ end
1890
+
1891
+ class Describe_keyspaces_result
1892
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1893
+ SUCCESS = 0
1894
+ IRE = 1
1895
+
1896
+ FIELDS = {
1897
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KsDef}},
1898
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1899
+ }
1900
+
1901
+ def struct_fields; FIELDS; end
1902
+
1903
+ def validate
1904
+ end
1905
+
1906
+ ::Thrift::Struct.generate_accessors self
1907
+ end
1908
+
1909
+ class Describe_cluster_name_args
1910
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1911
+
1912
+ FIELDS = {
1913
+
1914
+ }
1915
+
1916
+ def struct_fields; FIELDS; end
1917
+
1918
+ def validate
1919
+ end
1920
+
1921
+ ::Thrift::Struct.generate_accessors self
1922
+ end
1923
+
1924
+ class Describe_cluster_name_result
1925
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1926
+ SUCCESS = 0
1927
+
1928
+ FIELDS = {
1929
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1930
+ }
1931
+
1932
+ def struct_fields; FIELDS; end
1933
+
1934
+ def validate
1935
+ end
1936
+
1937
+ ::Thrift::Struct.generate_accessors self
1938
+ end
1939
+
1940
+ class Describe_version_args
1941
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1942
+
1943
+ FIELDS = {
1944
+
1945
+ }
1946
+
1947
+ def struct_fields; FIELDS; end
1948
+
1949
+ def validate
1950
+ end
1951
+
1952
+ ::Thrift::Struct.generate_accessors self
1953
+ end
1954
+
1955
+ class Describe_version_result
1956
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1957
+ SUCCESS = 0
1958
+
1959
+ FIELDS = {
1960
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1961
+ }
1962
+
1963
+ def struct_fields; FIELDS; end
1964
+
1965
+ def validate
1966
+ end
1967
+
1968
+ ::Thrift::Struct.generate_accessors self
1969
+ end
1970
+
1971
+ class Describe_ring_args
1972
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1973
+ KEYSPACE = 1
1974
+
1975
+ FIELDS = {
1976
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
1977
+ }
1978
+
1979
+ def struct_fields; FIELDS; end
1980
+
1981
+ def validate
1982
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
1983
+ end
1984
+
1985
+ ::Thrift::Struct.generate_accessors self
1986
+ end
1987
+
1988
+ class Describe_ring_result
1989
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1990
+ SUCCESS = 0
1991
+ IRE = 1
1992
+
1993
+ FIELDS = {
1994
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::TokenRange}},
1995
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1996
+ }
1997
+
1998
+ def struct_fields; FIELDS; end
1999
+
2000
+ def validate
2001
+ end
2002
+
2003
+ ::Thrift::Struct.generate_accessors self
2004
+ end
2005
+
2006
+ class Describe_token_map_args
2007
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2008
+
2009
+ FIELDS = {
2010
+
2011
+ }
2012
+
2013
+ def struct_fields; FIELDS; end
2014
+
2015
+ def validate
2016
+ end
2017
+
2018
+ ::Thrift::Struct.generate_accessors self
2019
+ end
2020
+
2021
+ class Describe_token_map_result
2022
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2023
+ SUCCESS = 0
2024
+ IRE = 1
2025
+
2026
+ FIELDS = {
2027
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
2028
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
2029
+ }
2030
+
2031
+ def struct_fields; FIELDS; end
2032
+
2033
+ def validate
2034
+ end
2035
+
2036
+ ::Thrift::Struct.generate_accessors self
2037
+ end
2038
+
2039
+ class Describe_partitioner_args
2040
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2041
+
2042
+ FIELDS = {
2043
+
2044
+ }
2045
+
2046
+ def struct_fields; FIELDS; end
2047
+
2048
+ def validate
2049
+ end
2050
+
2051
+ ::Thrift::Struct.generate_accessors self
2052
+ end
2053
+
2054
+ class Describe_partitioner_result
2055
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2056
+ SUCCESS = 0
2057
+
2058
+ FIELDS = {
2059
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
2060
+ }
2061
+
2062
+ def struct_fields; FIELDS; end
2063
+
2064
+ def validate
2065
+ end
2066
+
2067
+ ::Thrift::Struct.generate_accessors self
2068
+ end
2069
+
2070
+ class Describe_snitch_args
2071
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2072
+
2073
+ FIELDS = {
2074
+
2075
+ }
2076
+
2077
+ def struct_fields; FIELDS; end
2078
+
2079
+ def validate
2080
+ end
2081
+
2082
+ ::Thrift::Struct.generate_accessors self
2083
+ end
2084
+
2085
+ class Describe_snitch_result
2086
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2087
+ SUCCESS = 0
2088
+
2089
+ FIELDS = {
2090
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
2091
+ }
2092
+
2093
+ def struct_fields; FIELDS; end
2094
+
2095
+ def validate
2096
+ end
2097
+
2098
+ ::Thrift::Struct.generate_accessors self
2099
+ end
2100
+
2101
+ class Describe_keyspace_args
2102
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2103
+ KEYSPACE = 1
2104
+
2105
+ FIELDS = {
2106
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
2107
+ }
2108
+
2109
+ def struct_fields; FIELDS; end
2110
+
2111
+ def validate
2112
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
2113
+ end
2114
+
2115
+ ::Thrift::Struct.generate_accessors self
2116
+ end
2117
+
2118
+ class Describe_keyspace_result
2119
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2120
+ SUCCESS = 0
2121
+ NFE = 1
2122
+ IRE = 2
2123
+
2124
+ FIELDS = {
2125
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::KsDef},
2126
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException},
2127
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
2128
+ }
2129
+
2130
+ def struct_fields; FIELDS; end
2131
+
2132
+ def validate
2133
+ end
2134
+
2135
+ ::Thrift::Struct.generate_accessors self
2136
+ end
2137
+
2138
+ class Describe_splits_args
2139
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2140
+ CFNAME = 1
2141
+ START_TOKEN = 2
2142
+ END_TOKEN = 3
2143
+ KEYS_PER_SPLIT = 4
2144
+
2145
+ FIELDS = {
2146
+ CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfName'},
2147
+ START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
2148
+ END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
2149
+ KEYS_PER_SPLIT => {:type => ::Thrift::Types::I32, :name => 'keys_per_split'}
2150
+ }
2151
+
2152
+ def struct_fields; FIELDS; end
2153
+
2154
+ def validate
2155
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfName is unset!') unless @cfName
2156
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_token is unset!') unless @start_token
2157
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field end_token is unset!') unless @end_token
2158
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
2159
+ end
2160
+
2161
+ ::Thrift::Struct.generate_accessors self
2162
+ end
2163
+
2164
+ class Describe_splits_result
2165
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2166
+ SUCCESS = 0
2167
+ IRE = 1
2168
+
2169
+ FIELDS = {
2170
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2171
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
2172
+ }
2173
+
2174
+ def struct_fields; FIELDS; end
2175
+
2176
+ def validate
2177
+ end
2178
+
2179
+ ::Thrift::Struct.generate_accessors self
2180
+ end
2181
+
2182
+ class System_add_column_family_args
2183
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2184
+ CF_DEF = 1
2185
+
2186
+ FIELDS = {
2187
+ CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraThrift::CfDef}
2188
+ }
2189
+
2190
+ def struct_fields; FIELDS; end
2191
+
2192
+ def validate
2193
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
2194
+ end
2195
+
2196
+ ::Thrift::Struct.generate_accessors self
2197
+ end
2198
+
2199
+ class System_add_column_family_result
2200
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2201
+ SUCCESS = 0
2202
+ IRE = 1
2203
+ SDE = 2
2204
+
2205
+ FIELDS = {
2206
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2207
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2208
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2209
+ }
2210
+
2211
+ def struct_fields; FIELDS; end
2212
+
2213
+ def validate
2214
+ end
2215
+
2216
+ ::Thrift::Struct.generate_accessors self
2217
+ end
2218
+
2219
+ class System_drop_column_family_args
2220
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2221
+ COLUMN_FAMILY = 1
2222
+
2223
+ FIELDS = {
2224
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'}
2225
+ }
2226
+
2227
+ def struct_fields; FIELDS; end
2228
+
2229
+ def validate
2230
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
2231
+ end
2232
+
2233
+ ::Thrift::Struct.generate_accessors self
2234
+ end
2235
+
2236
+ class System_drop_column_family_result
2237
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2238
+ SUCCESS = 0
2239
+ IRE = 1
2240
+ SDE = 2
2241
+
2242
+ FIELDS = {
2243
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2244
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2245
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2246
+ }
2247
+
2248
+ def struct_fields; FIELDS; end
2249
+
2250
+ def validate
2251
+ end
2252
+
2253
+ ::Thrift::Struct.generate_accessors self
2254
+ end
2255
+
2256
+ class System_add_keyspace_args
2257
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2258
+ KS_DEF = 1
2259
+
2260
+ FIELDS = {
2261
+ KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraThrift::KsDef}
2262
+ }
2263
+
2264
+ def struct_fields; FIELDS; end
2265
+
2266
+ def validate
2267
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
2268
+ end
2269
+
2270
+ ::Thrift::Struct.generate_accessors self
2271
+ end
2272
+
2273
+ class System_add_keyspace_result
2274
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2275
+ SUCCESS = 0
2276
+ IRE = 1
2277
+ SDE = 2
2278
+
2279
+ FIELDS = {
2280
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2281
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2282
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2283
+ }
2284
+
2285
+ def struct_fields; FIELDS; end
2286
+
2287
+ def validate
2288
+ end
2289
+
2290
+ ::Thrift::Struct.generate_accessors self
2291
+ end
2292
+
2293
+ class System_drop_keyspace_args
2294
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2295
+ KEYSPACE = 1
2296
+
2297
+ FIELDS = {
2298
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
2299
+ }
2300
+
2301
+ def struct_fields; FIELDS; end
2302
+
2303
+ def validate
2304
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
2305
+ end
2306
+
2307
+ ::Thrift::Struct.generate_accessors self
2308
+ end
2309
+
2310
+ class System_drop_keyspace_result
2311
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2312
+ SUCCESS = 0
2313
+ IRE = 1
2314
+ SDE = 2
2315
+
2316
+ FIELDS = {
2317
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2318
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2319
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2320
+ }
2321
+
2322
+ def struct_fields; FIELDS; end
2323
+
2324
+ def validate
2325
+ end
2326
+
2327
+ ::Thrift::Struct.generate_accessors self
2328
+ end
2329
+
2330
+ class System_update_keyspace_args
2331
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2332
+ KS_DEF = 1
2333
+
2334
+ FIELDS = {
2335
+ KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraThrift::KsDef}
2336
+ }
2337
+
2338
+ def struct_fields; FIELDS; end
2339
+
2340
+ def validate
2341
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
2342
+ end
2343
+
2344
+ ::Thrift::Struct.generate_accessors self
2345
+ end
2346
+
2347
+ class System_update_keyspace_result
2348
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2349
+ SUCCESS = 0
2350
+ IRE = 1
2351
+ SDE = 2
2352
+
2353
+ FIELDS = {
2354
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2355
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2356
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2357
+ }
2358
+
2359
+ def struct_fields; FIELDS; end
2360
+
2361
+ def validate
2362
+ end
2363
+
2364
+ ::Thrift::Struct.generate_accessors self
2365
+ end
2366
+
2367
+ class System_update_column_family_args
2368
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2369
+ CF_DEF = 1
2370
+
2371
+ FIELDS = {
2372
+ CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraThrift::CfDef}
2373
+ }
2374
+
2375
+ def struct_fields; FIELDS; end
2376
+
2377
+ def validate
2378
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
2379
+ end
2380
+
2381
+ ::Thrift::Struct.generate_accessors self
2382
+ end
2383
+
2384
+ class System_update_column_family_result
2385
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2386
+ SUCCESS = 0
2387
+ IRE = 1
2388
+ SDE = 2
2389
+
2390
+ FIELDS = {
2391
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2392
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2393
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2394
+ }
2395
+
2396
+ def struct_fields; FIELDS; end
2397
+
2398
+ def validate
2399
+ end
2400
+
2401
+ ::Thrift::Struct.generate_accessors self
2402
+ end
2403
+
2404
+ class Execute_cql_query_args
2405
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2406
+ QUERY = 1
2407
+ COMPRESSION = 2
2408
+
2409
+ FIELDS = {
2410
+ QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
2411
+ COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraThrift::Compression}
2412
+ }
2413
+
2414
+ def struct_fields; FIELDS; end
2415
+
2416
+ def validate
2417
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
2418
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
2419
+ unless @compression.nil? || CassandraThrift::Compression::VALID_VALUES.include?(@compression)
2420
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
2421
+ end
2422
+ end
2423
+
2424
+ ::Thrift::Struct.generate_accessors self
2425
+ end
2426
+
2427
+ class Execute_cql_query_result
2428
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2429
+ SUCCESS = 0
2430
+ IRE = 1
2431
+ UE = 2
2432
+ TE = 3
2433
+ SDE = 4
2434
+
2435
+ FIELDS = {
2436
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::CqlResult},
2437
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2438
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
2439
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException},
2440
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2441
+ }
2442
+
2443
+ def struct_fields; FIELDS; end
2444
+
2445
+ def validate
2446
+ end
2447
+
2448
+ ::Thrift::Struct.generate_accessors self
2449
+ end
2450
+
2451
+ class Prepare_cql_query_args
2452
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2453
+ QUERY = 1
2454
+ COMPRESSION = 2
2455
+
2456
+ FIELDS = {
2457
+ QUERY => {:type => ::Thrift::Types::STRING, :name => 'query', :binary => true},
2458
+ COMPRESSION => {:type => ::Thrift::Types::I32, :name => 'compression', :enum_class => CassandraThrift::Compression}
2459
+ }
2460
+
2461
+ def struct_fields; FIELDS; end
2462
+
2463
+ def validate
2464
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field query is unset!') unless @query
2465
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field compression is unset!') unless @compression
2466
+ unless @compression.nil? || CassandraThrift::Compression::VALID_VALUES.include?(@compression)
2467
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field compression!')
2468
+ end
2469
+ end
2470
+
2471
+ ::Thrift::Struct.generate_accessors self
2472
+ end
2473
+
2474
+ class Prepare_cql_query_result
2475
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2476
+ SUCCESS = 0
2477
+ IRE = 1
2478
+
2479
+ FIELDS = {
2480
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::CqlPreparedResult},
2481
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
2482
+ }
2483
+
2484
+ def struct_fields; FIELDS; end
2485
+
2486
+ def validate
2487
+ end
2488
+
2489
+ ::Thrift::Struct.generate_accessors self
2490
+ end
2491
+
2492
+ class Execute_prepared_cql_query_args
2493
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2494
+ ITEMID = 1
2495
+ VALUES = 2
2496
+
2497
+ FIELDS = {
2498
+ ITEMID => {:type => ::Thrift::Types::I32, :name => 'itemId'},
2499
+ VALUES => {:type => ::Thrift::Types::LIST, :name => 'values', :element => {:type => ::Thrift::Types::STRING, :binary => true}}
2500
+ }
2501
+
2502
+ def struct_fields; FIELDS; end
2503
+
2504
+ def validate
2505
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field itemId is unset!') unless @itemId
2506
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values
2507
+ end
2508
+
2509
+ ::Thrift::Struct.generate_accessors self
2510
+ end
2511
+
2512
+ class Execute_prepared_cql_query_result
2513
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2514
+ SUCCESS = 0
2515
+ IRE = 1
2516
+ UE = 2
2517
+ TE = 3
2518
+ SDE = 4
2519
+
2520
+ FIELDS = {
2521
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::CqlResult},
2522
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
2523
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
2524
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException},
2525
+ SDE => {:type => ::Thrift::Types::STRUCT, :name => 'sde', :class => CassandraThrift::SchemaDisagreementException}
2526
+ }
2527
+
2528
+ def struct_fields; FIELDS; end
2529
+
2530
+ def validate
2531
+ end
2532
+
2533
+ ::Thrift::Struct.generate_accessors self
2534
+ end
2535
+
2536
+ class Set_cql_version_args
2537
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2538
+ VERSION = 1
2539
+
2540
+ FIELDS = {
2541
+ VERSION => {:type => ::Thrift::Types::STRING, :name => 'version'}
2542
+ }
2543
+
2544
+ def struct_fields; FIELDS; end
2545
+
2546
+ def validate
2547
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field version is unset!') unless @version
2548
+ end
2549
+
2550
+ ::Thrift::Struct.generate_accessors self
2551
+ end
2552
+
2553
+ class Set_cql_version_result
2554
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2555
+ IRE = 1
2556
+
2557
+ FIELDS = {
2558
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
2559
+ }
2560
+
2561
+ def struct_fields; FIELDS; end
2562
+
2563
+ def validate
2564
+ end
2565
+
2566
+ ::Thrift::Struct.generate_accessors self
2567
+ end
2568
+
2569
+ end
2570
+
2571
+ end