cassandra 0.5.5 → 0.5.6

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.
@@ -1,706 +0,0 @@
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(keyspace, key, column_parent, predicate, consistency_level)
16
- send_get_slice(keyspace, key, column_parent, predicate, consistency_level)
17
- return recv_get_slice()
18
- end
19
-
20
- def send_get_slice(keyspace, key, column_parent, predicate, consistency_level)
21
- send_message('get_slice', Get_slice_args, :keyspace => keyspace, :key => key, :column_parent => column_parent, :predicate => predicate, :consistency_level => consistency_level)
22
- end
23
-
24
- def recv_get_slice()
25
- result = receive_message(Get_slice_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 failed: unknown result')
30
- end
31
-
32
- def get(keyspace, key, column_path, consistency_level)
33
- send_get(keyspace, key, column_path, consistency_level)
34
- return recv_get()
35
- end
36
-
37
- def send_get(keyspace, key, column_path, consistency_level)
38
- send_message('get', Get_args, :keyspace => keyspace, :key => key, :column_path => column_path, :consistency_level => consistency_level)
39
- end
40
-
41
- def recv_get()
42
- result = receive_message(Get_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 failed: unknown result')
47
- end
48
-
49
- def get_count(keyspace, key, column_parent, consistency_level)
50
- send_get_count(keyspace, key, column_parent, consistency_level)
51
- return recv_get_count()
52
- end
53
-
54
- def send_get_count(keyspace, key, column_parent, consistency_level)
55
- send_message('get_count', Get_count_args, :keyspace => keyspace, :key => key, :column_parent => column_parent, :consistency_level => consistency_level)
56
- end
57
-
58
- def recv_get_count()
59
- result = receive_message(Get_count_result)
60
- return result.success unless result.success.nil?
61
- raise result.ire unless result.ire.nil?
62
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_count failed: unknown result')
63
- end
64
-
65
- def insert(keyspace, key, column_path, value, timestamp, consistency_level)
66
- send_insert(keyspace, key, column_path, value, timestamp, consistency_level)
67
- recv_insert()
68
- end
69
-
70
- def send_insert(keyspace, key, column_path, value, timestamp, consistency_level)
71
- send_message('insert', Insert_args, :keyspace => keyspace, :key => key, :column_path => column_path, :value => value, :timestamp => timestamp, :consistency_level => consistency_level)
72
- end
73
-
74
- def recv_insert()
75
- result = receive_message(Insert_result)
76
- raise result.ire unless result.ire.nil?
77
- raise result.ue unless result.ue.nil?
78
- return
79
- end
80
-
81
- def batch_mutate(keyspace, batch_mutations, consistency_level)
82
- send_batch_mutate(keyspace, batch_mutations, consistency_level)
83
- recv_batch_mutate()
84
- end
85
-
86
- def send_batch_mutate(keyspace, batch_mutations, consistency_level)
87
- send_message('batch_mutate', Batch_mutate_args, :keyspace => keyspace, :batch_mutations => batch_mutations, :consistency_level => consistency_level)
88
- end
89
-
90
- def recv_batch_mutate()
91
- result = receive_message(Batch_mutate_result)
92
- raise result.ire unless result.ire.nil?
93
- raise result.ue unless result.ue.nil?
94
- return
95
- end
96
-
97
- def remove(keyspace, key, column_path, timestamp, consistency_level)
98
- send_remove(keyspace, key, column_path, timestamp, consistency_level)
99
- recv_remove()
100
- end
101
-
102
- def send_remove(keyspace, key, column_path, timestamp, consistency_level)
103
- send_message('remove', Remove_args, :keyspace => keyspace, :key => key, :column_path => column_path, :timestamp => timestamp, :consistency_level => consistency_level)
104
- end
105
-
106
- def recv_remove()
107
- result = receive_message(Remove_result)
108
- raise result.ire unless result.ire.nil?
109
- raise result.ue unless result.ue.nil?
110
- return
111
- end
112
-
113
- def get_key_range(keyspace, column_family, start, finish, count)
114
- send_get_key_range(keyspace, column_family, start, finish, count)
115
- return recv_get_key_range()
116
- end
117
-
118
- def send_get_key_range(keyspace, column_family, start, finish, count)
119
- send_message('get_key_range', Get_key_range_args, :keyspace => keyspace, :column_family => column_family, :start => start, :finish => finish, :count => count)
120
- end
121
-
122
- def recv_get_key_range()
123
- result = receive_message(Get_key_range_result)
124
- return result.success unless result.success.nil?
125
- raise result.ire unless result.ire.nil?
126
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_key_range failed: unknown result')
127
- end
128
-
129
- def get_string_property(property)
130
- send_get_string_property(property)
131
- return recv_get_string_property()
132
- end
133
-
134
- def send_get_string_property(property)
135
- send_message('get_string_property', Get_string_property_args, :property => property)
136
- end
137
-
138
- def recv_get_string_property()
139
- result = receive_message(Get_string_property_result)
140
- return result.success unless result.success.nil?
141
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_string_property failed: unknown result')
142
- end
143
-
144
- def get_string_list_property(property)
145
- send_get_string_list_property(property)
146
- return recv_get_string_list_property()
147
- end
148
-
149
- def send_get_string_list_property(property)
150
- send_message('get_string_list_property', Get_string_list_property_args, :property => property)
151
- end
152
-
153
- def recv_get_string_list_property()
154
- result = receive_message(Get_string_list_property_result)
155
- return result.success unless result.success.nil?
156
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_string_list_property failed: unknown result')
157
- end
158
-
159
- def describe_keyspace(keyspace)
160
- send_describe_keyspace(keyspace)
161
- return recv_describe_keyspace()
162
- end
163
-
164
- def send_describe_keyspace(keyspace)
165
- send_message('describe_keyspace', Describe_keyspace_args, :keyspace => keyspace)
166
- end
167
-
168
- def recv_describe_keyspace()
169
- result = receive_message(Describe_keyspace_result)
170
- return result.success unless result.success.nil?
171
- raise result.nfe unless result.nfe.nil?
172
- raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe_keyspace failed: unknown result')
173
- end
174
-
175
- end
176
-
177
- class Processor
178
- include ::Thrift::Processor
179
-
180
- def process_get_slice(seqid, iprot, oprot)
181
- args = read_args(iprot, Get_slice_args)
182
- result = Get_slice_result.new()
183
- begin
184
- result.success = @handler.get_slice(args.keyspace, args.key, args.column_parent, args.predicate, args.consistency_level)
185
- rescue CassandraThrift::InvalidRequestException => ire
186
- result.ire = ire
187
- rescue CassandraThrift::NotFoundException => nfe
188
- result.nfe = nfe
189
- end
190
- write_result(result, oprot, 'get_slice', seqid)
191
- end
192
-
193
- def process_get(seqid, iprot, oprot)
194
- args = read_args(iprot, Get_args)
195
- result = Get_result.new()
196
- begin
197
- result.success = @handler.get(args.keyspace, args.key, args.column_path, args.consistency_level)
198
- rescue CassandraThrift::InvalidRequestException => ire
199
- result.ire = ire
200
- rescue CassandraThrift::NotFoundException => nfe
201
- result.nfe = nfe
202
- end
203
- write_result(result, oprot, 'get', seqid)
204
- end
205
-
206
- def process_get_count(seqid, iprot, oprot)
207
- args = read_args(iprot, Get_count_args)
208
- result = Get_count_result.new()
209
- begin
210
- result.success = @handler.get_count(args.keyspace, args.key, args.column_parent, args.consistency_level)
211
- rescue CassandraThrift::InvalidRequestException => ire
212
- result.ire = ire
213
- end
214
- write_result(result, oprot, 'get_count', seqid)
215
- end
216
-
217
- def process_insert(seqid, iprot, oprot)
218
- args = read_args(iprot, Insert_args)
219
- result = Insert_result.new()
220
- begin
221
- @handler.insert(args.keyspace, args.key, args.column_path, args.value, args.timestamp, args.consistency_level)
222
- rescue CassandraThrift::InvalidRequestException => ire
223
- result.ire = ire
224
- rescue CassandraThrift::UnavailableException => ue
225
- result.ue = ue
226
- end
227
- write_result(result, oprot, 'insert', seqid)
228
- end
229
-
230
- def process_batch_mutate(seqid, iprot, oprot)
231
- args = read_args(iprot, Batch_mutate_args)
232
- result = Batch_mutate_result.new()
233
- begin
234
- @handler.batch_mutate(args.keyspace, args.batch_mutations, args.consistency_level)
235
- rescue CassandraThrift::InvalidRequestException => ire
236
- result.ire = ire
237
- rescue CassandraThrift::UnavailableException => ue
238
- result.ue = ue
239
- end
240
- write_result(result, oprot, 'batch_mutate', seqid)
241
- end
242
-
243
- def process_remove(seqid, iprot, oprot)
244
- args = read_args(iprot, Remove_args)
245
- result = Remove_result.new()
246
- begin
247
- @handler.remove(args.keyspace, args.key, args.column_path, args.timestamp, args.consistency_level)
248
- rescue CassandraThrift::InvalidRequestException => ire
249
- result.ire = ire
250
- rescue CassandraThrift::UnavailableException => ue
251
- result.ue = ue
252
- end
253
- write_result(result, oprot, 'remove', seqid)
254
- end
255
-
256
- def process_get_key_range(seqid, iprot, oprot)
257
- args = read_args(iprot, Get_key_range_args)
258
- result = Get_key_range_result.new()
259
- begin
260
- result.success = @handler.get_key_range(args.keyspace, args.column_family, args.start, args.finish, args.count)
261
- rescue CassandraThrift::InvalidRequestException => ire
262
- result.ire = ire
263
- end
264
- write_result(result, oprot, 'get_key_range', seqid)
265
- end
266
-
267
- def process_get_string_property(seqid, iprot, oprot)
268
- args = read_args(iprot, Get_string_property_args)
269
- result = Get_string_property_result.new()
270
- result.success = @handler.get_string_property(args.property)
271
- write_result(result, oprot, 'get_string_property', seqid)
272
- end
273
-
274
- def process_get_string_list_property(seqid, iprot, oprot)
275
- args = read_args(iprot, Get_string_list_property_args)
276
- result = Get_string_list_property_result.new()
277
- result.success = @handler.get_string_list_property(args.property)
278
- write_result(result, oprot, 'get_string_list_property', seqid)
279
- end
280
-
281
- def process_describe_keyspace(seqid, iprot, oprot)
282
- args = read_args(iprot, Describe_keyspace_args)
283
- result = Describe_keyspace_result.new()
284
- begin
285
- result.success = @handler.describe_keyspace(args.keyspace)
286
- rescue CassandraThrift::NotFoundException => nfe
287
- result.nfe = nfe
288
- end
289
- write_result(result, oprot, 'describe_keyspace', seqid)
290
- end
291
-
292
- end
293
-
294
- # HELPER FUNCTIONS AND STRUCTURES
295
-
296
- class Get_slice_args
297
- include ::Thrift::Struct
298
- KEYSPACE = 1
299
- KEY = 2
300
- COLUMN_PARENT = 3
301
- PREDICATE = 4
302
- CONSISTENCY_LEVEL = 5
303
-
304
- ::Thrift::Struct.field_accessor self, :keyspace, :key, :column_parent, :predicate, :consistency_level
305
- FIELDS = {
306
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
307
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
308
- COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
309
- PREDICATE => {:type => ::Thrift::Types::STRUCT, :name => 'predicate', :class => CassandraThrift::SlicePredicate},
310
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
311
- }
312
-
313
- def struct_fields; FIELDS; end
314
-
315
- def validate
316
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
317
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
318
- end
319
- end
320
-
321
- end
322
-
323
- class Get_slice_result
324
- include ::Thrift::Struct
325
- SUCCESS = 0
326
- IRE = 1
327
- NFE = 2
328
-
329
- ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
330
- FIELDS = {
331
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::ColumnOrSuperColumn}},
332
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
333
- NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
334
- }
335
-
336
- def struct_fields; FIELDS; end
337
-
338
- def validate
339
- end
340
-
341
- end
342
-
343
- class Get_args
344
- include ::Thrift::Struct
345
- KEYSPACE = 1
346
- KEY = 2
347
- COLUMN_PATH = 3
348
- CONSISTENCY_LEVEL = 4
349
-
350
- ::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :consistency_level
351
- FIELDS = {
352
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
353
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
354
- COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
355
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
356
- }
357
-
358
- def struct_fields; FIELDS; end
359
-
360
- def validate
361
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
362
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
363
- end
364
- end
365
-
366
- end
367
-
368
- class Get_result
369
- include ::Thrift::Struct
370
- SUCCESS = 0
371
- IRE = 1
372
- NFE = 2
373
-
374
- ::Thrift::Struct.field_accessor self, :success, :ire, :nfe
375
- FIELDS = {
376
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => CassandraThrift::ColumnOrSuperColumn},
377
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
378
- NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
379
- }
380
-
381
- def struct_fields; FIELDS; end
382
-
383
- def validate
384
- end
385
-
386
- end
387
-
388
- class Get_count_args
389
- include ::Thrift::Struct
390
- KEYSPACE = 1
391
- KEY = 2
392
- COLUMN_PARENT = 3
393
- CONSISTENCY_LEVEL = 5
394
-
395
- ::Thrift::Struct.field_accessor self, :keyspace, :key, :column_parent, :consistency_level
396
- FIELDS = {
397
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
398
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
399
- COLUMN_PARENT => {:type => ::Thrift::Types::STRUCT, :name => 'column_parent', :class => CassandraThrift::ColumnParent},
400
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 1, :enum_class => CassandraThrift::ConsistencyLevel}
401
- }
402
-
403
- def struct_fields; FIELDS; end
404
-
405
- def validate
406
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
407
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
408
- end
409
- end
410
-
411
- end
412
-
413
- class Get_count_result
414
- include ::Thrift::Struct
415
- SUCCESS = 0
416
- IRE = 1
417
-
418
- ::Thrift::Struct.field_accessor self, :success, :ire
419
- FIELDS = {
420
- SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success'},
421
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
422
- }
423
-
424
- def struct_fields; FIELDS; end
425
-
426
- def validate
427
- end
428
-
429
- end
430
-
431
- class Insert_args
432
- include ::Thrift::Struct
433
- KEYSPACE = 1
434
- KEY = 2
435
- COLUMN_PATH = 3
436
- VALUE = 4
437
- TIMESTAMP = 5
438
- CONSISTENCY_LEVEL = 6
439
-
440
- ::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :value, :timestamp, :consistency_level
441
- FIELDS = {
442
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
443
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
444
- COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
445
- VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
446
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
447
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
448
- }
449
-
450
- def struct_fields; FIELDS; end
451
-
452
- def validate
453
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
454
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
455
- end
456
- end
457
-
458
- end
459
-
460
- class Insert_result
461
- include ::Thrift::Struct
462
- IRE = 1
463
- UE = 2
464
-
465
- ::Thrift::Struct.field_accessor self, :ire, :ue
466
- FIELDS = {
467
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
468
- UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
469
- }
470
-
471
- def struct_fields; FIELDS; end
472
-
473
- def validate
474
- end
475
-
476
- end
477
-
478
- class Batch_mutate_args
479
- include ::Thrift::Struct
480
- KEYSPACE = 1
481
- BATCH_MUTATIONS = 2
482
- CONSISTENCY_LEVEL = 3
483
-
484
- ::Thrift::Struct.field_accessor self, :keyspace, :batch_mutations, :consistency_level
485
- FIELDS = {
486
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
487
- BATCH_MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'batch_mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => CassandraThrift::BatchMutation}},
488
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
489
- }
490
-
491
- def struct_fields; FIELDS; end
492
-
493
- def validate
494
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
495
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
496
- end
497
- end
498
-
499
- end
500
-
501
- class Batch_mutate_result
502
- include ::Thrift::Struct
503
- IRE = 1
504
- UE = 2
505
-
506
- ::Thrift::Struct.field_accessor self, :ire, :ue
507
- FIELDS = {
508
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
509
- UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
510
- }
511
-
512
- def struct_fields; FIELDS; end
513
-
514
- def validate
515
- end
516
-
517
- end
518
-
519
- class Remove_args
520
- include ::Thrift::Struct
521
- KEYSPACE = 1
522
- KEY = 2
523
- COLUMN_PATH = 3
524
- TIMESTAMP = 4
525
- CONSISTENCY_LEVEL = 5
526
-
527
- ::Thrift::Struct.field_accessor self, :keyspace, :key, :column_path, :timestamp, :consistency_level
528
- FIELDS = {
529
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
530
- KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
531
- COLUMN_PATH => {:type => ::Thrift::Types::STRUCT, :name => 'column_path', :class => CassandraThrift::ColumnPath},
532
- TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
533
- CONSISTENCY_LEVEL => {:type => ::Thrift::Types::I32, :name => 'consistency_level', :default => 0, :enum_class => CassandraThrift::ConsistencyLevel}
534
- }
535
-
536
- def struct_fields; FIELDS; end
537
-
538
- def validate
539
- unless @consistency_level.nil? || CassandraThrift::ConsistencyLevel::VALID_VALUES.include?(@consistency_level)
540
- raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field consistency_level!')
541
- end
542
- end
543
-
544
- end
545
-
546
- class Remove_result
547
- include ::Thrift::Struct
548
- IRE = 1
549
- UE = 2
550
-
551
- ::Thrift::Struct.field_accessor self, :ire, :ue
552
- FIELDS = {
553
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException},
554
- UE => {:type => ::Thrift::Types::STRUCT, :name => 'ue', :class => CassandraThrift::UnavailableException}
555
- }
556
-
557
- def struct_fields; FIELDS; end
558
-
559
- def validate
560
- end
561
-
562
- end
563
-
564
- class Get_key_range_args
565
- include ::Thrift::Struct
566
- KEYSPACE = 1
567
- COLUMN_FAMILY = 2
568
- START = 3
569
- FINISH = 4
570
- COUNT = 5
571
-
572
- ::Thrift::Struct.field_accessor self, :keyspace, :column_family, :start, :finish, :count
573
- FIELDS = {
574
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'},
575
- COLUMN_FAMILY => {:type => ::Thrift::Types::STRING, :name => 'column_family'},
576
- START => {:type => ::Thrift::Types::STRING, :name => 'start', :default => %q""},
577
- FINISH => {:type => ::Thrift::Types::STRING, :name => 'finish', :default => %q""},
578
- COUNT => {:type => ::Thrift::Types::I32, :name => 'count', :default => 100}
579
- }
580
-
581
- def struct_fields; FIELDS; end
582
-
583
- def validate
584
- end
585
-
586
- end
587
-
588
- class Get_key_range_result
589
- include ::Thrift::Struct
590
- SUCCESS = 0
591
- IRE = 1
592
-
593
- ::Thrift::Struct.field_accessor self, :success, :ire
594
- FIELDS = {
595
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
596
- IRE => {:type => ::Thrift::Types::STRUCT, :name => 'ire', :class => CassandraThrift::InvalidRequestException}
597
- }
598
-
599
- def struct_fields; FIELDS; end
600
-
601
- def validate
602
- end
603
-
604
- end
605
-
606
- class Get_string_property_args
607
- include ::Thrift::Struct
608
- PROPERTY = 1
609
-
610
- ::Thrift::Struct.field_accessor self, :property
611
- FIELDS = {
612
- PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
613
- }
614
-
615
- def struct_fields; FIELDS; end
616
-
617
- def validate
618
- end
619
-
620
- end
621
-
622
- class Get_string_property_result
623
- include ::Thrift::Struct
624
- SUCCESS = 0
625
-
626
- ::Thrift::Struct.field_accessor self, :success
627
- FIELDS = {
628
- SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
629
- }
630
-
631
- def struct_fields; FIELDS; end
632
-
633
- def validate
634
- end
635
-
636
- end
637
-
638
- class Get_string_list_property_args
639
- include ::Thrift::Struct
640
- PROPERTY = 1
641
-
642
- ::Thrift::Struct.field_accessor self, :property
643
- FIELDS = {
644
- PROPERTY => {:type => ::Thrift::Types::STRING, :name => 'property'}
645
- }
646
-
647
- def struct_fields; FIELDS; end
648
-
649
- def validate
650
- end
651
-
652
- end
653
-
654
- class Get_string_list_property_result
655
- include ::Thrift::Struct
656
- SUCCESS = 0
657
-
658
- ::Thrift::Struct.field_accessor self, :success
659
- FIELDS = {
660
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}}
661
- }
662
-
663
- def struct_fields; FIELDS; end
664
-
665
- def validate
666
- end
667
-
668
- end
669
-
670
- class Describe_keyspace_args
671
- include ::Thrift::Struct
672
- KEYSPACE = 1
673
-
674
- ::Thrift::Struct.field_accessor self, :keyspace
675
- FIELDS = {
676
- KEYSPACE => {:type => ::Thrift::Types::STRING, :name => 'keyspace'}
677
- }
678
-
679
- def struct_fields; FIELDS; end
680
-
681
- def validate
682
- end
683
-
684
- end
685
-
686
- class Describe_keyspace_result
687
- include ::Thrift::Struct
688
- SUCCESS = 0
689
- NFE = 1
690
-
691
- ::Thrift::Struct.field_accessor self, :success, :nfe
692
- FIELDS = {
693
- 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}}},
694
- NFE => {:type => ::Thrift::Types::STRUCT, :name => 'nfe', :class => CassandraThrift::NotFoundException}
695
- }
696
-
697
- def struct_fields; FIELDS; end
698
-
699
- def validate
700
- end
701
-
702
- end
703
-
704
- end
705
-
706
- end