rbhive 0.2.95 → 0.5.0

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,15 +1,15 @@
1
1
  #
2
- # Autogenerated by Thrift
2
+ # Autogenerated by Thrift Compiler (0.9.0)
3
3
  #
4
4
  # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
5
  #
6
6
 
7
7
  require 'thrift'
8
- require File.join(File.dirname(__FILE__), *%w[facebook_service])
9
- require File.join(File.dirname(__FILE__), *%w[hive_metastore_types])
8
+ require_relative 'facebook_service'
9
+ require_relative 'hive_metastore_types'
10
10
 
11
11
  module ThriftHiveMetastore
12
- class Client < FacebookService::Client
12
+ class Client < ::FacebookService::Client
13
13
  include ::Thrift::Client
14
14
 
15
15
  def create_database(database)
@@ -95,6 +95,22 @@ module ThriftHiveMetastore
95
95
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_all_databases failed: unknown result')
96
96
  end
97
97
 
98
+ def alter_database(dbname, db)
99
+ send_alter_database(dbname, db)
100
+ recv_alter_database()
101
+ end
102
+
103
+ def send_alter_database(dbname, db)
104
+ send_message('alter_database', Alter_database_args, :dbname => dbname, :db => db)
105
+ end
106
+
107
+ def recv_alter_database()
108
+ result = receive_message(Alter_database_result)
109
+ raise result.o1 unless result.o1.nil?
110
+ raise result.o2 unless result.o2.nil?
111
+ return
112
+ end
113
+
98
114
  def get_type(name)
99
115
  send_get_type(name)
100
116
  return recv_get_type()
@@ -403,6 +419,23 @@ module ThriftHiveMetastore
403
419
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition failed: unknown result')
404
420
  end
405
421
 
422
+ def get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
423
+ send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
424
+ return recv_get_partition_with_auth()
425
+ end
426
+
427
+ def send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names)
428
+ send_message('get_partition_with_auth', Get_partition_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :user_name => user_name, :group_names => group_names)
429
+ end
430
+
431
+ def recv_get_partition_with_auth()
432
+ result = receive_message(Get_partition_with_auth_result)
433
+ return result.success unless result.success.nil?
434
+ raise result.o1 unless result.o1.nil?
435
+ raise result.o2 unless result.o2.nil?
436
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partition_with_auth failed: unknown result')
437
+ end
438
+
406
439
  def get_partition_by_name(db_name, tbl_name, part_name)
407
440
  send_get_partition_by_name(db_name, tbl_name, part_name)
408
441
  return recv_get_partition_by_name()
@@ -437,6 +470,23 @@ module ThriftHiveMetastore
437
470
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions failed: unknown result')
438
471
  end
439
472
 
473
+ def get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
474
+ send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
475
+ return recv_get_partitions_with_auth()
476
+ end
477
+
478
+ def send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names)
479
+ send_message('get_partitions_with_auth', Get_partitions_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :max_parts => max_parts, :user_name => user_name, :group_names => group_names)
480
+ end
481
+
482
+ def recv_get_partitions_with_auth()
483
+ result = receive_message(Get_partitions_with_auth_result)
484
+ return result.success unless result.success.nil?
485
+ raise result.o1 unless result.o1.nil?
486
+ raise result.o2 unless result.o2.nil?
487
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_with_auth failed: unknown result')
488
+ end
489
+
440
490
  def get_partition_names(db_name, tbl_name, max_parts)
441
491
  send_get_partition_names(db_name, tbl_name, max_parts)
442
492
  return recv_get_partition_names()
@@ -469,6 +519,23 @@ module ThriftHiveMetastore
469
519
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps failed: unknown result')
470
520
  end
471
521
 
522
+ def get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
523
+ send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
524
+ return recv_get_partitions_ps_with_auth()
525
+ end
526
+
527
+ def send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names)
528
+ send_message('get_partitions_ps_with_auth', Get_partitions_ps_with_auth_args, :db_name => db_name, :tbl_name => tbl_name, :part_vals => part_vals, :max_parts => max_parts, :user_name => user_name, :group_names => group_names)
529
+ end
530
+
531
+ def recv_get_partitions_ps_with_auth()
532
+ result = receive_message(Get_partitions_ps_with_auth_result)
533
+ return result.success unless result.success.nil?
534
+ raise result.o1 unless result.o1.nil?
535
+ raise result.o2 unless result.o2.nil?
536
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_ps_with_auth failed: unknown result')
537
+ end
538
+
472
539
  def get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
473
540
  send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts)
474
541
  return recv_get_partition_names_ps()
@@ -584,6 +651,22 @@ module ThriftHiveMetastore
584
651
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'add_index failed: unknown result')
585
652
  end
586
653
 
654
+ def alter_index(dbname, base_tbl_name, idx_name, new_idx)
655
+ send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
656
+ recv_alter_index()
657
+ end
658
+
659
+ def send_alter_index(dbname, base_tbl_name, idx_name, new_idx)
660
+ send_message('alter_index', Alter_index_args, :dbname => dbname, :base_tbl_name => base_tbl_name, :idx_name => idx_name, :new_idx => new_idx)
661
+ end
662
+
663
+ def recv_alter_index()
664
+ result = receive_message(Alter_index_result)
665
+ raise result.o1 unless result.o1.nil?
666
+ raise result.o2 unless result.o2.nil?
667
+ return
668
+ end
669
+
587
670
  def drop_index_by_name(db_name, tbl_name, index_name, deleteData)
588
671
  send_drop_index_by_name(db_name, tbl_name, index_name, deleteData)
589
672
  return recv_drop_index_by_name()
@@ -651,9 +734,232 @@ module ThriftHiveMetastore
651
734
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result')
652
735
  end
653
736
 
737
+ def create_role(role)
738
+ send_create_role(role)
739
+ return recv_create_role()
740
+ end
741
+
742
+ def send_create_role(role)
743
+ send_message('create_role', Create_role_args, :role => role)
744
+ end
745
+
746
+ def recv_create_role()
747
+ result = receive_message(Create_role_result)
748
+ return result.success unless result.success.nil?
749
+ raise result.o1 unless result.o1.nil?
750
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'create_role failed: unknown result')
751
+ end
752
+
753
+ def drop_role(role_name)
754
+ send_drop_role(role_name)
755
+ return recv_drop_role()
756
+ end
757
+
758
+ def send_drop_role(role_name)
759
+ send_message('drop_role', Drop_role_args, :role_name => role_name)
760
+ end
761
+
762
+ def recv_drop_role()
763
+ result = receive_message(Drop_role_result)
764
+ return result.success unless result.success.nil?
765
+ raise result.o1 unless result.o1.nil?
766
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'drop_role failed: unknown result')
767
+ end
768
+
769
+ def get_role_names()
770
+ send_get_role_names()
771
+ return recv_get_role_names()
772
+ end
773
+
774
+ def send_get_role_names()
775
+ send_message('get_role_names', Get_role_names_args)
776
+ end
777
+
778
+ def recv_get_role_names()
779
+ result = receive_message(Get_role_names_result)
780
+ return result.success unless result.success.nil?
781
+ raise result.o1 unless result.o1.nil?
782
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_role_names failed: unknown result')
783
+ end
784
+
785
+ def grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
786
+ send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
787
+ return recv_grant_role()
788
+ end
789
+
790
+ def send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option)
791
+ send_message('grant_role', Grant_role_args, :role_name => role_name, :principal_name => principal_name, :principal_type => principal_type, :grantor => grantor, :grantorType => grantorType, :grant_option => grant_option)
792
+ end
793
+
794
+ def recv_grant_role()
795
+ result = receive_message(Grant_role_result)
796
+ return result.success unless result.success.nil?
797
+ raise result.o1 unless result.o1.nil?
798
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_role failed: unknown result')
799
+ end
800
+
801
+ def revoke_role(role_name, principal_name, principal_type)
802
+ send_revoke_role(role_name, principal_name, principal_type)
803
+ return recv_revoke_role()
804
+ end
805
+
806
+ def send_revoke_role(role_name, principal_name, principal_type)
807
+ send_message('revoke_role', Revoke_role_args, :role_name => role_name, :principal_name => principal_name, :principal_type => principal_type)
808
+ end
809
+
810
+ def recv_revoke_role()
811
+ result = receive_message(Revoke_role_result)
812
+ return result.success unless result.success.nil?
813
+ raise result.o1 unless result.o1.nil?
814
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_role failed: unknown result')
815
+ end
816
+
817
+ def list_roles(principal_name, principal_type)
818
+ send_list_roles(principal_name, principal_type)
819
+ return recv_list_roles()
820
+ end
821
+
822
+ def send_list_roles(principal_name, principal_type)
823
+ send_message('list_roles', List_roles_args, :principal_name => principal_name, :principal_type => principal_type)
824
+ end
825
+
826
+ def recv_list_roles()
827
+ result = receive_message(List_roles_result)
828
+ return result.success unless result.success.nil?
829
+ raise result.o1 unless result.o1.nil?
830
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_roles failed: unknown result')
831
+ end
832
+
833
+ def get_privilege_set(hiveObject, user_name, group_names)
834
+ send_get_privilege_set(hiveObject, user_name, group_names)
835
+ return recv_get_privilege_set()
836
+ end
837
+
838
+ def send_get_privilege_set(hiveObject, user_name, group_names)
839
+ send_message('get_privilege_set', Get_privilege_set_args, :hiveObject => hiveObject, :user_name => user_name, :group_names => group_names)
840
+ end
841
+
842
+ def recv_get_privilege_set()
843
+ result = receive_message(Get_privilege_set_result)
844
+ return result.success unless result.success.nil?
845
+ raise result.o1 unless result.o1.nil?
846
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_privilege_set failed: unknown result')
847
+ end
848
+
849
+ def list_privileges(principal_name, principal_type, hiveObject)
850
+ send_list_privileges(principal_name, principal_type, hiveObject)
851
+ return recv_list_privileges()
852
+ end
853
+
854
+ def send_list_privileges(principal_name, principal_type, hiveObject)
855
+ send_message('list_privileges', List_privileges_args, :principal_name => principal_name, :principal_type => principal_type, :hiveObject => hiveObject)
856
+ end
857
+
858
+ def recv_list_privileges()
859
+ result = receive_message(List_privileges_result)
860
+ return result.success unless result.success.nil?
861
+ raise result.o1 unless result.o1.nil?
862
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_privileges failed: unknown result')
863
+ end
864
+
865
+ def grant_privileges(privileges)
866
+ send_grant_privileges(privileges)
867
+ return recv_grant_privileges()
868
+ end
869
+
870
+ def send_grant_privileges(privileges)
871
+ send_message('grant_privileges', Grant_privileges_args, :privileges => privileges)
872
+ end
873
+
874
+ def recv_grant_privileges()
875
+ result = receive_message(Grant_privileges_result)
876
+ return result.success unless result.success.nil?
877
+ raise result.o1 unless result.o1.nil?
878
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'grant_privileges failed: unknown result')
879
+ end
880
+
881
+ def revoke_privileges(privileges)
882
+ send_revoke_privileges(privileges)
883
+ return recv_revoke_privileges()
884
+ end
885
+
886
+ def send_revoke_privileges(privileges)
887
+ send_message('revoke_privileges', Revoke_privileges_args, :privileges => privileges)
888
+ end
889
+
890
+ def recv_revoke_privileges()
891
+ result = receive_message(Revoke_privileges_result)
892
+ return result.success unless result.success.nil?
893
+ raise result.o1 unless result.o1.nil?
894
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'revoke_privileges failed: unknown result')
895
+ end
896
+
897
+ def get_delegation_token(renewer_kerberos_principal_name)
898
+ send_get_delegation_token(renewer_kerberos_principal_name)
899
+ return recv_get_delegation_token()
900
+ end
901
+
902
+ def send_get_delegation_token(renewer_kerberos_principal_name)
903
+ send_message('get_delegation_token', Get_delegation_token_args, :renewer_kerberos_principal_name => renewer_kerberos_principal_name)
904
+ end
905
+
906
+ def recv_get_delegation_token()
907
+ result = receive_message(Get_delegation_token_result)
908
+ return result.success unless result.success.nil?
909
+ raise result.o1 unless result.o1.nil?
910
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token failed: unknown result')
911
+ end
912
+
913
+ def get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
914
+ send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
915
+ return recv_get_delegation_token_with_signature()
916
+ end
917
+
918
+ def send_get_delegation_token_with_signature(renewer_kerberos_principal_name, token_signature)
919
+ send_message('get_delegation_token_with_signature', Get_delegation_token_with_signature_args, :renewer_kerberos_principal_name => renewer_kerberos_principal_name, :token_signature => token_signature)
920
+ end
921
+
922
+ def recv_get_delegation_token_with_signature()
923
+ result = receive_message(Get_delegation_token_with_signature_result)
924
+ return result.success unless result.success.nil?
925
+ raise result.o1 unless result.o1.nil?
926
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_delegation_token_with_signature failed: unknown result')
927
+ end
928
+
929
+ def renew_delegation_token(token_str_form)
930
+ send_renew_delegation_token(token_str_form)
931
+ return recv_renew_delegation_token()
932
+ end
933
+
934
+ def send_renew_delegation_token(token_str_form)
935
+ send_message('renew_delegation_token', Renew_delegation_token_args, :token_str_form => token_str_form)
936
+ end
937
+
938
+ def recv_renew_delegation_token()
939
+ result = receive_message(Renew_delegation_token_result)
940
+ return result.success unless result.success.nil?
941
+ raise result.o1 unless result.o1.nil?
942
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'renew_delegation_token failed: unknown result')
943
+ end
944
+
945
+ def cancel_delegation_token(token_str_form)
946
+ send_cancel_delegation_token(token_str_form)
947
+ recv_cancel_delegation_token()
948
+ end
949
+
950
+ def send_cancel_delegation_token(token_str_form)
951
+ send_message('cancel_delegation_token', Cancel_delegation_token_args, :token_str_form => token_str_form)
952
+ end
953
+
954
+ def recv_cancel_delegation_token()
955
+ result = receive_message(Cancel_delegation_token_result)
956
+ raise result.o1 unless result.o1.nil?
957
+ return
958
+ end
959
+
654
960
  end
