cassilds 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. data/CHANGELOG +53 -0
  2. data/LICENSE +202 -0
  3. data/Manifest +45 -0
  4. data/README.rdoc +83 -0
  5. data/Rakefile +9 -0
  6. data/bin/cassandra_helper +16 -0
  7. data/cassandra.gemspec +46 -0
  8. data/conf/cassandra.in.sh +47 -0
  9. data/conf/cassandra.yaml +113 -0
  10. data/conf/log4j.properties +38 -0
  11. data/conf/storage-conf.xml +342 -0
  12. data/lib/cassandra/0.6/cassandra.rb +68 -0
  13. data/lib/cassandra/0.6/columns.rb +35 -0
  14. data/lib/cassandra/0.6/protocol.rb +92 -0
  15. data/lib/cassandra/0.6.rb +7 -0
  16. data/lib/cassandra/0.7/cassandra.rb +272 -0
  17. data/lib/cassandra/0.7/column_family.rb +3 -0
  18. data/lib/cassandra/0.7/columns.rb +67 -0
  19. data/lib/cassandra/0.7/keyspace.rb +3 -0
  20. data/lib/cassandra/0.7/protocol.rb +139 -0
  21. data/lib/cassandra/0.7.rb +7 -0
  22. data/lib/cassandra/array.rb +8 -0
  23. data/lib/cassandra/cassandra.rb +302 -0
  24. data/lib/cassandra/columns.rb +79 -0
  25. data/lib/cassandra/comparable.rb +28 -0
  26. data/lib/cassandra/constants.rb +11 -0
  27. data/lib/cassandra/debug.rb +9 -0
  28. data/lib/cassandra/helpers.rb +40 -0
  29. data/lib/cassandra/long.rb +58 -0
  30. data/lib/cassandra/mock.rb +326 -0
  31. data/lib/cassandra/ordered_hash.rb +200 -0
  32. data/lib/cassandra/time.rb +11 -0
  33. data/lib/cassandra.rb +39 -0
  34. data/test/cassandra_client_test.rb +20 -0
  35. data/test/cassandra_mock_test.rb +73 -0
  36. data/test/cassandra_test.rb +412 -0
  37. data/test/comparable_types_test.rb +45 -0
  38. data/test/eventmachine_test.rb +42 -0
  39. data/test/ordered_hash_test.rb +380 -0
  40. data/test/test_helper.rb +14 -0
  41. data/vendor/0.6/gen-rb/cassandra.rb +1481 -0
  42. data/vendor/0.6/gen-rb/cassandra_constants.rb +12 -0
  43. data/vendor/0.6/gen-rb/cassandra_types.rb +482 -0
  44. data/vendor/0.7/gen-rb/cassandra.rb +1937 -0
  45. data/vendor/0.7/gen-rb/cassandra_constants.rb +12 -0
  46. data/vendor/0.7/gen-rb/cassandra_types.rb +679 -0
  47. metadata +176 -0
