sessionm-cassandra 1.0.0

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