655
961
 
656
- class Processor < FacebookService::Processor
962
+ class Processor < ::FacebookService::Processor
657
963
  include ::Thrift::Processor
658
964
 
659
965
  def process_create_database(seqid, iprot, oprot)
@@ -661,11 +967,11 @@ module ThriftHiveMetastore
661
967
  result = Create_database_result.new()
662
968
  begin
663
969
  @handler.create_database(args.database)
664
- rescue AlreadyExistsException => o1
970
+ rescue ::AlreadyExistsException => o1
665
971
  result.o1 = o1
666
- rescue InvalidObjectException => o2
972
+ rescue ::InvalidObjectException => o2
667
973
  result.o2 = o2
668
- rescue MetaException => o3
974
+ rescue ::MetaException => o3
669
975
  result.o3 = o3
670
976
  end
671
977
  write_result(result, oprot, 'create_database', seqid)
@@ -676,9 +982,9 @@ module ThriftHiveMetastore
676
982
  result = Get_database_result.new()
677
983
  begin
678
984
  result.success = @handler.get_database(args.name)
679
- rescue NoSuchObjectException => o1
985
+ rescue ::NoSuchObjectException => o1
680
986
  result.o1 = o1
681
- rescue MetaException => o2
987
+ rescue ::MetaException => o2
682
988
  result.o2 = o2
683
989
  end
684
990
  write_result(result, oprot, 'get_database', seqid)
@@ -689,11 +995,11 @@ module ThriftHiveMetastore
689
995
  result = Drop_database_result.new()
690
996
  begin
691
997
  @handler.drop_database(args.name, args.deleteData)
692
- rescue NoSuchObjectException => o1
998
+ rescue ::NoSuchObjectException => o1
693
999
  result.o1 = o1
694
- rescue InvalidOperationException => o2
1000
+ rescue ::InvalidOperationException => o2
695
1001
  result.o2 = o2
696
- rescue MetaException => o3
1002
+ rescue ::MetaException => o3
697
1003
  result.o3 = o3
698
1004
  end
699
1005
  write_result(result, oprot, 'drop_database', seqid)
@@ -704,7 +1010,7 @@ module ThriftHiveMetastore
704
1010
  result = Get_databases_result.new()
705
1011
  begin
706
1012
  result.success = @handler.get_databases(args.pattern)
707
- rescue MetaException => o1
1013
+ rescue ::MetaException => o1
708
1014
  result.o1 = o1
709
1015
  end
710
1016
  write_result(result, oprot, 'get_databases', seqid)
@@ -715,20 +1021,33 @@ module ThriftHiveMetastore
715
1021
  result = Get_all_databases_result.new()
716
1022
  begin
717
1023
  result.success = @handler.get_all_databases()
718
- rescue MetaException => o1
1024
+ rescue ::MetaException => o1
719
1025
  result.o1 = o1
720
1026
  end
721
1027
  write_result(result, oprot, 'get_all_databases', seqid)
722
1028
  end
723
1029
 
1030
+ def process_alter_database(seqid, iprot, oprot)
1031
+ args = read_args(iprot, Alter_database_args)
1032
+ result = Alter_database_result.new()
1033
+ begin
1034
+ @handler.alter_database(args.dbname, args.db)
1035
+ rescue ::MetaException => o1
1036
+ result.o1 = o1
1037
+ rescue ::NoSuchObjectException => o2
1038
+ result.o2 = o2
1039
+ end
1040
+ write_result(result, oprot, 'alter_database', seqid)
1041
+ end
1042
+
724
1043
  def process_get_type(seqid, iprot, oprot)
725
1044
  args = read_args(iprot, Get_type_args)
726
1045
  result = Get_type_result.new()
727
1046
  begin
728
1047
  result.success = @handler.get_type(args.name)
729
- rescue MetaException => o1
1048
+ rescue ::MetaException => o1
730
1049
  result.o1 = o1
731
- rescue NoSuchObjectException => o2
1050
+ rescue ::NoSuchObjectException => o2
732
1051
  result.o2 = o2
733
1052
  end
734
1053
  write_result(result, oprot, 'get_type', seqid)
@@ -739,11 +1058,11 @@ module ThriftHiveMetastore
739
1058
  result = Create_type_result.new()
740
1059
  begin
741
1060
  result.success = @handler.create_type(args.type)
742
- rescue AlreadyExistsException => o1
1061
+ rescue ::AlreadyExistsException => o1
743
1062
  result.o1 = o1
744
- rescue InvalidObjectException => o2
1063
+ rescue ::InvalidObjectException => o2
745
1064
  result.o2 = o2
746
- rescue MetaException => o3
1065
+ rescue ::MetaException => o3
747
1066
  result.o3 = o3
748
1067
  end
749
1068
  write_result(result, oprot, 'create_type', seqid)
@@ -754,9 +1073,9 @@ module ThriftHiveMetastore
754
1073
  result = Drop_type_result.new()
755
1074
  begin
756
1075
  result.success = @handler.drop_type(args.type)
757
- rescue MetaException => o1
1076
+ rescue ::MetaException => o1
758
1077
  result.o1 = o1
759
- rescue NoSuchObjectException => o2
1078
+ rescue ::NoSuchObjectException => o2
760
1079
  result.o2 = o2
761
1080
  end
762
1081
  write_result(result, oprot, 'drop_type', seqid)
@@ -767,7 +1086,7 @@ module ThriftHiveMetastore
767
1086
  result = Get_type_all_result.new()
768
1087
  begin
769
1088
  result.success = @handler.get_type_all(args.name)
770
- rescue MetaException => o2
1089
+ rescue ::MetaException => o2
771
1090
  result.o2 = o2
772
1091
  end
773
1092
  write_result(result, oprot, 'get_type_all', seqid)
@@ -778,11 +1097,11 @@ module ThriftHiveMetastore
778
1097
  result = Get_fields_result.new()
779
1098
  begin
780
1099
  result.success = @handler.get_fields(args.db_name, args.table_name)
781
- rescue MetaException => o1
1100
+ rescue ::MetaException => o1
782
1101
  result.o1 = o1
783
- rescue UnknownTableException => o2
1102
+ rescue ::UnknownTableException => o2
784
1103
  result.o2 = o2
785
- rescue UnknownDBException => o3
1104
+ rescue ::UnknownDBException => o3
786
1105
  result.o3 = o3
787
1106
  end
788
1107
  write_result(result, oprot, 'get_fields', seqid)
@@ -793,11 +1112,11 @@ module ThriftHiveMetastore
793
1112
  result = Get_schema_result.new()
794
1113
  begin
795
1114
  result.success = @handler.get_schema(args.db_name, args.table_name)
796
- rescue MetaException => o1
1115
+ rescue ::MetaException => o1
797
1116
  result.o1 = o1
798
- rescue UnknownTableException => o2
1117
+ rescue ::UnknownTableException => o2
799
1118
  result.o2 = o2