@@ -0,0 +1,1937 @@
1
+ #
2
+ # Autogenerated by Thrift
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
+ require 'cassandra_constants'
10
+
11
+ module CassandraThrift
12
+ module Cassandra
13
+ class Client
14
+ include ::Thrift::Client
15
+
16
+ def login(auth_request)
17
+ send_login(auth_request)
18
+ recv_login()
19
+ end
20
+
21
+ def send_login(auth_request)
22
+ send_message('login', Login_args, :auth_request => auth_request)
23
+ end
24
+
25
+ def recv_login()
26
+ result = receive_message(Login_result)
27
+ raise result.authnx unless result.authnx.nil?
28
+ raise result.authzx unless result.authzx.nil?
29
+ return
30
+ end
31
+
32
+ def set_keyspace(keyspace)
33
+ send_set_keyspace(keyspace)
34
+ recv_set_keyspace()
35
+ end
36
+
37
+ def send_set_keyspace(keyspace)
38
+ send_message('set_keyspace', Set_keyspace_args, :keyspace => keyspace)
39
+ end
40
+
41
+ def recv_set_keyspace()
42
+ result = receive_message(Set_keyspace_result)
43
+ raise result.ire unless result.ire.nil?
44
+ return
45
+ end
46
+
47
+ def get(key, column_path, consistency_level)
48
+ send_get(key, column_path, consistency_level)
49
+ return recv_get()
50
+ end
51
+
52
+ def send_get(key, column_path, consistency_level)
53
+ send_message('get', Get_args, :key => key, :column_path => column_path, :consistency_level => consistency_level)
54
+ end
55
+
56
+ def recv_get()
57
+ result = receive_message(Get_result)
58
+ return result.success unless result.success.nil?
59
+ raise result.ire unless result.ire.nil?
60
+ raise result.nfe unless result.nfe.nil?
61
+ raise result.ue unless result.ue.nil?
62
+ raise result.te unless result.te.nil?
63
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get failed: unknown result')
64
+ end
65
+
66
+ def get_slice(key, column_parent, predicate, consistency_level)
67
+ send_get_slice(key, column_parent, predicate, consistency_level)
68
+ return recv_get_slice()
69
+ end
70
+
71
+ def send_get_slice(key, column_parent, predicate, consistency_level)
72
+ send_message('get_slice', Get_slice_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
73
+ end
74
+
75
+ def recv_get_slice()
76
+ result = receive_message(Get_slice_result)
77
+ return result.success unless result.success.nil?
78
+ raise result.ire unless result.ire.nil?
79
+ raise result.ue unless result.ue.nil?
80
+ raise result.te unless result.te.nil?
81
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice failed: unknown result')
82
+ end
83
+
84
+ def get_count(key, column_parent, predicate, consistency_level)
85
+ send_get_count(key, column_parent, predicate, consistency_level)
86
+ return recv_get_count()
87
+ end
88
+
89
+ def send_get_count(key, column_parent, predicate, consistency_level)
90
+ send_message('get_count', Get_count_args, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
91
+ end
92
+
93
+ def recv_get_count()
94
+ result = receive_message(Get_count_result)
95
+ return result.success unless result.success.nil?
96
+ raise result.ire unless result.ire.nil?
97
+ raise result.ue unless result.ue.nil?
98
+ raise result.te unless result.te.nil?
99
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_count failed: unknown result')
100
+ end
101
+
102
+ def multiget_slice(keys, column_parent, predicate, consistency_level)
103
+ send_multiget_slice(keys, column_parent, predicate, consistency_level)
104
+ return recv_multiget_slice()
105
+ end
106
+
107
+ def send_multiget_slice(keys, column_parent, predicate, consistency_level)
108
+ send_message('multiget_slice', Multiget_slice_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
109
+ end
110
+
111
+ def recv_multiget_slice()
112
+ result = receive_message(Multiget_slice_result)
113
+ return result.success unless result.success.nil?
114
+ raise result.ire unless result.ire.nil?
115
+ raise result.ue unless result.ue.nil?
116
+ raise result.te unless result.te.nil?
117
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_slice failed: unknown result')
118
+ end
119
+
120
+ def multiget_count(keys, column_parent, predicate, consistency_level)
121
+ send_multiget_count(keys, column_parent, predicate, consistency_level)
122
+ return recv_multiget_count()
123
+ end
124
+
125
+ def send_multiget_count(keys, column_parent, predicate, consistency_level)
126
+ send_message('multiget_count', Multiget_count_args, :keys => keys, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
127
+ end
128
+
129
+ def recv_multiget_count()
130
+ result = receive_message(Multiget_count_result)
131
+ return result.success unless result.success.nil?
132
+ raise result.ire unless result.ire.nil?
133
+ raise result.ue unless result.ue.nil?
134
+ raise result.te unless result.te.nil?
135
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'multiget_count failed: unknown result')
136
+ end
137
+
138
+ def get_range_slices(column_parent, predicate, range, consistency_level)
139
+ send_get_range_slices(column_parent, predicate, range, consistency_level)
140
+ return recv_get_range_slices()
141
+ end
142
+
143
+ def send_get_range_slices(column_parent, predicate, range, consistency_level)
144
+ send_message('get_range_slices', Get_range_slices_args, :column_parent => column_parent, :predicate => predicate, :range => range, :consistency_level => consistency_level)
145
+ end
146
+
147
+ def recv_get_range_slices()
148
+ result = receive_message(Get_range_slices_result)
149
+ return result.success unless result.success.nil?
150
+ raise result.ire unless result.ire.nil?
151
+ raise result.ue unless result.ue.nil?
152
+ raise result.te unless result.te.nil?
153
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_range_slices failed: unknown result')
154
+ end
155
+
156
+ def get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
157
+ send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
158
+ return recv_get_indexed_slices()
159
+ end
160
+
161
+ def send_get_indexed_slices(column_parent, index_clause, column_predicate, consistency_level)
162
+ 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)
163
+ end
164
+
165
+ def recv_get_indexed_slices()
166
+ result = receive_message(Get_indexed_slices_result)
167
+ return result.success unless result.success.nil?
168
+ raise result.ire unless result.ire.nil?
169
+ raise result.ue unless result.ue.nil?
170
+ raise result.te unless result.te.nil?
171
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_indexed_slices failed: unknown result')
172
+ end
173
+
174
+ def insert(key, column_parent, column, consistency_level)
175
+ send_insert(key, column_parent, column, consistency_level)
176
+ recv_insert()
177
+ end
178
+
179
+ def send_insert(key, column_parent, column, consistency_level)
180
+ send_message('insert', Insert_args, :key => key, :column_parent => column_parent, :column => column, :consistency_level => consistency_level)
181
+ end
182
+
183
+ def recv_insert()
184
+ result = receive_message(Insert_result)
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
+ return
189
+ end
190
+
191
+ def remove(key, column_path, timestamp, consistency_level)
192
+ send_remove(key, column_path, timestamp, consistency_level)
193
+ recv_remove()
194
+ end
195
+
196
+ def send_remove(key, column_path, timestamp, consistency_level)
197
+ send_message('remove', Remove_args, :key => key, :column_path => column_path, :timestamp => timestamp, :consistency_level => consistency_level)
198
+ end
199
+
200
+ def recv_remove()
201
+ result = receive_message(Remove_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 batch_mutate(mutation_map, consistency_level)
209
+ send_batch_mutate(mutation_map, consistency_level)
210
+ recv_batch_mutate()
211
+ end
212
+
213
+ def send_batch_mutate(mutation_map, consistency_level)
214
+ send_message('batch_mutate', Batch_mutate_args, :mutation_map => mutation_map, :consistency_level => consistency_level)
215
+ end
216
+
217
+ def recv_batch_mutate()
218
+ result = receive_message(Batch_mutate_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 truncate(cfname)
226
+ send_truncate(cfname)
227
+ recv_truncate()
228
+ end
229
+
230
+ def send_truncate(cfname)
231
+ send_message('truncate', Truncate_args, :cfname => cfname)
232
+ end
233
+
234
+ def recv_truncate()
235
+ result = receive_message(Truncate_result)
236
+ raise result.ire unless result.ire.nil?
237
+ raise result.ue unless result.ue.nil?
238
+ return
239
+ end
240
+
241
+ def describe_schema_versions()
242
+ send_describe_schema_versions()
243
+ return recv_describe_schema_versions()
244
+ end
245
+
246
+ def send_describe_schema_versions()
247
+ send_message('describe_schema_versions', Describe_schema_versions_args)
248
+ end
249
+
250
+ def recv_describe_schema_versions()
251
+ result = receive_message(Describe_schema_versions_result)
252
+ return result.success unless result.success.nil?
253
+ raise result.ire unless result.ire.nil?
254
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_schema_versions failed: unknown result')
255
+ end
256
+
257
+ def describe_keyspaces()
258
+ send_describe_keyspaces()
259
+ return recv_describe_keyspaces()
260
+ end
261
+
262
+ def send_describe_keyspaces()
263
+ send_message('describe_keyspaces', Describe_keyspaces_args)
264
+ end
265
+
266
+ def recv_describe_keyspaces()
267
+ result = receive_message(Describe_keyspaces_result)
268
+ return result.success unless result.success.nil?
269
+ raise result.ire unless result.ire.nil?
270
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspaces failed: unknown result')
271
+ end
272
+
273
+ def describe_cluster_name()
274
+ send_describe_cluster_name()
275
+ return recv_describe_cluster_name()
276
+ end
277
+
278
+ def send_describe_cluster_name()
279
+ send_message('describe_cluster_name', Describe_cluster_name_args)
280
+ end
281
+
282
+ def recv_describe_cluster_name()
283
+ result = receive_message(Describe_cluster_name_result)
284
+ return result.success unless result.success.nil?
285
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_cluster_name failed: unknown result')
286
+ end
287
+
288
+ def describe_version()
289
+ send_describe_version()
290
+ return recv_describe_version()
291
+ end
292
+
293
+ def send_describe_version()
294
+ send_message('describe_version', Describe_version_args)
295
+ end
296
+
297
+ def recv_describe_version()
298
+ result = receive_message(Describe_version_result)
299
+ return result.success unless result.success.nil?
300
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_version failed: unknown result')
301
+ end
302
+
303
+ def describe_ring(keyspace)
304
+ send_describe_ring(keyspace)
305
+ return recv_describe_ring()
306
+ end
307
+
308
+ def send_describe_ring(keyspace)
309
+ send_message('describe_ring', Describe_ring_args, :keyspace => keyspace)
310
+ end
311
+
312
+ def recv_describe_ring()
313
+ result = receive_message(Describe_ring_result)
314
+ return result.success unless result.success.nil?
315
+ raise result.ire unless result.ire.nil?
316
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_ring failed: unknown result')
317
+ end
318
+
319
+ def describe_partitioner()
320
+ send_describe_partitioner()
321
+ return recv_describe_partitioner()
322
+ end
323
+
324
+ def send_describe_partitioner()
325
+ send_message('describe_partitioner', Describe_partitioner_args)
326
+ end
327
+
328
+ def recv_describe_partitioner()
329
+ result = receive_message(Describe_partitioner_result)
330
+ return result.success unless result.success.nil?
331
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_partitioner failed: unknown result')
332
+ end
333
+
334
+ def describe_snitch()
335
+ send_describe_snitch()
336
+ return recv_describe_snitch()
337
+ end
338
+
339
+ def send_describe_snitch()
340
+ send_message('describe_snitch', Describe_snitch_args)
341
+ end
342
+
343
+ def recv_describe_snitch()
344
+ result = receive_message(Describe_snitch_result)
345
+ return result.success unless result.success.nil?
346
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_snitch failed: unknown result')
347
+ end
348
+
349
+ def describe_keyspace(keyspace)
350
+ send_describe_keyspace(keyspace)
351
+ return recv_describe_keyspace()
352
+ end
353
+
354
+ def send_describe_keyspace(keyspace)
355
+ send_message('describe_keyspace', Describe_keyspace_args, :keyspace => keyspace)
356
+ end
357
+
358
+ def recv_describe_keyspace()
359
+ result = receive_message(Describe_keyspace_result)
360
+ return result.success unless result.success.nil?
361
+ raise result.nfe unless result.nfe.nil?
362
+ raise result.ire unless result.ire.nil?
363
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspace failed: unknown result')
364
+ end
365
+
366
+ def describe_splits(cfName, start_token, end_token, keys_per_split)
367
+ send_describe_splits(cfName, start_token, end_token, keys_per_split)
368
+ return recv_describe_splits()
369
+ end
370
+
371
+ def send_describe_splits(cfName, start_token, end_token, keys_per_split)
372
+ send_message('describe_splits', Describe_splits_args, :cfName => cfName, :start_token => start_token, :end_token => end_token, :keys_per_split => keys_per_split)
373
+ end
374
+
375
+ def recv_describe_splits()
376
+ result = receive_message(Describe_splits_result)
377
+ return result.success unless result.success.nil?
378
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_splits failed: unknown result')
379
+ end
380
+
381
+ def system_add_column_family(cf_def)
382
+ send_system_add_column_family(cf_def)
383
+ return recv_system_add_column_family()
384
+ end
385
+
386
+ def send_system_add_column_family(cf_def)
387
+ send_message('system_add_column_family', System_add_column_family_args, :cf_def => cf_def)
388
+ end
389
+
390
+ def recv_system_add_column_family()
391
+ result = receive_message(System_add_column_family_result)
392
+ return result.success unless result.success.nil?
393
+ raise result.ire unless result.ire.nil?
394
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_column_family failed: unknown result')
395
+ end
396
+
397
+ def system_drop_column_family(column_family)
398
+ send_system_drop_column_family(column_family)
399
+ return recv_system_drop_column_family()
400
+ end
401
+
402
+ def send_system_drop_column_family(column_family)
403
+ send_message('system_drop_column_family', System_drop_column_family_args, :column_family => column_family)
404
+ end
405
+
406
+ def recv_system_drop_column_family()
407
+ result = receive_message(System_drop_column_family_result)
408
+ return result.success unless result.success.nil?
409
+ raise result.ire unless result.ire.nil?
410
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_column_family failed: unknown result')
411
+ end
412
+
413
+ def system_add_keyspace(ks_def)
414
+ send_system_add_keyspace(ks_def)
415
+ return recv_system_add_keyspace()
416
+ end
417
+
418
+ def send_system_add_keyspace(ks_def)
419
+ send_message('system_add_keyspace', System_add_keyspace_args, :ks_def => ks_def)
420
+ end
421
+
422
+ def recv_system_add_keyspace()
423
+ result = receive_message(System_add_keyspace_result)
424
+ return result.success unless result.success.nil?
425
+ raise result.ire unless result.ire.nil?
426
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_add_keyspace failed: unknown result')
427
+ end
428
+
429
+ def system_drop_keyspace(keyspace)
430
+ send_system_drop_keyspace(keyspace)
431
+ return recv_system_drop_keyspace()
432
+ end
433
+
434
+ def send_system_drop_keyspace(keyspace)
435
+ send_message('system_drop_keyspace', System_drop_keyspace_args, :keyspace => keyspace)
436
+ end
437
+
438
+ def recv_system_drop_keyspace()
439
+ result = receive_message(System_drop_keyspace_result)
440
+ return result.success unless result.success.nil?
441
+ raise result.ire unless result.ire.nil?
442
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_drop_keyspace failed: unknown result')
443
+ end
444
+
445
+ def system_update_keyspace(ks_def)
446
+ send_system_update_keyspace(ks_def)
447
+ return recv_system_update_keyspace()
448
+ end
449
+
450
+ def send_system_update_keyspace(ks_def)
451
+ send_message('system_update_keyspace', System_update_keyspace_args, :ks_def => ks_def)
452
+ end
453
+
454
+ def recv_system_update_keyspace()
455
+ result = receive_message(System_update_keyspace_result)
456
+ return result.success unless result.success.nil?
457
+ raise result.ire unless result.ire.nil?
458
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_keyspace failed: unknown result')
459
+ end
460
+
461
+ def system_update_column_family(cf_def)
462
+ send_system_update_column_family(cf_def)
463
+ return recv_system_update_column_family()
464
+ end
465
+
466
+ def send_system_update_column_family(cf_def)
467
+ send_message('system_update_column_family', System_update_column_family_args, :cf_def => cf_def)
468
+ end
469
+
470
+ def recv_system_update_column_family()
471
+ result = receive_message(System_update_column_family_result)
472
+ return result.success unless result.success.nil?
473
+ raise result.ire unless result.ire.nil?
474
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'system_update_column_family failed: unknown result')
475
+ end
476
+
477
+ end
478
+
479
+ class Processor
480
+ include ::Thrift::Processor
481
+
482
+ def process_login(seqid, iprot, oprot)
483
+ args = read_args(iprot, Login_args)
484
+ result = Login_result.new()
485
+ begin
486
+ @handler.login(args.auth_request)
487
+ rescue CassandraThrift::AuthenticationException => authnx
488
+ result.authnx = authnx
489
+ rescue CassandraThrift::AuthorizationException => authzx
490
+ result.authzx = authzx
491
+ end
492
+ write_result(result, oprot, 'login', seqid)
493
+ end
494
+
495
+ def process_set_keyspace(seqid, iprot, oprot)
496
+ args = read_args(iprot, Set_keyspace_args)
497
+ result = Set_keyspace_result.new()
498
+ begin
499
+ @handler.set_keyspace(args.keyspace)
500
+ rescue CassandraThrift::InvalidRequestException => ire
501
+ result.ire = ire
502
+ end
503
+ write_result(result, oprot, 'set_keyspace', seqid)
504
+ end
505
+
506
+ def process_get(seqid, iprot, oprot)
507
+ args = read_args(iprot, Get_args)
508
+ result = Get_result.new()
509
+ begin
510
+ result.success = @handler.get(args.key, args.column_path, args.consistency_level)
511
+ rescue CassandraThrift::InvalidRequestException => ire
512
+ result.ire = ire
513
+ rescue CassandraThrift::NotFoundException => nfe
514
+ result.nfe = nfe
515
+ rescue CassandraThrift::UnavailableException => ue
516
+ result.ue = ue
517
+ rescue CassandraThrift::TimedOutException => te
518
+ result.te = te
519
+ end
520
+ write_result(result, oprot, 'get', seqid)
521
+ end
522
+
523
+ def process_get_slice(seqid, iprot, oprot)
524
+ args = read_args(iprot, Get_slice_args)
525
+ result = Get_slice_result.new()
526
+ begin
527
+ result.success = @handler.get_slice(args.key, args.column_parent, args.predicate, args.consistency_level)
528
+ rescue CassandraThrift::InvalidRequestException => ire
529
+ result.ire = ire
530
+ rescue CassandraThrift::UnavailableException => ue
531
+ result.ue = ue
532
+ rescue CassandraThrift::TimedOutException => te
533
+ result.te = te
534
+ end
535
+ write_result(result, oprot, 'get_slice', seqid)
536
+ end
537
+
538
+ def process_get_count(seqid, iprot, oprot)
539
+ args = read_args(iprot, Get_count_args)
540
+ result = Get_count_result.new()
541
+ begin
542
+ result.success = @handler.get_count(args.key, args.column_parent, args.predicate, args.consistency_level)
543
+ rescue CassandraThrift::InvalidRequestException => ire
544
+ result.ire = ire
545
+ rescue CassandraThrift::UnavailableException => ue
546
+ result.ue = ue
547
+ rescue CassandraThrift::TimedOutException => te
548
+ result.te = te
549
+ end
550
+ write_result(result, oprot, 'get_count', seqid)
551
+ end
552
+
553
+ def process_multiget_slice(seqid, iprot, oprot)
554
+ args = read_args(iprot, Multiget_slice_args)
555
+ result = Multiget_slice_result.new()
556
+ begin
557
+ result.success = @handler.multiget_slice(args.keys, args.column_parent, args.predicate, args.consistency_level)
558
+ rescue CassandraThrift::InvalidRequestException => ire
559
+ result.ire = ire
560
+ rescue CassandraThrift::UnavailableException => ue
561
+ result.ue = ue
562
+ rescue CassandraThrift::TimedOutException => te
563
+ result.te = te
564
+ end
565
+ write_result(result, oprot, 'multiget_slice', seqid)
566
+ end
567
+
568
+ def process_multiget_count(seqid, iprot, oprot)
569
+ args = read_args(iprot, Multiget_count_args)
570
+ result = Multiget_count_result.new()
571
+ begin
572
+ result.success = @handler.multiget_count(args.keys, args.column_parent, args.predicate, args.consistency_level)
573
+ rescue CassandraThrift::InvalidRequestException => ire
574
+ result.ire = ire
575
+ rescue CassandraThrift::UnavailableException => ue
576
+ result.ue = ue
577
+ rescue CassandraThrift::TimedOutException => te
578
+ result.te = te
579
+ end
580
+ write_result(result, oprot, 'multiget_count', seqid)
581
+ end
582
+
583
+ def process_get_range_slices(seqid, iprot, oprot)
584
+ args = read_args(iprot, Get_range_slices_args)
585
+ result = Get_range_slices_result.new()
586
+ begin
587
+ result.success = @handler.get_range_slices(args.column_parent, args.predicate, args.range, args.consistency_level)
588
+ rescue CassandraThrift::InvalidRequestException => ire
589
+ result.ire = ire
590
+ rescue CassandraThrift::UnavailableException => ue
591
+ result.ue = ue
592
+ rescue CassandraThrift::TimedOutException => te
593
+ result.te = te
594
+ end
595
+ write_result(result, oprot, 'get_range_slices', seqid)
596
+ end
597
+
598
+ def process_get_indexed_slices(seqid, iprot, oprot)
599
+ args = read_args(iprot, Get_indexed_slices_args)
600
+ result = Get_indexed_slices_result.new()
601
+ begin
602
+ result.success = @handler.get_indexed_slices(args.column_parent, args.index_clause, args.column_predicate, args.consistency_level)
603
+ rescue CassandraThrift::InvalidRequestException => ire
604
+ result.ire = ire
605
+ rescue CassandraThrift::UnavailableException => ue
606
+ result.ue = ue
607
+ rescue CassandraThrift::TimedOutException => te
608
+ result.te = te
609
+ end
610
+ write_result(result, oprot, 'get_indexed_slices', seqid)
611
+ end
612
+
613
+ def process_insert(seqid, iprot, oprot)
614
+ args = read_args(iprot, Insert_args)
615
+ result = Insert_result.new()
616
+ begin
617
+ @handler.insert(args.key, args.column_parent, args.column, args.consistency_level)
618
+ rescue CassandraThrift::InvalidRequestException => ire
619
+ result.ire = ire
620
+ rescue CassandraThrift::UnavailableException => ue
621
+ result.ue = ue
622
+ rescue CassandraThrift::TimedOutException => te
623
+ result.te = te
624
+ end
625
+ write_result(result, oprot, 'insert', seqid)
626
+ end
627
+
628
+ def process_remove(seqid, iprot, oprot)
629
+ args = read_args(iprot, Remove_args)
630
+ result = Remove_result.new()
631
+ begin
632
+ @handler.remove(args.key, args.column_path, args.timestamp, args.consistency_level)
633
+ rescue CassandraThrift::InvalidRequestException => ire
634
+ result.ire = ire
635
+ rescue CassandraThrift::UnavailableException => ue
636
+ result.ue = ue
637
+ rescue CassandraThrift::TimedOutException => te
638
+ result.te = te
639
+ end
640
+ write_result(result, oprot, 'remove', seqid)
641
+ end
642
+
643
+ def process_batch_mutate(seqid, iprot, oprot)
644
+ args = read_args(iprot, Batch_mutate_args)
645
+ result = Batch_mutate_result.new()
646
+ begin
647
+ @handler.batch_mutate(args.mutation_map, args.consistency_level)
648
+ rescue CassandraThrift::InvalidRequestException => ire
649
+ result.ire = ire
650
+ rescue CassandraThrift::UnavailableException => ue
651
+ result.ue = ue
652
+ rescue CassandraThrift::TimedOutException => te
653
+ result.te = te
654
+ end
655
+ write_result(result, oprot, 'batch_mutate', seqid)
656
+ end
657
+
658
+ def process_truncate(seqid, iprot, oprot)
659
+ args = read_args(iprot, Truncate_args)
660
+ result = Truncate_result.new()
661
+ begin
662
+ @handler.truncate(args.cfname)
663
+ rescue CassandraThrift::InvalidRequestException => ire
664
+ result.ire = ire
665
+ rescue CassandraThrift::UnavailableException => ue
666
+ result.ue = ue
667
+ end
668
+ write_result(result, oprot, 'truncate', seqid)
669
+ end
670
+
671
+ def process_describe_schema_versions(seqid, iprot, oprot)
672
+ args = read_args(iprot, Describe_schema_versions_args)
673
+ result = Describe_schema_versions_result.new()
674
+ begin
675
+ result.success = @handler.describe_schema_versions()
676
+ rescue CassandraThrift::InvalidRequestException => ire
677
+ result.ire = ire
678
+ end
679
+ write_result(result, oprot, 'describe_schema_versions', seqid)
680
+ end
681
+
682
+ def process_describe_keyspaces(seqid, iprot, oprot)
683
+ args = read_args(iprot, Describe_keyspaces_args)
684
+ result = Describe_keyspaces_result.new()
685
+ begin
686
+ result.success = @handler.describe_keyspaces()
687
+ rescue CassandraThrift::InvalidRequestException => ire
688
+ result.ire = ire
689
+ end
690
+ write_result(result, oprot, 'describe_keyspaces', seqid)
691
+ end
692
+
693
+ def process_describe_cluster_name(seqid, iprot, oprot)
694
+ args = read_args(iprot, Describe_cluster_name_args)
695
+ result = Describe_cluster_name_result.new()
696
+ result.success = @handler.describe_cluster_name()
697
+ write_result(result, oprot, 'describe_cluster_name', seqid)
698
+ end
699
+
700
+ def process_describe_version(seqid, iprot, oprot)
701
+ args = read_args(iprot, Describe_version_args)
702
+ result = Describe_version_result.new()
703
+ result.success = @handler.describe_version()
704
+ write_result(result, oprot, 'describe_version', seqid)
705
+ end
706
+
707
+ def process_describe_ring(seqid, iprot, oprot)
708
+ args = read_args(iprot, Describe_ring_args)
709
+ result = Describe_ring_result.new()
710
+ begin
711
+ result.success = @handler.describe_ring(args.keyspace)
712
+ rescue CassandraThrift::InvalidRequestException => ire
713
+ result.ire = ire
714
+ end
715
+ write_result(result, oprot, 'describe_ring', seqid)
716
+ end
717
+
718
+ def process_describe_partitioner(seqid, iprot, oprot)
719
+ args = read_args(iprot, Describe_partitioner_args)
720
+ result = Describe_partitioner_result.new()
721
+ result.success = @handler.describe_partitioner()
722
+ write_result(result, oprot, 'describe_partitioner', seqid)
723
+ end
724
+
725
+ def process_describe_snitch(seqid, iprot, oprot)
726
+ args = read_args(iprot, Describe_snitch_args)
727
+ result = Describe_snitch_result.new()
728
+ result.success = @handler.describe_snitch()
729
+ write_result(result, oprot, 'describe_snitch', seqid)
730
+ end
731
+
732
+ def process_describe_keyspace(seqid, iprot, oprot)
733
+ args = read_args(iprot, Describe_keyspace_args)
734
+ result = Describe_keyspace_result.new()
735
+ begin
736
+ result.success = @handler.describe_keyspace(args.keyspace)
737
+ rescue CassandraThrift::NotFoundException => nfe
738
+ result.nfe = nfe
739
+ rescue CassandraThrift::InvalidRequestException => ire
740
+ result.ire = ire
741
+ end
742
+ write_result(result, oprot, 'describe_keyspace', seqid)
743
+ end
744
+
745
+ def process_describe_splits(seqid, iprot, oprot)
746
+ args = read_args(iprot, Describe_splits_args)
747
+ result = Describe_splits_result.new()
748
+ result.success = @handler.describe_splits(args.cfName, args.start_token, args.end_token, args.keys_per_split)
749
+ write_result(result, oprot, 'describe_splits', seqid)
750
+ end
751
+
752
+ def process_system_add_column_family(seqid, iprot, oprot)
753
+ args = read_args(iprot, System_add_column_family_args)
754
+ result = System_add_column_family_result.new()
755
+ begin
756
+ result.success = @handler.system_add_column_family(args.cf_def)
757
+ rescue CassandraThrift::InvalidRequestException => ire
758
+ result.ire = ire
759
+ end
760
+ write_result(result, oprot, 'system_add_column_family', seqid)
761
+ end
762
+
763
+ def process_system_drop_column_family(seqid, iprot, oprot)
764
+ args = read_args(iprot, System_drop_column_family_args)
765
+ result = System_drop_column_family_result.new()
766
+ begin
767
+ result.success = @handler.system_drop_column_family(args.column_family)
768
+ rescue CassandraThrift::InvalidRequestException => ire
769
+ result.ire = ire
770
+ end
771
+ write_result(result, oprot, 'system_drop_column_family', seqid)
772
+ end
773
+
774
+ def process_system_add_keyspace(seqid, iprot, oprot)
775
+ args = read_args(iprot, System_add_keyspace_args)
776
+ result = System_add_keyspace_result.new()
777
+ begin
778
+ result.success = @handler.system_add_keyspace(args.ks_def)
779
+ rescue CassandraThrift::InvalidRequestException => ire
780
+ result.ire = ire
781
+ end
782
+ write_result(result, oprot, 'system_add_keyspace', seqid)
783
+ end
784
+
785
+ def process_system_drop_keyspace(seqid, iprot, oprot)
786
+ args = read_args(iprot, System_drop_keyspace_args)
787
+ result = System_drop_keyspace_result.new()
788
+ begin
789
+ result.success = @handler.system_drop_keyspace(args.keyspace)
790
+ rescue CassandraThrift::InvalidRequestException => ire
791
+ result.ire = ire
792
+ end
793
+ write_result(result, oprot, 'system_drop_keyspace', seqid)
794
+ end
795
+
796
+ def process_system_update_keyspace(seqid, iprot, oprot)
797
+ args = read_args(iprot, System_update_keyspace_args)
798
+ result = System_update_keyspace_result.new()
799
+ begin
800
+ result.success = @handler.system_update_keyspace(args.ks_def)
801
+ rescue CassandraThrift::InvalidRequestException => ire
802
+ result.ire = ire
803
+ end
804
+ write_result(result, oprot, 'system_update_keyspace', seqid)
805
+ end
806
+
807
+ def process_system_update_column_family(seqid, iprot, oprot)
808
+ args = read_args(iprot, System_update_column_family_args)
809
+ result = System_update_column_family_result.new()
810
+ begin
811
+ result.success = @handler.system_update_column_family(args.cf_def)
812
+ rescue CassandraThrift::InvalidRequestException => ire
813
+ result.ire = ire
814
+ end
815
+ write_result(result, oprot, 'system_update_column_family', seqid)
816
+ end
817
+
818
+ end
819
+
820
+ # HELPER FUNCTIONS AND STRUCTURES
821
+
822
+ class Login_args
823
+ include ::Thrift::Struct, ::Thrift::Struct_Union
824
+ AUTH_REQUEST = 1
825
+
826
+ FIELDS = {
827
+ AUTH_REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'auth_request', :class => CassandraThrift::AuthenticationRequest}
828
+ }
829
+
830
+ def struct_fields; FIELDS; end
831
+
832
+ def validate
833
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field auth_request is unset!') unless @auth_request
834
+ end
835
+
836
+ ::Thrift::Struct.generate_accessors self
837
+ end
838
+
839
+ class Login_result
840
+ include ::Thrift::Struct, ::Thrift::Struct_Union
841
+ AUTHNX = 1
842
+ AUTHZX = 2
843
+
844
+ FIELDS = {
845
+ AUTHNX => {:type => ::Thrift::Types::STRUCT, :name => 'authnx', :class => CassandraThrift::AuthenticationException},
846
+ AUTHZX => {:type => ::Thrift::Types::STRUCT, :name => 'authzx', :class => CassandraThrift::AuthorizationException}
847
+ }
848
+
849
+ def struct_fields; FIELDS; end
850
+
851
+ def validate
852
+ end
853
+
854
+ ::Thrift::Struct.generate_accessors self
855
+ end
856
+
857
+ class Set_keyspace_args
858
+ include ::Thrift::Struct, ::Thrift::Struct_Union
859
+ KEYSPACE = 1
860
+
861
+ FIELDS = {
862
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
863
+ }
864
+
865
+ def struct_fields; FIELDS; end
866
+
867
+ def validate
868
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
869
+ end
870
+
871
+ ::Thrift::Struct.generate_accessors self
872
+ end
873
+
874
+ class Set_keyspace_result
875
+ include ::Thrift::Struct, ::Thrift::Struct_Union
876
+ IRE = 1
877
+
878
+ FIELDS = {
879
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
880
+ }
881
+
882
+ def struct_fields; FIELDS; end
883
+
884
+ def validate
885
+ end
886
+
887
+ ::Thrift::Struct.generate_accessors self
888
+ end
889
+
890
+ class Get_args
891
+ include ::Thrift::Struct, ::Thrift::Struct_Union
892
+ KEY = 1
893
+ COLUMN_PATH = 2
894
+ CONSISTENCY_LEVEL = 3
895
+
896
+ FIELDS = {
897
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
898
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
899
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
900
+ }
901
+
902
+ def struct_fields; FIELDS; end
903
+
904
+ def validate
905
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
906
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
907
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
908
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
909
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
910
+ end
911
+ end
912
+
913
+ ::Thrift::Struct.generate_accessors self
914
+ end
915
+
916
+ class Get_result
917
+ include ::Thrift::Struct, ::Thrift::Struct_Union
918
+ SUCCESS = 0
919
+ IRE = 1
920
+ NFE = 2
921
+ UE = 3
922
+ TE = 4
923
+
924
+ FIELDS = {
925
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::ColumnOrSuperColumn},
926
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
927
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException},
928
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
929
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
930
+ }
931
+
932
+ def struct_fields; FIELDS; end
933
+
934
+ def validate
935
+ end
936
+
937
+ ::Thrift::Struct.generate_accessors self
938
+ end
939
+
940
+ class Get_slice_args
941
+ include ::Thrift::Struct, ::Thrift::Struct_Union
942
+ KEY = 1
943
+ COLUMN_PARENT = 2
944
+ PREDICATE = 3
945
+ CONSISTENCY_LEVEL = 4
946
+
947
+ FIELDS = {
948
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
949
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
950
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
951
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
952
+ }
953
+
954
+ def struct_fields; FIELDS; end
955
+
956
+ def validate
957
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
958
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
959
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
960
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
961
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
962
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
963
+ end
964
+ end
965
+
966
+ ::Thrift::Struct.generate_accessors self
967
+ end
968
+
969
+ class Get_slice_result
970
+ include ::Thrift::Struct, ::Thrift::Struct_Union
971
+ SUCCESS = 0
972
+ IRE = 1
973
+ UE = 2
974
+ TE = 3
975
+
976
+ FIELDS = {
977
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}},
978
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
979
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
980
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
981
+ }
982
+
983
+ def struct_fields; FIELDS; end
984
+
985
+ def validate
986
+ end
987
+
988
+ ::Thrift::Struct.generate_accessors self
989
+ end
990
+
991
+ class Get_count_args
992
+ include ::Thrift::Struct, ::Thrift::Struct_Union
993
+ KEY = 1
994
+ COLUMN_PARENT = 2
995
+ PREDICATE = 3
996
+ CONSISTENCY_LEVEL = 4
997
+
998
+ FIELDS = {
999
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1000
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1001
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1002
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1003
+ }
1004
+
1005
+ def struct_fields; FIELDS; end
1006
+
1007
+ def validate
1008
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1009
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1010
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1011
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1012
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1013
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1014
+ end
1015
+ end
1016
+
1017
+ ::Thrift::Struct.generate_accessors self
1018
+ end
1019
+
1020
+ class Get_count_result
1021
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1022
+ SUCCESS = 0
1023
+ IRE = 1
1024
+ UE = 2
1025
+ TE = 3
1026
+
1027
+ FIELDS = {
1028
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
1029
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1030
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1031
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1032
+ }
1033
+
1034
+ def struct_fields; FIELDS; end
1035
+
1036
+ def validate
1037
+ end
1038
+
1039
+ ::Thrift::Struct.generate_accessors self
1040
+ end
1041
+
1042
+ class Multiget_slice_args
1043
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1044
+ KEYS = 1
1045
+ COLUMN_PARENT = 2
1046
+ PREDICATE = 3
1047
+ CONSISTENCY_LEVEL = 4
1048
+
1049
+ FIELDS = {
1050
+ KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1051
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1052
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1053
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1054
+ }
1055
+
1056
+ def struct_fields; FIELDS; end
1057
+
1058
+ def validate
1059
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
1060
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1061
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1062
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1063
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1064
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1065
+ end
1066
+ end
1067
+
1068
+ ::Thrift::Struct.generate_accessors self
1069
+ end
1070
+
1071
+ class Multiget_slice_result
1072
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1073
+ SUCCESS = 0
1074
+ IRE = 1
1075
+ UE = 2
1076
+ TE = 3
1077
+
1078
+ FIELDS = {
1079
+ 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}}},
1080
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1081
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1082
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1083
+ }
1084
+
1085
+ def struct_fields; FIELDS; end
1086
+
1087
+ def validate
1088
+ end
1089
+
1090
+ ::Thrift::Struct.generate_accessors self
1091
+ end
1092
+
1093
+ class Multiget_count_args
1094
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1095
+ KEYS = 1
1096
+ COLUMN_PARENT = 2
1097
+ PREDICATE = 3
1098
+ CONSISTENCY_LEVEL = 4
1099
+
1100
+ FIELDS = {
1101
+ KEYS => {:type => ::Thrift::Types::LIST, :name => 'keys', :element => {:type => ::Thrift::Types::STRING, :binary => true}},
1102
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1103
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1104
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1105
+ }
1106
+
1107
+ def struct_fields; FIELDS; end
1108
+
1109
+ def validate
1110
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys is unset!') unless @keys
1111
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1112
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1113
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1114
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1115
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1116
+ end
1117
+ end
1118
+
1119
+ ::Thrift::Struct.generate_accessors self
1120
+ end
1121
+
1122
+ class Multiget_count_result
1123
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1124
+ SUCCESS = 0
1125
+ IRE = 1
1126
+ UE = 2
1127
+ TE = 3
1128
+
1129
+ FIELDS = {
1130
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING, :binary => true}, :value => {:type => ::Thrift::Types::I32}},
1131
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1132
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1133
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1134
+ }
1135
+
1136
+ def struct_fields; FIELDS; end
1137
+
1138
+ def validate
1139
+ end
1140
+
1141
+ ::Thrift::Struct.generate_accessors self
1142
+ end
1143
+
1144
+ class Get_range_slices_args
1145
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1146
+ COLUMN_PARENT = 1
1147
+ PREDICATE = 2
1148
+ RANGE = 3
1149
+ CONSISTENCY_LEVEL = 4
1150
+
1151
+ FIELDS = {
1152
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1153
+ PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
1154
+ RANGE => {:type => ::Thrift::Types::STRUCT, :name => 'range', :class => CassandraThrift::KeyRange},
1155
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1156
+ }
1157
+
1158
+ def struct_fields; FIELDS; end
1159
+
1160
+ def validate
1161
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1162
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field predicate is unset!') unless @predicate
1163
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field range is unset!') unless @range
1164
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1165
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1166
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1167
+ end
1168
+ end
1169
+
1170
+ ::Thrift::Struct.generate_accessors self
1171
+ end
1172
+
1173
+ class Get_range_slices_result
1174
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1175
+ SUCCESS = 0
1176
+ IRE = 1
1177
+ UE = 2
1178
+ TE = 3
1179
+
1180
+ FIELDS = {
1181
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
1182
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1183
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1184
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1185
+ }
1186
+
1187
+ def struct_fields; FIELDS; end
1188
+
1189
+ def validate
1190
+ end
1191
+
1192
+ ::Thrift::Struct.generate_accessors self
1193
+ end
1194
+
1195
+ class Get_indexed_slices_args
1196
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1197
+ COLUMN_PARENT = 1
1198
+ INDEX_CLAUSE = 2
1199
+ COLUMN_PREDICATE = 3
1200
+ CONSISTENCY_LEVEL = 4
1201
+
1202
+ FIELDS = {
1203
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1204
+ INDEX_CLAUSE => {:type => ::Thrift::Types::STRUCT, :name => 'index_clause', :class => CassandraThrift::IndexClause},
1205
+ COLUMN_PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'column_predicate', :class => CassandraThrift::SlicePredicate},
1206
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1207
+ }
1208
+
1209
+ def struct_fields; FIELDS; end
1210
+
1211
+ def validate
1212
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1213
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field index_clause is unset!') unless @index_clause
1214
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_predicate is unset!') unless @column_predicate
1215
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1216
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1217
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1218
+ end
1219
+ end
1220
+
1221
+ ::Thrift::Struct.generate_accessors self
1222
+ end
1223
+
1224
+ class Get_indexed_slices_result
1225
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1226
+ SUCCESS = 0
1227
+ IRE = 1
1228
+ UE = 2
1229
+ TE = 3
1230
+
1231
+ FIELDS = {
1232
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KeySlice}},
1233
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1234
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1235
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1236
+ }
1237
+
1238
+ def struct_fields; FIELDS; end
1239
+
1240
+ def validate
1241
+ end
1242
+
1243
+ ::Thrift::Struct.generate_accessors self
1244
+ end
1245
+
1246
+ class Insert_args
1247
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1248
+ KEY = 1
1249
+ COLUMN_PARENT = 2
1250
+ COLUMN = 3
1251
+ CONSISTENCY_LEVEL = 4
1252
+
1253
+ FIELDS = {
1254
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1255
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
1256
+ COLUMN => {:type => ::Thrift::Types::STRUCT, :name => 'column', :class => CassandraThrift::Column},
1257
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1258
+ }
1259
+
1260
+ def struct_fields; FIELDS; end
1261
+
1262
+ def validate
1263
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1264
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_parent is unset!') unless @column_parent
1265
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column is unset!') unless @column
1266
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1267
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1268
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1269
+ end
1270
+ end
1271
+
1272
+ ::Thrift::Struct.generate_accessors self
1273
+ end
1274
+
1275
+ class Insert_result
1276
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1277
+ IRE = 1
1278
+ UE = 2
1279
+ TE = 3
1280
+
1281
+ FIELDS = {
1282
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1283
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1284
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1285
+ }
1286
+
1287
+ def struct_fields; FIELDS; end
1288
+
1289
+ def validate
1290
+ end
1291
+
1292
+ ::Thrift::Struct.generate_accessors self
1293
+ end
1294
+
1295
+ class Remove_args
1296
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1297
+ KEY = 1
1298
+ COLUMN_PATH = 2
1299
+ TIMESTAMP = 3
1300
+ CONSISTENCY_LEVEL = 4
1301
+
1302
+ FIELDS = {
1303
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key', :binary => true},
1304
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
1305
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
1306
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1307
+ }
1308
+
1309
+ def struct_fields; FIELDS; end
1310
+
1311
+ def validate
1312
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field key is unset!') unless @key
1313
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_path is unset!') unless @column_path
1314
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field timestamp is unset!') unless @timestamp
1315
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1316
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1317
+ end
1318
+ end
1319
+
1320
+ ::Thrift::Struct.generate_accessors self
1321
+ end
1322
+
1323
+ class Remove_result
1324
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1325
+ IRE = 1
1326
+ UE = 2
1327
+ TE = 3
1328
+
1329
+ FIELDS = {
1330
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1331
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1332
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1333
+ }
1334
+
1335
+ def struct_fields; FIELDS; end
1336
+
1337
+ def validate
1338
+ end
1339
+
1340
+ ::Thrift::Struct.generate_accessors self
1341
+ end
1342
+
1343
+ class Batch_mutate_args
1344
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1345
+ MUTATION_MAP = 1
1346
+ CONSISTENCY_LEVEL = 2
1347
+
1348
+ FIELDS = {
1349
+ 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}}}},
1350
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
1351
+ }
1352
+
1353
+ def struct_fields; FIELDS; end
1354
+
1355
+ def validate
1356
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field mutation_map is unset!') unless @mutation_map
1357
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field consistency_level is unset!') unless @consistency_level
1358
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
1359
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
1360
+ end
1361
+ end
1362
+
1363
+ ::Thrift::Struct.generate_accessors self
1364
+ end
1365
+
1366
+ class Batch_mutate_result
1367
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1368
+ IRE = 1
1369
+ UE = 2
1370
+ TE = 3
1371
+
1372
+ FIELDS = {
1373
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1374
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException},
1375
+ TE => {:type => ::Thrift::Types::STRUCT, :name => 'te', :class => CassandraThrift::TimedOutException}
1376
+ }
1377
+
1378
+ def struct_fields; FIELDS; end
1379
+
1380
+ def validate
1381
+ end
1382
+
1383
+ ::Thrift::Struct.generate_accessors self
1384
+ end
1385
+
1386
+ class Truncate_args
1387
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1388
+ CFNAME = 1
1389
+
1390
+ FIELDS = {
1391
+ CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfname'}
1392
+ }
1393
+
1394
+ def struct_fields; FIELDS; end
1395
+
1396
+ def validate
1397
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfname is unset!') unless @cfname
1398
+ end
1399
+
1400
+ ::Thrift::Struct.generate_accessors self
1401
+ end
1402
+
1403
+ class Truncate_result
1404
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1405
+ IRE = 1
1406
+ UE = 2
1407
+
1408
+ FIELDS = {
1409
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
1410
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
1411
+ }
1412
+
1413
+ def struct_fields; FIELDS; end
1414
+
1415
+ def validate
1416
+ end
1417
+
1418
+ ::Thrift::Struct.generate_accessors self
1419
+ end
1420
+
1421
+ class Describe_schema_versions_args
1422
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1423
+
1424
+ FIELDS = {
1425
+
1426
+ }
1427
+
1428
+ def struct_fields; FIELDS; end
1429
+
1430
+ def validate
1431
+ end
1432
+
1433
+ ::Thrift::Struct.generate_accessors self
1434
+ end
1435
+
1436
+ class Describe_schema_versions_result
1437
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1438
+ SUCCESS = 0
1439
+ IRE = 1
1440
+
1441
+ FIELDS = {
1442
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::LIST, :element => {:type => ::Thrift::Types::STRING}}},
1443
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1444
+ }
1445
+
1446
+ def struct_fields; FIELDS; end
1447
+
1448
+ def validate
1449
+ end
1450
+
1451
+ ::Thrift::Struct.generate_accessors self
1452
+ end
1453
+
1454
+ class Describe_keyspaces_args
1455
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1456
+
1457
+ FIELDS = {
1458
+
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 Describe_keyspaces_result
1470
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1471
+ SUCCESS = 0
1472
+ IRE = 1
1473
+
1474
+ FIELDS = {
1475
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::KsDef}},
1476
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1477
+ }
1478
+
1479
+ def struct_fields; FIELDS; end
1480
+
1481
+ def validate
1482
+ end
1483
+
1484
+ ::Thrift::Struct.generate_accessors self
1485
+ end
1486
+
1487
+ class Describe_cluster_name_args
1488
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1489
+
1490
+ FIELDS = {
1491
+
1492
+ }
1493
+
1494
+ def struct_fields; FIELDS; end
1495
+
1496
+ def validate
1497
+ end
1498
+
1499
+ ::Thrift::Struct.generate_accessors self
1500
+ end
1501
+
1502
+ class Describe_cluster_name_result
1503
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1504
+ SUCCESS = 0
1505
+
1506
+ FIELDS = {
1507
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1508
+ }
1509
+
1510
+ def struct_fields; FIELDS; end
1511
+
1512
+ def validate
1513
+ end
1514
+
1515
+ ::Thrift::Struct.generate_accessors self
1516
+ end
1517
+
1518
+ class Describe_version_args
1519
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1520
+
1521
+ FIELDS = {
1522
+
1523
+ }
1524
+
1525
+ def struct_fields; FIELDS; end
1526
+
1527
+ def validate
1528
+ end
1529
+
1530
+ ::Thrift::Struct.generate_accessors self
1531
+ end
1532
+
1533
+ class Describe_version_result
1534
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1535
+ SUCCESS = 0
1536
+
1537
+ FIELDS = {
1538
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1539
+ }
1540
+
1541
+ def struct_fields; FIELDS; end
1542
+
1543
+ def validate
1544
+ end
1545
+
1546
+ ::Thrift::Struct.generate_accessors self
1547
+ end
1548
+
1549
+ class Describe_ring_args
1550
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1551
+ KEYSPACE = 1
1552
+
1553
+ FIELDS = {
1554
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
1555
+ }
1556
+
1557
+ def struct_fields; FIELDS; end
1558
+
1559
+ def validate
1560
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
1561
+ end
1562
+
1563
+ ::Thrift::Struct.generate_accessors self
1564
+ end
1565
+
1566
+ class Describe_ring_result
1567
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1568
+ SUCCESS = 0
1569
+ IRE = 1
1570
+
1571
+ FIELDS = {
1572
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::TokenRange}},
1573
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1574
+ }
1575
+
1576
+ def struct_fields; FIELDS; end
1577
+
1578
+ def validate
1579
+ end
1580
+
1581
+ ::Thrift::Struct.generate_accessors self
1582
+ end
1583
+
1584
+ class Describe_partitioner_args
1585
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1586
+
1587
+ FIELDS = {
1588
+
1589
+ }
1590
+
1591
+ def struct_fields; FIELDS; end
1592
+
1593
+ def validate
1594
+ end
1595
+
1596
+ ::Thrift::Struct.generate_accessors self
1597
+ end
1598
+
1599
+ class Describe_partitioner_result
1600
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1601
+ SUCCESS = 0
1602
+
1603
+ FIELDS = {
1604
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1605
+ }
1606
+
1607
+ def struct_fields; FIELDS; end
1608
+
1609
+ def validate
1610
+ end
1611
+
1612
+ ::Thrift::Struct.generate_accessors self
1613
+ end
1614
+
1615
+ class Describe_snitch_args
1616
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1617
+
1618
+ FIELDS = {
1619
+
1620
+ }
1621
+
1622
+ def struct_fields; FIELDS; end
1623
+
1624
+ def validate
1625
+ end
1626
+
1627
+ ::Thrift::Struct.generate_accessors self
1628
+ end
1629
+
1630
+ class Describe_snitch_result
1631
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1632
+ SUCCESS = 0
1633
+
1634
+ FIELDS = {
1635
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1636
+ }
1637
+
1638
+ def struct_fields; FIELDS; end
1639
+
1640
+ def validate
1641
+ end
1642
+
1643
+ ::Thrift::Struct.generate_accessors self
1644
+ end
1645
+
1646
+ class Describe_keyspace_args
1647
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1648
+ KEYSPACE = 1
1649
+
1650
+ FIELDS = {
1651
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
1652
+ }
1653
+
1654
+ def struct_fields; FIELDS; end
1655
+
1656
+ def validate
1657
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
1658
+ end
1659
+
1660
+ ::Thrift::Struct.generate_accessors self
1661
+ end
1662
+
1663
+ class Describe_keyspace_result
1664
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1665
+ SUCCESS = 0
1666
+ NFE = 1
1667
+ IRE = 2
1668
+
1669
+ FIELDS = {
1670
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::KsDef},
1671
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException},
1672
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1673
+ }
1674
+
1675
+ def struct_fields; FIELDS; end
1676
+
1677
+ def validate
1678
+ end
1679
+
1680
+ ::Thrift::Struct.generate_accessors self
1681
+ end
1682
+
1683
+ class Describe_splits_args
1684
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1685
+ CFNAME = 1
1686
+ START_TOKEN = 2
1687
+ END_TOKEN = 3
1688
+ KEYS_PER_SPLIT = 4
1689
+
1690
+ FIELDS = {
1691
+ CFNAME => {:type => ::Thrift::Types::STRING, :name => 'cfName'},
1692
+ START_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'start_token'},
1693
+ END_TOKEN => {:type => ::Thrift::Types::STRING, :name => 'end_token'},
1694
+ KEYS_PER_SPLIT => {:type => ::Thrift::Types::I32, :name => 'keys_per_split'}
1695
+ }
1696
+
1697
+ def struct_fields; FIELDS; end
1698
+
1699
+ def validate
1700
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cfName is unset!') unless @cfName
1701
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field start_token is unset!') unless @start_token
1702
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field end_token is unset!') unless @end_token
1703
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keys_per_split is unset!') unless @keys_per_split
1704
+ end
1705
+
1706
+ ::Thrift::Struct.generate_accessors self
1707
+ end
1708
+
1709
+ class Describe_splits_result
1710
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1711
+ SUCCESS = 0
1712
+
1713
+ FIELDS = {
1714
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
1715
+ }
1716
+
1717
+ def struct_fields; FIELDS; end
1718
+
1719
+ def validate
1720
+ end
1721
+
1722
+ ::Thrift::Struct.generate_accessors self
1723
+ end
1724
+
1725
+ class System_add_column_family_args
1726
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1727
+ CF_DEF = 1
1728
+
1729
+ FIELDS = {
1730
+ CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraThrift::CfDef}
1731
+ }
1732
+
1733
+ def struct_fields; FIELDS; end
1734
+
1735
+ def validate
1736
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
1737
+ end
1738
+
1739
+ ::Thrift::Struct.generate_accessors self
1740
+ end
1741
+
1742
+ class System_add_column_family_result
1743
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1744
+ SUCCESS = 0
1745
+ IRE = 1
1746
+
1747
+ FIELDS = {
1748
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1749
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1750
+ }
1751
+
1752
+ def struct_fields; FIELDS; end
1753
+
1754
+ def validate
1755
+ end
1756
+
1757
+ ::Thrift::Struct.generate_accessors self
1758
+ end
1759
+
1760
+ class System_drop_column_family_args
1761
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1762
+ COLUMN_FAMILY = 1
1763
+
1764
+ FIELDS = {
1765
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'}
1766
+ }
1767
+
1768
+ def struct_fields; FIELDS; end
1769
+
1770
+ def validate
1771
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field column_family is unset!') unless @column_family
1772
+ end
1773
+
1774
+ ::Thrift::Struct.generate_accessors self
1775
+ end
1776
+
1777
+ class System_drop_column_family_result
1778
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1779
+ SUCCESS = 0
1780
+ IRE = 1
1781
+
1782
+ FIELDS = {
1783
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1784
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1785
+ }
1786
+
1787
+ def struct_fields; FIELDS; end
1788
+
1789
+ def validate
1790
+ end
1791
+
1792
+ ::Thrift::Struct.generate_accessors self
1793
+ end
1794
+
1795
+ class System_add_keyspace_args
1796
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1797
+ KS_DEF = 1
1798
+
1799
+ FIELDS = {
1800
+ KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraThrift::KsDef}
1801
+ }
1802
+
1803
+ def struct_fields; FIELDS; end
1804
+
1805
+ def validate
1806
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
1807
+ end
1808
+
1809
+ ::Thrift::Struct.generate_accessors self
1810
+ end
1811
+
1812
+ class System_add_keyspace_result
1813
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1814
+ SUCCESS = 0
1815
+ IRE = 1
1816
+
1817
+ FIELDS = {
1818
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1819
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1820
+ }
1821
+
1822
+ def struct_fields; FIELDS; end
1823
+
1824
+ def validate
1825
+ end
1826
+
1827
+ ::Thrift::Struct.generate_accessors self
1828
+ end
1829
+
1830
+ class System_drop_keyspace_args
1831
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1832
+ KEYSPACE = 1
1833
+
1834
+ FIELDS = {
1835
+ KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
1836
+ }
1837
+
1838
+ def struct_fields; FIELDS; end
1839
+
1840
+ def validate
1841
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field keyspace is unset!') unless @keyspace
1842
+ end
1843
+
1844
+ ::Thrift::Struct.generate_accessors self
1845
+ end
1846
+
1847
+ class System_drop_keyspace_result
1848
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1849
+ SUCCESS = 0
1850
+ IRE = 1
1851
+
1852
+ FIELDS = {
1853
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1854
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1855
+ }
1856
+
1857
+ def struct_fields; FIELDS; end
1858
+
1859
+ def validate
1860
+ end
1861
+
1862
+ ::Thrift::Struct.generate_accessors self
1863
+ end
1864
+
1865
+ class System_update_keyspace_args
1866
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1867
+ KS_DEF = 1
1868
+
1869
+ FIELDS = {
1870
+ KS_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'ks_def', :class => CassandraThrift::KsDef}
1871
+ }
1872
+
1873
+ def struct_fields; FIELDS; end
1874
+
1875
+ def validate
1876
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field ks_def is unset!') unless @ks_def
1877
+ end
1878
+
1879
+ ::Thrift::Struct.generate_accessors self
1880
+ end
1881
+
1882
+ class System_update_keyspace_result
1883
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1884
+ SUCCESS = 0
1885
+ IRE = 1
1886
+
1887
+ FIELDS = {
1888
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1889
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1890
+ }
1891
+
1892
+ def struct_fields; FIELDS; end
1893
+
1894
+ def validate
1895
+ end
1896
+
1897
+ ::Thrift::Struct.generate_accessors self
1898
+ end
1899
+
1900
+ class System_update_column_family_args
1901
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1902
+ CF_DEF = 1
1903
+
1904
+ FIELDS = {
1905
+ CF_DEF => {:type => ::Thrift::Types::STRUCT, :name => 'cf_def', :class => CassandraThrift::CfDef}
1906
+ }
1907
+
1908
+ def struct_fields; FIELDS; end
1909
+
1910
+ def validate
1911
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field cf_def is unset!') unless @cf_def
1912
+ end
1913
+
1914
+ ::Thrift::Struct.generate_accessors self
1915
+ end
1916
+
1917
+ class System_update_column_family_result
1918
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1919
+ SUCCESS = 0
1920
+ IRE = 1
1921
+
1922
+ FIELDS = {
1923
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
1924
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
1925
+ }
1926
+
1927
+ def struct_fields; FIELDS; end
1928
+
1929
+ def validate
1930
+ end
1931
+
1932
+ ::Thrift::Struct.generate_accessors self
1933
+ end
1934
+
1935
+ end
1936
+
1937
+ end