cassandra 0.2.3 → 0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,44 @@
1
+ require 'test/unit'
2
+ require "#{File.expand_path(File.dirname(__FILE__))}/../lib/cassandra"
3
+
4
+ begin; require 'ruby-debug'; rescue LoadError; end
5
+
6
+ class ComparableTypesTest < Test::Unit::TestCase
7
+ include Cassandra::Constants
8
+
9
+ def test_long_sort
10
+ ary = []
11
+ 10.times { ary << Long.new }
12
+ assert_equal ary.sort, ary
13
+ end
14
+
15
+ def test_long_equality
16
+ long = Long.new
17
+ assert_equal long, Long.new(long.to_s)
18
+ assert_equal long, Long.new(long.to_i)
19
+ end
20
+
21
+ def test_long_error
22
+ assert_raises(Cassandra::Comparable::TypeError) do
23
+ Long.new("bogus")
24
+ end
25
+ end
26
+
27
+ def test_uuid_sort
28
+ ary = []
29
+ 10.times { ary << UUID.new }
30
+ assert_equal ary.sort, ary
31
+ end
32
+
33
+ def test_uuid_equality
34
+ uuid = UUID.new
35
+ assert_equal uuid, UUID.new(uuid.to_s)
36
+ assert_equal uuid, UUID.new(uuid.to_i)
37
+ end
38
+
39
+ def test_uuid_error
40
+ assert_raises(Cassandra::Comparable::TypeError) do
41
+ UUID.new("bogus")
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,1138 @@
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 get_slice_by_names(table, key, column_parent, column_names, consistency_level)
16
+ send_get_slice_by_names(table, key, column_parent, column_names, consistency_level)
17
+ return recv_get_slice_by_names()
18
+ end
19
+
20
+ def send_get_slice_by_names(table, key, column_parent, column_names, consistency_level)
21
+ send_message('get_slice_by_names', Get_slice_by_names_args, :table => table, :key => key, :column_parent => column_parent, :column_names => column_names, :consistency_level => consistency_level)
22
+ end
23
+
24
+ def recv_get_slice_by_names()
25
+ result = receive_message(Get_slice_by_names_result)
26
+ return result.success unless result.success.nil?
27
+ raise result.ire unless result.ire.nil?
28
+ raise result.nfe unless result.nfe.nil?
29
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice_by_names failed: unknown result')
30
+ end
31
+
32
+ def get_slice(table, key, column_parent, start, finish, is_ascending, count, consistency_level)
33
+ send_get_slice(table, key, column_parent, start, finish, is_ascending, count, consistency_level)
34
+ return recv_get_slice()
35
+ end
36
+
37
+ def send_get_slice(table, key, column_parent, start, finish, is_ascending, count, consistency_level)
38
+ send_message('get_slice', Get_slice_args, :table => table, :key => key, :column_parent => column_parent, :start => start, :finish => finish, :is_ascending => is_ascending, :count => count, :consistency_level => consistency_level)
39
+ end
40
+
41
+ def recv_get_slice()
42
+ result = receive_message(Get_slice_result)
43
+ return result.success unless result.success.nil?
44
+ raise result.ire unless result.ire.nil?
45
+ raise result.nfe unless result.nfe.nil?
46
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice failed: unknown result')
47
+ end
48
+
49
+ def get_column(table, key, column_path, consistency_level)
50
+ send_get_column(table, key, column_path, consistency_level)
51
+ return recv_get_column()
52
+ end
53
+
54
+ def send_get_column(table, key, column_path, consistency_level)
55
+ send_message('get_column', Get_column_args, :table => table, :key => key, :column_path => column_path, :consistency_level => consistency_level)
56
+ end
57
+
58
+ def recv_get_column()
59
+ result = receive_message(Get_column_result)
60
+ return result.success unless result.success.nil?
61
+ raise result.ire unless result.ire.nil?
62
+ raise result.nfe unless result.nfe.nil?
63
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_column failed: unknown result')
64
+ end
65
+
66
+ def get_column_count(table, key, column_parent, consistency_level)
67
+ send_get_column_count(table, key, column_parent, consistency_level)
68
+ return recv_get_column_count()
69
+ end
70
+
71
+ def send_get_column_count(table, key, column_parent, consistency_level)
72
+ send_message('get_column_count', Get_column_count_args, :table => table, :key => key, :column_parent => column_parent, :consistency_level => consistency_level)
73
+ end
74
+
75
+ def recv_get_column_count()
76
+ result = receive_message(Get_column_count_result)
77
+ return result.success unless result.success.nil?
78
+ raise result.ire unless result.ire.nil?
79
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_column_count failed: unknown result')
80
+ end
81
+
82
+ def insert(table, key, column_path, value, timestamp, consistency_level)
83
+ send_insert(table, key, column_path, value, timestamp, consistency_level)
84
+ recv_insert()
85
+ end
86
+
87
+ def send_insert(table, key, column_path, value, timestamp, consistency_level)
88
+ send_message('insert', Insert_args, :table => table, :key => key, :column_path => column_path, :value => value, :timestamp => timestamp, :consistency_level => consistency_level)
89
+ end
90
+
91
+ def recv_insert()
92
+ result = receive_message(Insert_result)
93
+ raise result.ire unless result.ire.nil?
94
+ raise result.ue unless result.ue.nil?
95
+ return
96
+ end
97
+
98
+ def batch_insert(table, batch_mutation, consistency_level)
99
+ send_batch_insert(table, batch_mutation, consistency_level)
100
+ recv_batch_insert()
101
+ end
102
+
103
+ def send_batch_insert(table, batch_mutation, consistency_level)
104
+ send_message('batch_insert', Batch_insert_args, :table => table, :batch_mutation => batch_mutation, :consistency_level => consistency_level)
105
+ end
106
+
107
+ def recv_batch_insert()
108
+ result = receive_message(Batch_insert_result)
109
+ raise result.ire unless result.ire.nil?
110
+ raise result.ue unless result.ue.nil?
111
+ return
112
+ end
113
+
114
+ def remove(table, key, column_path_or_parent, timestamp, consistency_level)
115
+ send_remove(table, key, column_path_or_parent, timestamp, consistency_level)
116
+ recv_remove()
117
+ end
118
+
119
+ def send_remove(table, key, column_path_or_parent, timestamp, consistency_level)
120
+ send_message('remove', Remove_args, :table => table, :key => key, :column_path_or_parent => column_path_or_parent, :timestamp => timestamp, :consistency_level => consistency_level)
121
+ end
122
+
123
+ def recv_remove()
124
+ result = receive_message(Remove_result)
125
+ raise result.ire unless result.ire.nil?
126
+ raise result.ue unless result.ue.nil?
127
+ return
128
+ end
129
+
130
+ def get_slice_super(table, key, column_family, start, finish, is_ascending, count, consistency_level)
131
+ send_get_slice_super(table, key, column_family, start, finish, is_ascending, count, consistency_level)
132
+ return recv_get_slice_super()
133
+ end
134
+
135
+ def send_get_slice_super(table, key, column_family, start, finish, is_ascending, count, consistency_level)
136
+ send_message('get_slice_super', Get_slice_super_args, :table => table, :key => key, :column_family => column_family, :start => start, :finish => finish, :is_ascending => is_ascending, :count => count, :consistency_level => consistency_level)
137
+ end
138
+
139
+ def recv_get_slice_super()
140
+ result = receive_message(Get_slice_super_result)
141
+ return result.success unless result.success.nil?
142
+ raise result.ire unless result.ire.nil?
143
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice_super failed: unknown result')
144
+ end
145
+
146
+ def get_slice_super_by_names(table, key, column_family, super_column_names, consistency_level)
147
+ send_get_slice_super_by_names(table, key, column_family, super_column_names, consistency_level)
148
+ return recv_get_slice_super_by_names()
149
+ end
150
+
151
+ def send_get_slice_super_by_names(table, key, column_family, super_column_names, consistency_level)
152
+ send_message('get_slice_super_by_names', Get_slice_super_by_names_args, :table => table, :key => key, :column_family => column_family, :super_column_names => super_column_names, :consistency_level => consistency_level)
153
+ end
154
+
155
+ def recv_get_slice_super_by_names()
156
+ result = receive_message(Get_slice_super_by_names_result)
157
+ return result.success unless result.success.nil?
158
+ raise result.ire unless result.ire.nil?
159
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_slice_super_by_names failed: unknown result')
160
+ end
161
+
162
+ def get_super_column(table, key, super_column_path, consistency_level)
163
+ send_get_super_column(table, key, super_column_path, consistency_level)
164
+ return recv_get_super_column()
165
+ end
166
+
167
+ def send_get_super_column(table, key, super_column_path, consistency_level)
168
+ send_message('get_super_column', Get_super_column_args, :table => table, :key => key, :super_column_path => super_column_path, :consistency_level => consistency_level)
169
+ end
170
+
171
+ def recv_get_super_column()
172
+ result = receive_message(Get_super_column_result)
173
+ return result.success unless result.success.nil?
174
+ raise result.ire unless result.ire.nil?
175
+ raise result.nfe unless result.nfe.nil?
176
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_super_column failed: unknown result')
177
+ end
178
+
179
+ def batch_insert_super_column(table, batch_mutation_super, consistency_level)
180
+ send_batch_insert_super_column(table, batch_mutation_super, consistency_level)
181
+ recv_batch_insert_super_column()
182
+ end
183
+
184
+ def send_batch_insert_super_column(table, batch_mutation_super, consistency_level)
185
+ send_message('batch_insert_super_column', Batch_insert_super_column_args, :table => table, :batch_mutation_super => batch_mutation_super, :consistency_level => consistency_level)
186
+ end
187
+
188
+ def recv_batch_insert_super_column()
189
+ result = receive_message(Batch_insert_super_column_result)
190
+ raise result.ire unless result.ire.nil?
191
+ raise result.ue unless result.ue.nil?
192
+ return
193
+ end
194
+
195
+ def get_key_range(table, column_family, start, finish, count)
196
+ send_get_key_range(table, column_family, start, finish, count)
197
+ return recv_get_key_range()
198
+ end
199
+
200
+ def send_get_key_range(table, column_family, start, finish, count)
201
+ send_message('get_key_range', Get_key_range_args, :table => table, :column_family => column_family, :start => start, :finish => finish, :count => count)
202
+ end
203
+
204
+ def recv_get_key_range()
205
+ result = receive_message(Get_key_range_result)
206
+ return result.success unless result.success.nil?
207
+ raise result.ire unless result.ire.nil?
208
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_key_range failed: unknown result')
209
+ end
210
+
211
+ def get_string_property(property)
212
+ send_get_string_property(property)
213
+ return recv_get_string_property()
214
+ end
215
+
216
+ def send_get_string_property(property)
217
+ send_message('get_string_property', Get_string_property_args, :property => property)
218
+ end
219
+
220
+ def recv_get_string_property()
221
+ result = receive_message(Get_string_property_result)
222
+ return result.success unless result.success.nil?
223
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_string_property failed: unknown result')
224
+ end
225
+
226
+ def get_string_list_property(property)
227
+ send_get_string_list_property(property)
228
+ return recv_get_string_list_property()
229
+ end
230
+
231
+ def send_get_string_list_property(property)
232
+ send_message('get_string_list_property', Get_string_list_property_args, :property => property)
233
+ end
234
+
235
+ def recv_get_string_list_property()
236
+ result = receive_message(Get_string_list_property_result)
237
+ return result.success unless result.success.nil?
238
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_string_list_property failed: unknown result')
239
+ end
240
+
241
+ def describe_table(table)
242
+ send_describe_table(table)
243
+ return recv_describe_table()
244
+ end
245
+
246
+ def send_describe_table(table)
247
+ send_message('describe_table', Describe_table_args, :table => table)
248
+ end
249
+
250
+ def recv_describe_table()
251
+ result = receive_message(Describe_table_result)
252
+ return result.success unless result.success.nil?
253
+ raise result.nfe unless result.nfe.nil?
254
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_table failed: unknown result')
255
+ end
256
+
257
+ def execute_query(query)
258
+ send_execute_query(query)
259
+ return recv_execute_query()
260
+ end
261
+
262
+ def send_execute_query(query)
263
+ send_message('execute_query', Execute_query_args, :query => query)
264
+ end
265
+
266
+ def recv_execute_query()
267
+ result = receive_message(Execute_query_result)
268
+ return result.success unless result.success.nil?
269
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'execute_query failed: unknown result')
270
+ end
271
+
272
+ end
273
+
274
+ class Processor
275
+ include ::Thrift::Processor
276
+
277
+ def process_get_slice_by_names(seqid, iprot, oprot)
278
+ args = read_args(iprot, Get_slice_by_names_args)
279
+ result = Get_slice_by_names_result.new()
280
+ begin
281
+ result.success = @handler.get_slice_by_names(args.table, args.key, args.column_parent, args.column_names, args.consistency_level)
282
+ rescue CassandraThrift::InvalidRequestException => ire
283
+ result.ire = ire
284
+ rescue CassandraThrift::NotFoundException => nfe
285
+ result.nfe = nfe
286
+ end
287
+ write_result(result, oprot, 'get_slice_by_names', seqid)
288
+ end
289
+
290
+ def process_get_slice(seqid, iprot, oprot)
291
+ args = read_args(iprot, Get_slice_args)
292
+ result = Get_slice_result.new()
293
+ begin
294
+ result.success = @handler.get_slice(args.table, args.key, args.column_parent, args.start, args.finish, args.is_ascending, args.count, args.consistency_level)
295
+ rescue CassandraThrift::InvalidRequestException => ire
296
+ result.ire = ire
297
+ rescue CassandraThrift::NotFoundException => nfe
298
+ result.nfe = nfe
299
+ end
300
+ write_result(result, oprot, 'get_slice', seqid)
301
+ end
302
+
303
+ def process_get_column(seqid, iprot, oprot)
304
+ args = read_args(iprot, Get_column_args)
305
+ result = Get_column_result.new()
306
+ begin
307
+ result.success = @handler.get_column(args.table, args.key, args.column_path, args.consistency_level)
308
+ rescue CassandraThrift::InvalidRequestException => ire
309
+ result.ire = ire
310
+ rescue CassandraThrift::NotFoundException => nfe
311
+ result.nfe = nfe
312
+ end
313
+ write_result(result, oprot, 'get_column', seqid)
314
+ end
315
+
316
+ def process_get_column_count(seqid, iprot, oprot)
317
+ args = read_args(iprot, Get_column_count_args)
318
+ result = Get_column_count_result.new()
319
+ begin
320
+ result.success = @handler.get_column_count(args.table, args.key, args.column_parent, args.consistency_level)
321
+ rescue CassandraThrift::InvalidRequestException => ire
322
+ result.ire = ire
323
+ end
324
+ write_result(result, oprot, 'get_column_count', seqid)
325
+ end
326
+
327
+ def process_insert(seqid, iprot, oprot)
328
+ args = read_args(iprot, Insert_args)
329
+ result = Insert_result.new()
330
+ begin
331
+ @handler.insert(args.table, args.key, args.column_path, args.value, args.timestamp, args.consistency_level)
332
+ rescue CassandraThrift::InvalidRequestException => ire
333
+ result.ire = ire
334
+ rescue CassandraThrift::UnavailableException => ue
335
+ result.ue = ue
336
+ end
337
+ write_result(result, oprot, 'insert', seqid)
338
+ end
339
+
340
+ def process_batch_insert(seqid, iprot, oprot)
341
+ args = read_args(iprot, Batch_insert_args)
342
+ result = Batch_insert_result.new()
343
+ begin
344
+ @handler.batch_insert(args.table, args.batch_mutation, args.consistency_level)
345
+ rescue CassandraThrift::InvalidRequestException => ire
346
+ result.ire = ire
347
+ rescue CassandraThrift::UnavailableException => ue
348
+ result.ue = ue
349
+ end
350
+ write_result(result, oprot, 'batch_insert', seqid)
351
+ end
352
+
353
+ def process_remove(seqid, iprot, oprot)
354
+ args = read_args(iprot, Remove_args)
355
+ result = Remove_result.new()
356
+ begin
357
+ @handler.remove(args.table, args.key, args.column_path_or_parent, args.timestamp, args.consistency_level)
358
+ rescue CassandraThrift::InvalidRequestException => ire
359
+ result.ire = ire
360
+ rescue CassandraThrift::UnavailableException => ue
361
+ result.ue = ue
362
+ end
363
+ write_result(result, oprot, 'remove', seqid)
364
+ end
365
+
366
+ def process_get_slice_super(seqid, iprot, oprot)
367
+ args = read_args(iprot, Get_slice_super_args)
368
+ result = Get_slice_super_result.new()
369
+ begin
370
+ result.success = @handler.get_slice_super(args.table, args.key, args.column_family, args.start, args.finish, args.is_ascending, args.count, args.consistency_level)
371
+ rescue CassandraThrift::InvalidRequestException => ire
372
+ result.ire = ire
373
+ end
374
+ write_result(result, oprot, 'get_slice_super', seqid)
375
+ end
376
+
377
+ def process_get_slice_super_by_names(seqid, iprot, oprot)
378
+ args = read_args(iprot, Get_slice_super_by_names_args)
379
+ result = Get_slice_super_by_names_result.new()
380
+ begin
381
+ result.success = @handler.get_slice_super_by_names(args.table, args.key, args.column_family, args.super_column_names, args.consistency_level)
382
+ rescue CassandraThrift::InvalidRequestException => ire
383
+ result.ire = ire
384
+ end
385
+ write_result(result, oprot, 'get_slice_super_by_names', seqid)
386
+ end
387
+
388
+ def process_get_super_column(seqid, iprot, oprot)
389
+ args = read_args(iprot, Get_super_column_args)
390
+ result = Get_super_column_result.new()
391
+ begin
392
+ result.success = @handler.get_super_column(args.table, args.key, args.super_column_path, args.consistency_level)
393
+ rescue CassandraThrift::InvalidRequestException => ire
394
+ result.ire = ire
395
+ rescue CassandraThrift::NotFoundException => nfe
396
+ result.nfe = nfe
397
+ end
398
+ write_result(result, oprot, 'get_super_column', seqid)
399
+ end
400
+
401
+ def process_batch_insert_super_column(seqid, iprot, oprot)
402
+ args = read_args(iprot, Batch_insert_super_column_args)
403
+ result = Batch_insert_super_column_result.new()
404
+ begin
405
+ @handler.batch_insert_super_column(args.table, args.batch_mutation_super, args.consistency_level)
406
+ rescue CassandraThrift::InvalidRequestException => ire
407
+ result.ire = ire
408
+ rescue CassandraThrift::UnavailableException => ue
409
+ result.ue = ue
410
+ end
411
+ write_result(result, oprot, 'batch_insert_super_column', seqid)
412
+ end
413
+
414
+ def process_get_key_range(seqid, iprot, oprot)
415
+ args = read_args(iprot, Get_key_range_args)
416
+ result = Get_key_range_result.new()
417
+ begin
418
+ result.success = @handler.get_key_range(args.table, args.column_family, args.start, args.finish, args.count)
419
+ rescue CassandraThrift::InvalidRequestException => ire
420
+ result.ire = ire
421
+ end
422
+ write_result(result, oprot, 'get_key_range', seqid)
423
+ end
424
+
425
+ def process_get_string_property(seqid, iprot, oprot)
426
+ args = read_args(iprot, Get_string_property_args)
427
+ result = Get_string_property_result.new()
428
+ result.success = @handler.get_string_property(args.property)
429
+ write_result(result, oprot, 'get_string_property', seqid)
430
+ end
431
+
432
+ def process_get_string_list_property(seqid, iprot, oprot)
433
+ args = read_args(iprot, Get_string_list_property_args)
434
+ result = Get_string_list_property_result.new()
435
+ result.success = @handler.get_string_list_property(args.property)
436
+ write_result(result, oprot, 'get_string_list_property', seqid)
437
+ end
438
+
439
+ def process_describe_table(seqid, iprot, oprot)
440
+ args = read_args(iprot, Describe_table_args)
441
+ result = Describe_table_result.new()
442
+ begin
443
+ result.success = @handler.describe_table(args.table)
444
+ rescue CassandraThrift::NotFoundException => nfe
445
+ result.nfe = nfe
446
+ end
447
+ write_result(result, oprot, 'describe_table', seqid)
448
+ end
449
+
450
+ def process_execute_query(seqid, iprot, oprot)
451
+ args = read_args(iprot, Execute_query_args)
452
+ result = Execute_query_result.new()
453
+ result.success = @handler.execute_query(args.query)
454
+ write_result(result, oprot, 'execute_query', seqid)
455
+ end
456
+
457
+ end
458
+
459
+ # HELPER FUNCTIONS AND STRUCTURES
460
+
461
+ class Get_slice_by_names_args
462
+ include ::Thrift::Struct
463
+ TABLE = 1
464
+ KEY = 2
465
+ COLUMN_PARENT = 3
466
+ COLUMN_NAMES = 4
467
+ CONSISTENCY_LEVEL = 5
468
+
469
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_parent, :column_names, :consistency_level
470
+ FIELDS = {
471
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
472
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
473
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
474
+ COLUMN_NAMES => {:type => ::Thrift::Types::LIST, :name => 'column_names', :element => {:type => ::Thrift::Types::STRING}},
475
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
476
+ }
477
+
478
+ def struct_fields; FIELDS; end
479
+
480
+ def validate
481
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
482
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
483
+ end
484
+ end
485
+
486
+ end
487
+
488
+ class Get_slice_by_names_result
489
+ include ::Thrift::Struct
490
+ SUCCESS = 0
491
+ IRE = 1
492
+ NFE = 2
493
+
494
+ ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
495
+ FIELDS = {
496
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::Column}},
497
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
498
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
499
+ }
500
+
501
+ def struct_fields; FIELDS; end
502
+
503
+ def validate
504
+ end
505
+
506
+ end
507
+
508
+ class Get_slice_args
509
+ include ::Thrift::Struct
510
+ TABLE = 1
511
+ KEY = 2
512
+ COLUMN_PARENT = 3
513
+ START = 4
514
+ FINISH = 5
515
+ IS_ASCENDING = 6
516
+ COUNT = 7
517
+ CONSISTENCY_LEVEL = 8
518
+
519
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_parent, :start, :finish, :is_ascending, :count, :consistency_level
520
+ FIELDS = {
521
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
522
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
523
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
524
+ START => {:type => ::Thrift::Types::STRING, :name => 'start'},
525
+ FINISH => {:type => ::Thrift::Types::STRING, :name => 'finish'},
526
+ IS_ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'is_ascending'},
527
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count', :default => 100},
528
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
529
+ }
530
+
531
+ def struct_fields; FIELDS; end
532
+
533
+ def validate
534
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
535
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
536
+ end
537
+ end
538
+
539
+ end
540
+
541
+ class Get_slice_result
542
+ include ::Thrift::Struct
543
+ SUCCESS = 0
544
+ IRE = 1
545
+ NFE = 2
546
+
547
+ ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
548
+ FIELDS = {
549
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::Column}},
550
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
551
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
552
+ }
553
+
554
+ def struct_fields; FIELDS; end
555
+
556
+ def validate
557
+ end
558
+
559
+ end
560
+
561
+ class Get_column_args
562
+ include ::Thrift::Struct
563
+ TABLE = 1
564
+ KEY = 2
565
+ COLUMN_PATH = 3
566
+ CONSISTENCY_LEVEL = 4
567
+
568
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_path, :consistency_level
569
+ FIELDS = {
570
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
571
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
572
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
573
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
574
+ }
575
+
576
+ def struct_fields; FIELDS; end
577
+
578
+ def validate
579
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
580
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
581
+ end
582
+ end
583
+
584
+ end
585
+
586
+ class Get_column_result
587
+ include ::Thrift::Struct
588
+ SUCCESS = 0
589
+ IRE = 1
590
+ NFE = 2
591
+
592
+ ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
593
+ FIELDS = {
594
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::Column},
595
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
596
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
597
+ }
598
+
599
+ def struct_fields; FIELDS; end
600
+
601
+ def validate
602
+ end
603
+
604
+ end
605
+
606
+ class Get_column_count_args
607
+ include ::Thrift::Struct
608
+ TABLE = 1
609
+ KEY = 2
610
+ COLUMN_PARENT = 3
611
+ CONSISTENCY_LEVEL = 5
612
+
613
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_parent, :consistency_level
614
+ FIELDS = {
615
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
616
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
617
+ COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
618
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
619
+ }
620
+
621
+ def struct_fields; FIELDS; end
622
+
623
+ def validate
624
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
625
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
626
+ end
627
+ end
628
+
629
+ end
630
+
631
+ class Get_column_count_result
632
+ include ::Thrift::Struct
633
+ SUCCESS = 0
634
+ IRE = 1
635
+
636
+ ::Thrift::Struct.field_accessor self, :success, :ire
637
+ FIELDS = {
638
+ SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
639
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
640
+ }
641
+
642
+ def struct_fields; FIELDS; end
643
+
644
+ def validate
645
+ end
646
+
647
+ end
648
+
649
+ class Insert_args
650
+ include ::Thrift::Struct
651
+ TABLE = 1
652
+ KEY = 2
653
+ COLUMN_PATH = 3
654
+ VALUE = 4
655
+ TIMESTAMP = 5
656
+ CONSISTENCY_LEVEL = 6
657
+
658
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_path, :value, :timestamp, :consistency_level
659
+ FIELDS = {
660
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
661
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
662
+ COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
663
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
664
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
665
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
666
+ }
667
+
668
+ def struct_fields; FIELDS; end
669
+
670
+ def validate
671
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
672
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
673
+ end
674
+ end
675
+
676
+ end
677
+
678
+ class Insert_result
679
+ include ::Thrift::Struct
680
+ IRE = 1
681
+ UE = 2
682
+
683
+ ::Thrift::Struct.field_accessor self, :ire, :ue
684
+ FIELDS = {
685
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
686
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
687
+ }
688
+
689
+ def struct_fields; FIELDS; end
690
+
691
+ def validate
692
+ end
693
+
694
+ end
695
+
696
+ class Batch_insert_args
697
+ include ::Thrift::Struct
698
+ TABLE = 1
699
+ BATCH_MUTATION = 2
700
+ CONSISTENCY_LEVEL = 3
701
+
702
+ ::Thrift::Struct.field_accessor self, :table, :batch_mutation, :consistency_level
703
+ FIELDS = {
704
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
705
+ BATCH_MUTATION => {:type => ::Thrift::Types::STRUCT, :name => 'batch_mutation', :class => CassandraThrift::BatchMutation},
706
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
707
+ }
708
+
709
+ def struct_fields; FIELDS; end
710
+
711
+ def validate
712
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
713
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
714
+ end
715
+ end
716
+
717
+ end
718
+
719
+ class Batch_insert_result
720
+ include ::Thrift::Struct
721
+ IRE = 1
722
+ UE = 2
723
+
724
+ ::Thrift::Struct.field_accessor self, :ire, :ue
725
+ FIELDS = {
726
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
727
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
728
+ }
729
+
730
+ def struct_fields; FIELDS; end
731
+
732
+ def validate
733
+ end
734
+
735
+ end
736
+
737
+ class Remove_args
738
+ include ::Thrift::Struct
739
+ TABLE = 1
740
+ KEY = 2
741
+ COLUMN_PATH_OR_PARENT = 3
742
+ TIMESTAMP = 4
743
+ CONSISTENCY_LEVEL = 5
744
+
745
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_path_or_parent, :timestamp, :consistency_level
746
+ FIELDS = {
747
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
748
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
749
+ COLUMN_PATH_OR_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_path_or_parent', :class => CassandraThrift::ColumnPathOrParent},
750
+ TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
751
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
752
+ }
753
+
754
+ def struct_fields; FIELDS; end
755
+
756
+ def validate
757
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
758
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
759
+ end
760
+ end
761
+
762
+ end
763
+
764
+ class Remove_result
765
+ include ::Thrift::Struct
766
+ IRE = 1
767
+ UE = 2
768
+
769
+ ::Thrift::Struct.field_accessor self, :ire, :ue
770
+ FIELDS = {
771
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
772
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
773
+ }
774
+
775
+ def struct_fields; FIELDS; end
776
+
777
+ def validate
778
+ end
779
+
780
+ end
781
+
782
+ class Get_slice_super_args
783
+ include ::Thrift::Struct
784
+ TABLE = 1
785
+ KEY = 2
786
+ COLUMN_FAMILY = 3
787
+ START = 4
788
+ FINISH = 5
789
+ IS_ASCENDING = 6
790
+ COUNT = 7
791
+ CONSISTENCY_LEVEL = 8
792
+
793
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_family, :start, :finish, :is_ascending, :count, :consistency_level
794
+ FIELDS = {
795
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
796
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
797
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
798
+ START => {:type => ::Thrift::Types::STRING, :name => 'start'},
799
+ FINISH => {:type => ::Thrift::Types::STRING, :name => 'finish'},
800
+ IS_ASCENDING => {:type => ::Thrift::Types::BOOL, :name => 'is_ascending'},
801
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count', :default => 100},
802
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
803
+ }
804
+
805
+ def struct_fields; FIELDS; end
806
+
807
+ def validate
808
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
809
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
810
+ end
811
+ end
812
+
813
+ end
814
+
815
+ class Get_slice_super_result
816
+ include ::Thrift::Struct
817
+ SUCCESS = 0
818
+ IRE = 1
819
+
820
+ ::Thrift::Struct.field_accessor self, :success, :ire
821
+ FIELDS = {
822
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::SuperColumn}},
823
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
824
+ }
825
+
826
+ def struct_fields; FIELDS; end
827
+
828
+ def validate
829
+ end
830
+
831
+ end
832
+
833
+ class Get_slice_super_by_names_args
834
+ include ::Thrift::Struct
835
+ TABLE = 1
836
+ KEY = 2
837
+ COLUMN_FAMILY = 3
838
+ SUPER_COLUMN_NAMES = 4
839
+ CONSISTENCY_LEVEL = 5
840
+
841
+ ::Thrift::Struct.field_accessor self, :table, :key, :column_family, :super_column_names, :consistency_level
842
+ FIELDS = {
843
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
844
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
845
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
846
+ SUPER_COLUMN_NAMES => {:type => ::Thrift::Types::LIST, :name => 'super_column_names', :element => {:type => ::Thrift::Types::STRING}},
847
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
848
+ }
849
+
850
+ def struct_fields; FIELDS; end
851
+
852
+ def validate
853
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
854
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
855
+ end
856
+ end
857
+
858
+ end
859
+
860
+ class Get_slice_super_by_names_result
861
+ include ::Thrift::Struct
862
+ SUCCESS = 0
863
+ IRE = 1
864
+
865
+ ::Thrift::Struct.field_accessor self, :success, :ire
866
+ FIELDS = {
867
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::SuperColumn}},
868
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
869
+ }
870
+
871
+ def struct_fields; FIELDS; end
872
+
873
+ def validate
874
+ end
875
+
876
+ end
877
+
878
+ class Get_super_column_args
879
+ include ::Thrift::Struct
880
+ TABLE = 1
881
+ KEY = 2
882
+ SUPER_COLUMN_PATH = 3
883
+ CONSISTENCY_LEVEL = 4
884
+
885
+ ::Thrift::Struct.field_accessor self, :table, :key, :super_column_path, :consistency_level
886
+ FIELDS = {
887
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
888
+ KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
889
+ SUPER_COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'super_column_path', :class => CassandraThrift::SuperColumnPath},
890
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
891
+ }
892
+
893
+ def struct_fields; FIELDS; end
894
+
895
+ def validate
896
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
897
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
898
+ end
899
+ end
900
+
901
+ end
902
+
903
+ class Get_super_column_result
904
+ include ::Thrift::Struct
905
+ SUCCESS = 0
906
+ IRE = 1
907
+ NFE = 2
908
+
909
+ ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
910
+ FIELDS = {
911
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::SuperColumn},
912
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
913
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
914
+ }
915
+
916
+ def struct_fields; FIELDS; end
917
+
918
+ def validate
919
+ end
920
+
921
+ end
922
+
923
+ class Batch_insert_super_column_args
924
+ include ::Thrift::Struct
925
+ TABLE = 1
926
+ BATCH_MUTATION_SUPER = 2
927
+ CONSISTENCY_LEVEL = 3
928
+
929
+ ::Thrift::Struct.field_accessor self, :table, :batch_mutation_super, :consistency_level
930
+ FIELDS = {
931
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
932
+ BATCH_MUTATION_SUPER => {:type => ::Thrift::Types::STRUCT, :name => 'batch_mutation_super', :class => CassandraThrift::BatchMutationSuper},
933
+ CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
934
+ }
935
+
936
+ def struct_fields; FIELDS; end
937
+
938
+ def validate
939
+ unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
940
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
941
+ end
942
+ end
943
+
944
+ end
945
+
946
+ class Batch_insert_super_column_result
947
+ include ::Thrift::Struct
948
+ IRE = 1
949
+ UE = 2
950
+
951
+ ::Thrift::Struct.field_accessor self, :ire, :ue
952
+ FIELDS = {
953
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
954
+ UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
955
+ }
956
+
957
+ def struct_fields; FIELDS; end
958
+
959
+ def validate
960
+ end
961
+
962
+ end
963
+
964
+ class Get_key_range_args
965
+ include ::Thrift::Struct
966
+ TABLE = 1
967
+ COLUMN_FAMILY = 2
968
+ START = 3
969
+ FINISH = 4
970
+ COUNT = 5
971
+
972
+ ::Thrift::Struct.field_accessor self, :table, :column_family, :start, :finish, :count
973
+ FIELDS = {
974
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
975
+ COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
976
+ START => {:type => ::Thrift::Types::STRING, :name => 'start', :default => %q""},
977
+ FINISH => {:type => ::Thrift::Types::STRING, :name => 'finish', :default => %q""},
978
+ COUNT => {:type => ::Thrift::Types::I32, :name => 'count', :default => 100}
979
+ }
980
+
981
+ def struct_fields; FIELDS; end
982
+
983
+ def validate
984
+ end
985
+
986
+ end
987
+
988
+ class Get_key_range_result
989
+ include ::Thrift::Struct
990
+ SUCCESS = 0
991
+ IRE = 1
992
+
993
+ ::Thrift::Struct.field_accessor self, :success, :ire
994
+ FIELDS = {
995
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
996
+ IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
997
+ }
998
+
999
+ def struct_fields; FIELDS; end
1000
+
1001
+ def validate
1002
+ end
1003
+
1004
+ end
1005
+
1006
+ class Get_string_property_args
1007
+ include ::Thrift::Struct
1008
+ PROPERTY = 1
1009
+
1010
+ ::Thrift::Struct.field_accessor self, :property
1011
+ FIELDS = {
1012
+ PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
1013
+ }
1014
+
1015
+ def struct_fields; FIELDS; end
1016
+
1017
+ def validate
1018
+ end
1019
+
1020
+ end
1021
+
1022
+ class Get_string_property_result
1023
+ include ::Thrift::Struct
1024
+ SUCCESS = 0
1025
+
1026
+ ::Thrift::Struct.field_accessor self, :success
1027
+ FIELDS = {
1028
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
1029
+ }
1030
+
1031
+ def struct_fields; FIELDS; end
1032
+
1033
+ def validate
1034
+ end
1035
+
1036
+ end
1037
+
1038
+ class Get_string_list_property_args
1039
+ include ::Thrift::Struct
1040
+ PROPERTY = 1
1041
+
1042
+ ::Thrift::Struct.field_accessor self, :property
1043
+ FIELDS = {
1044
+ PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
1045
+ }
1046
+
1047
+ def struct_fields; FIELDS; end
1048
+
1049
+ def validate
1050
+ end
1051
+
1052
+ end
1053
+
1054
+ class Get_string_list_property_result
1055
+ include ::Thrift::Struct
1056
+ SUCCESS = 0
1057
+
1058
+ ::Thrift::Struct.field_accessor self, :success
1059
+ FIELDS = {
1060
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
1061
+ }
1062
+
1063
+ def struct_fields; FIELDS; end
1064
+
1065
+ def validate
1066
+ end
1067
+
1068
+ end
1069
+
1070
+ class Describe_table_args
1071
+ include ::Thrift::Struct
1072
+ TABLE = 1
1073
+
1074
+ ::Thrift::Struct.field_accessor self, :table
1075
+ FIELDS = {
1076
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
1077
+ }
1078
+
1079
+ def struct_fields; FIELDS; end
1080
+
1081
+ def validate
1082
+ end
1083
+
1084
+ end
1085
+
1086
+ class Describe_table_result
1087
+ include ::Thrift::Struct
1088
+ SUCCESS = 0
1089
+ NFE = 1
1090
+
1091
+ ::Thrift::Struct.field_accessor self, :success, :nfe
1092
+ FIELDS = {
1093
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::MAP, :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}},
1094
+ NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
1095
+ }
1096
+
1097
+ def struct_fields; FIELDS; end
1098
+
1099
+ def validate
1100
+ end
1101
+
1102
+ end
1103
+
1104
+ class Execute_query_args
1105
+ include ::Thrift::Struct
1106
+ QUERY = 1
1107
+
1108
+ ::Thrift::Struct.field_accessor self, :query
1109
+ FIELDS = {
1110
+ QUERY => {:type => ::Thrift::Types::STRING, :name => 'query'}
1111
+ }
1112
+
1113
+ def struct_fields; FIELDS; end
1114
+
1115
+ def validate
1116
+ end
1117
+
1118
+ end
1119
+
1120
+ class Execute_query_result
1121
+ include ::Thrift::Struct
1122
+ SUCCESS = 0
1123
+
1124
+ ::Thrift::Struct.field_accessor self, :success
1125
+ FIELDS = {
1126
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::CqlResult}
1127
+ }
1128
+
1129
+ def struct_fields; FIELDS; end
1130
+
1131
+ def validate
1132
+ end
1133
+
1134
+ end
1135
+
1136
+ end
1137
+
1138
+ end