800
- rescue UnknownDBException => o3
1119
+ rescue ::UnknownDBException => o3
801
1120
  result.o3 = o3
802
1121
  end
803
1122
  write_result(result, oprot, 'get_schema', seqid)
@@ -808,13 +1127,13 @@ module ThriftHiveMetastore
808
1127
  result = Create_table_result.new()
809
1128
  begin
810
1129
  @handler.create_table(args.tbl)
811
- rescue AlreadyExistsException => o1
1130
+ rescue ::AlreadyExistsException => o1
812
1131
  result.o1 = o1
813
- rescue InvalidObjectException => o2
1132
+ rescue ::InvalidObjectException => o2
814
1133
  result.o2 = o2
815
- rescue MetaException => o3
1134
+ rescue ::MetaException => o3
816
1135
  result.o3 = o3
817
- rescue NoSuchObjectException => o4
1136
+ rescue ::NoSuchObjectException => o4
818
1137
  result.o4 = o4
819
1138
  end
820
1139
  write_result(result, oprot, 'create_table', seqid)
@@ -825,9 +1144,9 @@ module ThriftHiveMetastore
825
1144
  result = Drop_table_result.new()
826
1145
  begin
827
1146
  @handler.drop_table(args.dbname, args.name, args.deleteData)
828
- rescue NoSuchObjectException => o1
1147
+ rescue ::NoSuchObjectException => o1
829
1148
  result.o1 = o1
830
- rescue MetaException => o3
1149
+ rescue ::MetaException => o3
831
1150
  result.o3 = o3
832
1151
  end
833
1152
  write_result(result, oprot, 'drop_table', seqid)
@@ -838,7 +1157,7 @@ module ThriftHiveMetastore
838
1157
  result = Get_tables_result.new()
839
1158
  begin
840
1159
  result.success = @handler.get_tables(args.db_name, args.pattern)
841
- rescue MetaException => o1
1160
+ rescue ::MetaException => o1
842
1161
  result.o1 = o1
843
1162
  end
844
1163
  write_result(result, oprot, 'get_tables', seqid)
@@ -849,7 +1168,7 @@ module ThriftHiveMetastore
849
1168
  result = Get_all_tables_result.new()
850
1169
  begin
851
1170
  result.success = @handler.get_all_tables(args.db_name)
852
- rescue MetaException => o1
1171
+ rescue ::MetaException => o1
853
1172
  result.o1 = o1
854
1173
  end
855
1174
  write_result(result, oprot, 'get_all_tables', seqid)
@@ -860,9 +1179,9 @@ module ThriftHiveMetastore
860
1179
  result = Get_table_result.new()
861
1180
  begin
862
1181
  result.success = @handler.get_table(args.dbname, args.tbl_name)
863
- rescue MetaException => o1
1182
+ rescue ::MetaException => o1
864
1183
  result.o1 = o1
865
- rescue NoSuchObjectException => o2
1184
+ rescue ::NoSuchObjectException => o2
866
1185
  result.o2 = o2
867
1186
  end
868
1187
  write_result(result, oprot, 'get_table', seqid)
@@ -873,9 +1192,9 @@ module ThriftHiveMetastore
873
1192
  result = Alter_table_result.new()
874
1193
  begin
875
1194
  @handler.alter_table(args.dbname, args.tbl_name, args.new_tbl)
876
- rescue InvalidOperationException => o1
1195
+ rescue ::InvalidOperationException => o1
877
1196
  result.o1 = o1
878
- rescue MetaException => o2
1197
+ rescue ::MetaException => o2
879
1198
  result.o2 = o2
880
1199
  end
881
1200
  write_result(result, oprot, 'alter_table', seqid)
@@ -886,11 +1205,11 @@ module ThriftHiveMetastore
886
1205
  result = Add_partition_result.new()
887
1206
  begin
888
1207
  result.success = @handler.add_partition(args.new_part)
889
- rescue InvalidObjectException => o1
1208
+ rescue ::InvalidObjectException => o1
890
1209
  result.o1 = o1
891
- rescue AlreadyExistsException => o2
1210
+ rescue ::AlreadyExistsException => o2
892
1211
  result.o2 = o2
893
- rescue MetaException => o3
1212
+ rescue ::MetaException => o3
894
1213
  result.o3 = o3
895
1214
  end
896
1215
  write_result(result, oprot, 'add_partition', seqid)
@@ -901,11 +1220,11 @@ module ThriftHiveMetastore
901
1220
  result = Append_partition_result.new()
902
1221
  begin
903
1222
  result.success = @handler.append_partition(args.db_name, args.tbl_name, args.part_vals)
904
- rescue InvalidObjectException => o1
1223
+ rescue ::InvalidObjectException => o1
905
1224
  result.o1 = o1
906
- rescue AlreadyExistsException => o2
1225
+ rescue ::AlreadyExistsException => o2
907
1226
  result.o2 = o2
908
- rescue MetaException => o3
1227
+ rescue ::MetaException => o3
909
1228
  result.o3 = o3
910
1229
  end
911
1230
  write_result(result, oprot, 'append_partition', seqid)
@@ -916,11 +1235,11 @@ module ThriftHiveMetastore
916
1235
  result = Append_partition_by_name_result.new()
917
1236
  begin
918
1237
  result.success = @handler.append_partition_by_name(args.db_name, args.tbl_name, args.part_name)
919
- rescue InvalidObjectException => o1
1238
+ rescue ::InvalidObjectException => o1
920
1239
  result.o1 = o1
921
- rescue AlreadyExistsException => o2
1240
+ rescue ::AlreadyExistsException => o2
922
1241
  result.o2 = o2
923
- rescue MetaException => o3
1242
+ rescue ::MetaException => o3
924
1243
  result.o3 = o3
925
1244
  end
926
1245
  write_result(result, oprot, 'append_partition_by_name', seqid)
@@ -931,9 +1250,9 @@ module ThriftHiveMetastore
931
1250
  result = Drop_partition_result.new()
932
1251
  begin
933
1252
  result.success = @handler.drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData)
934
- rescue NoSuchObjectException => o1
1253
+ rescue ::NoSuchObjectException => o1
935
1254
  result.o1 = o1
936
- rescue MetaException => o2
1255
+ rescue ::MetaException => o2
937
1256
  result.o2 = o2
938
1257
  end
939
1258
  write_result(result, oprot, 'drop_partition', seqid)
@@ -944,9 +1263,9 @@ module ThriftHiveMetastore
944
1263
  result = Drop_partition_by_name_result.new()
945
1264
  begin
946
1265
  result.success = @handler.drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData)
947
- rescue NoSuchObjectException => o1
1266
+ rescue ::NoSuchObjectException => o1
948
1267
  result.o1 = o1
949
- rescue MetaException => o2
1268
+ rescue ::MetaException => o2
950
1269
  result.o2 = o2
951
1270
  end
952
1271
  write_result(result, oprot, 'drop_partition_by_name', seqid)
@@ -957,22 +1276,35 @@ module ThriftHiveMetastore
957
1276
  result = Get_partition_result.new()
958
1277
  begin
959
1278
  result.success = @handler.get_partition(args.db_name, args.tbl_name, args.part_vals)
960
- rescue MetaException => o1
1279
+ rescue ::MetaException => o1
961
1280
  result.o1 = o1
962
- rescue NoSuchObjectException => o2
1281
+ rescue ::NoSuchObjectException => o2
963
1282
  result.o2 = o2
964
1283
  end
965
1284
  write_result(result, oprot, 'get_partition', seqid)
966
1285
  end
967
1286
 
1287
+ def process_get_partition_with_auth(seqid, iprot, oprot)
1288
+ args = read_args(iprot, Get_partition_with_auth_args)
1289
+ result = Get_partition_with_auth_result.new()
1290
+ begin
1291
+ result.success = @handler.get_partition_with_auth(args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names)
1292
+ rescue ::MetaException => o1
1293
+ result.o1 = o1
1294
+ rescue ::NoSuchObjectException => o2
1295
+ result.o2 = o2
1296
+ end
1297
+ write_result(result, oprot, 'get_partition_with_auth', seqid)
1298
+ end
1299
+
968
1300
  def process_get_partition_by_name(seqid, iprot, oprot)
969
1301
  args = read_args(iprot, Get_partition_by_name_args)
970
1302
  result = Get_partition_by_name_result.new()
971
1303
  begin
972
1304
  result.success = @handler.get_partition_by_name(args.db_name, args.tbl_name, args.part_name)
973
- rescue MetaException => o1
1305
+ rescue ::MetaException => o1
974
1306
  result.o1 = o1
975
- rescue NoSuchObjectException => o2
1307
+ rescue ::NoSuchObjectException => o2
976
1308
  result.o2 = o2
977
1309
  end
978
1310
  write_result(result, oprot, 'get_partition_by_name', seqid)
@@ -983,20 +1315,33 @@ module ThriftHiveMetastore
983
1315
  result = Get_partitions_result.new()
984
1316
  begin
985
1317
  result.success = @handler.get_partitions(args.db_name, args.tbl_name, args.max_parts)
986
- rescue NoSuchObjectException => o1
1318
+ rescue ::NoSuchObjectException => o1
987
1319
  result.o1 = o1
988
- rescue MetaException => o2
1320
+ rescue ::MetaException => o2
989
1321
  result.o2 = o2
990
1322
  end
991
1323
  write_result(result, oprot, 'get_partitions', seqid)
992
1324
  end
993
1325
 
1326
+ def process_get_partitions_with_auth(seqid, iprot, oprot)
1327
+ args = read_args(iprot, Get_partitions_with_auth_args)
1328
+ result = Get_partitions_with_auth_result.new()
1329
+ begin
1330
+ result.success = @handler.get_partitions_with_auth(args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names)
1331
+ rescue ::NoSuchObjectException => o1
1332
+ result.o1 = o1
1333
+ rescue ::MetaException => o2
1334
+ result.o2 = o2
1335
+ end
1336
+ write_result(result, oprot, 'get_partitions_with_auth', seqid)
1337
+ end
1338
+
994
1339
  def process_get_partition_names(seqid, iprot, oprot)
995
1340
  args = read_args(iprot, Get_partition_names_args)
996
1341
  result = Get_partition_names_result.new()
997
1342
  begin
998
1343
  result.success = @handler.get_partition_names(args.db_name, args.tbl_name, args.max_parts)
999
- rescue MetaException => o2
1344
+ rescue ::MetaException => o2
1000
1345
  result.o2 = o2
1001
1346
  end
1002
1347
  write_result(result, oprot, 'get_partition_names', seqid)
