active_blur 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1244 @@
1
+ #
2
+ # Autogenerated by Thrift Compiler (0.7.0)
3
+ #
4
+ # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
+ #
6
+
7
+ require 'thrift'
8
+ require 'active_blur/thrift/blur_types'
9
+
10
+ module Blur
11
+ module Blur
12
+ class Client
13
+ include ::Thrift::Client
14
+
15
+ def shardClusterList()
16
+ send_shardClusterList()
17
+ return recv_shardClusterList()
18
+ end
19
+
20
+ def send_shardClusterList()
21
+ send_message('shardClusterList', ShardClusterList_args)
22
+ end
23
+
24
+ def recv_shardClusterList()
25
+ result = receive_message(ShardClusterList_result)
26
+ return result.success unless result.success.nil?
27
+ raise result.ex unless result.ex.nil?
28
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardClusterList failed: unknown result')
29
+ end
30
+
31
+ def shardServerList(cluster)
32
+ send_shardServerList(cluster)
33
+ return recv_shardServerList()
34
+ end
35
+
36
+ def send_shardServerList(cluster)
37
+ send_message('shardServerList', ShardServerList_args, :cluster => cluster)
38
+ end
39
+
40
+ def recv_shardServerList()
41
+ result = receive_message(ShardServerList_result)
42
+ return result.success unless result.success.nil?
43
+ raise result.ex unless result.ex.nil?
44
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerList failed: unknown result')
45
+ end
46
+
47
+ def controllerServerList()
48
+ send_controllerServerList()
49
+ return recv_controllerServerList()
50
+ end
51
+
52
+ def send_controllerServerList()
53
+ send_message('controllerServerList', ControllerServerList_args)
54
+ end
55
+
56
+ def recv_controllerServerList()
57
+ result = receive_message(ControllerServerList_result)
58
+ return result.success unless result.success.nil?
59
+ raise result.ex unless result.ex.nil?
60
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'controllerServerList failed: unknown result')
61
+ end
62
+
63
+ def shardServerLayout(table)
64
+ send_shardServerLayout(table)
65
+ return recv_shardServerLayout()
66
+ end
67
+
68
+ def send_shardServerLayout(table)
69
+ send_message('shardServerLayout', ShardServerLayout_args, :table => table)
70
+ end
71
+
72
+ def recv_shardServerLayout()
73
+ result = receive_message(ShardServerLayout_result)
74
+ return result.success unless result.success.nil?
75
+ raise result.ex unless result.ex.nil?
76
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'shardServerLayout failed: unknown result')
77
+ end
78
+
79
+ def tableList()
80
+ send_tableList()
81
+ return recv_tableList()
82
+ end
83
+
84
+ def send_tableList()
85
+ send_message('tableList', TableList_args)
86
+ end
87
+
88
+ def recv_tableList()
89
+ result = receive_message(TableList_result)
90
+ return result.success unless result.success.nil?
91
+ raise result.ex unless result.ex.nil?
92
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'tableList failed: unknown result')
93
+ end
94
+
95
+ def describe(table)
96
+ send_describe(table)
97
+ return recv_describe()
98
+ end
99
+
100
+ def send_describe(table)
101
+ send_message('describe', Describe_args, :table => table)
102
+ end
103
+
104
+ def recv_describe()
105
+ result = receive_message(Describe_result)
106
+ return result.success unless result.success.nil?
107
+ raise result.ex unless result.ex.nil?
108
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'describe failed: unknown result')
109
+ end
110
+
111
+ def query(table, blurQuery)
112
+ send_query(table, blurQuery)
113
+ return recv_query()
114
+ end
115
+
116
+ def send_query(table, blurQuery)
117
+ send_message('query', Query_args, :table => table, :blurQuery => blurQuery)
118
+ end
119
+
120
+ def recv_query()
121
+ result = receive_message(Query_result)
122
+ return result.success unless result.success.nil?
123
+ raise result.ex unless result.ex.nil?
124
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'query failed: unknown result')
125
+ end
126
+
127
+ def cancelQuery(table, uuid)
128
+ send_cancelQuery(table, uuid)
129
+ recv_cancelQuery()
130
+ end
131
+
132
+ def send_cancelQuery(table, uuid)
133
+ send_message('cancelQuery', CancelQuery_args, :table => table, :uuid => uuid)
134
+ end
135
+
136
+ def recv_cancelQuery()
137
+ result = receive_message(CancelQuery_result)
138
+ raise result.ex unless result.ex.nil?
139
+ return
140
+ end
141
+
142
+ def currentQueries(table)
143
+ send_currentQueries(table)
144
+ return recv_currentQueries()
145
+ end
146
+
147
+ def send_currentQueries(table)
148
+ send_message('currentQueries', CurrentQueries_args, :table => table)
149
+ end
150
+
151
+ def recv_currentQueries()
152
+ result = receive_message(CurrentQueries_result)
153
+ return result.success unless result.success.nil?
154
+ raise result.ex unless result.ex.nil?
155
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'currentQueries failed: unknown result')
156
+ end
157
+
158
+ def schema(table)
159
+ send_schema(table)
160
+ return recv_schema()
161
+ end
162
+
163
+ def send_schema(table)
164
+ send_message('schema', Schema_args, :table => table)
165
+ end
166
+
167
+ def recv_schema()
168
+ result = receive_message(Schema_result)
169
+ return result.success unless result.success.nil?
170
+ raise result.ex unless result.ex.nil?
171
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'schema failed: unknown result')
172
+ end
173
+
174
+ def getTableStats(table)
175
+ send_getTableStats(table)
176
+ return recv_getTableStats()
177
+ end
178
+
179
+ def send_getTableStats(table)
180
+ send_message('getTableStats', GetTableStats_args, :table => table)
181
+ end
182
+
183
+ def recv_getTableStats()
184
+ result = receive_message(GetTableStats_result)
185
+ return result.success unless result.success.nil?
186
+ raise result.ex unless result.ex.nil?
187
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTableStats failed: unknown result')
188
+ end
189
+
190
+ def terms(table, columnFamily, columnName, startWith, size)
191
+ send_terms(table, columnFamily, columnName, startWith, size)
192
+ return recv_terms()
193
+ end
194
+
195
+ def send_terms(table, columnFamily, columnName, startWith, size)
196
+ send_message('terms', Terms_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :startWith => startWith, :size => size)
197
+ end
198
+
199
+ def recv_terms()
200
+ result = receive_message(Terms_result)
201
+ return result.success unless result.success.nil?
202
+ raise result.ex unless result.ex.nil?
203
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'terms failed: unknown result')
204
+ end
205
+
206
+ def recordFrequency(table, columnFamily, columnName, value)
207
+ send_recordFrequency(table, columnFamily, columnName, value)
208
+ return recv_recordFrequency()
209
+ end
210
+
211
+ def send_recordFrequency(table, columnFamily, columnName, value)
212
+ send_message('recordFrequency', RecordFrequency_args, :table => table, :columnFamily => columnFamily, :columnName => columnName, :value => value)
213
+ end
214
+
215
+ def recv_recordFrequency()
216
+ result = receive_message(RecordFrequency_result)
217
+ return result.success unless result.success.nil?
218
+ raise result.ex unless result.ex.nil?
219
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'recordFrequency failed: unknown result')
220
+ end
221
+
222
+ def fetchRow(table, selector)
223
+ send_fetchRow(table, selector)
224
+ return recv_fetchRow()
225
+ end
226
+
227
+ def send_fetchRow(table, selector)
228
+ send_message('fetchRow', FetchRow_args, :table => table, :selector => selector)
229
+ end
230
+
231
+ def recv_fetchRow()
232
+ result = receive_message(FetchRow_result)
233
+ return result.success unless result.success.nil?
234
+ raise result.ex unless result.ex.nil?
235
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'fetchRow failed: unknown result')
236
+ end
237
+
238
+ def mutate(mutation)
239
+ send_mutate(mutation)
240
+ recv_mutate()
241
+ end
242
+
243
+ def send_mutate(mutation)
244
+ send_message('mutate', Mutate_args, :mutation => mutation)
245
+ end
246
+
247
+ def recv_mutate()
248
+ result = receive_message(Mutate_result)
249
+ raise result.ex unless result.ex.nil?
250
+ return
251
+ end
252
+
253
+ def mutateBatch(mutations)
254
+ send_mutateBatch(mutations)
255
+ recv_mutateBatch()
256
+ end
257
+
258
+ def send_mutateBatch(mutations)
259
+ send_message('mutateBatch', MutateBatch_args, :mutations => mutations)
260
+ end
261
+
262
+ def recv_mutateBatch()
263
+ result = receive_message(MutateBatch_result)
264
+ raise result.ex unless result.ex.nil?
265
+ return
266
+ end
267
+
268
+ def createTable(tableDescriptor)
269
+ send_createTable(tableDescriptor)
270
+ recv_createTable()
271
+ end
272
+
273
+ def send_createTable(tableDescriptor)
274
+ send_message('createTable', CreateTable_args, :tableDescriptor => tableDescriptor)
275
+ end
276
+
277
+ def recv_createTable()
278
+ result = receive_message(CreateTable_result)
279
+ raise result.ex unless result.ex.nil?
280
+ return
281
+ end
282
+
283
+ def enableTable(table)
284
+ send_enableTable(table)
285
+ recv_enableTable()
286
+ end
287
+
288
+ def send_enableTable(table)
289
+ send_message('enableTable', EnableTable_args, :table => table)
290
+ end
291
+
292
+ def recv_enableTable()
293
+ result = receive_message(EnableTable_result)
294
+ raise result.ex unless result.ex.nil?
295
+ return
296
+ end
297
+
298
+ def disableTable(table)
299
+ send_disableTable(table)
300
+ recv_disableTable()
301
+ end
302
+
303
+ def send_disableTable(table)
304
+ send_message('disableTable', DisableTable_args, :table => table)
305
+ end
306
+
307
+ def recv_disableTable()
308
+ result = receive_message(DisableTable_result)
309
+ raise result.ex unless result.ex.nil?
310
+ return
311
+ end
312
+
313
+ def removeTable(table, deleteIndexFiles)
314
+ send_removeTable(table, deleteIndexFiles)
315
+ recv_removeTable()
316
+ end
317
+
318
+ def send_removeTable(table, deleteIndexFiles)
319
+ send_message('removeTable', RemoveTable_args, :table => table, :deleteIndexFiles => deleteIndexFiles)
320
+ end
321
+
322
+ def recv_removeTable()
323
+ result = receive_message(RemoveTable_result)
324
+ raise result.ex unless result.ex.nil?
325
+ return
326
+ end
327
+
328
+ end
329
+
330
+ class Processor
331
+ include ::Thrift::Processor
332
+
333
+ def process_shardClusterList(seqid, iprot, oprot)
334
+ args = read_args(iprot, ShardClusterList_args)
335
+ result = ShardClusterList_result.new()
336
+ begin
337
+ result.success = @handler.shardClusterList()
338
+ rescue ::Blur::BlurException => ex
339
+ result.ex = ex
340
+ end
341
+ write_result(result, oprot, 'shardClusterList', seqid)
342
+ end
343
+
344
+ def process_shardServerList(seqid, iprot, oprot)
345
+ args = read_args(iprot, ShardServerList_args)
346
+ result = ShardServerList_result.new()
347
+ begin
348
+ result.success = @handler.shardServerList(args.cluster)
349
+ rescue ::Blur::BlurException => ex
350
+ result.ex = ex
351
+ end
352
+ write_result(result, oprot, 'shardServerList', seqid)
353
+ end
354
+
355
+ def process_controllerServerList(seqid, iprot, oprot)
356
+ args = read_args(iprot, ControllerServerList_args)
357
+ result = ControllerServerList_result.new()
358
+ begin
359
+ result.success = @handler.controllerServerList()
360
+ rescue ::Blur::BlurException => ex
361
+ result.ex = ex
362
+ end
363
+ write_result(result, oprot, 'controllerServerList', seqid)
364
+ end
365
+
366
+ def process_shardServerLayout(seqid, iprot, oprot)
367
+ args = read_args(iprot, ShardServerLayout_args)
368
+ result = ShardServerLayout_result.new()
369
+ begin
370
+ result.success = @handler.shardServerLayout(args.table)
371
+ rescue ::Blur::BlurException => ex
372
+ result.ex = ex
373
+ end
374
+ write_result(result, oprot, 'shardServerLayout', seqid)
375
+ end
376
+
377
+ def process_tableList(seqid, iprot, oprot)
378
+ args = read_args(iprot, TableList_args)
379
+ result = TableList_result.new()
380
+ begin
381
+ result.success = @handler.tableList()
382
+ rescue ::Blur::BlurException => ex
383
+ result.ex = ex
384
+ end
385
+ write_result(result, oprot, 'tableList', seqid)
386
+ end
387
+
388
+ def process_describe(seqid, iprot, oprot)
389
+ args = read_args(iprot, Describe_args)
390
+ result = Describe_result.new()
391
+ begin
392
+ result.success = @handler.describe(args.table)
393
+ rescue ::Blur::BlurException => ex
394
+ result.ex = ex
395
+ end
396
+ write_result(result, oprot, 'describe', seqid)
397
+ end
398
+
399
+ def process_query(seqid, iprot, oprot)
400
+ args = read_args(iprot, Query_args)
401
+ result = Query_result.new()
402
+ begin
403
+ result.success = @handler.query(args.table, args.blurQuery)
404
+ rescue ::Blur::BlurException => ex
405
+ result.ex = ex
406
+ end
407
+ write_result(result, oprot, 'query', seqid)
408
+ end
409
+
410
+ def process_cancelQuery(seqid, iprot, oprot)
411
+ args = read_args(iprot, CancelQuery_args)
412
+ result = CancelQuery_result.new()
413
+ begin
414
+ @handler.cancelQuery(args.table, args.uuid)
415
+ rescue ::Blur::BlurException => ex
416
+ result.ex = ex
417
+ end
418
+ write_result(result, oprot, 'cancelQuery', seqid)
419
+ end
420
+
421
+ def process_currentQueries(seqid, iprot, oprot)
422
+ args = read_args(iprot, CurrentQueries_args)
423
+ result = CurrentQueries_result.new()
424
+ begin
425
+ result.success = @handler.currentQueries(args.table)
426
+ rescue ::Blur::BlurException => ex
427
+ result.ex = ex
428
+ end
429
+ write_result(result, oprot, 'currentQueries', seqid)
430
+ end
431
+
432
+ def process_schema(seqid, iprot, oprot)
433
+ args = read_args(iprot, Schema_args)
434
+ result = Schema_result.new()
435
+ begin
436
+ result.success = @handler.schema(args.table)
437
+ rescue ::Blur::BlurException => ex
438
+ result.ex = ex
439
+ end
440
+ write_result(result, oprot, 'schema', seqid)
441
+ end
442
+
443
+ def process_getTableStats(seqid, iprot, oprot)
444
+ args = read_args(iprot, GetTableStats_args)
445
+ result = GetTableStats_result.new()
446
+ begin
447
+ result.success = @handler.getTableStats(args.table)
448
+ rescue ::Blur::BlurException => ex
449
+ result.ex = ex
450
+ end
451
+ write_result(result, oprot, 'getTableStats', seqid)
452
+ end
453
+
454
+ def process_terms(seqid, iprot, oprot)
455
+ args = read_args(iprot, Terms_args)
456
+ result = Terms_result.new()
457
+ begin
458
+ result.success = @handler.terms(args.table, args.columnFamily, args.columnName, args.startWith, args.size)
459
+ rescue ::Blur::BlurException => ex
460
+ result.ex = ex
461
+ end
462
+ write_result(result, oprot, 'terms', seqid)
463
+ end
464
+
465
+ def process_recordFrequency(seqid, iprot, oprot)
466
+ args = read_args(iprot, RecordFrequency_args)
467
+ result = RecordFrequency_result.new()
468
+ begin
469
+ result.success = @handler.recordFrequency(args.table, args.columnFamily, args.columnName, args.value)
470
+ rescue ::Blur::BlurException => ex
471
+ result.ex = ex
472
+ end
473
+ write_result(result, oprot, 'recordFrequency', seqid)
474
+ end
475
+
476
+ def process_fetchRow(seqid, iprot, oprot)
477
+ args = read_args(iprot, FetchRow_args)
478
+ result = FetchRow_result.new()
479
+ begin
480
+ result.success = @handler.fetchRow(args.table, args.selector)
481
+ rescue ::Blur::BlurException => ex
482
+ result.ex = ex
483
+ end
484
+ write_result(result, oprot, 'fetchRow', seqid)
485
+ end
486
+
487
+ def process_mutate(seqid, iprot, oprot)
488
+ args = read_args(iprot, Mutate_args)
489
+ result = Mutate_result.new()
490
+ begin
491
+ @handler.mutate(args.mutation)
492
+ rescue ::Blur::BlurException => ex
493
+ result.ex = ex
494
+ end
495
+ write_result(result, oprot, 'mutate', seqid)
496
+ end
497
+
498
+ def process_mutateBatch(seqid, iprot, oprot)
499
+ args = read_args(iprot, MutateBatch_args)
500
+ result = MutateBatch_result.new()
501
+ begin
502
+ @handler.mutateBatch(args.mutations)
503
+ rescue ::Blur::BlurException => ex
504
+ result.ex = ex
505
+ end
506
+ write_result(result, oprot, 'mutateBatch', seqid)
507
+ end
508
+
509
+ def process_createTable(seqid, iprot, oprot)
510
+ args = read_args(iprot, CreateTable_args)
511
+ result = CreateTable_result.new()
512
+ begin
513
+ @handler.createTable(args.tableDescriptor)
514
+ rescue ::Blur::BlurException => ex
515
+ result.ex = ex
516
+ end
517
+ write_result(result, oprot, 'createTable', seqid)
518
+ end
519
+
520
+ def process_enableTable(seqid, iprot, oprot)
521
+ args = read_args(iprot, EnableTable_args)
522
+ result = EnableTable_result.new()
523
+ begin
524
+ @handler.enableTable(args.table)
525
+ rescue ::Blur::BlurException => ex
526
+ result.ex = ex
527
+ end
528
+ write_result(result, oprot, 'enableTable', seqid)
529
+ end
530
+
531
+ def process_disableTable(seqid, iprot, oprot)
532
+ args = read_args(iprot, DisableTable_args)
533
+ result = DisableTable_result.new()
534
+ begin
535
+ @handler.disableTable(args.table)
536
+ rescue ::Blur::BlurException => ex
537
+ result.ex = ex
538
+ end
539
+ write_result(result, oprot, 'disableTable', seqid)
540
+ end
541
+
542
+ def process_removeTable(seqid, iprot, oprot)
543
+ args = read_args(iprot, RemoveTable_args)
544
+ result = RemoveTable_result.new()
545
+ begin
546
+ @handler.removeTable(args.table, args.deleteIndexFiles)
547
+ rescue ::Blur::BlurException => ex
548
+ result.ex = ex
549
+ end
550
+ write_result(result, oprot, 'removeTable', seqid)
551
+ end
552
+
553
+ end
554
+
555
+ # HELPER FUNCTIONS AND STRUCTURES
556
+
557
+ class ShardClusterList_args
558
+ include ::Thrift::Struct, ::Thrift::Struct_Union
559
+
560
+ FIELDS = {
561
+
562
+ }
563
+
564
+ def struct_fields; FIELDS; end
565
+
566
+ def validate
567
+ end
568
+
569
+ ::Thrift::Struct.generate_accessors self
570
+ end
571
+
572
+ class ShardClusterList_result
573
+ include ::Thrift::Struct, ::Thrift::Struct_Union
574
+ SUCCESS = 0
575
+ EX = 1
576
+
577
+ FIELDS = {
578
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
579
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
580
+ }
581
+
582
+ def struct_fields; FIELDS; end
583
+
584
+ def validate
585
+ end
586
+
587
+ ::Thrift::Struct.generate_accessors self
588
+ end
589
+
590
+ class ShardServerList_args
591
+ include ::Thrift::Struct, ::Thrift::Struct_Union
592
+ CLUSTER = 1
593
+
594
+ FIELDS = {
595
+ CLUSTER => {:type => ::Thrift::Types::STRING, :name => 'cluster'}
596
+ }
597
+
598
+ def struct_fields; FIELDS; end
599
+
600
+ def validate
601
+ end
602
+
603
+ ::Thrift::Struct.generate_accessors self
604
+ end
605
+
606
+ class ShardServerList_result
607
+ include ::Thrift::Struct, ::Thrift::Struct_Union
608
+ SUCCESS = 0
609
+ EX = 1
610
+
611
+ FIELDS = {
612
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
613
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
614
+ }
615
+
616
+ def struct_fields; FIELDS; end
617
+
618
+ def validate
619
+ end
620
+
621
+ ::Thrift::Struct.generate_accessors self
622
+ end
623
+
624
+ class ControllerServerList_args
625
+ include ::Thrift::Struct, ::Thrift::Struct_Union
626
+
627
+ FIELDS = {
628
+
629
+ }
630
+
631
+ def struct_fields; FIELDS; end
632
+
633
+ def validate
634
+ end
635
+
636
+ ::Thrift::Struct.generate_accessors self
637
+ end
638
+
639
+ class ControllerServerList_result
640
+ include ::Thrift::Struct, ::Thrift::Struct_Union
641
+ SUCCESS = 0
642
+ EX = 1
643
+
644
+ FIELDS = {
645
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
646
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
647
+ }
648
+
649
+ def struct_fields; FIELDS; end
650
+
651
+ def validate
652
+ end
653
+
654
+ ::Thrift::Struct.generate_accessors self
655
+ end
656
+
657
+ class ShardServerLayout_args
658
+ include ::Thrift::Struct, ::Thrift::Struct_Union
659
+ TABLE = 1
660
+
661
+ FIELDS = {
662
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
663
+ }
664
+
665
+ def struct_fields; FIELDS; end
666
+
667
+ def validate
668
+ end
669
+
670
+ ::Thrift::Struct.generate_accessors self
671
+ end
672
+
673
+ class ShardServerLayout_result
674
+ include ::Thrift::Struct, ::Thrift::Struct_Union
675
+ SUCCESS = 0
676
+ EX = 1
677
+
678
+ FIELDS = {
679
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
680
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
681
+ }
682
+
683
+ def struct_fields; FIELDS; end
684
+
685
+ def validate
686
+ end
687
+
688
+ ::Thrift::Struct.generate_accessors self
689
+ end
690
+
691
+ class TableList_args
692
+ include ::Thrift::Struct, ::Thrift::Struct_Union
693
+
694
+ FIELDS = {
695
+
696
+ }
697
+
698
+ def struct_fields; FIELDS; end
699
+
700
+ def validate
701
+ end
702
+
703
+ ::Thrift::Struct.generate_accessors self
704
+ end
705
+
706
+ class TableList_result
707
+ include ::Thrift::Struct, ::Thrift::Struct_Union
708
+ SUCCESS = 0
709
+ EX = 1
710
+
711
+ FIELDS = {
712
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
713
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
714
+ }
715
+
716
+ def struct_fields; FIELDS; end
717
+
718
+ def validate
719
+ end
720
+
721
+ ::Thrift::Struct.generate_accessors self
722
+ end
723
+
724
+ class Describe_args
725
+ include ::Thrift::Struct, ::Thrift::Struct_Union
726
+ TABLE = 1
727
+
728
+ FIELDS = {
729
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
730
+ }
731
+
732
+ def struct_fields; FIELDS; end
733
+
734
+ def validate
735
+ end
736
+
737
+ ::Thrift::Struct.generate_accessors self
738
+ end
739
+
740
+ class Describe_result
741
+ include ::Thrift::Struct, ::Thrift::Struct_Union
742
+ SUCCESS = 0
743
+ EX = 1
744
+
745
+ FIELDS = {
746
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::TableDescriptor},
747
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
748
+ }
749
+
750
+ def struct_fields; FIELDS; end
751
+
752
+ def validate
753
+ end
754
+
755
+ ::Thrift::Struct.generate_accessors self
756
+ end
757
+
758
+ class Query_args
759
+ include ::Thrift::Struct, ::Thrift::Struct_Union
760
+ TABLE = 1
761
+ BLURQUERY = 2
762
+
763
+ FIELDS = {
764
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
765
+ BLURQUERY => {:type => ::Thrift::Types::STRUCT, :name => 'blurQuery', :class => ::Blur::BlurQuery}
766
+ }
767
+
768
+ def struct_fields; FIELDS; end
769
+
770
+ def validate
771
+ end
772
+
773
+ ::Thrift::Struct.generate_accessors self
774
+ end
775
+
776
+ class Query_result
777
+ include ::Thrift::Struct, ::Thrift::Struct_Union
778
+ SUCCESS = 0
779
+ EX = 1
780
+
781
+ FIELDS = {
782
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::BlurResults},
783
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
784
+ }
785
+
786
+ def struct_fields; FIELDS; end
787
+
788
+ def validate
789
+ end
790
+
791
+ ::Thrift::Struct.generate_accessors self
792
+ end
793
+
794
+ class CancelQuery_args
795
+ include ::Thrift::Struct, ::Thrift::Struct_Union
796
+ TABLE = 1
797
+ UUID = 2
798
+
799
+ FIELDS = {
800
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
801
+ UUID => {:type => ::Thrift::Types::I64, :name => 'uuid'}
802
+ }
803
+
804
+ def struct_fields; FIELDS; end
805
+
806
+ def validate
807
+ end
808
+
809
+ ::Thrift::Struct.generate_accessors self
810
+ end
811
+
812
+ class CancelQuery_result
813
+ include ::Thrift::Struct, ::Thrift::Struct_Union
814
+ EX = 1
815
+
816
+ FIELDS = {
817
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
818
+ }
819
+
820
+ def struct_fields; FIELDS; end
821
+
822
+ def validate
823
+ end
824
+
825
+ ::Thrift::Struct.generate_accessors self
826
+ end
827
+
828
+ class CurrentQueries_args
829
+ include ::Thrift::Struct, ::Thrift::Struct_Union
830
+ TABLE = 1
831
+
832
+ FIELDS = {
833
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
834
+ }
835
+
836
+ def struct_fields; FIELDS; end
837
+
838
+ def validate
839
+ end
840
+
841
+ ::Thrift::Struct.generate_accessors self
842
+ end
843
+
844
+ class CurrentQueries_result
845
+ include ::Thrift::Struct, ::Thrift::Struct_Union
846
+ SUCCESS = 0
847
+ EX = 1
848
+
849
+ FIELDS = {
850
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::BlurQueryStatus}},
851
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
852
+ }
853
+
854
+ def struct_fields; FIELDS; end
855
+
856
+ def validate
857
+ end
858
+
859
+ ::Thrift::Struct.generate_accessors self
860
+ end
861
+
862
+ class Schema_args
863
+ include ::Thrift::Struct, ::Thrift::Struct_Union
864
+ TABLE = 1
865
+
866
+ FIELDS = {
867
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
868
+ }
869
+
870
+ def struct_fields; FIELDS; end
871
+
872
+ def validate
873
+ end
874
+
875
+ ::Thrift::Struct.generate_accessors self
876
+ end
877
+
878
+ class Schema_result
879
+ include ::Thrift::Struct, ::Thrift::Struct_Union
880
+ SUCCESS = 0
881
+ EX = 1
882
+
883
+ FIELDS = {
884
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::Schema},
885
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
886
+ }
887
+
888
+ def struct_fields; FIELDS; end
889
+
890
+ def validate
891
+ end
892
+
893
+ ::Thrift::Struct.generate_accessors self
894
+ end
895
+
896
+ class GetTableStats_args
897
+ include ::Thrift::Struct, ::Thrift::Struct_Union
898
+ TABLE = 1
899
+
900
+ FIELDS = {
901
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
902
+ }
903
+
904
+ def struct_fields; FIELDS; end
905
+
906
+ def validate
907
+ end
908
+
909
+ ::Thrift::Struct.generate_accessors self
910
+ end
911
+
912
+ class GetTableStats_result
913
+ include ::Thrift::Struct, ::Thrift::Struct_Union
914
+ SUCCESS = 0
915
+ EX = 1
916
+
917
+ FIELDS = {
918
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::TableStats},
919
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
920
+ }
921
+
922
+ def struct_fields; FIELDS; end
923
+
924
+ def validate
925
+ end
926
+
927
+ ::Thrift::Struct.generate_accessors self
928
+ end
929
+
930
+ class Terms_args
931
+ include ::Thrift::Struct, ::Thrift::Struct_Union
932
+ TABLE = 1
933
+ COLUMNFAMILY = 2
934
+ COLUMNNAME = 3
935
+ STARTWITH = 4
936
+ SIZE = 5
937
+
938
+ FIELDS = {
939
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
940
+ COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
941
+ COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
942
+ STARTWITH => {:type => ::Thrift::Types::STRING, :name => 'startWith'},
943
+ SIZE => {:type => ::Thrift::Types::I16, :name => 'size'}
944
+ }
945
+
946
+ def struct_fields; FIELDS; end
947
+
948
+ def validate
949
+ end
950
+
951
+ ::Thrift::Struct.generate_accessors self
952
+ end
953
+
954
+ class Terms_result
955
+ include ::Thrift::Struct, ::Thrift::Struct_Union
956
+ SUCCESS = 0
957
+ EX = 1
958
+
959
+ FIELDS = {
960
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
961
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
962
+ }
963
+
964
+ def struct_fields; FIELDS; end
965
+
966
+ def validate
967
+ end
968
+
969
+ ::Thrift::Struct.generate_accessors self
970
+ end
971
+
972
+ class RecordFrequency_args
973
+ include ::Thrift::Struct, ::Thrift::Struct_Union
974
+ TABLE = 1
975
+ COLUMNFAMILY = 2
976
+ COLUMNNAME = 3
977
+ VALUE = 4
978
+
979
+ FIELDS = {
980
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
981
+ COLUMNFAMILY => {:type => ::Thrift::Types::STRING, :name => 'columnFamily'},
982
+ COLUMNNAME => {:type => ::Thrift::Types::STRING, :name => 'columnName'},
983
+ VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
984
+ }
985
+
986
+ def struct_fields; FIELDS; end
987
+
988
+ def validate
989
+ end
990
+
991
+ ::Thrift::Struct.generate_accessors self
992
+ end
993
+
994
+ class RecordFrequency_result
995
+ include ::Thrift::Struct, ::Thrift::Struct_Union
996
+ SUCCESS = 0
997
+ EX = 1
998
+
999
+ FIELDS = {
1000
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
1001
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
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 FetchRow_args
1013
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1014
+ TABLE = 1
1015
+ SELECTOR = 2
1016
+
1017
+ FIELDS = {
1018
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
1019
+ SELECTOR => {:type => ::Thrift::Types::STRUCT, :name => 'selector', :class => ::Blur::Selector}
1020
+ }
1021
+
1022
+ def struct_fields; FIELDS; end
1023
+
1024
+ def validate
1025
+ end
1026
+
1027
+ ::Thrift::Struct.generate_accessors self
1028
+ end
1029
+
1030
+ class FetchRow_result
1031
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1032
+ SUCCESS = 0
1033
+ EX = 1
1034
+
1035
+ FIELDS = {
1036
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Blur::FetchResult},
1037
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1038
+ }
1039
+
1040
+ def struct_fields; FIELDS; end
1041
+
1042
+ def validate
1043
+ end
1044
+
1045
+ ::Thrift::Struct.generate_accessors self
1046
+ end
1047
+
1048
+ class Mutate_args
1049
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1050
+ MUTATION = 1
1051
+
1052
+ FIELDS = {
1053
+ MUTATION => {:type => ::Thrift::Types::STRUCT, :name => 'mutation', :class => ::Blur::RowMutation}
1054
+ }
1055
+
1056
+ def struct_fields; FIELDS; end
1057
+
1058
+ def validate
1059
+ end
1060
+
1061
+ ::Thrift::Struct.generate_accessors self
1062
+ end
1063
+
1064
+ class Mutate_result
1065
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1066
+ EX = 1
1067
+
1068
+ FIELDS = {
1069
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1070
+ }
1071
+
1072
+ def struct_fields; FIELDS; end
1073
+
1074
+ def validate
1075
+ end
1076
+
1077
+ ::Thrift::Struct.generate_accessors self
1078
+ end
1079
+
1080
+ class MutateBatch_args
1081
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1082
+ MUTATIONS = 1
1083
+
1084
+ FIELDS = {
1085
+ MUTATIONS => {:type => ::Thrift::Types::LIST, :name => 'mutations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Blur::RowMutation}}
1086
+ }
1087
+
1088
+ def struct_fields; FIELDS; end
1089
+
1090
+ def validate
1091
+ end
1092
+
1093
+ ::Thrift::Struct.generate_accessors self
1094
+ end
1095
+
1096
+ class MutateBatch_result
1097
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1098
+ EX = 1
1099
+
1100
+ FIELDS = {
1101
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1102
+ }
1103
+
1104
+ def struct_fields; FIELDS; end
1105
+
1106
+ def validate
1107
+ end
1108
+
1109
+ ::Thrift::Struct.generate_accessors self
1110
+ end
1111
+
1112
+ class CreateTable_args
1113
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1114
+ TABLEDESCRIPTOR = 1
1115
+
1116
+ FIELDS = {
1117
+ TABLEDESCRIPTOR => {:type => ::Thrift::Types::STRUCT, :name => 'tableDescriptor', :class => ::Blur::TableDescriptor}
1118
+ }
1119
+
1120
+ def struct_fields; FIELDS; end
1121
+
1122
+ def validate
1123
+ end
1124
+
1125
+ ::Thrift::Struct.generate_accessors self
1126
+ end
1127
+
1128
+ class CreateTable_result
1129
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1130
+ EX = 1
1131
+
1132
+ FIELDS = {
1133
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1134
+ }
1135
+
1136
+ def struct_fields; FIELDS; end
1137
+
1138
+ def validate
1139
+ end
1140
+
1141
+ ::Thrift::Struct.generate_accessors self
1142
+ end
1143
+
1144
+ class EnableTable_args
1145
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1146
+ TABLE = 1
1147
+
1148
+ FIELDS = {
1149
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
1150
+ }
1151
+
1152
+ def struct_fields; FIELDS; end
1153
+
1154
+ def validate
1155
+ end
1156
+
1157
+ ::Thrift::Struct.generate_accessors self
1158
+ end
1159
+
1160
+ class EnableTable_result
1161
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1162
+ EX = 1
1163
+
1164
+ FIELDS = {
1165
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1166
+ }
1167
+
1168
+ def struct_fields; FIELDS; end
1169
+
1170
+ def validate
1171
+ end
1172
+
1173
+ ::Thrift::Struct.generate_accessors self
1174
+ end
1175
+
1176
+ class DisableTable_args
1177
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1178
+ TABLE = 1
1179
+
1180
+ FIELDS = {
1181
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'}
1182
+ }
1183
+
1184
+ def struct_fields; FIELDS; end
1185
+
1186
+ def validate
1187
+ end
1188
+
1189
+ ::Thrift::Struct.generate_accessors self
1190
+ end
1191
+
1192
+ class DisableTable_result
1193
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1194
+ EX = 1
1195
+
1196
+ FIELDS = {
1197
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1198
+ }
1199
+
1200
+ def struct_fields; FIELDS; end
1201
+
1202
+ def validate
1203
+ end
1204
+
1205
+ ::Thrift::Struct.generate_accessors self
1206
+ end
1207
+
1208
+ class RemoveTable_args
1209
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1210
+ TABLE = 1
1211
+ DELETEINDEXFILES = 2
1212
+
1213
+ FIELDS = {
1214
+ TABLE => {:type => ::Thrift::Types::STRING, :name => 'table'},
1215
+ DELETEINDEXFILES => {:type => ::Thrift::Types::BOOL, :name => 'deleteIndexFiles'}
1216
+ }
1217
+
1218
+ def struct_fields; FIELDS; end
1219
+
1220
+ def validate
1221
+ end
1222
+
1223
+ ::Thrift::Struct.generate_accessors self
1224
+ end
1225
+
1226
+ class RemoveTable_result
1227
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1228
+ EX = 1
1229
+
1230
+ FIELDS = {
1231
+ EX => {:type => ::Thrift::Types::STRUCT, :name => 'ex', :class => ::Blur::BlurException}
1232
+ }
1233
+
1234
+ def struct_fields; FIELDS; end
1235
+
1236
+ def validate
1237
+ end
1238
+
1239
+ ::Thrift::Struct.generate_accessors self
1240
+ end
1241
+
1242
+ end
1243
+
1244
+ end