hallelujah-cassandra-cql 1.0.4

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