@@ -1007,18 +1352,31 @@ module ThriftHiveMetastore
1007
1352
  result = Get_partitions_ps_result.new()
1008
1353
  begin
1009
1354
  result.success = @handler.get_partitions_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
1010
- rescue MetaException => o1
1355
+ rescue ::MetaException => o1
1011
1356
  result.o1 = o1
1012
1357
  end
1013
1358
  write_result(result, oprot, 'get_partitions_ps', seqid)
1014
1359
  end
1015
1360
 
1361
+ def process_get_partitions_ps_with_auth(seqid, iprot, oprot)
1362
+ args = read_args(iprot, Get_partitions_ps_with_auth_args)
1363
+ result = Get_partitions_ps_with_auth_result.new()
1364
+ begin
1365
+ result.success = @handler.get_partitions_ps_with_auth(args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names)
1366
+ rescue ::NoSuchObjectException => o1
1367
+ result.o1 = o1
1368
+ rescue ::MetaException => o2
1369
+ result.o2 = o2
1370
+ end
1371
+ write_result(result, oprot, 'get_partitions_ps_with_auth', seqid)
1372
+ end
1373
+
1016
1374
  def process_get_partition_names_ps(seqid, iprot, oprot)
1017
1375
  args = read_args(iprot, Get_partition_names_ps_args)
1018
1376
  result = Get_partition_names_ps_result.new()
1019
1377
  begin
1020
1378
  result.success = @handler.get_partition_names_ps(args.db_name, args.tbl_name, args.part_vals, args.max_parts)
1021
- rescue MetaException => o1
1379
+ rescue ::MetaException => o1
1022
1380
  result.o1 = o1
1023
1381
  end
1024
1382
  write_result(result, oprot, 'get_partition_names_ps', seqid)
@@ -1029,9 +1387,9 @@ module ThriftHiveMetastore
1029
1387
  result = Get_partitions_by_filter_result.new()
1030
1388
  begin
1031
1389
  result.success = @handler.get_partitions_by_filter(args.db_name, args.tbl_name, args.filter, args.max_parts)
1032
- rescue MetaException => o1
1390
+ rescue ::MetaException => o1
1033
1391
  result.o1 = o1
1034
- rescue NoSuchObjectException => o2
1392
+ rescue ::NoSuchObjectException => o2
1035
1393
  result.o2 = o2
1036
1394
  end
1037
1395
  write_result(result, oprot, 'get_partitions_by_filter', seqid)
@@ -1042,9 +1400,9 @@ module ThriftHiveMetastore
1042
1400
  result = Alter_partition_result.new()
1043
1401
  begin
1044
1402
  @handler.alter_partition(args.db_name, args.tbl_name, args.new_part)
1045
- rescue InvalidOperationException => o1
1403
+ rescue ::InvalidOperationException => o1
1046
1404
  result.o1 = o1
1047
- rescue MetaException => o2
1405
+ rescue ::MetaException => o2
1048
1406
  result.o2 = o2
1049
1407
  end
1050
1408
  write_result(result, oprot, 'alter_partition', seqid)
@@ -1055,7 +1413,7 @@ module ThriftHiveMetastore
1055
1413
  result = Get_config_value_result.new()
1056
1414
  begin
1057
1415
  result.success = @handler.get_config_value(args.name, args.defaultValue)
1058
- rescue ConfigValSecurityException => o1
1416
+ rescue ::ConfigValSecurityException => o1
1059
1417
  result.o1 = o1
1060
1418
  end
1061
1419
  write_result(result, oprot, 'get_config_value', seqid)
@@ -1066,7 +1424,7 @@ module ThriftHiveMetastore
1066
1424
  result = Partition_name_to_vals_result.new()
1067
1425
  begin
1068
1426
  result.success = @handler.partition_name_to_vals(args.part_name)
1069
- rescue MetaException => o1
1427
+ rescue ::MetaException => o1
1070
1428
  result.o1 = o1
1071
1429
  end
1072
1430
  write_result(result, oprot, 'partition_name_to_vals', seqid)
@@ -1077,7 +1435,7 @@ module ThriftHiveMetastore
1077
1435
  result = Partition_name_to_spec_result.new()
1078
1436
  begin
1079
1437
  result.success = @handler.partition_name_to_spec(args.part_name)
1080
- rescue MetaException => o1
1438
+ rescue ::MetaException => o1
1081
1439
  result.o1 = o1
1082
1440
  end
1083
1441
  write_result(result, oprot, 'partition_name_to_spec', seqid)
@@ -1088,24 +1446,37 @@ module ThriftHiveMetastore
1088
1446
  result = Add_index_result.new()
1089
1447
  begin
1090
1448
  result.success = @handler.add_index(args.new_index, args.index_table)
1091
- rescue InvalidObjectException => o1
1449
+ rescue ::InvalidObjectException => o1
1092
1450
  result.o1 = o1
1093
- rescue AlreadyExistsException => o2
1451
+ rescue ::AlreadyExistsException => o2
1094
1452
  result.o2 = o2
1095
- rescue MetaException => o3
1453
+ rescue ::MetaException => o3
1096
1454
  result.o3 = o3
1097
1455
  end
1098
1456
  write_result(result, oprot, 'add_index', seqid)
1099
1457
  end
1100
1458
 
1459
+ def process_alter_index(seqid, iprot, oprot)
1460
+ args = read_args(iprot, Alter_index_args)
1461
+ result = Alter_index_result.new()
1462
+ begin
1463
+ @handler.alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx)
1464
+ rescue ::InvalidOperationException => o1
1465
+ result.o1 = o1
1466
+ rescue ::MetaException => o2
1467
+ result.o2 = o2
1468
+ end
1469
+ write_result(result, oprot, 'alter_index', seqid)
1470
+ end
1471
+
1101
1472
  def process_drop_index_by_name(seqid, iprot, oprot)
1102
1473
  args = read_args(iprot, Drop_index_by_name_args)
1103
1474
  result = Drop_index_by_name_result.new()
1104
1475
  begin
1105
1476
  result.success = @handler.drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData)
1106
- rescue NoSuchObjectException => o1
1477
+ rescue ::NoSuchObjectException => o1
1107
1478
  result.o1 = o1
1108
- rescue MetaException => o2
1479
+ rescue ::MetaException => o2
1109
1480
  result.o2 = o2
1110
1481
  end
1111
1482
  write_result(result, oprot, 'drop_index_by_name', seqid)
@@ -1116,9 +1487,9 @@ module ThriftHiveMetastore
1116
1487
  result = Get_index_by_name_result.new()
1117
1488
  begin
1118
1489
  result.success = @handler.get_index_by_name(args.db_name, args.tbl_name, args.index_name)
1119
- rescue MetaException => o1
1490
+ rescue ::MetaException => o1
1120
1491
  result.o1 = o1
1121
- rescue NoSuchObjectException => o2
1492
+ rescue ::NoSuchObjectException => o2
1122
1493
  result.o2 = o2
1123
1494
  end
1124
1495
  write_result(result, oprot, 'get_index_by_name', seqid)
@@ -1129,9 +1500,9 @@ module ThriftHiveMetastore
1129
1500
  result = Get_indexes_result.new()
1130
1501
  begin
1131
1502
  result.success = @handler.get_indexes(args.db_name, args.tbl_name, args.max_indexes)
1132
- rescue NoSuchObjectException => o1
1503
+ rescue ::NoSuchObjectException => o1
1133
1504
  result.o1 = o1
1134
- rescue MetaException => o2
1505
+ rescue ::MetaException => o2
1135
1506
  result.o2 = o2
1136
1507
  end
1137
1508
  write_result(result, oprot, 'get_indexes', seqid)
@@ -1142,53 +1513,207 @@ module ThriftHiveMetastore
1142
1513
  result = Get_index_names_result.new()
1143
1514
  begin
1144
1515
  result.success = @handler.get_index_names(args.db_name, args.tbl_name, args.max_indexes)
1145
- rescue MetaException => o2
1516
+ rescue ::MetaException => o2
1146
1517
  result.o2 = o2
1147
1518
  end
1148
1519
  write_result(result, oprot, 'get_index_names', seqid)
1149
1520
  end
1150
1521
 
1151
- end
1522
+ def process_create_role(seqid, iprot, oprot)
1523
+ args = read_args(iprot, Create_role_args)
1524
+ result = Create_role_result.new()
1525
+ begin
1526
+ result.success = @handler.create_role(args.role)
1527
+ rescue ::MetaException => o1
1528
+ result.o1 = o1
1529
+ end
1530
+ write_result(result, oprot, 'create_role', seqid)
1531
+ end
1152
1532
 
1153
- # HELPER FUNCTIONS AND STRUCTURES
1533
+ def process_drop_role(seqid, iprot, oprot)
1534
+ args = read_args(iprot, Drop_role_args)
1535
+ result = Drop_role_result.new()
1536
+ begin
1537
+ result.success = @handler.drop_role(args.role_name)
1538
+ rescue ::MetaException => o1
1539
+ result.o1 = o1
1540
+ end
1541
+ write_result(result, oprot, 'drop_role', seqid)
1542
+ end
1154
1543
 
1155
- class Create_database_args
1156
- include ::Thrift::Struct, ::Thrift::Struct_Union
1157
- DATABASE = 1
1544
+ def process_get_role_names(seqid, iprot, oprot)
1545
+ args = read_args(iprot, Get_role_names_args)
1546
+ result = Get_role_names_result.new()
1547
+ begin
1548
+ result.success = @handler.get_role_names()
1549
+ rescue ::MetaException => o1
1550
+ result.o1 = o1
1551
+ end
1552
+ write_result(result, oprot, 'get_role_names', seqid)
1553
+ end
1158
1554
 
1159
- FIELDS = {
1160
- DATABASE => {:type => ::Thrift::Types::STRUCT, :name => 'database', :class => Database}
1161
- }
1555
+ def process_grant_role(seqid, iprot, oprot)
1556
+ args = read_args(iprot, Grant_role_args)
1557
+ result = Grant_role_result.new()
1558
+ begin
1559
+ result.success = @handler.grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option)
1560
+ rescue ::MetaException => o1
1561
+ result.o1 = o1
1562
+ end
1563
+ write_result(result, oprot, 'grant_role', seqid)
1564
+ end
1162
1565
 
1163
- def struct_fields; FIELDS; end
1566
+ def process_revoke_role(seqid, iprot, oprot)
1567
+ args = read_args(iprot, Revoke_role_args)
1568
+ result = Revoke_role_result.new()
1569
+ begin
1570
+ result.success = @handler.revoke_role(args.role_name, args.principal_name, args.principal_type)
1571
+ rescue ::MetaException => o1
1572
+ result.o1 = o1
1573
+ end
1574
+ write_result(result, oprot, 'revoke_role', seqid)
1575
+ end
1164
1576
 
