rbhive 0.1.1 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,7 @@
7
7
  require 'thrift'
8
8
  require File.join(File.dirname(__FILE__), *%w[fb303_types])
9
9
 
10
+
10
11
  module FacebookService
11
12
  class Client
12
13
  include ::Thrift::Client
@@ -288,7 +289,7 @@ module FacebookService
288
289
  # HELPER FUNCTIONS AND STRUCTURES
289
290
 
290
291
  class GetName_args
291
- include ::Thrift::Struct
292
+ include ::Thrift::Struct, ::Thrift::Struct_Union
292
293
 
293
294
  FIELDS = {
294
295
 
@@ -299,13 +300,13 @@ module FacebookService
299
300
  def validate
300
301
  end
301
302
 
303
+ ::Thrift::Struct.generate_accessors self
302
304
  end
303
305
 
304
306
  class GetName_result
305
- include ::Thrift::Struct
307
+ include ::Thrift::Struct, ::Thrift::Struct_Union
306
308
  SUCCESS = 0
307
309
 
308
- ::Thrift::Struct.field_accessor self, :success
309
310
  FIELDS = {
310
311
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
311
312
  }
@@ -315,10 +316,11 @@ module FacebookService
315
316
  def validate
316
317
  end
317
318
 
319
+ ::Thrift::Struct.generate_accessors self
318
320
  end
319
321
 
320
322
  class GetVersion_args
321
- include ::Thrift::Struct
323
+ include ::Thrift::Struct, ::Thrift::Struct_Union
322
324
 
323
325
  FIELDS = {
324
326
 
@@ -329,13 +331,13 @@ module FacebookService
329
331
  def validate
330
332
  end
331
333
 
334
+ ::Thrift::Struct.generate_accessors self
332
335
  end
333
336
 
334
337
  class GetVersion_result
335
- include ::Thrift::Struct
338
+ include ::Thrift::Struct, ::Thrift::Struct_Union
336
339
  SUCCESS = 0
337
340
 
338
- ::Thrift::Struct.field_accessor self, :success
339
341
  FIELDS = {
340
342
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
341
343
  }
@@ -345,10 +347,11 @@ module FacebookService
345
347
  def validate
346
348
  end
347
349
 
350
+ ::Thrift::Struct.generate_accessors self
348
351
  end
349
352
 
350
353
  class GetStatus_args
351
- include ::Thrift::Struct
354
+ include ::Thrift::Struct, ::Thrift::Struct_Union
352
355
 
353
356
  FIELDS = {
354
357
 
@@ -359,13 +362,13 @@ module FacebookService
359
362
  def validate
360
363
  end
361
364
 
365
+ ::Thrift::Struct.generate_accessors self
362
366
  end
363
367
 
364
368
  class GetStatus_result
365
- include ::Thrift::Struct
369
+ include ::Thrift::Struct, ::Thrift::Struct_Union
366
370
  SUCCESS = 0
367
371
 
368
- ::Thrift::Struct.field_accessor self, :success
369
372
  FIELDS = {
370
373
  SUCCESS => {:type => ::Thrift::Types::I32, :name => 'success', :enum_class => Fb_status}
371
374
  }
@@ -378,10 +381,11 @@ module FacebookService
378
381
  end
379
382
  end
380
383
 
384
+ ::Thrift::Struct.generate_accessors self
381
385
  end
382
386
 
383
387
  class GetStatusDetails_args
384
- include ::Thrift::Struct
388
+ include ::Thrift::Struct, ::Thrift::Struct_Union
385
389
 
386
390
  FIELDS = {
387
391
 
@@ -392,13 +396,13 @@ module FacebookService
392
396
  def validate
393
397
  end
394
398
 
399
+ ::Thrift::Struct.generate_accessors self
395
400
  end
396
401
 
397
402
  class GetStatusDetails_result
398
- include ::Thrift::Struct
403
+ include ::Thrift::Struct, ::Thrift::Struct_Union
399
404
  SUCCESS = 0
400
405
 
401
- ::Thrift::Struct.field_accessor self, :success
402
406
  FIELDS = {
403
407
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
404
408
  }
@@ -408,10 +412,11 @@ module FacebookService
408
412
  def validate
409
413
  end
410
414
 
415
+ ::Thrift::Struct.generate_accessors self
411
416
  end
412
417
 
413
418
  class GetCounters_args
414
- include ::Thrift::Struct
419
+ include ::Thrift::Struct, ::Thrift::Struct_Union
415
420
 
416
421
  FIELDS = {
417
422
 
@@ -422,13 +427,13 @@ module FacebookService
422
427
  def validate
423
428
  end
424
429
 
430
+ ::Thrift::Struct.generate_accessors self
425
431
  end
426
432
 
427
433
  class GetCounters_result
428
- include ::Thrift::Struct
434
+ include ::Thrift::Struct, ::Thrift::Struct_Union
429
435
  SUCCESS = 0
430
436
 
431
- ::Thrift::Struct.field_accessor self, :success
432
437
  FIELDS = {
433
438
  SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::I64}}
434
439
  }
@@ -438,13 +443,13 @@ module FacebookService
438
443
  def validate
439
444
  end
440
445
 
446
+ ::Thrift::Struct.generate_accessors self
441
447
  end
442
448
 
443
449
  class GetCounter_args
444
- include ::Thrift::Struct
450
+ include ::Thrift::Struct, ::Thrift::Struct_Union
445
451
  KEY = 1
446
452
 
447
- ::Thrift::Struct.field_accessor self, :key
448
453
  FIELDS = {
449
454
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
450
455
  }
@@ -454,13 +459,13 @@ module FacebookService
454
459
  def validate
455
460
  end
456
461
 
462
+ ::Thrift::Struct.generate_accessors self
457
463
  end
458
464
 
459
465
  class GetCounter_result
460
- include ::Thrift::Struct
466
+ include ::Thrift::Struct, ::Thrift::Struct_Union
461
467
  SUCCESS = 0
462
468
 
463
- ::Thrift::Struct.field_accessor self, :success
464
469
  FIELDS = {
465
470
  SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
466
471
  }
@@ -470,14 +475,14 @@ module FacebookService
470
475
  def validate
471
476
  end
472
477
 
478
+ ::Thrift::Struct.generate_accessors self
473
479
  end
474
480
 
475
481
  class SetOption_args
476
- include ::Thrift::Struct
482
+ include ::Thrift::Struct, ::Thrift::Struct_Union
477
483
  KEY = 1
478
484
  VALUE = 2
479
485
 
480
- ::Thrift::Struct.field_accessor self, :key, :value
481
486
  FIELDS = {
482
487
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
483
488
  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'}
@@ -488,10 +493,11 @@ module FacebookService
488
493
  def validate
489
494
  end
490
495
 
496
+ ::Thrift::Struct.generate_accessors self
491
497
  end
492
498
 
493
499
  class SetOption_result
494
- include ::Thrift::Struct
500
+ include ::Thrift::Struct, ::Thrift::Struct_Union
495
501
 
496
502
  FIELDS = {
497
503
 
@@ -502,13 +508,13 @@ module FacebookService
502
508
  def validate
503
509
  end
504
510
 
511
+ ::Thrift::Struct.generate_accessors self
505
512
  end
506
513
 
507
514
  class GetOption_args
508
- include ::Thrift::Struct
515
+ include ::Thrift::Struct, ::Thrift::Struct_Union
509
516
  KEY = 1
510
517
 
511
- ::Thrift::Struct.field_accessor self, :key
512
518
  FIELDS = {
513
519
  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'}
514
520
  }
@@ -518,13 +524,13 @@ module FacebookService
518
524
  def validate
519
525
  end
520
526
 
527
+ ::Thrift::Struct.generate_accessors self
521
528
  end
522
529
 
523
530
  class GetOption_result
524
- include ::Thrift::Struct
531
+ include ::Thrift::Struct, ::Thrift::Struct_Union
525
532
  SUCCESS = 0
526
533
 
527
- ::Thrift::Struct.field_accessor self, :success
528
534
  FIELDS = {
529
535
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
530
536
  }
@@ -534,10 +540,11 @@ module FacebookService
534
540
  def validate
535
541
  end
536
542
 
543
+ ::Thrift::Struct.generate_accessors self
537
544
  end
538
545
 
539
546
  class GetOptions_args
540
- include ::Thrift::Struct
547
+ include ::Thrift::Struct, ::Thrift::Struct_Union
541
548
 
542
549
  FIELDS = {
543
550
 
@@ -548,13 +555,13 @@ module FacebookService
548
555
  def validate
549
556
  end
550
557
 
558
+ ::Thrift::Struct.generate_accessors self
551
559
  end
552
560
 
553
561
  class GetOptions_result
554
- include ::Thrift::Struct
562
+ include ::Thrift::Struct, ::Thrift::Struct_Union
555
563
  SUCCESS = 0
556
564
 
557
- ::Thrift::Struct.field_accessor self, :success
558
565
  FIELDS = {
559
566
  SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}}
560
567
  }
@@ -564,13 +571,13 @@ module FacebookService
564
571
  def validate
565
572
  end
566
573
 
574
+ ::Thrift::Struct.generate_accessors self
567
575
  end
568
576
 
569
577
  class GetCpuProfile_args
570
- include ::Thrift::Struct
578
+ include ::Thrift::Struct, ::Thrift::Struct_Union
571
579
  PROFILEDURATIONINSEC = 1
572
580
 
573
- ::Thrift::Struct.field_accessor self, :profileDurationInSec
574
581
  FIELDS = {
575
582
  PROFILEDURATIONINSEC => {:type => ::Thrift::Types::I32, :name => 'profileDurationInSec'}
576
583
  }
@@ -580,13 +587,13 @@ module FacebookService
580
587
  def validate
581
588
  end
582
589
 
590
+ ::Thrift::Struct.generate_accessors self
583
591
  end
584
592
 
585
593
  class GetCpuProfile_result
586
- include ::Thrift::Struct
594
+ include ::Thrift::Struct, ::Thrift::Struct_Union
587
595
  SUCCESS = 0
588
596
 
589
- ::Thrift::Struct.field_accessor self, :success
590
597
  FIELDS = {
591
598
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'}
592
599
  }
@@ -596,10 +603,11 @@ module FacebookService
596
603
  def validate
597
604
  end
598
605
 
606
+ ::Thrift::Struct.generate_accessors self
599
607
  end
600
608
 
601
609
  class AliveSince_args
602
- include ::Thrift::Struct
610
+ include ::Thrift::Struct, ::Thrift::Struct_Union
603
611
 
604
612
  FIELDS = {
605
613
 
@@ -610,13 +618,13 @@ module FacebookService
610
618
  def validate
611
619
  end
612
620
 
621
+ ::Thrift::Struct.generate_accessors self
613
622
  end
614
623
 
615
624
  class AliveSince_result
616
- include ::Thrift::Struct
625
+ include ::Thrift::Struct, ::Thrift::Struct_Union
617
626
  SUCCESS = 0
618
627
 
619
- ::Thrift::Struct.field_accessor self, :success
620
628
  FIELDS = {
621
629
  SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'}
622
630
  }
@@ -626,10 +634,11 @@ module FacebookService
626
634
  def validate
627
635
  end
628
636
 
637
+ ::Thrift::Struct.generate_accessors self
629
638
  end
630
639
 
631
640
  class Reinitialize_args
632
- include ::Thrift::Struct
641
+ include ::Thrift::Struct, ::Thrift::Struct_Union
633
642
 
634
643
  FIELDS = {
635
644
 
@@ -640,10 +649,11 @@ module FacebookService
640
649
  def validate
641
650
  end
642
651
 
652
+ ::Thrift::Struct.generate_accessors self
643
653
  end
644
654
 
645
655
  class Reinitialize_result
646
- include ::Thrift::Struct
656
+ include ::Thrift::Struct, ::Thrift::Struct_Union
647
657
 
648
658
  FIELDS = {
649
659
 
@@ -654,10 +664,11 @@ module FacebookService
654
664
  def validate
655
665
  end
656
666
 
667
+ ::Thrift::Struct.generate_accessors self
657
668
  end
658
669
 
659
670
  class Shutdown_args
660
- include ::Thrift::Struct
671
+ include ::Thrift::Struct, ::Thrift::Struct_Union
661
672
 
662
673
  FIELDS = {
663
674
 
@@ -668,10 +679,11 @@ module FacebookService
668
679
  def validate
669
680
  end
670
681
 
682
+ ::Thrift::Struct.generate_accessors self
671
683
  end
672
684
 
673
685
  class Shutdown_result
674
- include ::Thrift::Struct
686
+ include ::Thrift::Struct, ::Thrift::Struct_Union
675
687
 
676
688
  FIELDS = {
677
689
 
@@ -682,6 +694,7 @@ module FacebookService
682
694
  def validate
683
695
  end
684
696
 
697
+ ::Thrift::Struct.generate_accessors self
685
698
  end
686
699
 
687
700
  end
@@ -6,6 +6,13 @@
6
6
 
7
7
  require File.join(File.dirname(__FILE__), *%w[hive_metastore_types])
8
8
 
9
+
10
+ DDL_TIME = %q"transient_lastDdlTime"
11
+
12
+ IS_ARCHIVED = %q"is_archived"
13
+
14
+ ORIGINAL_LOCATION = %q"original_location"
15
+
9
16
  META_TABLE_COLUMNS = %q"columns"
10
17
 
11
18
  META_TABLE_COLUMN_TYPES = %q"columns.types"
@@ -30,3 +37,5 @@ FILE_INPUT_FORMAT = %q"file.inputformat"
30
37
 
31
38
  FILE_OUTPUT_FORMAT = %q"file.outputformat"
32
39
 
40
+ META_TABLE_STORAGE = %q"storage_handler"
41
+