1165
- def validate
1577
+ def process_list_roles(seqid, iprot, oprot)
1578
+ args = read_args(iprot, List_roles_args)
1579
+ result = List_roles_result.new()
1580
+ begin
1581
+ result.success = @handler.list_roles(args.principal_name, args.principal_type)
1582
+ rescue ::MetaException => o1
1583
+ result.o1 = o1
1584
+ end
1585
+ write_result(result, oprot, 'list_roles', seqid)
1166
1586
  end
1167
1587
 
1168
- ::Thrift::Struct.generate_accessors self
1169
- end
1588
+ def process_get_privilege_set(seqid, iprot, oprot)
1589
+ args = read_args(iprot, Get_privilege_set_args)
1590
+ result = Get_privilege_set_result.new()
1591
+ begin
1592
+ result.success = @handler.get_privilege_set(args.hiveObject, args.user_name, args.group_names)
1593
+ rescue ::MetaException => o1
1594
+ result.o1 = o1
1595
+ end
1596
+ write_result(result, oprot, 'get_privilege_set', seqid)
1597
+ end
1170
1598
 
1171
- class Create_database_result
1172
- include ::Thrift::Struct, ::Thrift::Struct_Union
1173
- O1 = 1
1174
- O2 = 2
1175
- O3 = 3
1599
+ def process_list_privileges(seqid, iprot, oprot)
1600
+ args = read_args(iprot, List_privileges_args)
1601
+ result = List_privileges_result.new()
1602
+ begin
1603
+ result.success = @handler.list_privileges(args.principal_name, args.principal_type, args.hiveObject)
1604
+ rescue ::MetaException => o1
1605
+ result.o1 = o1
1606
+ end
1607
+ write_result(result, oprot, 'list_privileges', seqid)
1608
+ end
1176
1609
 
1177
- FIELDS = {
1178
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
1179
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidObjectException},
1180
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
1181
- }
1610
+ def process_grant_privileges(seqid, iprot, oprot)
1611
+ args = read_args(iprot, Grant_privileges_args)
1612
+ result = Grant_privileges_result.new()
1613
+ begin
1614
+ result.success = @handler.grant_privileges(args.privileges)
1615
+ rescue ::MetaException => o1
1616
+ result.o1 = o1
1617
+ end
1618
+ write_result(result, oprot, 'grant_privileges', seqid)
1619
+ end
1182
1620
 
1183
- def struct_fields; FIELDS; end
1621
+ def process_revoke_privileges(seqid, iprot, oprot)
1622
+ args = read_args(iprot, Revoke_privileges_args)
1623
+ result = Revoke_privileges_result.new()
1624
+ begin
1625
+ result.success = @handler.revoke_privileges(args.privileges)
1626
+ rescue ::MetaException => o1
1627
+ result.o1 = o1
1628
+ end
1629
+ write_result(result, oprot, 'revoke_privileges', seqid)
1630
+ end
1184
1631
 
1185
- def validate
1632
+ def process_get_delegation_token(seqid, iprot, oprot)
1633
+ args = read_args(iprot, Get_delegation_token_args)
1634
+ result = Get_delegation_token_result.new()
1635
+ begin
1636
+ result.success = @handler.get_delegation_token(args.renewer_kerberos_principal_name)
1637
+ rescue ::MetaException => o1
1638
+ result.o1 = o1
1639
+ end
1640
+ write_result(result, oprot, 'get_delegation_token', seqid)
1186
1641
  end
1187
1642
 
1188
- ::Thrift::Struct.generate_accessors self
1189
- end
1643
+ def process_get_delegation_token_with_signature(seqid, iprot, oprot)
1644
+ args = read_args(iprot, Get_delegation_token_with_signature_args)
1645
+ result = Get_delegation_token_with_signature_result.new()
1646
+ begin
1647
+ result.success = @handler.get_delegation_token_with_signature(args.renewer_kerberos_principal_name, args.token_signature)
1648
+ rescue ::MetaException => o1
1649
+ result.o1 = o1
1650
+ end
1651
+ write_result(result, oprot, 'get_delegation_token_with_signature', seqid)
1652
+ end
1190
1653
 
1191
- class Get_database_args
1654
+ def process_renew_delegation_token(seqid, iprot, oprot)
1655
+ args = read_args(iprot, Renew_delegation_token_args)
1656
+ result = Renew_delegation_token_result.new()
1657
+ begin
1658
+ result.success = @handler.renew_delegation_token(args.token_str_form)
1659
+ rescue ::MetaException => o1
1660
+ result.o1 = o1
1661
+ end
1662
+ write_result(result, oprot, 'renew_delegation_token', seqid)
1663
+ end
1664
+
1665
+ def process_cancel_delegation_token(seqid, iprot, oprot)
1666
+ args = read_args(iprot, Cancel_delegation_token_args)
1667
+ result = Cancel_delegation_token_result.new()
1668
+ begin
1669
+ @handler.cancel_delegation_token(args.token_str_form)
1670
+ rescue ::MetaException => o1
1671
+ result.o1 = o1
1672
+ end
1673
+ write_result(result, oprot, 'cancel_delegation_token', seqid)
1674
+ end
1675
+
1676
+ end
1677
+
1678
+ # HELPER FUNCTIONS AND STRUCTURES
1679
+
1680
+ class Create_database_args
1681
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1682
+ DATABASE = 1
1683
+
1684
+ FIELDS = {
1685
+ DATABASE => {:type => ::Thrift::Types::STRUCT, :name => 'database', :class => ::Database}
1686
+ }
1687
+
1688
+ def struct_fields; FIELDS; end
1689
+
1690
+ def validate
1691
+ end
1692
+
1693
+ ::Thrift::Struct.generate_accessors self
1694
+ end
1695
+
1696
+ class Create_database_result
1697
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1698
+ O1 = 1
1699
+ O2 = 2
1700
+ O3 = 3
1701
+
1702
+ FIELDS = {
1703
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
1704
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
1705
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1706
+ }
1707
+
1708
+ def struct_fields; FIELDS; end
1709
+
1710
+ def validate
1711
+ end
1712
+
1713
+ ::Thrift::Struct.generate_accessors self
1714
+ end
1715
+
1716
+ class Get_database_args
1192
1717
  include ::Thrift::Struct, ::Thrift::Struct_Union
1193
1718
  NAME = 1
1194
1719
 
@@ -1211,9 +1736,9 @@ module ThriftHiveMetastore
1211
1736
  O2 = 2
1212
1737
 
1213
1738
  FIELDS = {
1214
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Database},
1215
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
1216
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
1739
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Database},
1740
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
1741
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
1217
1742
  }
1218
1743
 
1219
1744
  def struct_fields; FIELDS; end
@@ -1249,9 +1774,9 @@ module ThriftHiveMetastore
1249
1774
  O3 = 3
1250
1775
 
1251
1776
  FIELDS = {
1252
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
1253
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidOperationException},
1254
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
1777
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
1778
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidOperationException},
1779
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1255
1780
  }
1256
1781
 
1257
1782
  def struct_fields; FIELDS; end
@@ -1285,7 +1810,7 @@ module ThriftHiveMetastore
1285
1810
 
1286
1811
  FIELDS = {
1287
1812
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1288
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
1813
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
1289
1814
  }
1290
1815
 
1291
1816
  def struct_fields; FIELDS; end
@@ -1318,7 +1843,43 @@ module ThriftHiveMetastore
1318
1843
 
1319
1844
  FIELDS = {
1320
1845
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1321
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
1846
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
1847
+ }
1848
+
1849
+ def struct_fields; FIELDS; end
1850
+
1851
+ def validate
1852
+ end
1853
+
1854
+ ::Thrift::Struct.generate_accessors self
1855
+ end
1856
+
1857
+ class Alter_database_args
1858
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1859
+ DBNAME = 1
1860
+ DB = 2
1861
+
1862
+ FIELDS = {
1863
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
1864
+ DB => {:type => ::Thrift::Types::STRUCT, :name => 'db', :class => ::Database}
1865
+ }
1866
+
1867
+ def struct_fields; FIELDS; end
1868
+
1869
+ def validate
1870
+ end
1871
+
1872
+ ::Thrift::Struct.generate_accessors self
1873
+ end
1874
+
1875
+ class Alter_database_result
1876
+ include ::Thrift::Struct, ::Thrift::Struct_Union
1877
+ O1 = 1
1878
+ O2 = 2
1879
+
1880
+ FIELDS = {
1881
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
1882
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
1322
1883
  }
1323
1884
 
1324
1885
  def struct_fields; FIELDS; end
@@ -1352,9 +1913,9 @@ module ThriftHiveMetastore
1352
1913
  O2 = 2
1353
1914
 
1354
1915
  FIELDS = {
1355
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Type},
1356
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
1357
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
1916
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Type},
1917
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
1918
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
1358
1919
  }
1359
1920
 
1360
1921
  def struct_fields; FIELDS; end
@@ -1370,7 +1931,7 @@ module ThriftHiveMetastore
1370
1931
  TYPE = 1
1371
1932
 
1372
1933
  FIELDS = {
1373
- TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => Type}
1934
+ TYPE => {:type => ::Thrift::Types::STRUCT, :name => 'type', :class => ::Type}
1374
1935
  }
1375
1936
 
1376
1937
  def struct_fields; FIELDS; end
@@ -1390,9 +1951,9 @@ module ThriftHiveMetastore
1390
1951
 
1391
1952
  FIELDS = {
1392
1953
  SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1393
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
1394
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidObjectException},
1395
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
1954
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
1955
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
1956
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1396
1957
  }
1397
1958
 
1398
1959
  def struct_fields; FIELDS; end
@@ -1427,8 +1988,8 @@ module ThriftHiveMetastore
1427
1988
 
1428
1989
  FIELDS = {
1429
1990
  SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1430
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
1431
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
1991
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
1992
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
1432
1993
  }
1433
1994
 
1434
1995
  def struct_fields; FIELDS; end
@@ -1461,8 +2022,8 @@ module ThriftHiveMetastore
1461
2022
  O2 = 1
1462
2023
 
1463
2024
  FIELDS = {
1464
- SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => Type}},
1465
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2025
+ SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRUCT, :class => ::Type}},
2026
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
1466
2027
  }
1467
2028
 
1468
2029
  def struct_fields; FIELDS; end
@@ -1499,10 +2060,10 @@ module ThriftHiveMetastore
1499
2060
  O3 = 3
1500
2061
 
1501
2062
  FIELDS = {
1502
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => FieldSchema}},
1503
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
1504
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => UnknownTableException},
1505
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => UnknownDBException}
2063
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
2064
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2065
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException},
2066
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException}
1506
2067
  }
1507
2068
 
1508
2069
  def struct_fields; FIELDS; end
@@ -1539,10 +2100,10 @@ module ThriftHiveMetastore
1539
2100
  O3 = 3
1540
2101
 
1541
2102
  FIELDS = {
1542
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => FieldSchema}},
1543
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
1544
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => UnknownTableException},
1545
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => UnknownDBException}
2103
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::FieldSchema}},
2104
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2105
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::UnknownTableException},
2106
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::UnknownDBException}
1546
2107
  }
1547
2108
 
1548
2109
  def struct_fields; FIELDS; end
@@ -1558,7 +2119,7 @@ module ThriftHiveMetastore
1558
2119
  TBL = 1
1559
2120
 
1560
2121
  FIELDS = {
1561
- TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => Table}
2122
+ TBL => {:type => ::Thrift::Types::STRUCT, :name => 'tbl', :class => ::Table}
1562
2123
  }
1563
2124
 
1564
2125
  def struct_fields; FIELDS; end
@@ -1577,10 +2138,10 @@ module ThriftHiveMetastore
1577
2138
  O4 = 4
1578
2139
 
1579
2140
  FIELDS = {
1580
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => AlreadyExistsException},
1581
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => InvalidObjectException},
1582
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException},
1583
- O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => NoSuchObjectException}
2141
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::AlreadyExistsException},
2142
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::InvalidObjectException},
2143
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException},
2144
+ O4 => {:type => ::Thrift::Types::STRUCT, :name => 'o4', :class => ::NoSuchObjectException}
1584
2145
  }
1585
2146
 
1586
2147
  def struct_fields; FIELDS; end
@@ -1617,8 +2178,8 @@ module ThriftHiveMetastore
1617
2178
  O3 = 2
1618
2179
 
1619
2180
  FIELDS = {
1620
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
1621
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
2181
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2182
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1622
2183
  }
1623
2184
 
1624
2185
  def struct_fields; FIELDS; end
@@ -1654,7 +2215,7 @@ module ThriftHiveMetastore
1654
2215
 
1655
2216
  FIELDS = {
1656
2217
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1657
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
2218
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
1658
2219
  }
1659
2220
 
1660
2221
  def struct_fields; FIELDS; end
@@ -1688,7 +2249,7 @@ module ThriftHiveMetastore
1688
2249
 
1689
2250
  FIELDS = {
1690
2251
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
1691
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
2252
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
1692
2253
  }
1693
2254
 
1694
2255
  def struct_fields; FIELDS; end
@@ -1724,9 +2285,9 @@ module ThriftHiveMetastore
1724
2285
  O2 = 2
1725
2286
 
1726
2287
  FIELDS = {
1727
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Table},
1728
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
1729
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
2288
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Table},
2289
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2290
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
1730
2291
  }
1731
2292
 
1732
2293
  def struct_fields; FIELDS; end
@@ -1746,7 +2307,7 @@ module ThriftHiveMetastore
1746
2307
  FIELDS = {
1747
2308
  DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
1748
2309
  TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
1749
- NEW_TBL => {:type => ::Thrift::Types::STRUCT, :name => 'new_tbl', :class => Table}
2310
+ NEW_TBL => {:type => ::Thrift::Types::STRUCT, :name => 'new_tbl', :class => ::Table}
1750
2311
  }
1751
2312
 
1752
2313
  def struct_fields; FIELDS; end
@@ -1763,8 +2324,8 @@ module ThriftHiveMetastore
1763
2324
  O2 = 2
1764
2325
 
1765
2326
  FIELDS = {
1766
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidOperationException},
1767
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2327
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
2328
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
1768
2329
  }
1769
2330
 
1770
2331
  def struct_fields; FIELDS; end
@@ -1780,7 +2341,7 @@ module ThriftHiveMetastore
1780
2341
  NEW_PART = 1
1781
2342
 
1782
2343
  FIELDS = {
1783
- NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => Partition}
2344
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Partition}
1784
2345
  }
1785
2346
 
1786
2347
  def struct_fields; FIELDS; end
@@ -1799,10 +2360,10 @@ module ThriftHiveMetastore
1799
2360
  O3 = 3
1800
2361
 
1801
2362
  FIELDS = {
1802
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
1803
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
1804
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
1805
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
2363
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2364
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
2365
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
2366
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1806
2367
  }
1807
2368
 
1808
2369
  def struct_fields; FIELDS; end
@@ -1841,10 +2402,10 @@ module ThriftHiveMetastore
1841
2402
  O3 = 3
1842
2403
 
1843
2404
  FIELDS = {
1844
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
1845
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
1846
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
1847
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
2405
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2406
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
2407
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
2408
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1848
2409
  }
1849
2410
 
1850
2411
  def struct_fields; FIELDS; end
@@ -1883,10 +2444,10 @@ module ThriftHiveMetastore
1883
2444
  O3 = 3
1884
2445
 
1885
2446
  FIELDS = {
1886
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
1887
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
1888
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
1889
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
2447
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2448
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
2449
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
2450
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
1890
2451
  }
1891
2452
 
1892
2453
  def struct_fields; FIELDS; end
@@ -1927,8 +2488,8 @@ module ThriftHiveMetastore
1927
2488
 
1928
2489
  FIELDS = {
1929
2490
  SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1930
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
1931
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2491
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2492
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
1932
2493
  }
1933
2494
 
1934
2495
  def struct_fields; FIELDS; end
@@ -1969,8 +2530,8 @@ module ThriftHiveMetastore
1969
2530
 
1970
2531
  FIELDS = {
1971
2532
  SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
1972
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
1973
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2533
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2534
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
1974
2535
  }
1975
2536
 
1976
2537
  def struct_fields; FIELDS; end
@@ -2008,9 +2569,53 @@ module ThriftHiveMetastore
2008
2569
  O2 = 2
2009
2570
 
2010
2571
  FIELDS = {
2011
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
2012
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
2013
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
2572
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2573
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2574
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
2575
+ }
2576
+
2577
+ def struct_fields; FIELDS; end
2578
+
2579
+ def validate
2580
+ end
2581
+
2582
+ ::Thrift::Struct.generate_accessors self
2583
+ end
2584
+
2585
+ class Get_partition_with_auth_args
2586
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2587
+ DB_NAME = 1
2588
+ TBL_NAME = 2
2589
+ PART_VALS = 3
2590
+ USER_NAME = 4
2591
+ GROUP_NAMES = 5
2592
+
2593
+ FIELDS = {
2594
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2595
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2596
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
2597
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
2598
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
2599
+ }
2600
+
2601
+ def struct_fields; FIELDS; end
2602
+
2603
+ def validate
2604
+ end
2605
+
2606
+ ::Thrift::Struct.generate_accessors self
2607
+ end
2608
+
2609
+ class Get_partition_with_auth_result
2610
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2611
+ SUCCESS = 0
2612
+ O1 = 1
2613
+ O2 = 2
2614
+
2615
+ FIELDS = {
2616
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2617
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2618
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
2014
2619
  }
2015
2620
 
2016
2621
  def struct_fields; FIELDS; end
@@ -2048,9 +2653,9 @@ module ThriftHiveMetastore
2048
2653
  O2 = 2
2049
2654
 
2050
2655
  FIELDS = {
2051
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Partition},
2052
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
2053
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
2656
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Partition},
2657
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2658
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
2054
2659
  }
2055
2660
 
2056
2661
  def struct_fields; FIELDS; end
@@ -2088,9 +2693,53 @@ module ThriftHiveMetastore
2088
2693
  O2 = 2
2089
2694
 
2090
2695
  FIELDS = {
2091
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
2092
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
2093
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2696
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
2697
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2698
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2699
+ }
2700
+
2701
+ def struct_fields; FIELDS; end
2702
+
2703
+ def validate
2704
+ end
2705
+
2706
+ ::Thrift::Struct.generate_accessors self
2707
+ end
2708
+
2709
+ class Get_partitions_with_auth_args
2710
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2711
+ DB_NAME = 1
2712
+ TBL_NAME = 2
2713
+ MAX_PARTS = 3
2714
+ USER_NAME = 4
2715
+ GROUP_NAMES = 5
2716
+
2717
+ FIELDS = {
2718
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2719
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2720
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
2721
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
2722
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
2723
+ }
2724
+
2725
+ def struct_fields; FIELDS; end
2726
+
2727
+ def validate
2728
+ end
2729
+
2730
+ ::Thrift::Struct.generate_accessors self
2731
+ end
2732
+
2733
+ class Get_partitions_with_auth_result
2734
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2735
+ SUCCESS = 0
2736
+ O1 = 1
2737
+ O2 = 2
2738
+
2739
+ FIELDS = {
2740
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
2741
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2742
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2094
2743
  }
2095
2744
 
2096
2745
  def struct_fields; FIELDS; end
@@ -2128,7 +2777,7 @@ module ThriftHiveMetastore
2128
2777
 
2129
2778
  FIELDS = {
2130
2779
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2131
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2780
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2132
2781
  }
2133
2782
 
2134
2783
  def struct_fields; FIELDS; end
@@ -2167,8 +2816,54 @@ module ThriftHiveMetastore
2167
2816
  O1 = 1
2168
2817
 
2169
2818
  FIELDS = {
2170
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
2171
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
2819
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
2820
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
2821
+ }
2822
+
2823
+ def struct_fields; FIELDS; end
2824
+
2825
+ def validate
2826
+ end
2827
+
2828
+ ::Thrift::Struct.generate_accessors self
2829
+ end
2830
+
2831
+ class Get_partitions_ps_with_auth_args
2832
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2833
+ DB_NAME = 1
2834
+ TBL_NAME = 2
2835
+ PART_VALS = 3
2836
+ MAX_PARTS = 4
2837
+ USER_NAME = 5
2838
+ GROUP_NAMES = 6
2839
+
2840
+ FIELDS = {
2841
+ DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2842
+ TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2843
+ PART_VALS => {:type => ::Thrift::Types::LIST, :name => 'part_vals', :element => {:type => ::Thrift::Types::STRING}},
2844
+ MAX_PARTS => {:type => ::Thrift::Types::I16, :name => 'max_parts', :default => -1},
2845
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
2846
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
2847
+ }
2848
+
2849
+ def struct_fields; FIELDS; end
2850
+
2851
+ def validate
2852
+ end
2853
+
2854
+ ::Thrift::Struct.generate_accessors self
2855
+ end
2856
+
2857
+ class Get_partitions_ps_with_auth_result
2858
+ include ::Thrift::Struct, ::Thrift::Struct_Union
2859
+ SUCCESS = 0
2860
+ O1 = 1
2861
+ O2 = 2
2862
+
2863
+ FIELDS = {
2864
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
2865
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
2866
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2172
2867
  }
2173
2868
 
2174
2869
  def struct_fields; FIELDS; end
@@ -2208,7 +2903,7 @@ module ThriftHiveMetastore
2208
2903
 
2209
2904
  FIELDS = {
2210
2905
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2211
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
2906
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
2212
2907
  }
2213
2908
 
2214
2909
  def struct_fields; FIELDS; end
@@ -2248,9 +2943,9 @@ module ThriftHiveMetastore
2248
2943
  O2 = 2
2249
2944
 
2250
2945
  FIELDS = {
2251
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Partition}},
2252
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
2253
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
2946
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Partition}},
2947
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
2948
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
2254
2949
  }
2255
2950
 
2256
2951
  def struct_fields; FIELDS; end
@@ -2270,7 +2965,7 @@ module ThriftHiveMetastore
2270
2965
  FIELDS = {
2271
2966
  DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'},
2272
2967
  TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'},
2273
- NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => Partition}
2968
+ NEW_PART => {:type => ::Thrift::Types::STRUCT, :name => 'new_part', :class => ::Partition}
2274
2969
  }
2275
2970
 
2276
2971
  def struct_fields; FIELDS; end
@@ -2287,8 +2982,8 @@ module ThriftHiveMetastore
2287
2982
  O2 = 2
2288
2983
 
2289
2984
  FIELDS = {
2290
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidOperationException},
2291
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
2985
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
2986
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2292
2987
  }
2293
2988
 
2294
2989
  def struct_fields; FIELDS; end
@@ -2324,7 +3019,7 @@ module ThriftHiveMetastore
2324
3019
 
2325
3020
  FIELDS = {
2326
3021
  SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
2327
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ConfigValSecurityException}
3022
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::ConfigValSecurityException}
2328
3023
  }
2329
3024
 
2330
3025
  def struct_fields; FIELDS; end
@@ -2358,7 +3053,7 @@ module ThriftHiveMetastore
2358
3053
 
2359
3054
  FIELDS = {
2360
3055
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2361
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
3056
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
2362
3057
  }
2363
3058
 
2364
3059
  def struct_fields; FIELDS; end
@@ -2392,7 +3087,7 @@ module ThriftHiveMetastore
2392
3087
 
2393
3088
  FIELDS = {
2394
3089
  SUCCESS => {:type => ::Thrift::Types::MAP, :name => 'success', :key => {:type => ::Thrift::Types::STRING}, :value => {:type => ::Thrift::Types::STRING}},
2395
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException}
3090
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
2396
3091
  }
2397
3092
 
2398
3093
  def struct_fields; FIELDS; end
@@ -2409,8 +3104,8 @@ module ThriftHiveMetastore
2409
3104
  INDEX_TABLE = 2
2410
3105
 
2411
3106
  FIELDS = {
2412
- NEW_INDEX => {:type => ::Thrift::Types::STRUCT, :name => 'new_index', :class => Index},
2413
- INDEX_TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'index_table', :class => Table}
3107
+ NEW_INDEX => {:type => ::Thrift::Types::STRUCT, :name => 'new_index', :class => ::Index},
3108
+ INDEX_TABLE => {:type => ::Thrift::Types::STRUCT, :name => 'index_table', :class => ::Table}
2414
3109
  }
2415
3110
 
2416
3111
  def struct_fields; FIELDS; end
@@ -2429,10 +3124,50 @@ module ThriftHiveMetastore
2429
3124
  O3 = 3
2430
3125
 
2431
3126
  FIELDS = {
2432
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Index},
2433
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => InvalidObjectException},
2434
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => AlreadyExistsException},
2435
- O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => MetaException}
3127
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Index},
3128
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidObjectException},
3129
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::AlreadyExistsException},
3130
+ O3 => {:type => ::Thrift::Types::STRUCT, :name => 'o3', :class => ::MetaException}
3131
+ }
3132
+
3133
+ def struct_fields; FIELDS; end
3134
+
3135
+ def validate
3136
+ end
3137
+
3138
+ ::Thrift::Struct.generate_accessors self
3139
+ end
3140
+
3141
+ class Alter_index_args
3142
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3143
+ DBNAME = 1
3144
+ BASE_TBL_NAME = 2
3145
+ IDX_NAME = 3
3146
+ NEW_IDX = 4
3147
+
3148
+ FIELDS = {
3149
+ DBNAME => {:type => ::Thrift::Types::STRING, :name => 'dbname'},
3150
+ BASE_TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'base_tbl_name'},
3151
+ IDX_NAME => {:type => ::Thrift::Types::STRING, :name => 'idx_name'},
3152
+ NEW_IDX => {:type => ::Thrift::Types::STRUCT, :name => 'new_idx', :class => ::Index}
3153
+ }
3154
+
3155
+ def struct_fields; FIELDS; end
3156
+
3157
+ def validate
3158
+ end
3159
+
3160
+ ::Thrift::Struct.generate_accessors self
3161
+ end
3162
+
3163
+ class Alter_index_result
3164
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3165
+ O1 = 1
3166
+ O2 = 2
3167
+
3168
+ FIELDS = {
3169
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::InvalidOperationException},
3170
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2436
3171
  }
2437
3172
 
2438
3173
  def struct_fields; FIELDS; end
@@ -2473,8 +3208,8 @@ module ThriftHiveMetastore
2473
3208
 
2474
3209
  FIELDS = {
2475
3210
  SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
2476
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
2477
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
3211
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
3212
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2478
3213
  }
2479
3214
 
2480
3215
  def struct_fields; FIELDS; end
@@ -2512,9 +3247,9 @@ module ThriftHiveMetastore
2512
3247
  O2 = 2
2513
3248
 
2514
3249
  FIELDS = {
2515
- SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => Index},
2516
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => MetaException},
2517
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => NoSuchObjectException}
3250
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Index},
3251
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException},
3252
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException}
2518
3253
  }
2519
3254
 
2520
3255
  def struct_fields; FIELDS; end
@@ -2552,9 +3287,9 @@ module ThriftHiveMetastore
2552
3287
  O2 = 2
2553
3288
 
2554
3289
  FIELDS = {
2555
- SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => Index}},
2556
- O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => NoSuchObjectException},
2557
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
3290
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Index}},
3291
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException},
3292
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
2558
3293
  }
2559
3294
 
2560
3295
  def struct_fields; FIELDS; end
@@ -2592,7 +3327,521 @@ module ThriftHiveMetastore
2592
3327
 
2593
3328
  FIELDS = {
2594
3329
  SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
2595
- O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => MetaException}
3330
+ O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException}
3331
+ }
3332
+
3333
+ def struct_fields; FIELDS; end
3334
+
3335
+ def validate
3336
+ end
3337
+
3338
+ ::Thrift::Struct.generate_accessors self
3339
+ end
3340
+
3341
+ class Create_role_args
3342
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3343
+ ROLE = 1
3344
+
3345
+ FIELDS = {
3346
+ ROLE => {:type => ::Thrift::Types::STRUCT, :name => 'role', :class => ::Role}
3347
+ }
3348
+
3349
+ def struct_fields; FIELDS; end
3350
+
3351
+ def validate
3352
+ end
3353
+
3354
+ ::Thrift::Struct.generate_accessors self
3355
+ end
3356
+
3357
+ class Create_role_result
3358
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3359
+ SUCCESS = 0
3360
+ O1 = 1
3361
+
3362
+ FIELDS = {
3363
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3364
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3365
+ }
3366
+
3367
+ def struct_fields; FIELDS; end
3368
+
3369
+ def validate
3370
+ end
3371
+
3372
+ ::Thrift::Struct.generate_accessors self
3373
+ end
3374
+
3375
+ class Drop_role_args
3376
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3377
+ ROLE_NAME = 1
3378
+
3379
+ FIELDS = {
3380
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'}
3381
+ }
3382
+
3383
+ def struct_fields; FIELDS; end
3384
+
3385
+ def validate
3386
+ end
3387
+
3388
+ ::Thrift::Struct.generate_accessors self
3389
+ end
3390
+
3391
+ class Drop_role_result
3392
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3393
+ SUCCESS = 0
3394
+ O1 = 1
3395
+
3396
+ FIELDS = {
3397
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3398
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3399
+ }
3400
+
3401
+ def struct_fields; FIELDS; end
3402
+
3403
+ def validate
3404
+ end
3405
+
3406
+ ::Thrift::Struct.generate_accessors self
3407
+ end
3408
+
3409
+ class Get_role_names_args
3410
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3411
+
3412
+ FIELDS = {
3413
+
3414
+ }
3415
+
3416
+ def struct_fields; FIELDS; end
3417
+
3418
+ def validate
3419
+ end
3420
+
3421
+ ::Thrift::Struct.generate_accessors self
3422
+ end
3423
+
3424
+ class Get_role_names_result
3425
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3426
+ SUCCESS = 0
3427
+ O1 = 1
3428
+
3429
+ FIELDS = {
3430
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRING}},
3431
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3432
+ }
3433
+
3434
+ def struct_fields; FIELDS; end
3435
+
3436
+ def validate
3437
+ end
3438
+
3439
+ ::Thrift::Struct.generate_accessors self
3440
+ end
3441
+
3442
+ class Grant_role_args
3443
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3444
+ ROLE_NAME = 1
3445
+ PRINCIPAL_NAME = 2
3446
+ PRINCIPAL_TYPE = 3
3447
+ GRANTOR = 4
3448
+ GRANTORTYPE = 5
3449
+ GRANT_OPTION = 6
3450
+
3451
+ FIELDS = {
3452
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
3453
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
3454
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType},
3455
+ GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor'},
3456
+ GRANTORTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorType', :enum_class => ::PrincipalType},
3457
+ GRANT_OPTION => {:type => ::Thrift::Types::BOOL, :name => 'grant_option'}
3458
+ }
3459
+
3460
+ def struct_fields; FIELDS; end
3461
+
3462
+ def validate
3463
+ unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
3464
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
3465
+ end
3466
+ unless @grantorType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorType)
3467
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorType!')
3468
+ end
3469
+ end
3470
+
3471
+ ::Thrift::Struct.generate_accessors self
3472
+ end
3473
+
3474
+ class Grant_role_result
3475
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3476
+ SUCCESS = 0
3477
+ O1 = 1
3478
+
3479
+ FIELDS = {
3480
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3481
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3482
+ }
3483
+
3484
+ def struct_fields; FIELDS; end
3485
+
3486
+ def validate
3487
+ end
3488
+
3489
+ ::Thrift::Struct.generate_accessors self
3490
+ end
3491
+
3492
+ class Revoke_role_args
3493
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3494
+ ROLE_NAME = 1
3495
+ PRINCIPAL_NAME = 2
3496
+ PRINCIPAL_TYPE = 3
3497
+
3498
+ FIELDS = {
3499
+ ROLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'role_name'},
3500
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
3501
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType}
3502
+ }
3503
+
3504
+ def struct_fields; FIELDS; end
3505
+
3506
+ def validate
3507
+ unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
3508
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
3509
+ end
3510
+ end
3511
+
3512
+ ::Thrift::Struct.generate_accessors self
3513
+ end
3514
+
3515
+ class Revoke_role_result
3516
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3517
+ SUCCESS = 0
3518
+ O1 = 1
3519
+
3520
+ FIELDS = {
3521
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3522
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3523
+ }
3524
+
3525
+ def struct_fields; FIELDS; end
3526
+
3527
+ def validate
3528
+ end
3529
+
3530
+ ::Thrift::Struct.generate_accessors self
3531
+ end
3532
+
3533
+ class List_roles_args
3534
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3535
+ PRINCIPAL_NAME = 1
3536
+ PRINCIPAL_TYPE = 2
3537
+
3538
+ FIELDS = {
3539
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
3540
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType}
3541
+ }
3542
+
3543
+ def struct_fields; FIELDS; end
3544
+
3545
+ def validate
3546
+ unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
3547
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
3548
+ end
3549
+ end
3550
+
3551
+ ::Thrift::Struct.generate_accessors self
3552
+ end
3553
+
3554
+ class List_roles_result
3555
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3556
+ SUCCESS = 0
3557
+ O1 = 1
3558
+
3559
+ FIELDS = {
3560
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Role}},
3561
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3562
+ }
3563
+
3564
+ def struct_fields; FIELDS; end
3565
+
3566
+ def validate
3567
+ end
3568
+
3569
+ ::Thrift::Struct.generate_accessors self
3570
+ end
3571
+
3572
+ class Get_privilege_set_args
3573
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3574
+ HIVEOBJECT = 1
3575
+ USER_NAME = 2
3576
+ GROUP_NAMES = 3
3577
+
3578
+ FIELDS = {
3579
+ HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef},
3580
+ USER_NAME => {:type => ::Thrift::Types::STRING, :name => 'user_name'},
3581
+ GROUP_NAMES => {:type => ::Thrift::Types::LIST, :name => 'group_names', :element => {:type => ::Thrift::Types::STRING}}
3582
+ }
3583
+
3584
+ def struct_fields; FIELDS; end
3585
+
3586
+ def validate
3587
+ end
3588
+
3589
+ ::Thrift::Struct.generate_accessors self
3590
+ end
3591
+
3592
+ class Get_privilege_set_result
3593
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3594
+ SUCCESS = 0
3595
+ O1 = 1
3596
+
3597
+ FIELDS = {
3598
+ SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::PrincipalPrivilegeSet},
3599
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3600
+ }
3601
+
3602
+ def struct_fields; FIELDS; end
3603
+
3604
+ def validate
3605
+ end
3606
+
3607
+ ::Thrift::Struct.generate_accessors self
3608
+ end
3609
+
3610
+ class List_privileges_args
3611
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3612
+ PRINCIPAL_NAME = 1
3613
+ PRINCIPAL_TYPE = 2
3614
+ HIVEOBJECT = 3
3615
+
3616
+ FIELDS = {
3617
+ PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'},
3618
+ PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType},
3619
+ HIVEOBJECT => {:type => ::Thrift::Types::STRUCT, :name => 'hiveObject', :class => ::HiveObjectRef}
3620
+ }
3621
+
3622
+ def struct_fields; FIELDS; end
3623
+
3624
+ def validate
3625
+ unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type)
3626
+ raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!')
3627
+ end
3628
+ end
3629
+
3630
+ ::Thrift::Struct.generate_accessors self
3631
+ end
3632
+
3633
+ class List_privileges_result
3634
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3635
+ SUCCESS = 0
3636
+ O1 = 1
3637
+
3638
+ FIELDS = {
3639
+ SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::HiveObjectPrivilege}},
3640
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3641
+ }
3642
+
3643
+ def struct_fields; FIELDS; end
3644
+
3645
+ def validate
3646
+ end
3647
+
3648
+ ::Thrift::Struct.generate_accessors self
3649
+ end
3650
+
3651
+ class Grant_privileges_args
3652
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3653
+ PRIVILEGES = 1
3654
+
3655
+ FIELDS = {
3656
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrivilegeBag}
3657
+ }
3658
+
3659
+ def struct_fields; FIELDS; end
3660
+
3661
+ def validate
3662
+ end
3663
+
3664
+ ::Thrift::Struct.generate_accessors self
3665
+ end
3666
+
3667
+ class Grant_privileges_result
3668
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3669
+ SUCCESS = 0
3670
+ O1 = 1
3671
+
3672
+ FIELDS = {
3673
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3674
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3675
+ }
3676
+
3677
+ def struct_fields; FIELDS; end
3678
+
3679
+ def validate
3680
+ end
3681
+
3682
+ ::Thrift::Struct.generate_accessors self
3683
+ end
3684
+
3685
+ class Revoke_privileges_args
3686
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3687
+ PRIVILEGES = 1
3688
+
3689
+ FIELDS = {
3690
+ PRIVILEGES => {:type => ::Thrift::Types::STRUCT, :name => 'privileges', :class => ::PrivilegeBag}
3691
+ }
3692
+
3693
+ def struct_fields; FIELDS; end
3694
+
3695
+ def validate
3696
+ end
3697
+
3698
+ ::Thrift::Struct.generate_accessors self
3699
+ end
3700
+
3701
+ class Revoke_privileges_result
3702
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3703
+ SUCCESS = 0
3704
+ O1 = 1
3705
+
3706
+ FIELDS = {
3707
+ SUCCESS => {:type => ::Thrift::Types::BOOL, :name => 'success'},
3708
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3709
+ }
3710
+
3711
+ def struct_fields; FIELDS; end
3712
+
3713
+ def validate
3714
+ end
3715
+
3716
+ ::Thrift::Struct.generate_accessors self
3717
+ end
3718
+
3719
+ class Get_delegation_token_args
3720
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3721
+ RENEWER_KERBEROS_PRINCIPAL_NAME = 1
3722
+
3723
+ FIELDS = {
3724
+ RENEWER_KERBEROS_PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'renewer_kerberos_principal_name'}
3725
+ }
3726
+
3727
+ def struct_fields; FIELDS; end
3728
+
3729
+ def validate
3730
+ end
3731
+
3732
+ ::Thrift::Struct.generate_accessors self
3733
+ end
3734
+
3735
+ class Get_delegation_token_result
3736
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3737
+ SUCCESS = 0
3738
+ O1 = 1
3739
+
3740
+ FIELDS = {
3741
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3742
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3743
+ }
3744
+
3745
+ def struct_fields; FIELDS; end
3746
+
3747
+ def validate
3748
+ end
3749
+
3750
+ ::Thrift::Struct.generate_accessors self
3751
+ end
3752
+
3753
+ class Get_delegation_token_with_signature_args
3754
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3755
+ RENEWER_KERBEROS_PRINCIPAL_NAME = 1
3756
+ TOKEN_SIGNATURE = 2
3757
+
3758
+ FIELDS = {
3759
+ RENEWER_KERBEROS_PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'renewer_kerberos_principal_name'},
3760
+ TOKEN_SIGNATURE => {:type => ::Thrift::Types::STRING, :name => 'token_signature'}
3761
+ }
3762
+
3763
+ def struct_fields; FIELDS; end
3764
+
3765
+ def validate
3766
+ end
3767
+
3768
+ ::Thrift::Struct.generate_accessors self
3769
+ end
3770
+
3771
+ class Get_delegation_token_with_signature_result
3772
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3773
+ SUCCESS = 0
3774
+ O1 = 1
3775
+
3776
+ FIELDS = {
3777
+ SUCCESS => {:type => ::Thrift::Types::STRING, :name => 'success'},
3778
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3779
+ }
3780
+
3781
+ def struct_fields; FIELDS; end
3782
+
3783
+ def validate
3784
+ end
3785
+
3786
+ ::Thrift::Struct.generate_accessors self
3787
+ end
3788
+
3789
+ class Renew_delegation_token_args
3790
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3791
+ TOKEN_STR_FORM = 1
3792
+
3793
+ FIELDS = {
3794
+ TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
3795
+ }
3796
+
3797
+ def struct_fields; FIELDS; end
3798
+
3799
+ def validate
3800
+ end
3801
+
3802
+ ::Thrift::Struct.generate_accessors self
3803
+ end
3804
+
3805
+ class Renew_delegation_token_result
3806
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3807
+ SUCCESS = 0
3808
+ O1 = 1
3809
+
3810
+ FIELDS = {
3811
+ SUCCESS => {:type => ::Thrift::Types::I64, :name => 'success'},
3812
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
3813
+ }
3814
+
3815
+ def struct_fields; FIELDS; end
3816
+
3817
+ def validate
3818
+ end
3819
+
3820
+ ::Thrift::Struct.generate_accessors self
3821
+ end
3822
+
3823
+ class Cancel_delegation_token_args
3824
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3825
+ TOKEN_STR_FORM = 1
3826
+
3827
+ FIELDS = {
3828
+ TOKEN_STR_FORM => {:type => ::Thrift::Types::STRING, :name => 'token_str_form'}
3829
+ }
3830
+
3831
+ def struct_fields; FIELDS; end
3832
+
3833
+ def validate
3834
+ end
3835
+
3836
+ ::Thrift::Struct.generate_accessors self
3837
+ end
3838
+
3839
+ class Cancel_delegation_token_result
3840
+ include ::Thrift::Struct, ::Thrift::Struct_Union
3841
+ O1 = 1
3842
+
3843
+ FIELDS = {
3844
+ O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}
2596
3845
  }
2597
3846
 
2598
3847
  def struct_fields; FIELDS; end