Index: common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
===================================================================
--- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (revision 1054697)
+++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (working copy)
@@ -257,7 +257,7 @@
HIVESKEWJOINKEY("hive.skewjoin.key", 1000000),
HIVESKEWJOINMAPJOINNUMMAPTASK("hive.skewjoin.mapjoin.map.tasks", 10000),
HIVESKEWJOINMAPJOINMINSPLIT("hive.skewjoin.mapjoin.min.split", 33554432L), //32M
- MAPREDMINSPLITSIZE("mapred.min.split.size", 1),
+ MAPREDMINSPLITSIZE("mapred.min.split.size", 1L),
HIVEMERGEMAPONLY("hive.mergejob.maponly", true),
HIVESENDHEARTBEAT("hive.heartbeat.interval", 1000),
@@ -328,6 +328,13 @@
SEMANTIC_ANALYZER_HOOK("hive.semantic.analyzer.hook",null),
+ HIVE_AUTHORIZATION_ENABLED("hive.security.authorization.enabled", false),
+ HIVE_AUTHORIZATION_MANAGER("hive.security.authorization.manager", null),
+ HIVE_AUTHENTICATOR_MANAGER("hive.security.authenticator.manager", null),
+
+ HIVE_AUTHORIZATION_TABLE_USER_GRANTS("hive.security.authorization.createtable.user.grants", null),
+ HIVE_AUTHORIZATION_TABLE_GROUP_GRANTS("hive.security.authorization.createtable.group.grants", null),
+ HIVE_AUTHORIZATION_TABLE_ROLE_GRANTS("hive.security.authorization.createtable.role.grants", null),
// Print column names in output
HIVE_CLI_PRINT_HEADER("hive.cli.print.header", false),
Index: conf/hive-default.xml
===================================================================
--- conf/hive-default.xml (revision 1054697)
+++ conf/hive-default.xml (working copy)
@@ -841,6 +841,52 @@
This enables substitution using syntax like ${var} ${system:var} and ${env:var}.
+
+
+ hive.security.authorization.enabled
+ false
+ enable or disable the hive client authorization
+
+
+
+ hive.security.authorization.manager
+ org.apache.hadoop.hive.ql.security.authorization.DefaultHiveAuthorizationProvider
+ the hive client authorization manager class name.
+ The user defined authorization class should implement interface org.apache.hadoop.hive.ql.security.authorization.HiveAuthorizationProvider.
+
+
+
+
+ hive.security.authenticator.manager
+ org.apache.hadoop.hive.ql.security.HadoopDefaultAuthenticator
+ hive client authenticator manager class name.
+ The user defined authenticator should implement interface org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider.
+
+
+
+ hive.security.authorization.createtable.user.grants
+
+ the privileges automatically granted to some users whenever a table gets created.
+ An example like "userX,userY:select;userZ:create" will grant select privilege to userX and userY,
+ and grant create privilege to userZ whenever a new table created.
+
+
+
+ hive.security.authorization.createtable.group.grants
+
+ the privileges automatically granted to some groups whenever a table gets created.
+ An example like "groupX,groupY:select;groupZ:create" will grant select privilege to groupX and groupY,
+ and grant create privilege to groupZ whenever a new table created.
+
+
+
+ hive.security.authorization.createtable.role.grants
+
+ the privileges automatically granted to some roles whenever a table gets created.
+ An example like "roleX,roleY:select;roleZ:create" will grant select privilege to roleX and roleY,
+ and grant create privilege to roleZ whenever a new table created.
+
+
hive.error.on.empty.partition
false
Index: metastore/if/hive_metastore.thrift
===================================================================
--- metastore/if/hive_metastore.thrift (revision 1054697)
+++ metastore/if/hive_metastore.thrift (working copy)
@@ -29,12 +29,66 @@
4: optional list fields // if the name is one of the user defined types
}
+enum HiveObjectType {
+ GLOBAL = 1,
+ DATABASE = 2,
+ TABLE = 3,
+ PARTITION = 4,
+ COLUMN = 5,
+}
+
+enum PrincipalType {
+ USER = 1,
+ ROLE = 2,
+ GROUP = 3,
+}
+
+struct HiveObjectRef{
+ 1: HiveObjectType objectType,
+ 2: string dbName,
+ 3: string objectName,
+ 4: list partValues,
+ 5: string columnName,
+}
+
+struct PrivilegeGrantInfo {
+ 1: string privilege,
+ 2: i32 createTime,
+ 3: string grantor,
+ 4: PrincipalType grantorType,
+ 5: bool grantOption,
+}
+
+struct HiveObjectPrivilege {
+ 1: HiveObjectRef hiveObject,
+ 2: string principalName,
+ 3: PrincipalType principalType,
+ 4: PrivilegeGrantInfo grantInfo,
+}
+
+struct PrivilegeBag {
+ 1: list privileges,
+}
+
+struct PrincipalPrivilegeSet {
+ 1: map> userPrivileges, // user name -> privilege grant info
+ 2: map> groupPrivileges, // group name -> privilege grant info
+ 3: map> rolePrivileges, //role name -> privilege grant info
+}
+
+struct Role {
+ 1: string roleName,
+ 2: i32 createTime,
+ 3: string ownerName,
+}
+
// namespace for tables
struct Database {
1: string name,
2: string description,
3: string locationUri,
- 4: map parameters // properties associated with the database
+ 4: map parameters, // properties associated with the database
+ 5: optional PrincipalPrivilegeSet privileges
}
// This object holds the information needed by SerDes
@@ -77,7 +131,8 @@
9: map parameters, // to store comments or any other user level parameters
10: string viewOriginalText, // original view text, null for non-view
11: string viewExpandedText, // expanded view text, null for non-view
- 12: string tableType // table type enum, e.g. EXTERNAL_TABLE
+ 12: string tableType, // table type enum, e.g. EXTERNAL_TABLE
+ 13: optional PrincipalPrivilegeSet privileges,
}
struct Partition {
@@ -87,7 +142,8 @@
4: i32 createTime,
5: i32 lastAccessTime,
6: StorageDescriptor sd,
- 7: map parameters
+ 7: map parameters,
+ 8: optional PrincipalPrivilegeSet privileges
}
struct Index {
@@ -110,7 +166,6 @@
2: map properties
}
-
exception MetaException {
1: string message
}
@@ -209,6 +264,10 @@
throws(1:NoSuchObjectException o1, 2:MetaException o2)
Partition get_partition(1:string db_name, 2:string tbl_name, 3:list part_vals)
throws(1:MetaException o1, 2:NoSuchObjectException o2)
+
+ Partition get_partition_with_auth(1:string db_name, 2:string tbl_name, 3:list part_vals,
+ 4: string user_name, 5: list group_names) throws(1:MetaException o1, 2:NoSuchObjectException o2)
+
Partition get_partition_by_name(1:string db_name 2:string tbl_name, 3:string part_name)
throws(1:MetaException o1, 2:NoSuchObjectException o2)
@@ -216,6 +275,9 @@
// If max parts is given then it will return only that many.
list get_partitions(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)
throws(1:NoSuchObjectException o1, 2:MetaException o2)
+ list get_partitions_with_auth(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1,
+ 4: string user_name, 5: list group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)
+
list get_partition_names(1:string db_name, 2:string tbl_name, 3:i16 max_parts=-1)
throws(1:MetaException o2)
@@ -228,6 +290,9 @@
list get_partitions_ps(1:string db_name 2:string tbl_name
3:list part_vals, 4:i16 max_parts=-1)
throws(1:MetaException o1)
+ list get_partitions_ps_with_auth(1:string db_name, 2:string tbl_name, 3:list part_vals, 4:i16 max_parts=-1,
+ 5: string user_name, 6: list group_names) throws(1:NoSuchObjectException o1, 2:MetaException o2)
+
list get_partition_names_ps(1:string db_name,
2:string tbl_name, 3:list part_vals, 4:i16 max_parts=-1)
throws(1:MetaException o1)
@@ -272,6 +337,24 @@
throws(1:NoSuchObjectException o1, 2:MetaException o2)
list get_index_names(1:string db_name, 2:string tbl_name, 3:i16 max_indexes=-1)
throws(1:MetaException o2)
+
+ //authorization privileges
+
+ bool create_role(1:Role role) throws(1:MetaException o1)
+ bool drop_role(1:string role_name) throws(1:MetaException o1)
+ bool grant_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type,
+ 4:string grantor, 5:PrincipalType grantorType, 6:bool grant_option) throws(1:MetaException o1)
+ bool revoke_role(1:string role_name, 2:string principal_name, 3:PrincipalType principal_type)
+ throws(1:MetaException o1)
+ list list_roles(1:string principal_name, 2:PrincipalType principal_type) throws(1:MetaException o1)
+
+ PrincipalPrivilegeSet get_privilege_set(1:HiveObjectRef hiveObject, 2:string user_name,
+ 3: list group_names) throws(1:MetaException o1)
+ list list_privileges(1:string principal_name, 2:PrincipalType principal_type,
+ 3: HiveObjectRef hiveObject) throws(1:MetaException o1)
+
+ bool grant_privileges(1:PrivilegeBag privileges) throws(1:MetaException o1)
+ bool revoke_privileges(1:PrivilegeBag privileges) throws(1:MetaException o1)
}
// * Note about the DDL_TIME: When creating or altering a table or a partition,
Index: metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp
===================================================================
--- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp (revision 1054697)
+++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp (working copy)
@@ -701,14 +701,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size98;
- ::apache::thrift::protocol::TType _etype101;
- iprot->readListBegin(_etype101, _size98);
- this->success.resize(_size98);
- uint32_t _i102;
- for (_i102 = 0; _i102 < _size98; ++_i102)
+ uint32_t _size155;
+ ::apache::thrift::protocol::TType _etype158;
+ iprot->readListBegin(_etype158, _size155);
+ this->success.resize(_size155);
+ uint32_t _i159;
+ for (_i159 = 0; _i159 < _size155; ++_i159)
{
- xfer += iprot->readString(this->success[_i102]);
+ xfer += iprot->readString(this->success[_i159]);
}
iprot->readListEnd();
}
@@ -747,10 +747,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter103;
- for (_iter103 = this->success.begin(); _iter103 != this->success.end(); ++_iter103)
+ std::vector ::const_iterator _iter160;
+ for (_iter160 = this->success.begin(); _iter160 != this->success.end(); ++_iter160)
{
- xfer += oprot->writeString((*_iter103));
+ xfer += oprot->writeString((*_iter160));
}
xfer += oprot->writeListEnd();
}
@@ -789,14 +789,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size104;
- ::apache::thrift::protocol::TType _etype107;
- iprot->readListBegin(_etype107, _size104);
- (*(this->success)).resize(_size104);
- uint32_t _i108;
- for (_i108 = 0; _i108 < _size104; ++_i108)
+ uint32_t _size161;
+ ::apache::thrift::protocol::TType _etype164;
+ iprot->readListBegin(_etype164, _size161);
+ (*(this->success)).resize(_size161);
+ uint32_t _i165;
+ for (_i165 = 0; _i165 < _size161; ++_i165)
{
- xfer += iprot->readString((*(this->success))[_i108]);
+ xfer += iprot->readString((*(this->success))[_i165]);
}
iprot->readListEnd();
}
@@ -897,14 +897,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size109;
- ::apache::thrift::protocol::TType _etype112;
- iprot->readListBegin(_etype112, _size109);
- this->success.resize(_size109);
- uint32_t _i113;
- for (_i113 = 0; _i113 < _size109; ++_i113)
+ uint32_t _size166;
+ ::apache::thrift::protocol::TType _etype169;
+ iprot->readListBegin(_etype169, _size166);
+ this->success.resize(_size166);
+ uint32_t _i170;
+ for (_i170 = 0; _i170 < _size166; ++_i170)
{
- xfer += iprot->readString(this->success[_i113]);
+ xfer += iprot->readString(this->success[_i170]);
}
iprot->readListEnd();
}
@@ -943,10 +943,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter114;
- for (_iter114 = this->success.begin(); _iter114 != this->success.end(); ++_iter114)
+ std::vector ::const_iterator _iter171;
+ for (_iter171 = this->success.begin(); _iter171 != this->success.end(); ++_iter171)
{
- xfer += oprot->writeString((*_iter114));
+ xfer += oprot->writeString((*_iter171));
}
xfer += oprot->writeListEnd();
}
@@ -985,14 +985,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size115;
- ::apache::thrift::protocol::TType _etype118;
- iprot->readListBegin(_etype118, _size115);
- (*(this->success)).resize(_size115);
- uint32_t _i119;
- for (_i119 = 0; _i119 < _size115; ++_i119)
+ uint32_t _size172;
+ ::apache::thrift::protocol::TType _etype175;
+ iprot->readListBegin(_etype175, _size172);
+ (*(this->success)).resize(_size172);
+ uint32_t _i176;
+ for (_i176 = 0; _i176 < _size172; ++_i176)
{
- xfer += iprot->readString((*(this->success))[_i119]);
+ xfer += iprot->readString((*(this->success))[_i176]);
}
iprot->readListEnd();
}
@@ -1721,17 +1721,17 @@
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
this->success.clear();
- uint32_t _size120;
- ::apache::thrift::protocol::TType _ktype121;
- ::apache::thrift::protocol::TType _vtype122;
- iprot->readMapBegin(_ktype121, _vtype122, _size120);
- uint32_t _i124;
- for (_i124 = 0; _i124 < _size120; ++_i124)
+ uint32_t _size177;
+ ::apache::thrift::protocol::TType _ktype178;
+ ::apache::thrift::protocol::TType _vtype179;
+ iprot->readMapBegin(_ktype178, _vtype179, _size177);
+ uint32_t _i181;
+ for (_i181 = 0; _i181 < _size177; ++_i181)
{
- std::string _key125;
- xfer += iprot->readString(_key125);
- Type& _val126 = this->success[_key125];
- xfer += _val126.read(iprot);
+ std::string _key182;
+ xfer += iprot->readString(_key182);
+ Type& _val183 = this->success[_key182];
+ xfer += _val183.read(iprot);
}
iprot->readMapEnd();
}
@@ -1770,11 +1770,11 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
{
xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::map ::const_iterator _iter127;
- for (_iter127 = this->success.begin(); _iter127 != this->success.end(); ++_iter127)
+ std::map ::const_iterator _iter184;
+ for (_iter184 = this->success.begin(); _iter184 != this->success.end(); ++_iter184)
{
- xfer += oprot->writeString(_iter127->first);
- xfer += _iter127->second.write(oprot);
+ xfer += oprot->writeString(_iter184->first);
+ xfer += _iter184->second.write(oprot);
}
xfer += oprot->writeMapEnd();
}
@@ -1813,17 +1813,17 @@
if (ftype == ::apache::thrift::protocol::T_MAP) {
{
(*(this->success)).clear();
- uint32_t _size128;
- ::apache::thrift::protocol::TType _ktype129;
- ::apache::thrift::protocol::TType _vtype130;
- iprot->readMapBegin(_ktype129, _vtype130, _size128);
- uint32_t _i132;
- for (_i132 = 0; _i132 < _size128; ++_i132)
+ uint32_t _size185;
+ ::apache::thrift::protocol::TType _ktype186;
+ ::apache::thrift::protocol::TType _vtype187;
+ iprot->readMapBegin(_ktype186, _vtype187, _size185);
+ uint32_t _i189;
+ for (_i189 = 0; _i189 < _size185; ++_i189)
{
- std::string _key133;
- xfer += iprot->readString(_key133);
- Type& _val134 = (*(this->success))[_key133];
- xfer += _val134.read(iprot);
+ std::string _key190;
+ xfer += iprot->readString(_key190);
+ Type& _val191 = (*(this->success))[_key190];
+ xfer += _val191.read(iprot);
}
iprot->readMapEnd();
}
@@ -1952,14 +1952,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size135;
- ::apache::thrift::protocol::TType _etype138;
- iprot->readListBegin(_etype138, _size135);
- this->success.resize(_size135);
- uint32_t _i139;
- for (_i139 = 0; _i139 < _size135; ++_i139)
+ uint32_t _size192;
+ ::apache::thrift::protocol::TType _etype195;
+ iprot->readListBegin(_etype195, _size192);
+ this->success.resize(_size192);
+ uint32_t _i196;
+ for (_i196 = 0; _i196 < _size192; ++_i196)
{
- xfer += this->success[_i139].read(iprot);
+ xfer += this->success[_i196].read(iprot);
}
iprot->readListEnd();
}
@@ -2014,10 +2014,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter140;
- for (_iter140 = this->success.begin(); _iter140 != this->success.end(); ++_iter140)
+ std::vector ::const_iterator _iter197;
+ for (_iter197 = this->success.begin(); _iter197 != this->success.end(); ++_iter197)
{
- xfer += (*_iter140).write(oprot);
+ xfer += (*_iter197).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -2064,14 +2064,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size141;
- ::apache::thrift::protocol::TType _etype144;
- iprot->readListBegin(_etype144, _size141);
- (*(this->success)).resize(_size141);
- uint32_t _i145;
- for (_i145 = 0; _i145 < _size141; ++_i145)
+ uint32_t _size198;
+ ::apache::thrift::protocol::TType _etype201;
+ iprot->readListBegin(_etype201, _size198);
+ (*(this->success)).resize(_size198);
+ uint32_t _i202;
+ for (_i202 = 0; _i202 < _size198; ++_i202)
{
- xfer += (*(this->success))[_i145].read(iprot);
+ xfer += (*(this->success))[_i202].read(iprot);
}
iprot->readListEnd();
}
@@ -2216,14 +2216,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size146;
- ::apache::thrift::protocol::TType _etype149;
- iprot->readListBegin(_etype149, _size146);
- this->success.resize(_size146);
- uint32_t _i150;
- for (_i150 = 0; _i150 < _size146; ++_i150)
+ uint32_t _size203;
+ ::apache::thrift::protocol::TType _etype206;
+ iprot->readListBegin(_etype206, _size203);
+ this->success.resize(_size203);
+ uint32_t _i207;
+ for (_i207 = 0; _i207 < _size203; ++_i207)
{
- xfer += this->success[_i150].read(iprot);
+ xfer += this->success[_i207].read(iprot);
}
iprot->readListEnd();
}
@@ -2278,10 +2278,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter151;
- for (_iter151 = this->success.begin(); _iter151 != this->success.end(); ++_iter151)
+ std::vector ::const_iterator _iter208;
+ for (_iter208 = this->success.begin(); _iter208 != this->success.end(); ++_iter208)
{
- xfer += (*_iter151).write(oprot);
+ xfer += (*_iter208).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -2328,14 +2328,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size152;
- ::apache::thrift::protocol::TType _etype155;
- iprot->readListBegin(_etype155, _size152);
- (*(this->success)).resize(_size152);
- uint32_t _i156;
- for (_i156 = 0; _i156 < _size152; ++_i156)
+ uint32_t _size209;
+ ::apache::thrift::protocol::TType _etype212;
+ iprot->readListBegin(_etype212, _size209);
+ (*(this->success)).resize(_size209);
+ uint32_t _i213;
+ for (_i213 = 0; _i213 < _size209; ++_i213)
{
- xfer += (*(this->success))[_i156].read(iprot);
+ xfer += (*(this->success))[_i213].read(iprot);
}
iprot->readListEnd();
}
@@ -2904,14 +2904,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size157;
- ::apache::thrift::protocol::TType _etype160;
- iprot->readListBegin(_etype160, _size157);
- this->success.resize(_size157);
- uint32_t _i161;
- for (_i161 = 0; _i161 < _size157; ++_i161)
+ uint32_t _size214;
+ ::apache::thrift::protocol::TType _etype217;
+ iprot->readListBegin(_etype217, _size214);
+ this->success.resize(_size214);
+ uint32_t _i218;
+ for (_i218 = 0; _i218 < _size214; ++_i218)
{
- xfer += iprot->readString(this->success[_i161]);
+ xfer += iprot->readString(this->success[_i218]);
}
iprot->readListEnd();
}
@@ -2950,10 +2950,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter162;
- for (_iter162 = this->success.begin(); _iter162 != this->success.end(); ++_iter162)
+ std::vector ::const_iterator _iter219;
+ for (_iter219 = this->success.begin(); _iter219 != this->success.end(); ++_iter219)
{
- xfer += oprot->writeString((*_iter162));
+ xfer += oprot->writeString((*_iter219));
}
xfer += oprot->writeListEnd();
}
@@ -2992,14 +2992,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size163;
- ::apache::thrift::protocol::TType _etype166;
- iprot->readListBegin(_etype166, _size163);
- (*(this->success)).resize(_size163);
- uint32_t _i167;
- for (_i167 = 0; _i167 < _size163; ++_i167)
+ uint32_t _size220;
+ ::apache::thrift::protocol::TType _etype223;
+ iprot->readListBegin(_etype223, _size220);
+ (*(this->success)).resize(_size220);
+ uint32_t _i224;
+ for (_i224 = 0; _i224 < _size220; ++_i224)
{
- xfer += iprot->readString((*(this->success))[_i167]);
+ xfer += iprot->readString((*(this->success))[_i224]);
}
iprot->readListEnd();
}
@@ -3114,14 +3114,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size168;
- ::apache::thrift::protocol::TType _etype171;
- iprot->readListBegin(_etype171, _size168);
- this->success.resize(_size168);
- uint32_t _i172;
- for (_i172 = 0; _i172 < _size168; ++_i172)
+ uint32_t _size225;
+ ::apache::thrift::protocol::TType _etype228;
+ iprot->readListBegin(_etype228, _size225);
+ this->success.resize(_size225);
+ uint32_t _i229;
+ for (_i229 = 0; _i229 < _size225; ++_i229)
{
- xfer += iprot->readString(this->success[_i172]);
+ xfer += iprot->readString(this->success[_i229]);
}
iprot->readListEnd();
}
@@ -3160,10 +3160,10 @@
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter173;
- for (_iter173 = this->success.begin(); _iter173 != this->success.end(); ++_iter173)
+ std::vector ::const_iterator _iter230;
+ for (_iter230 = this->success.begin(); _iter230 != this->success.end(); ++_iter230)
{
- xfer += oprot->writeString((*_iter173));
+ xfer += oprot->writeString((*_iter230));
}
xfer += oprot->writeListEnd();
}
@@ -3202,14 +3202,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size174;
- ::apache::thrift::protocol::TType _etype177;
- iprot->readListBegin(_etype177, _size174);
- (*(this->success)).resize(_size174);
- uint32_t _i178;
- for (_i178 = 0; _i178 < _size174; ++_i178)
+ uint32_t _size231;
+ ::apache::thrift::protocol::TType _etype234;
+ iprot->readListBegin(_etype234, _size231);
+ (*(this->success)).resize(_size231);
+ uint32_t _i235;
+ for (_i235 = 0; _i235 < _size231; ++_i235)
{
- xfer += iprot->readString((*(this->success))[_i178]);
+ xfer += iprot->readString((*(this->success))[_i235]);
}
iprot->readListEnd();
}
@@ -3914,14 +3914,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size179;
- ::apache::thrift::protocol::TType _etype182;
- iprot->readListBegin(_etype182, _size179);
- this->part_vals.resize(_size179);
- uint32_t _i183;
- for (_i183 = 0; _i183 < _size179; ++_i183)
+ uint32_t _size236;
+ ::apache::thrift::protocol::TType _etype239;
+ iprot->readListBegin(_etype239, _size236);
+ this->part_vals.resize(_size236);
+ uint32_t _i240;
+ for (_i240 = 0; _i240 < _size236; ++_i240)
{
- xfer += iprot->readString(this->part_vals[_i183]);
+ xfer += iprot->readString(this->part_vals[_i240]);
}
iprot->readListEnd();
}
@@ -3954,10 +3954,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter184;
- for (_iter184 = this->part_vals.begin(); _iter184 != this->part_vals.end(); ++_iter184)
+ std::vector ::const_iterator _iter241;
+ for (_iter241 = this->part_vals.begin(); _iter241 != this->part_vals.end(); ++_iter241)
{
- xfer += oprot->writeString((*_iter184));
+ xfer += oprot->writeString((*_iter241));
}
xfer += oprot->writeListEnd();
}
@@ -3979,10 +3979,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter185;
- for (_iter185 = (*(this->part_vals)).begin(); _iter185 != (*(this->part_vals)).end(); ++_iter185)
+ std::vector ::const_iterator _iter242;
+ for (_iter242 = (*(this->part_vals)).begin(); _iter242 != (*(this->part_vals)).end(); ++_iter242)
{
- xfer += oprot->writeString((*_iter185));
+ xfer += oprot->writeString((*_iter242));
}
xfer += oprot->writeListEnd();
}
@@ -4434,14 +4434,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size186;
- ::apache::thrift::protocol::TType _etype189;
- iprot->readListBegin(_etype189, _size186);
- this->part_vals.resize(_size186);
- uint32_t _i190;
- for (_i190 = 0; _i190 < _size186; ++_i190)
+ uint32_t _size243;
+ ::apache::thrift::protocol::TType _etype246;
+ iprot->readListBegin(_etype246, _size243);
+ this->part_vals.resize(_size243);
+ uint32_t _i247;
+ for (_i247 = 0; _i247 < _size243; ++_i247)
{
- xfer += iprot->readString(this->part_vals[_i190]);
+ xfer += iprot->readString(this->part_vals[_i247]);
}
iprot->readListEnd();
}
@@ -4482,10 +4482,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter191;
- for (_iter191 = this->part_vals.begin(); _iter191 != this->part_vals.end(); ++_iter191)
+ std::vector ::const_iterator _iter248;
+ for (_iter248 = this->part_vals.begin(); _iter248 != this->part_vals.end(); ++_iter248)
{
- xfer += oprot->writeString((*_iter191));
+ xfer += oprot->writeString((*_iter248));
}
xfer += oprot->writeListEnd();
}
@@ -4510,10 +4510,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter192;
- for (_iter192 = (*(this->part_vals)).begin(); _iter192 != (*(this->part_vals)).end(); ++_iter192)
+ std::vector ::const_iterator _iter249;
+ for (_iter249 = (*(this->part_vals)).begin(); _iter249 != (*(this->part_vals)).end(); ++_iter249)
{
- xfer += oprot->writeString((*_iter192));
+ xfer += oprot->writeString((*_iter249));
}
xfer += oprot->writeListEnd();
}
@@ -4942,14 +4942,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->part_vals.clear();
- uint32_t _size193;
- ::apache::thrift::protocol::TType _etype196;
- iprot->readListBegin(_etype196, _size193);
- this->part_vals.resize(_size193);
- uint32_t _i197;
- for (_i197 = 0; _i197 < _size193; ++_i197)
+ uint32_t _size250;
+ ::apache::thrift::protocol::TType _etype253;
+ iprot->readListBegin(_etype253, _size250);
+ this->part_vals.resize(_size250);
+ uint32_t _i254;
+ for (_i254 = 0; _i254 < _size250; ++_i254)
{
- xfer += iprot->readString(this->part_vals[_i197]);
+ xfer += iprot->readString(this->part_vals[_i254]);
}
iprot->readListEnd();
}
@@ -4982,10 +4982,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter198;
- for (_iter198 = this->part_vals.begin(); _iter198 != this->part_vals.end(); ++_iter198)
+ std::vector ::const_iterator _iter255;
+ for (_iter255 = this->part_vals.begin(); _iter255 != this->part_vals.end(); ++_iter255)
{
- xfer += oprot->writeString((*_iter198));
+ xfer += oprot->writeString((*_iter255));
}
xfer += oprot->writeListEnd();
}
@@ -5007,10 +5007,10 @@
xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter199;
- for (_iter199 = (*(this->part_vals)).begin(); _iter199 != (*(this->part_vals)).end(); ++_iter199)
+ std::vector ::const_iterator _iter256;
+ for (_iter256 = (*(this->part_vals)).begin(); _iter256 != (*(this->part_vals)).end(); ++_iter256)
{
- xfer += oprot->writeString((*_iter199));
+ xfer += oprot->writeString((*_iter256));
}
xfer += oprot->writeListEnd();
}
@@ -5156,7 +5156,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5193,9 +5193,49 @@
}
break;
case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->part_vals.clear();
+ uint32_t _size257;
+ ::apache::thrift::protocol::TType _etype260;
+ iprot->readListBegin(_etype260, _size257);
+ this->part_vals.resize(_size257);
+ uint32_t _i261;
+ for (_i261 = 0; _i261 < _size257; ++_i261)
+ {
+ xfer += iprot->readString(this->part_vals[_i261]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.part_vals = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->group_names.clear();
+ uint32_t _size262;
+ ::apache::thrift::protocol::TType _etype265;
+ iprot->readListBegin(_etype265, _size262);
+ this->group_names.resize(_size262);
+ uint32_t _i266;
+ for (_i266 = 0; _i266 < _size262; ++_i266)
+ {
+ xfer += iprot->readString(this->group_names[_i266]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.group_names = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -5212,41 +5252,85 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->part_name);
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
+ std::vector ::const_iterator _iter267;
+ for (_iter267 = this->part_vals.begin(); _iter267 != this->part_vals.end(); ++_iter267)
+ {
+ xfer += oprot->writeString((*_iter267));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size());
+ std::vector ::const_iterator _iter268;
+ for (_iter268 = this->group_names.begin(); _iter268 != this->group_names.end(); ++_iter268)
+ {
+ xfer += oprot->writeString((*_iter268));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->part_name)));
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
+ std::vector ::const_iterator _iter269;
+ for (_iter269 = (*(this->part_vals)).begin(); _iter269 != (*(this->part_vals)).end(); ++_iter269)
+ {
+ xfer += oprot->writeString((*_iter269));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size());
+ std::vector ::const_iterator _iter270;
+ for (_iter270 = (*(this->group_names)).begin(); _iter270 != (*(this->group_names)).end(); ++_iter270)
+ {
+ xfer += oprot->writeString((*_iter270));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5302,11 +5386,11 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_with_auth_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
@@ -5326,7 +5410,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5382,7 +5466,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5419,9 +5503,9 @@
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->part_name);
+ this->__isset.part_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -5438,41 +5522,41 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_parts);
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->part_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_parts)));
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->part_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5493,20 +5577,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size200;
- ::apache::thrift::protocol::TType _etype203;
- iprot->readListBegin(_etype203, _size200);
- this->success.resize(_size200);
- uint32_t _i204;
- for (_i204 = 0; _i204 < _size200; ++_i204)
- {
- xfer += this->success[_i204].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -5540,23 +5612,15 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_by_name_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter205;
- for (_iter205 = this->success.begin(); _iter205 != this->success.end(); ++_iter205)
- {
- xfer += (*_iter205).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -5572,7 +5636,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5593,20 +5657,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size206;
- ::apache::thrift::protocol::TType _etype209;
- iprot->readListBegin(_etype209, _size206);
- (*(this->success)).resize(_size206);
- uint32_t _i210;
- for (_i210 = 0; _i210 < _size206; ++_i210)
- {
- xfer += (*(this->success))[_i210].read(iprot);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -5640,7 +5692,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5696,9 +5748,9 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
@@ -5713,9 +5765,9 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
@@ -5730,7 +5782,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5754,14 +5806,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size211;
- ::apache::thrift::protocol::TType _etype214;
- iprot->readListBegin(_etype214, _size211);
- this->success.resize(_size211);
- uint32_t _i215;
- for (_i215 = 0; _i215 < _size211; ++_i215)
+ uint32_t _size271;
+ ::apache::thrift::protocol::TType _etype274;
+ iprot->readListBegin(_etype274, _size271);
+ this->success.resize(_size271);
+ uint32_t _i275;
+ for (_i275 = 0; _i275 < _size271; ++_i275)
{
- xfer += iprot->readString(this->success[_i215]);
+ xfer += this->success[_i275].read(iprot);
}
iprot->readListEnd();
}
@@ -5772,6 +5824,14 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o2.read(iprot);
this->__isset.o2 = true;
} else {
@@ -5790,26 +5850,30 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter216;
- for (_iter216 = this->success.begin(); _iter216 != this->success.end(); ++_iter216)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter276;
+ for (_iter276 = this->success.begin(); _iter276 != this->success.end(); ++_iter276)
{
- xfer += oprot->writeString((*_iter216));
+ xfer += (*_iter276).write(oprot);
}
xfer += oprot->writeListEnd();
}
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
} else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
xfer += this->o2.write(oprot);
xfer += oprot->writeFieldEnd();
}
@@ -5818,7 +5882,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5842,14 +5906,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size217;
- ::apache::thrift::protocol::TType _etype220;
- iprot->readListBegin(_etype220, _size217);
- (*(this->success)).resize(_size217);
- uint32_t _i221;
- for (_i221 = 0; _i221 < _size217; ++_i221)
+ uint32_t _size277;
+ ::apache::thrift::protocol::TType _etype280;
+ iprot->readListBegin(_etype280, _size277);
+ (*(this->success)).resize(_size277);
+ uint32_t _i281;
+ for (_i281 = 0; _i281 < _size277; ++_i281)
{
- xfer += iprot->readString((*(this->success))[_i221]);
+ xfer += (*(this->success))[_i281].read(iprot);
}
iprot->readListEnd();
}
@@ -5860,6 +5924,14 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o2.read(iprot);
this->__isset.o2 = true;
} else {
@@ -5878,7 +5950,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -5915,29 +5987,37 @@
}
break;
case 3:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_parts);
+ this->__isset.max_parts = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
- this->part_vals.clear();
- uint32_t _size222;
- ::apache::thrift::protocol::TType _etype225;
- iprot->readListBegin(_etype225, _size222);
- this->part_vals.resize(_size222);
- uint32_t _i226;
- for (_i226 = 0; _i226 < _size222; ++_i226)
+ this->group_names.clear();
+ uint32_t _size282;
+ ::apache::thrift::protocol::TType _etype285;
+ iprot->readListBegin(_etype285, _size282);
+ this->group_names.resize(_size282);
+ uint32_t _i286;
+ for (_i286 = 0; _i286 < _size282; ++_i286)
{
- xfer += iprot->readString(this->part_vals[_i226]);
+ xfer += iprot->readString(this->group_names[_i286]);
}
iprot->readListEnd();
}
- this->__isset.part_vals = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
+ this->__isset.group_names = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -5954,63 +6034,69 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16(this->max_parts);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter227;
- for (_iter227 = this->part_vals.begin(); _iter227 != this->part_vals.end(); ++_iter227)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size());
+ std::vector ::const_iterator _iter287;
+ for (_iter287 = this->group_names.begin(); _iter287 != this->group_names.end(); ++_iter287)
{
- xfer += oprot->writeString((*_iter227));
+ xfer += oprot->writeString((*_iter287));
}
xfer += oprot->writeListEnd();
}
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16(this->max_parts);
- xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16((*(this->max_parts)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5);
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter228;
- for (_iter228 = (*(this->part_vals)).begin(); _iter228 != (*(this->part_vals)).end(); ++_iter228)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size());
+ std::vector ::const_iterator _iter288;
+ for (_iter288 = (*(this->group_names)).begin(); _iter288 != (*(this->group_names)).end(); ++_iter288)
{
- xfer += oprot->writeString((*_iter228));
+ xfer += oprot->writeString((*_iter288));
}
xfer += oprot->writeListEnd();
}
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
- xfer += oprot->writeI16((*(this->max_parts)));
- xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6034,14 +6120,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size229;
- ::apache::thrift::protocol::TType _etype232;
- iprot->readListBegin(_etype232, _size229);
- this->success.resize(_size229);
- uint32_t _i233;
- for (_i233 = 0; _i233 < _size229; ++_i233)
+ uint32_t _size289;
+ ::apache::thrift::protocol::TType _etype292;
+ iprot->readListBegin(_etype292, _size289);
+ this->success.resize(_size289);
+ uint32_t _i293;
+ for (_i293 = 0; _i293 < _size289; ++_i293)
{
- xfer += this->success[_i233].read(iprot);
+ xfer += this->success[_i293].read(iprot);
}
iprot->readListEnd();
}
@@ -6058,6 +6144,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -6070,20 +6164,20 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_with_auth_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter234;
- for (_iter234 = this->success.begin(); _iter234 != this->success.end(); ++_iter234)
+ std::vector ::const_iterator _iter294;
+ for (_iter294 = this->success.begin(); _iter294 != this->success.end(); ++_iter294)
{
- xfer += (*_iter234).write(oprot);
+ xfer += (*_iter294).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6092,13 +6186,17 @@
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6122,14 +6220,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size235;
- ::apache::thrift::protocol::TType _etype238;
- iprot->readListBegin(_etype238, _size235);
- (*(this->success)).resize(_size235);
- uint32_t _i239;
- for (_i239 = 0; _i239 < _size235; ++_i239)
+ uint32_t _size295;
+ ::apache::thrift::protocol::TType _etype298;
+ iprot->readListBegin(_etype298, _size295);
+ (*(this->success)).resize(_size295);
+ uint32_t _i299;
+ for (_i299 = 0; _i299 < _size295; ++_i299)
{
- xfer += (*(this->success))[_i239].read(iprot);
+ xfer += (*(this->success))[_i299].read(iprot);
}
iprot->readListEnd();
}
@@ -6146,6 +6244,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -6158,7 +6264,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6195,34 +6301,14 @@
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->part_vals.clear();
- uint32_t _size240;
- ::apache::thrift::protocol::TType _etype243;
- iprot->readListBegin(_etype243, _size240);
- this->part_vals.resize(_size240);
- uint32_t _i244;
- for (_i244 = 0; _i244 < _size240; ++_i244)
- {
- xfer += iprot->readString(this->part_vals[_i244]);
- }
- iprot->readListEnd();
- }
- this->__isset.part_vals = true;
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_parts);
+ this->__isset.max_parts = true;
} else {
xfer += iprot->skip(ftype);
}
break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_parts);
- this->__isset.max_parts = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- default:
+ default:
xfer += iprot->skip(ftype);
break;
}
@@ -6234,27 +6320,16 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
- std::vector ::const_iterator _iter245;
- for (_iter245 = this->part_vals.begin(); _iter245 != this->part_vals.end(); ++_iter245)
- {
- xfer += oprot->writeString((*_iter245));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
xfer += oprot->writeI16(this->max_parts);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
@@ -6262,27 +6337,16 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
- std::vector ::const_iterator _iter246;
- for (_iter246 = (*(this->part_vals)).begin(); _iter246 != (*(this->part_vals)).end(); ++_iter246)
- {
- xfer += oprot->writeString((*_iter246));
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 3);
xfer += oprot->writeI16((*(this->max_parts)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
@@ -6290,7 +6354,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6314,14 +6378,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size247;
- ::apache::thrift::protocol::TType _etype250;
- iprot->readListBegin(_etype250, _size247);
- this->success.resize(_size247);
- uint32_t _i251;
- for (_i251 = 0; _i251 < _size247; ++_i251)
+ uint32_t _size300;
+ ::apache::thrift::protocol::TType _etype303;
+ iprot->readListBegin(_etype303, _size300);
+ this->success.resize(_size300);
+ uint32_t _i304;
+ for (_i304 = 0; _i304 < _size300; ++_i304)
{
- xfer += iprot->readString(this->success[_i251]);
+ xfer += iprot->readString(this->success[_i304]);
}
iprot->readListEnd();
}
@@ -6332,8 +6396,8 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -6350,27 +6414,27 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter252;
- for (_iter252 = this->success.begin(); _iter252 != this->success.end(); ++_iter252)
+ std::vector ::const_iterator _iter305;
+ for (_iter305 = this->success.begin(); _iter305 != this->success.end(); ++_iter305)
{
- xfer += oprot->writeString((*_iter252));
+ xfer += oprot->writeString((*_iter305));
}
xfer += oprot->writeListEnd();
}
xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
- xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->o1.write(oprot);
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o2.write(oprot);
xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
@@ -6378,7 +6442,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6402,14 +6466,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size253;
- ::apache::thrift::protocol::TType _etype256;
- iprot->readListBegin(_etype256, _size253);
- (*(this->success)).resize(_size253);
- uint32_t _i257;
- for (_i257 = 0; _i257 < _size253; ++_i257)
+ uint32_t _size306;
+ ::apache::thrift::protocol::TType _etype309;
+ iprot->readListBegin(_etype309, _size306);
+ (*(this->success)).resize(_size306);
+ uint32_t _i310;
+ for (_i310 = 0; _i310 < _size306; ++_i310)
{
- xfer += iprot->readString((*(this->success))[_i257]);
+ xfer += iprot->readString((*(this->success))[_i310]);
}
iprot->readListEnd();
}
@@ -6420,8 +6484,8 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -6438,7 +6502,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6475,9 +6539,21 @@
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->filter);
- this->__isset.filter = true;
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->part_vals.clear();
+ uint32_t _size311;
+ ::apache::thrift::protocol::TType _etype314;
+ iprot->readListBegin(_etype314, _size311);
+ this->part_vals.resize(_size311);
+ uint32_t _i315;
+ for (_i315 = 0; _i315 < _size311; ++_i315)
+ {
+ xfer += iprot->readString(this->part_vals[_i315]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.part_vals = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -6502,17 +6578,25 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->filter);
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
+ std::vector ::const_iterator _iter316;
+ for (_iter316 = this->part_vals.begin(); _iter316 != this->part_vals.end(); ++_iter316)
+ {
+ xfer += oprot->writeString((*_iter316));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
xfer += oprot->writeI16(this->max_parts);
@@ -6522,17 +6606,25 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->filter)));
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
+ std::vector ::const_iterator _iter317;
+ for (_iter317 = (*(this->part_vals)).begin(); _iter317 != (*(this->part_vals)).end(); ++_iter317)
+ {
+ xfer += oprot->writeString((*_iter317));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
xfer += oprot->writeI16((*(this->max_parts)));
@@ -6542,7 +6634,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6566,14 +6658,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size258;
- ::apache::thrift::protocol::TType _etype261;
- iprot->readListBegin(_etype261, _size258);
- this->success.resize(_size258);
- uint32_t _i262;
- for (_i262 = 0; _i262 < _size258; ++_i262)
+ uint32_t _size318;
+ ::apache::thrift::protocol::TType _etype321;
+ iprot->readListBegin(_etype321, _size318);
+ this->success.resize(_size318);
+ uint32_t _i322;
+ for (_i322 = 0; _i322 < _size318; ++_i322)
{
- xfer += this->success[_i262].read(iprot);
+ xfer += this->success[_i322].read(iprot);
}
iprot->readListEnd();
}
@@ -6590,14 +6682,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -6610,20 +6694,20 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter263;
- for (_iter263 = this->success.begin(); _iter263 != this->success.end(); ++_iter263)
+ std::vector ::const_iterator _iter323;
+ for (_iter323 = this->success.begin(); _iter323 != this->success.end(); ++_iter323)
{
- xfer += (*_iter263).write(oprot);
+ xfer += (*_iter323).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -6632,17 +6716,13 @@
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6666,14 +6746,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size264;
- ::apache::thrift::protocol::TType _etype267;
- iprot->readListBegin(_etype267, _size264);
- (*(this->success)).resize(_size264);
- uint32_t _i268;
- for (_i268 = 0; _i268 < _size264; ++_i268)
+ uint32_t _size324;
+ ::apache::thrift::protocol::TType _etype327;
+ iprot->readListBegin(_etype327, _size324);
+ (*(this->success)).resize(_size324);
+ uint32_t _i328;
+ for (_i328 = 0; _i328 < _size324; ++_i328)
{
- xfer += (*(this->success))[_i268].read(iprot);
+ xfer += (*(this->success))[_i328].read(iprot);
}
iprot->readListEnd();
}
@@ -6690,14 +6770,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -6710,7 +6782,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6747,9 +6819,57 @@
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_part.read(iprot);
- this->__isset.new_part = true;
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->part_vals.clear();
+ uint32_t _size329;
+ ::apache::thrift::protocol::TType _etype332;
+ iprot->readListBegin(_etype332, _size329);
+ this->part_vals.resize(_size329);
+ uint32_t _i333;
+ for (_i333 = 0; _i333 < _size329; ++_i333)
+ {
+ xfer += iprot->readString(this->part_vals[_i333]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.part_vals = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_parts);
+ this->__isset.max_parts = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->group_names.clear();
+ uint32_t _size334;
+ ::apache::thrift::protocol::TType _etype337;
+ iprot->readListBegin(_etype337, _size334);
+ this->group_names.resize(_size334);
+ uint32_t _i338;
+ for (_i338 = 0; _i338 < _size334; ++_i338)
+ {
+ xfer += iprot->readString(this->group_names[_i338]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.group_names = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -6766,41 +6886,91 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->new_part.write(oprot);
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
+ std::vector ::const_iterator _iter339;
+ for (_iter339 = this->part_vals.begin(); _iter339 != this->part_vals.end(); ++_iter339)
+ {
+ xfer += oprot->writeString((*_iter339));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16(this->max_parts);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size());
+ std::vector ::const_iterator _iter340;
+ for (_iter340 = this->group_names.begin(); _iter340 != this->group_names.end(); ++_iter340)
+ {
+ xfer += oprot->writeString((*_iter340));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 3);
- xfer += (*(this->new_part)).write(oprot);
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
+ std::vector ::const_iterator _iter341;
+ for (_iter341 = (*(this->part_vals)).begin(); _iter341 != (*(this->part_vals)).end(); ++_iter341)
+ {
+ xfer += oprot->writeString((*_iter341));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16((*(this->max_parts)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 5);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size());
+ std::vector ::const_iterator _iter342;
+ for (_iter342 = (*(this->group_names)).begin(); _iter342 != (*(this->group_names)).end(); ++_iter342)
+ {
+ xfer += oprot->writeString((*_iter342));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6820,6 +6990,26 @@
}
switch (fid)
{
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size343;
+ ::apache::thrift::protocol::TType _etype346;
+ iprot->readListBegin(_etype346, _size343);
+ this->success.resize(_size343);
+ uint32_t _i347;
+ for (_i347 = 0; _i347 < _size343; ++_i347)
+ {
+ xfer += this->success[_i347].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -6848,13 +7038,25 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_ps_with_auth_result");
- if (this->__isset.o1) {
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter348;
+ for (_iter348 = this->success.begin(); _iter348 != this->success.end(); ++_iter348)
+ {
+ xfer += (*_iter348).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
@@ -6868,7 +7070,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6888,6 +7090,26 @@
}
switch (fid)
{
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size349;
+ ::apache::thrift::protocol::TType _etype352;
+ iprot->readListBegin(_etype352, _size349);
+ (*(this->success)).resize(_size349);
+ uint32_t _i353;
+ for (_i353 = 0; _i353 < _size349; ++_i353)
+ {
+ xfer += (*(this->success))[_i353].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -6916,7 +7138,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -6938,16 +7160,44 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->name);
- this->__isset.name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->defaultValue);
- this->__isset.defaultValue = true;
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->part_vals.clear();
+ uint32_t _size354;
+ ::apache::thrift::protocol::TType _etype357;
+ iprot->readListBegin(_etype357, _size354);
+ this->part_vals.resize(_size354);
+ uint32_t _i358;
+ for (_i358 = 0; _i358 < _size354; ++_i358)
+ {
+ xfer += iprot->readString(this->part_vals[_i358]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.part_vals = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_parts);
+ this->__isset.max_parts = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -6964,35 +7214,63 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_args");
- xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("defaultValue", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->defaultValue);
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->part_vals.size());
+ std::vector ::const_iterator _iter359;
+ for (_iter359 = this->part_vals.begin(); _iter359 != this->part_vals.end(); ++_iter359)
+ {
+ xfer += oprot->writeString((*_iter359));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16(this->max_parts);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_pargs");
- xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("defaultValue", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->defaultValue)));
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->part_vals)).size());
+ std::vector ::const_iterator _iter360;
+ for (_iter360 = (*(this->part_vals)).begin(); _iter360 != (*(this->part_vals)).end(); ++_iter360)
+ {
+ xfer += oprot->writeString((*_iter360));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16((*(this->max_parts)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7013,8 +7291,20 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->success);
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size361;
+ ::apache::thrift::protocol::TType _etype364;
+ iprot->readListBegin(_etype364, _size361);
+ this->success.resize(_size361);
+ uint32_t _i365;
+ for (_i365 = 0; _i365 < _size361; ++_i365)
+ {
+ xfer += iprot->readString(this->success[_i365]);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -7040,15 +7330,23 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_names_ps_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
- xfer += oprot->writeString(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
+ std::vector ::const_iterator _iter366;
+ for (_iter366 = this->success.begin(); _iter366 != this->success.end(); ++_iter366)
+ {
+ xfer += oprot->writeString((*_iter366));
+ }
+ xfer += oprot->writeListEnd();
+ }
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
@@ -7060,7 +7358,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_config_value_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7081,8 +7379,20 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size367;
+ ::apache::thrift::protocol::TType _etype370;
+ iprot->readListBegin(_etype370, _size367);
+ (*(this->success)).resize(_size367);
+ uint32_t _i371;
+ for (_i371 = 0; _i371 < _size367; ++_i371)
+ {
+ xfer += iprot->readString((*(this->success))[_i371]);
+ }
+ iprot->readListEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -7108,7 +7418,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7130,8 +7440,32 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->filter);
+ this->__isset.filter = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_parts);
+ this->__isset.max_parts = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7148,29 +7482,47 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_args");
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->part_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->filter);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16(this->max_parts);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_pargs");
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->part_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("filter", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->filter)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_parts", ::apache::thrift::protocol::T_I16, 4);
+ xfer += oprot->writeI16((*(this->max_parts)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7194,14 +7546,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
this->success.clear();
- uint32_t _size269;
- ::apache::thrift::protocol::TType _etype272;
- iprot->readListBegin(_etype272, _size269);
- this->success.resize(_size269);
- uint32_t _i273;
- for (_i273 = 0; _i273 < _size269; ++_i273)
+ uint32_t _size372;
+ ::apache::thrift::protocol::TType _etype375;
+ iprot->readListBegin(_etype375, _size372);
+ this->success.resize(_size372);
+ uint32_t _i376;
+ for (_i376 = 0; _i376 < _size372; ++_i376)
{
- xfer += iprot->readString(this->success[_i273]);
+ xfer += this->success[_i376].read(iprot);
}
iprot->readListEnd();
}
@@ -7218,6 +7570,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -7230,20 +7590,20 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_by_filter_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
{
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter274;
- for (_iter274 = this->success.begin(); _iter274 != this->success.end(); ++_iter274)
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter377;
+ for (_iter377 = this->success.begin(); _iter377 != this->success.end(); ++_iter377)
{
- xfer += oprot->writeString((*_iter274));
+ xfer += (*_iter377).write(oprot);
}
xfer += oprot->writeListEnd();
}
@@ -7252,13 +7612,17 @@
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7282,14 +7646,14 @@
if (ftype == ::apache::thrift::protocol::T_LIST) {
{
(*(this->success)).clear();
- uint32_t _size275;
- ::apache::thrift::protocol::TType _etype278;
- iprot->readListBegin(_etype278, _size275);
- (*(this->success)).resize(_size275);
- uint32_t _i279;
- for (_i279 = 0; _i279 < _size275; ++_i279)
+ uint32_t _size378;
+ ::apache::thrift::protocol::TType _etype381;
+ iprot->readListBegin(_etype381, _size378);
+ (*(this->success)).resize(_size378);
+ uint32_t _i382;
+ for (_i382 = 0; _i382 < _size378; ++_i382)
{
- xfer += iprot->readString((*(this->success))[_i279]);
+ xfer += (*(this->success))[_i382].read(iprot);
}
iprot->readListEnd();
}
@@ -7306,6 +7670,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -7318,7 +7690,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_partition_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7340,8 +7712,24 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->part_name);
- this->__isset.part_name = true;
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->new_part.read(iprot);
+ this->__isset.new_part = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7358,29 +7746,41 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_partition_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_args");
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->part_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->new_part.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_partition_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_pargs");
- xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->part_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("new_part", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += (*(this->new_part)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_partition_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7400,33 +7800,18 @@
}
switch (fid)
{
- case 0:
- if (ftype == ::apache::thrift::protocol::T_MAP) {
- {
- this->success.clear();
- uint32_t _size280;
- ::apache::thrift::protocol::TType _ktype281;
- ::apache::thrift::protocol::TType _vtype282;
- iprot->readMapBegin(_ktype281, _vtype282, _size280);
- uint32_t _i284;
- for (_i284 = 0; _i284 < _size280; ++_i284)
- {
- std::string _key285;
- xfer += iprot->readString(_key285);
- std::string& _val286 = this->success[_key285];
- xfer += iprot->readString(_val286);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
- } else {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
xfer += iprot->skip(ftype);
}
break;
- case 1:
+ case 2:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7443,36 +7828,27 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_partition_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_partition_result");
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
- {
- xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->success.size());
- std::map ::const_iterator _iter287;
- for (_iter287 = this->success.begin(); _iter287 != this->success.end(); ++_iter287)
- {
- xfer += oprot->writeString(_iter287->first);
- xfer += oprot->writeString(_iter287->second);
- }
- xfer += oprot->writeMapEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
+ if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_partition_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7492,33 +7868,18 @@
}
switch (fid)
{
- case 0:
- if (ftype == ::apache::thrift::protocol::T_MAP) {
- {
- (*(this->success)).clear();
- uint32_t _size288;
- ::apache::thrift::protocol::TType _ktype289;
- ::apache::thrift::protocol::TType _vtype290;
- iprot->readMapBegin(_ktype289, _vtype290, _size288);
- uint32_t _i292;
- for (_i292 = 0; _i292 < _size288; ++_i292)
- {
- std::string _key293;
- xfer += iprot->readString(_key293);
- std::string& _val294 = (*(this->success))[_key293];
- xfer += iprot->readString(_val294);
- }
- iprot->readMapEnd();
- }
- this->__isset.success = true;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
} else {
xfer += iprot->skip(ftype);
}
break;
- case 1:
+ case 2:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7535,7 +7896,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_config_value_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7556,17 +7917,17 @@
switch (fid)
{
case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_index.read(iprot);
- this->__isset.new_index = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->name);
+ this->__isset.name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->index_table.read(iprot);
- this->__isset.index_table = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->defaultValue);
+ this->__isset.defaultValue = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7583,35 +7944,35 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_config_value_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_args");
- xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += this->new_index.write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_args");
+ xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_table", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->index_table.write(oprot);
+ xfer += oprot->writeFieldBegin("defaultValue", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->defaultValue);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_config_value_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_pargs");
- xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1);
- xfer += (*(this->new_index)).write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_pargs");
+ xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_table", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += (*(this->index_table)).write(oprot);
+ xfer += oprot->writeFieldBegin("defaultValue", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->defaultValue)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_config_value_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7632,8 +7993,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->success.read(iprot);
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -7647,22 +8008,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -7675,35 +8020,27 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_get_config_value_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_config_value_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
- xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRING, 0);
+ xfer += oprot->writeString(this->success);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o3) {
- xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
- xfer += this->o3.write(oprot);
- xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_add_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_get_config_value_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7724,8 +8061,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += (*(this->success)).read(iprot);
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -7739,22 +8076,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o3.read(iprot);
- this->__isset.o3 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -7767,7 +8088,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7789,32 +8110,8 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->dbname);
- this->__isset.dbname = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->base_tbl_name);
- this->__isset.base_tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->idx_name);
- this->__isset.idx_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->new_idx.read(iprot);
- this->__isset.new_idx = true;
+ xfer += iprot->readString(this->part_name);
+ this->__isset.part_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7831,47 +8128,29 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_args");
- xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->dbname);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("base_tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->base_tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("idx_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->idx_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_idx", ::apache::thrift::protocol::T_STRUCT, 4);
- xfer += this->new_idx.write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_args");
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->part_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_pargs");
- xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->dbname)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("base_tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->base_tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("idx_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->idx_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("new_idx", ::apache::thrift::protocol::T_STRUCT, 4);
- xfer += (*(this->new_idx)).write(oprot);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_pargs");
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->part_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7891,18 +8170,30 @@
}
switch (fid)
{
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size383;
+ ::apache::thrift::protocol::TType _etype386;
+ iprot->readListBegin(_etype386, _size383);
+ this->success.resize(_size383);
+ uint32_t _i387;
+ for (_i387 = 0; _i387 < _size383; ++_i387)
+ {
+ xfer += iprot->readString(this->success[_i387]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
}
break;
- case 2:
+ case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7919,27 +8210,35 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_result");
- if (this->__isset.o1) {
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
+ std::vector ::const_iterator _iter388;
+ for (_iter388 = this->success.begin(); _iter388 != this->success.end(); ++_iter388)
+ {
+ xfer += oprot->writeString((*_iter388));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
- }
- xfer += oprot->writeFieldStop();
+ }
+ xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_alter_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -7959,18 +8258,30 @@
}
switch (fid)
{
- case 1:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o1.read(iprot);
- this->__isset.o1 = true;
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size389;
+ ::apache::thrift::protocol::TType _etype392;
+ iprot->readListBegin(_etype392, _size389);
+ (*(this->success)).resize(_size389);
+ uint32_t _i393;
+ for (_i393 = 0; _i393 < _size389; ++_i393)
+ {
+ xfer += iprot->readString((*(this->success))[_i393]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
}
break;
- case 2:
+ case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -7987,7 +8298,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8009,32 +8320,8 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->index_name);
- this->__isset.index_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 4:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->deleteData);
- this->__isset.deleteData = true;
+ xfer += iprot->readString(this->part_name);
+ this->__isset.part_name = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -8051,47 +8338,29 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->index_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool(this->deleteData);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_args");
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->part_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->index_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4);
- xfer += oprot->writeBool((*(this->deleteData)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_pargs");
+ xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->part_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8112,8 +8381,23 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool(this->success);
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ this->success.clear();
+ uint32_t _size394;
+ ::apache::thrift::protocol::TType _ktype395;
+ ::apache::thrift::protocol::TType _vtype396;
+ iprot->readMapBegin(_ktype395, _vtype396, _size394);
+ uint32_t _i398;
+ for (_i398 = 0; _i398 < _size394; ++_i398)
+ {
+ std::string _key399;
+ xfer += iprot->readString(_key399);
+ std::string& _val400 = this->success[_key399];
+ xfer += iprot->readString(_val400);
+ }
+ iprot->readMapEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -8127,14 +8411,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -8147,31 +8423,36 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_spec_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
- xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0);
+ {
+ xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, this->success.size());
+ std::map ::const_iterator _iter401;
+ for (_iter401 = this->success.begin(); _iter401 != this->success.end(); ++_iter401)
+ {
+ xfer += oprot->writeString(_iter401->first);
+ xfer += oprot->writeString(_iter401->second);
+ }
+ xfer += oprot->writeMapEnd();
+ }
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
- xfer += this->o2.write(oprot);
- xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8192,8 +8473,23 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_BOOL) {
- xfer += iprot->readBool((*(this->success)));
+ if (ftype == ::apache::thrift::protocol::T_MAP) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size402;
+ ::apache::thrift::protocol::TType _ktype403;
+ ::apache::thrift::protocol::TType _vtype404;
+ iprot->readMapBegin(_ktype403, _vtype404, _size402);
+ uint32_t _i406;
+ for (_i406 = 0; _i406 < _size402; ++_i406)
+ {
+ std::string _key407;
+ xfer += iprot->readString(_key407);
+ std::string& _val408 = (*(this->success))[_key407];
+ xfer += iprot->readString(_val408);
+ }
+ iprot->readMapEnd();
+ }
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -8207,14 +8503,6 @@
xfer += iprot->skip(ftype);
}
break;
- case 2:
- if (ftype == ::apache::thrift::protocol::T_STRUCT) {
- xfer += this->o2.read(iprot);
- this->__isset.o2 = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
default:
xfer += iprot->skip(ftype);
break;
@@ -8227,7 +8515,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_add_index_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8248,25 +8536,17 @@
switch (fid)
{
case 1:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->new_index.read(iprot);
+ this->__isset.new_index = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
- case 3:
- if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->index_name);
- this->__isset.index_name = true;
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->index_table.read(iprot);
+ this->__isset.index_table = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -8283,41 +8563,35 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_add_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_args");
+ xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->new_index.write(oprot);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString(this->index_name);
+ xfer += oprot->writeFieldBegin("index_table", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->index_table.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_add_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
- xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_pargs");
+ xfer += oprot->writeFieldBegin("new_index", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->new_index)).write(oprot);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
- xfer += oprot->writeString((*(this->index_name)));
+ xfer += oprot->writeFieldBegin("index_table", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += (*(this->index_table)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_add_index_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8361,6 +8635,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -8373,11 +8655,11 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_add_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_index_result");
if (this->__isset.success) {
xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
@@ -8391,13 +8673,17 @@
xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
xfer += this->o2.write(oprot);
xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o3) {
+ xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->o3.write(oprot);
+ xfer += oprot->writeFieldEnd();
}
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_add_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8441,6 +8727,14 @@
xfer += iprot->skip(ftype);
}
break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o3.read(iprot);
+ this->__isset.o3 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
default:
xfer += iprot->skip(ftype);
break;
@@ -8453,7 +8747,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_index_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8475,24 +8769,32 @@
{
case 1:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->db_name);
- this->__isset.db_name = true;
+ xfer += iprot->readString(this->dbname);
+ this->__isset.dbname = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 2:
if (ftype == ::apache::thrift::protocol::T_STRING) {
- xfer += iprot->readString(this->tbl_name);
- this->__isset.tbl_name = true;
+ xfer += iprot->readString(this->base_tbl_name);
+ this->__isset.base_tbl_name = true;
} else {
xfer += iprot->skip(ftype);
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_indexes);
- this->__isset.max_indexes = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->idx_name);
+ this->__isset.idx_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->new_idx.read(iprot);
+ this->__isset.new_idx = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -8509,41 +8811,47 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_index_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_args");
+ xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->dbname);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("base_tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->base_tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldBegin("idx_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->idx_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_indexes);
+ xfer += oprot->writeFieldBegin("new_idx", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += this->new_idx.write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_index_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs");
- xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
- xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_pargs");
+ xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->dbname)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
- xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldBegin("base_tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->base_tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_indexes)));
+ xfer += oprot->writeFieldBegin("idx_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->idx_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("new_idx", ::apache::thrift::protocol::T_STRUCT, 4);
+ xfer += (*(this->new_idx)).write(oprot);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_index_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8563,26 +8871,6 @@
}
switch (fid)
{
- case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size295;
- ::apache::thrift::protocol::TType _etype298;
- iprot->readListBegin(_etype298, _size295);
- this->success.resize(_size295);
- uint32_t _i299;
- for (_i299 = 0; _i299 < _size295; ++_i299)
- {
- xfer += this->success[_i299].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -8611,25 +8899,13 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_alter_index_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_index_result");
- if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
- std::vector ::const_iterator _iter300;
- for (_iter300 = this->success.begin(); _iter300 != this->success.end(); ++_iter300)
- {
- xfer += (*_iter300).write(oprot);
- }
- xfer += oprot->writeListEnd();
- }
- xfer += oprot->writeFieldEnd();
- } else if (this->__isset.o1) {
+ if (this->__isset.o1) {
xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
@@ -8643,7 +8919,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_alter_index_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8663,26 +8939,6 @@
}
switch (fid)
{
- case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size301;
- ::apache::thrift::protocol::TType _etype304;
- iprot->readListBegin(_etype304, _size301);
- (*(this->success)).resize(_size301);
- uint32_t _i305;
- for (_i305 = 0; _i305 < _size301; ++_i305)
- {
- xfer += (*(this->success))[_i305].read(iprot);
- }
- iprot->readListEnd();
- }
- this->__isset.success = true;
- } else {
- xfer += iprot->skip(ftype);
- }
- break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o1.read(iprot);
@@ -8711,7 +8967,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8748,9 +9004,17 @@
}
break;
case 3:
- if (ftype == ::apache::thrift::protocol::T_I16) {
- xfer += iprot->readI16(this->max_indexes);
- this->__isset.max_indexes = true;
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->index_name);
+ this->__isset.index_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->deleteData);
+ this->__isset.deleteData = true;
} else {
xfer += iprot->skip(ftype);
}
@@ -8767,41 +9031,47 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_args");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString(this->db_name);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString(this->tbl_name);
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16(this->max_indexes);
+ xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->index_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4);
+ xfer += oprot->writeBool(this->deleteData);
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_pargs");
xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
xfer += oprot->writeString((*(this->db_name)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
xfer += oprot->writeString((*(this->tbl_name)));
xfer += oprot->writeFieldEnd();
- xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
- xfer += oprot->writeI16((*(this->max_indexes)));
+ xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->index_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 4);
+ xfer += oprot->writeBool((*(this->deleteData)));
xfer += oprot->writeFieldEnd();
xfer += oprot->writeFieldStop();
xfer += oprot->writeStructEnd();
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8822,20 +9092,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- this->success.clear();
- uint32_t _size306;
- ::apache::thrift::protocol::TType _etype309;
- iprot->readListBegin(_etype309, _size306);
- this->success.resize(_size306);
- uint32_t _i310;
- for (_i310 = 0; _i310 < _size306; ++_i310)
- {
- xfer += iprot->readString(this->success[_i310]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -8843,6 +9101,14 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o2.read(iprot);
this->__isset.o2 = true;
} else {
@@ -8861,26 +9127,22 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+uint32_t ThriftHiveMetastore_drop_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
uint32_t xfer = 0;
- xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_result");
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_index_by_name_result");
if (this->__isset.success) {
- xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
- {
- xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
- std::vector ::const_iterator _iter311;
- for (_iter311 = this->success.begin(); _iter311 != this->success.end(); ++_iter311)
- {
- xfer += oprot->writeString((*_iter311));
- }
- xfer += oprot->writeListEnd();
- }
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
xfer += oprot->writeFieldEnd();
} else if (this->__isset.o2) {
- xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
xfer += this->o2.write(oprot);
xfer += oprot->writeFieldEnd();
}
@@ -8889,7 +9151,7 @@
return xfer;
}
-uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+uint32_t ThriftHiveMetastore_drop_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
uint32_t xfer = 0;
std::string fname;
@@ -8910,20 +9172,8 @@
switch (fid)
{
case 0:
- if (ftype == ::apache::thrift::protocol::T_LIST) {
- {
- (*(this->success)).clear();
- uint32_t _size312;
- ::apache::thrift::protocol::TType _etype315;
- iprot->readListBegin(_etype315, _size312);
- (*(this->success)).resize(_size312);
- uint32_t _i316;
- for (_i316 = 0; _i316 < _size312; ++_i316)
- {
- xfer += iprot->readString((*(this->success))[_i316]);
- }
- iprot->readListEnd();
- }
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
this->__isset.success = true;
} else {
xfer += iprot->skip(ftype);
@@ -8931,6 +9181,14 @@
break;
case 1:
if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
xfer += this->o2.read(iprot);
this->__isset.o2 = true;
} else {
@@ -8949,32 +9207,3544 @@
return xfer;
}
-void ThriftHiveMetastoreClient::create_database(const Database& database)
-{
- send_create_database(database);
- recv_create_database();
-}
+uint32_t ThriftHiveMetastore_get_index_by_name_args::read(::apache::thrift::protocol::TProtocol* iprot) {
-void ThriftHiveMetastoreClient::send_create_database(const Database& database)
-{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
- ThriftHiveMetastore_create_database_pargs args;
- args.database = &database;
- args.write(oprot_);
+ xfer += iprot->readStructBegin(fname);
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
-}
+ using ::apache::thrift::protocol::TProtocolException;
-void ThriftHiveMetastoreClient::recv_create_database()
-{
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->index_name);
+ this->__isset.index_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_by_name_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString(this->index_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_by_name_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("index_name", ::apache::thrift::protocol::T_STRING, 3);
+ xfer += oprot->writeString((*(this->index_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_by_name_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_by_name_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_by_name_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_by_name_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_indexes);
+ this->__isset.max_indexes = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16(this->max_indexes);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16((*(this->max_indexes)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size409;
+ ::apache::thrift::protocol::TType _etype412;
+ iprot->readListBegin(_etype412, _size409);
+ this->success.resize(_size409);
+ uint32_t _i413;
+ for (_i413 = 0; _i413 < _size409; ++_i413)
+ {
+ xfer += this->success[_i413].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_indexes_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter414;
+ for (_iter414 = this->success.begin(); _iter414 != this->success.end(); ++_iter414)
+ {
+ xfer += (*_iter414).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size415;
+ ::apache::thrift::protocol::TType _etype418;
+ iprot->readListBegin(_etype418, _size415);
+ (*(this->success)).resize(_size415);
+ uint32_t _i419;
+ for (_i419 = 0; _i419 < _size415; ++_i419)
+ {
+ xfer += (*(this->success))[_i419].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->db_name);
+ this->__isset.db_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->tbl_name);
+ this->__isset.tbl_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I16) {
+ xfer += iprot->readI16(this->max_indexes);
+ this->__isset.max_indexes = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_args");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->db_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->tbl_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16(this->max_indexes);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_pargs");
+ xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->db_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->tbl_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("max_indexes", ::apache::thrift::protocol::T_I16, 3);
+ xfer += oprot->writeI16((*(this->max_indexes)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size420;
+ ::apache::thrift::protocol::TType _etype423;
+ iprot->readListBegin(_etype423, _size420);
+ this->success.resize(_size420);
+ uint32_t _i424;
+ for (_i424 = 0; _i424 < _size420; ++_i424)
+ {
+ xfer += iprot->readString(this->success[_i424]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_index_names_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->success.size());
+ std::vector ::const_iterator _iter425;
+ for (_iter425 = this->success.begin(); _iter425 != this->success.end(); ++_iter425)
+ {
+ xfer += oprot->writeString((*_iter425));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o2) {
+ xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o2.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size426;
+ ::apache::thrift::protocol::TType _etype429;
+ iprot->readListBegin(_etype429, _size426);
+ (*(this->success)).resize(_size426);
+ uint32_t _i430;
+ for (_i430 = 0; _i430 < _size426; ++_i430)
+ {
+ xfer += iprot->readString((*(this->success))[_i430]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o2.read(iprot);
+ this->__isset.o2 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->role.read(iprot);
+ this->__isset.role = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args");
+ xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->role.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs");
+ xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->role)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast431;
+ xfer += iprot->readI32(ecast431);
+ this->principal_type = (PrincipalType::type)ecast431;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 4:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->grantor);
+ this->__isset.grantor = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 5:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast432;
+ xfer += iprot->readI32(ecast432);
+ this->grantorType = (PrincipalType::type)ecast432;
+ this->__isset.grantorType = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 6:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->grant_option);
+ this->__isset.grant_option = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString(this->grantor);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
+ xfer += oprot->writeI32((int32_t)this->grantorType);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
+ xfer += oprot->writeBool(this->grant_option);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 4);
+ xfer += oprot->writeString((*(this->grantor)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grantorType", ::apache::thrift::protocol::T_I32, 5);
+ xfer += oprot->writeI32((int32_t)(*(this->grantorType)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("grant_option", ::apache::thrift::protocol::T_BOOL, 6);
+ xfer += oprot->writeBool((*(this->grant_option)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_role_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->role_name);
+ this->__isset.role_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast433;
+ xfer += iprot->readI32(ecast433);
+ this->principal_type = (PrincipalType::type)ecast433;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_args");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->role_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_pargs");
+ xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->role_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 3);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast434;
+ xfer += iprot->readI32(ecast434);
+ this->principal_type = (PrincipalType::type)ecast434;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_args");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_pargs");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size435;
+ ::apache::thrift::protocol::TType _etype438;
+ iprot->readListBegin(_etype438, _size435);
+ this->success.resize(_size435);
+ uint32_t _i439;
+ for (_i439 = 0; _i439 < _size435; ++_i439)
+ {
+ xfer += this->success[_i439].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter440;
+ for (_iter440 = this->success.begin(); _iter440 != this->success.end(); ++_iter440)
+ {
+ xfer += (*_iter440).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size441;
+ ::apache::thrift::protocol::TType _etype444;
+ iprot->readListBegin(_etype444, _size441);
+ (*(this->success)).resize(_size441);
+ uint32_t _i445;
+ for (_i445 = 0; _i445 < _size441; ++_i445)
+ {
+ xfer += (*(this->success))[_i445].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->hiveObject.read(iprot);
+ this->__isset.hiveObject = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->user_name);
+ this->__isset.user_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->group_names.clear();
+ uint32_t _size446;
+ ::apache::thrift::protocol::TType _etype449;
+ iprot->readListBegin(_etype449, _size446);
+ this->group_names.resize(_size446);
+ uint32_t _i450;
+ for (_i450 = 0; _i450 < _size446; ++_i450)
+ {
+ xfer += iprot->readString(this->group_names[_i450]);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.group_names = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_args");
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->hiveObject.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString(this->user_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, this->group_names.size());
+ std::vector ::const_iterator _iter451;
+ for (_iter451 = this->group_names.begin(); _iter451 != this->group_names.end(); ++_iter451)
+ {
+ xfer += oprot->writeString((*_iter451));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_pargs");
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->hiveObject)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("user_name", ::apache::thrift::protocol::T_STRING, 2);
+ xfer += oprot->writeString((*(this->user_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, (*(this->group_names)).size());
+ std::vector ::const_iterator _iter452;
+ for (_iter452 = (*(this->group_names)).begin(); _iter452 != (*(this->group_names)).end(); ++_iter452)
+ {
+ xfer += oprot->writeString((*_iter452));
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->success.read(iprot);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_privilege_set_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0);
+ xfer += this->success.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_get_privilege_set_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += (*(this->success)).read(iprot);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRING) {
+ xfer += iprot->readString(this->principal_name);
+ this->__isset.principal_name = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 2:
+ if (ftype == ::apache::thrift::protocol::T_I32) {
+ int32_t ecast453;
+ xfer += iprot->readI32(ecast453);
+ this->principal_type = (PrincipalType::type)ecast453;
+ this->__isset.principal_type = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 3:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->hiveObject.read(iprot);
+ this->__isset.hiveObject = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_args");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString(this->principal_name);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)this->principal_type);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += this->hiveObject.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_pargs");
+ xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 1);
+ xfer += oprot->writeString((*(this->principal_name)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2);
+ xfer += oprot->writeI32((int32_t)(*(this->principal_type)));
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldBegin("hiveObject", ::apache::thrift::protocol::T_STRUCT, 3);
+ xfer += (*(this->hiveObject)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ this->success.clear();
+ uint32_t _size454;
+ ::apache::thrift::protocol::TType _etype457;
+ iprot->readListBegin(_etype457, _size454);
+ this->success.resize(_size454);
+ uint32_t _i458;
+ for (_i458 = 0; _i458 < _size454; ++_i458)
+ {
+ xfer += this->success[_i458].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_privileges_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0);
+ {
+ xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, this->success.size());
+ std::vector ::const_iterator _iter459;
+ for (_iter459 = this->success.begin(); _iter459 != this->success.end(); ++_iter459)
+ {
+ xfer += (*_iter459).write(oprot);
+ }
+ xfer += oprot->writeListEnd();
+ }
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_LIST) {
+ {
+ (*(this->success)).clear();
+ uint32_t _size460;
+ ::apache::thrift::protocol::TType _etype463;
+ iprot->readListBegin(_etype463, _size460);
+ (*(this->success)).resize(_size460);
+ uint32_t _i464;
+ for (_i464 = 0; _i464 < _size460; ++_i464)
+ {
+ xfer += (*(this->success))[_i464].read(iprot);
+ }
+ iprot->readListEnd();
+ }
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->privileges.read(iprot);
+ this->__isset.privileges = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_args");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->privileges.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_pargs");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->privileges)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_grant_privileges_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_grant_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_args::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->privileges.read(iprot);
+ this->__isset.privileges = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_args::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_args");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->privileges.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const {
+ uint32_t xfer = 0;
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_pargs");
+ xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += (*(this->privileges)).write(oprot);
+ xfer += oprot->writeFieldEnd();
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_result::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool(this->success);
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_result::write(::apache::thrift::protocol::TProtocol* oprot) const {
+
+ uint32_t xfer = 0;
+
+ xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_privileges_result");
+
+ if (this->__isset.success) {
+ xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0);
+ xfer += oprot->writeBool(this->success);
+ xfer += oprot->writeFieldEnd();
+ } else if (this->__isset.o1) {
+ xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1);
+ xfer += this->o1.write(oprot);
+ xfer += oprot->writeFieldEnd();
+ }
+ xfer += oprot->writeFieldStop();
+ xfer += oprot->writeStructEnd();
+ return xfer;
+}
+
+uint32_t ThriftHiveMetastore_revoke_privileges_presult::read(::apache::thrift::protocol::TProtocol* iprot) {
+
+ uint32_t xfer = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TType ftype;
+ int16_t fid;
+
+ xfer += iprot->readStructBegin(fname);
+
+ using ::apache::thrift::protocol::TProtocolException;
+
+
+ while (true)
+ {
+ xfer += iprot->readFieldBegin(fname, ftype, fid);
+ if (ftype == ::apache::thrift::protocol::T_STOP) {
+ break;
+ }
+ switch (fid)
+ {
+ case 0:
+ if (ftype == ::apache::thrift::protocol::T_BOOL) {
+ xfer += iprot->readBool((*(this->success)));
+ this->__isset.success = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ case 1:
+ if (ftype == ::apache::thrift::protocol::T_STRUCT) {
+ xfer += this->o1.read(iprot);
+ this->__isset.o1 = true;
+ } else {
+ xfer += iprot->skip(ftype);
+ }
+ break;
+ default:
+ xfer += iprot->skip(ftype);
+ break;
+ }
+ xfer += iprot->readFieldEnd();
+ }
+
+ xfer += iprot->readStructEnd();
+
+ return xfer;
+}
+
+void ThriftHiveMetastoreClient::create_database(const Database& database)
+{
+ send_create_database(database);
+ recv_create_database();
+}
+
+void ThriftHiveMetastoreClient::send_create_database(const Database& database)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("create_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_create_database_pargs args;
+ args.database = &database;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_create_database()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("create_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_create_database_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
+{
+ send_get_database(name);
+ recv_get_database(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_database_pargs args;
+ args.name = &name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_database_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData)
+{
+ send_drop_database(name, deleteData);
+ recv_drop_database();
+}
+
+void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_drop_database_pargs args;
+ args.name = &name;
+ args.deleteData = &deleteData;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_drop_database()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("drop_database") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_drop_database_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
+{
+ send_get_databases(pattern);
+ recv_get_databases(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_databases_pargs args;
+ args.pattern = &pattern;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_databases") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_databases_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
+{
+ send_get_all_databases();
+ recv_get_all_databases(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_all_databases()
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_all_databases_pargs args;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_all_databases") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_all_databases_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_type(Type& _return, const std::string& name)
+{
+ send_get_type(name);
+ recv_get_type(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_type_pargs args;
+ args.name = &name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_type") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_type_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result");
+}
+
+bool ThriftHiveMetastoreClient::create_type(const Type& type)
+{
+ send_create_type(type);
+ return recv_create_type();
+}
+
+void ThriftHiveMetastoreClient::send_create_type(const Type& type)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_create_type_pargs args;
+ args.type = &type;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+bool ThriftHiveMetastoreClient::recv_create_type()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("create_type") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ bool _return;
+ ThriftHiveMetastore_create_type_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ return _return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result");
+}
+
+bool ThriftHiveMetastoreClient::drop_type(const std::string& type)
+{
+ send_drop_type(type);
+ return recv_drop_type();
+}
+
+void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_drop_type_pargs args;
+ args.type = &type;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+bool ThriftHiveMetastoreClient::recv_drop_type()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("drop_type") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ bool _return;
+ ThriftHiveMetastore_drop_type_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ return _return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_type_all(std::map & _return, const std::string& name)
+{
+ send_get_type_all(name);
+ recv_get_type_all(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_type_all_pargs args;
+ args.name = &name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_type_all") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_type_all_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name)
+{
+ send_get_fields(db_name, table_name);
+ recv_get_fields(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, const std::string& table_name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_fields_pargs args;
+ args.db_name = &db_name;
+ args.table_name = &table_name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_fields") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_fields_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name)
+{
+ send_get_schema(db_name, table_name);
+ recv_get_schema(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, const std::string& table_name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_schema_pargs args;
+ args.db_name = &db_name;
+ args.table_name = &table_name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_schema") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_schema_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::create_table(const Table& tbl)
+{
+ send_create_table(tbl);
+ recv_create_table();
+}
+
+void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_create_table_pargs args;
+ args.tbl = &tbl;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_create_table()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("create_table") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_create_table_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ if (result.__isset.o4) {
+ throw result.o4;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+{
+ send_drop_table(dbname, name, deleteData);
+ recv_drop_table();
+}
+
+void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_drop_table_pargs args;
+ args.dbname = &dbname;
+ args.name = &name;
+ args.deleteData = &deleteData;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_drop_table()
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("drop_table") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_drop_table_presult result;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ return;
+}
+
+void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern)
+{
+ send_get_tables(db_name, pattern);
+ recv_get_tables(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, const std::string& pattern)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_tables_pargs args;
+ args.db_name = &db_name;
+ args.pattern = &pattern;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+
+ iprot_->readMessageBegin(fname, mtype, rseqid);
+ if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
+ }
+ if (mtype != ::apache::thrift::protocol::T_REPLY) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ }
+ if (fname.compare("get_tables") != 0) {
+ iprot_->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ }
+ ThriftHiveMetastore_get_tables_presult result;
+ result.success = &_return;
+ result.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result");
+}
+
+void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name)
+{
+ send_get_all_tables(db_name);
+ recv_get_all_tables(_return);
+}
+
+void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_get_all_tables_pargs args;
+ args.db_name = &db_name;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return)
+{
+
+ int32_t rseqid = 0;
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
iprot_->readMessageBegin(fname, mtype, rseqid);
if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
@@ -8990,42 +12760,42 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("create_database") != 0) {
+ if (fname.compare("get_all_tables") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_create_database_presult result;
+ ThriftHiveMetastore_get_all_tables_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
+void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
{
- send_get_database(name);
- recv_get_database(_return);
+ send_get_table(dbname, tbl_name);
+ recv_get_table(_return);
}
-void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
+void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_database_pargs args;
- args.name = &name;
+ ThriftHiveMetastore_get_table_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9033,7 +12803,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
+void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
{
int32_t rseqid = 0;
@@ -9054,13 +12824,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_database") != 0) {
+ if (fname.compare("get_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_database_presult result;
+ ThriftHiveMetastore_get_table_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9076,23 +12846,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result");
}
-void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
- send_drop_database(name, deleteData);
- recv_drop_database();
+ send_alter_table(dbname, tbl_name, new_tbl);
+ recv_alter_table();
}
-void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_database_pargs args;
- args.name = &name;
- args.deleteData = &deleteData;
+ ThriftHiveMetastore_alter_table_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
+ args.new_tbl = &new_tbl;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9100,7 +12871,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_drop_database()
+void ThriftHiveMetastoreClient::recv_alter_table()
{
int32_t rseqid = 0;
@@ -9121,13 +12892,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_database") != 0) {
+ if (fname.compare("alter_table") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_drop_database_presult result;
+ ThriftHiveMetastore_alter_table_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
@@ -9138,25 +12909,22 @@
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
return;
}
-void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
+void ThriftHiveMetastoreClient::add_partition(Partition& _return, const Partition& new_part)
{
- send_get_databases(pattern);
- recv_get_databases(_return);
+ send_add_partition(new_part);
+ recv_add_partition(_return);
}
-void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
+void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_databases_pargs args;
- args.pattern = &pattern;
+ ThriftHiveMetastore_add_partition_pargs args;
+ args.new_part = &new_part;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9164,7 +12932,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9185,13 +12953,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_databases") != 0) {
+ if (fname.compare("add_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_databases_presult result;
+ ThriftHiveMetastore_add_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9204,21 +12972,30 @@
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
{
- send_get_all_databases();
- recv_get_all_databases(_return);
+ send_append_partition(db_name, tbl_name, part_vals);
+ recv_append_partition(_return);
}
-void ThriftHiveMetastoreClient::send_get_all_databases()
+void ThriftHiveMetastoreClient::send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_all_databases_pargs args;
+ ThriftHiveMetastore_append_partition_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9226,7 +13003,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9247,13 +13024,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_all_databases") != 0) {
+ if (fname.compare("append_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_all_databases_presult result;
+ ThriftHiveMetastore_append_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9266,22 +13043,30 @@
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_databases failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_type(Type& _return, const std::string& name)
+void ThriftHiveMetastoreClient::append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
{
- send_get_type(name);
- recv_get_type(_return);
+ send_append_partition_by_name(db_name, tbl_name, part_name);
+ recv_append_partition_by_name(_return);
}
-void ThriftHiveMetastoreClient::send_get_type(const std::string& name)
+void ThriftHiveMetastoreClient::send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_type_pargs args;
- args.name = &name;
+ ThriftHiveMetastore_append_partition_by_name_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_name = &part_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9289,7 +13074,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
+void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return)
{
int32_t rseqid = 0;
@@ -9310,13 +13095,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_type") != 0) {
+ if (fname.compare("append_partition_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_type_presult result;
+ ThriftHiveMetastore_append_partition_by_name_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9332,22 +13117,28 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result");
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name failed: unknown result");
}
-bool ThriftHiveMetastoreClient::create_type(const Type& type)
+bool ThriftHiveMetastoreClient::drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
{
- send_create_type(type);
- return recv_create_type();
+ send_drop_partition(db_name, tbl_name, part_vals, deleteData);
+ return recv_drop_partition();
}
-void ThriftHiveMetastoreClient::send_create_type(const Type& type)
+void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_create_type_pargs args;
- args.type = &type;
+ ThriftHiveMetastore_drop_partition_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
+ args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9355,7 +13146,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_create_type()
+bool ThriftHiveMetastoreClient::recv_drop_partition()
{
int32_t rseqid = 0;
@@ -9376,14 +13167,14 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("create_type") != 0) {
+ if (fname.compare("drop_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
bool _return;
- ThriftHiveMetastore_create_type_presult result;
+ ThriftHiveMetastore_drop_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9398,25 +13189,25 @@
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition failed: unknown result");
}
-bool ThriftHiveMetastoreClient::drop_type(const std::string& type)
+bool ThriftHiveMetastoreClient::drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
{
- send_drop_type(type);
- return recv_drop_type();
+ send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData);
+ return recv_drop_partition_by_name();
}
-void ThriftHiveMetastoreClient::send_drop_type(const std::string& type)
+void ThriftHiveMetastoreClient::send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_type_pargs args;
- args.type = &type;
+ ThriftHiveMetastore_drop_partition_by_name_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_name = &part_name;
+ args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9424,7 +13215,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_type()
+bool ThriftHiveMetastoreClient::recv_drop_partition_by_name()
{
int32_t rseqid = 0;
@@ -9445,14 +13236,14 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_type") != 0) {
+ if (fname.compare("drop_partition_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
bool _return;
- ThriftHiveMetastore_drop_type_presult result;
+ ThriftHiveMetastore_drop_partition_by_name_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9467,22 +13258,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_type_all(std::map & _return, const std::string& name)
+void ThriftHiveMetastoreClient::get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
{
- send_get_type_all(name);
- recv_get_type_all(_return);
+ send_get_partition(db_name, tbl_name, part_vals);
+ recv_get_partition(_return);
}
-void ThriftHiveMetastoreClient::send_get_type_all(const std::string& name)
+void ThriftHiveMetastoreClient::send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_type_all_pargs args;
- args.name = &name;
+ ThriftHiveMetastore_get_partition_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9490,7 +13283,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
+void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9511,13 +13304,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_type_all") != 0) {
+ if (fname.compare("get_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_type_all_presult result;
+ ThriftHiveMetastore_get_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9527,26 +13320,32 @@
// _return pointer has now been filled
return;
}
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names)
{
- send_get_fields(db_name, table_name);
- recv_get_fields(_return);
+ send_get_partition_with_auth(db_name, tbl_name, part_vals, user_name, group_names);
+ recv_get_partition_with_auth(_return);
}
-void ThriftHiveMetastoreClient::send_get_fields(const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::send_get_partition_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_fields_pargs args;
+ ThriftHiveMetastore_get_partition_with_auth_pargs args;
args.db_name = &db_name;
- args.table_name = &table_name;
+ args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
+ args.user_name = &user_name;
+ args.group_names = &group_names;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9554,7 +13353,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_fields(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_partition_with_auth(Partition& _return)
{
int32_t rseqid = 0;
@@ -9575,13 +13374,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_fields") != 0) {
+ if (fname.compare("get_partition_with_auth") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_fields_presult result;
+ ThriftHiveMetastore_get_partition_with_auth_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9597,26 +13396,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_with_auth failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
{
- send_get_schema(db_name, table_name);
- recv_get_schema(_return);
+ send_get_partition_by_name(db_name, tbl_name, part_name);
+ recv_get_partition_by_name(_return);
}
-void ThriftHiveMetastoreClient::send_get_schema(const std::string& db_name, const std::string& table_name)
+void ThriftHiveMetastoreClient::send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_schema_pargs args;
+ ThriftHiveMetastore_get_partition_by_name_pargs args;
args.db_name = &db_name;
- args.table_name = &table_name;
+ args.tbl_name = &tbl_name;
+ args.part_name = &part_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9624,7 +13421,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_schema(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return)
{
int32_t rseqid = 0;
@@ -9645,13 +13442,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_schema") != 0) {
+ if (fname.compare("get_partition_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_schema_presult result;
+ ThriftHiveMetastore_get_partition_by_name_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9667,25 +13464,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_by_name failed: unknown result");
}
-void ThriftHiveMetastoreClient::create_table(const Table& tbl)
+void ThriftHiveMetastoreClient::get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
{
- send_create_table(tbl);
- recv_create_table();
+ send_get_partitions(db_name, tbl_name, max_parts);
+ recv_get_partitions(_return);
}
-void ThriftHiveMetastoreClient::send_create_table(const Table& tbl)
+void ThriftHiveMetastoreClient::send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_create_table_pargs args;
- args.tbl = &tbl;
+ ThriftHiveMetastore_get_partitions_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.max_parts = &max_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9693,7 +13489,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_create_table()
+void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9714,47 +13510,48 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("create_table") != 0) {
+ if (fname.compare("get_partitions") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_create_table_presult result;
+ ThriftHiveMetastore_get_partitions_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- if (result.__isset.o4) {
- throw result.o4;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions failed: unknown result");
}
-void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names)
{
- send_drop_table(dbname, name, deleteData);
- recv_drop_table();
+ send_get_partitions_with_auth(db_name, tbl_name, max_parts, user_name, group_names);
+ recv_get_partitions_with_auth(_return);
}
-void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_get_partitions_with_auth(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_table_pargs args;
- args.dbname = &dbname;
- args.name = &name;
- args.deleteData = &deleteData;
+ ThriftHiveMetastore_get_partitions_with_auth_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.max_parts = &max_parts;
+ args.user_name = &user_name;
+ args.group_names = &group_names;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9762,7 +13559,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_drop_table()
+void ThriftHiveMetastoreClient::recv_get_partitions_with_auth(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9783,40 +13580,46 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_table") != 0) {
+ if (fname.compare("get_partitions_with_auth") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_drop_table_presult result;
+ ThriftHiveMetastore_get_partitions_with_auth_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o3) {
- throw result.o3;
+ if (result.__isset.o2) {
+ throw result.o2;
}
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_with_auth failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern)
+void ThriftHiveMetastoreClient::get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
{
- send_get_tables(db_name, pattern);
- recv_get_tables(_return);
+ send_get_partition_names(db_name, tbl_name, max_parts);
+ recv_get_partition_names(_return);
}
-void ThriftHiveMetastoreClient::send_get_tables(const std::string& db_name, const std::string& pattern)
+void ThriftHiveMetastoreClient::send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_tables_pargs args;
+ ThriftHiveMetastore_get_partition_names_pargs args;
args.db_name = &db_name;
- args.pattern = &pattern;
+ args.tbl_name = &tbl_name;
+ args.max_parts = &max_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9824,7 +13627,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_tables(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_partition_names(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9845,13 +13648,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_tables") != 0) {
+ if (fname.compare("get_partition_names") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_tables_presult result;
+ ThriftHiveMetastore_get_partition_names_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9861,25 +13664,28 @@
// _return pointer has now been filled
return;
}
- if (result.__isset.o1) {
- throw result.o1;
+ if (result.__isset.o2) {
+ throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_tables failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_all_tables(std::vector & _return, const std::string& db_name)
+void ThriftHiveMetastoreClient::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
{
- send_get_all_tables(db_name);
- recv_get_all_tables(_return);
+ send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts);
+ recv_get_partitions_ps(_return);
}
-void ThriftHiveMetastoreClient::send_get_all_tables(const std::string& db_name)
+void ThriftHiveMetastoreClient::send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_all_tables_pargs args;
+ ThriftHiveMetastore_get_partitions_ps_pargs args;
args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
+ args.max_parts = &max_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9887,7 +13693,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_all_tables(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_partitions_ps(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9908,13 +13714,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_all_tables") != 0) {
+ if (fname.compare("get_partitions_ps") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_all_tables_presult result;
+ ThriftHiveMetastore_get_partitions_ps_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9927,23 +13733,27 @@
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
+void ThriftHiveMetastoreClient::get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names)
{
- send_get_table(dbname, tbl_name);
- recv_get_table(_return);
+ send_get_partitions_ps_with_auth(db_name, tbl_name, part_vals, max_parts, user_name, group_names);
+ recv_get_partitions_ps_with_auth(_return);
}
-void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
+void ThriftHiveMetastoreClient::send_get_partitions_ps_with_auth(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_table_pargs args;
- args.dbname = &dbname;
+ ThriftHiveMetastore_get_partitions_ps_with_auth_pargs args;
+ args.db_name = &db_name;
args.tbl_name = &tbl_name;
+ args.part_vals = &part_vals;
+ args.max_parts = &max_parts;
+ args.user_name = &user_name;
+ args.group_names = &group_names;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9951,7 +13761,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
+void ThriftHiveMetastoreClient::recv_get_partitions_ps_with_auth(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9972,13 +13782,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_table") != 0) {
+ if (fname.compare("get_partitions_ps_with_auth") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_table_presult result;
+ ThriftHiveMetastore_get_partitions_ps_with_auth_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9994,24 +13804,25 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_table failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps_with_auth failed: unknown result");
}
-void ThriftHiveMetastoreClient::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
+void ThriftHiveMetastoreClient::get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
{
- send_alter_table(dbname, tbl_name, new_tbl);
- recv_alter_table();
+ send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts);
+ recv_get_partition_names_ps(_return);
}
-void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
+void ThriftHiveMetastoreClient::send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_alter_table_pargs args;
- args.dbname = &dbname;
+ ThriftHiveMetastore_get_partition_names_ps_pargs args;
+ args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.new_tbl = &new_tbl;
+ args.part_vals = &part_vals;
+ args.max_parts = &max_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10019,7 +13830,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_table()
+void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10040,39 +13851,44 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("alter_table") != 0) {
+ if (fname.compare("get_partition_names_ps") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_alter_table_presult result;
+ ThriftHiveMetastore_get_partition_names_ps_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names_ps failed: unknown result");
}
-void ThriftHiveMetastoreClient::add_partition(Partition& _return, const Partition& new_part)
+void ThriftHiveMetastoreClient::get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts)
{
- send_add_partition(new_part);
- recv_add_partition(_return);
+ send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts);
+ recv_get_partitions_by_filter(_return);
}
-void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part)
+void ThriftHiveMetastoreClient::send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_add_partition_pargs args;
- args.new_part = &new_part;
+ ThriftHiveMetastore_get_partitions_by_filter_pargs args;
+ args.db_name = &db_name;
+ args.tbl_name = &tbl_name;
+ args.filter = &filter;
+ args.max_parts = &max_parts;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10080,7 +13896,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return)
+void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10101,13 +13917,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("add_partition") != 0) {
+ if (fname.compare("get_partitions_by_filter") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_add_partition_presult result;
+ ThriftHiveMetastore_get_partitions_by_filter_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10123,27 +13939,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_partition failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
}
-void ThriftHiveMetastoreClient::append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
+void ThriftHiveMetastoreClient::alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
{
- send_append_partition(db_name, tbl_name, part_vals);
- recv_append_partition(_return);
+ send_alter_partition(db_name, tbl_name, new_part);
+ recv_alter_partition();
}
-void ThriftHiveMetastoreClient::send_append_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
+void ThriftHiveMetastoreClient::send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_append_partition_pargs args;
+ ThriftHiveMetastore_alter_partition_pargs args;
args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
+ args.new_part = &new_part;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10151,7 +13964,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return)
+void ThriftHiveMetastoreClient::recv_alter_partition()
{
int32_t rseqid = 0;
@@ -10172,49 +13985,40 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("append_partition") != 0) {
+ if (fname.compare("alter_partition") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_append_partition_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_alter_partition_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition failed: unknown result");
+ return;
}
-void ThriftHiveMetastoreClient::append_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
+void ThriftHiveMetastoreClient::get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue)
{
- send_append_partition_by_name(db_name, tbl_name, part_name);
- recv_append_partition_by_name(_return);
+ send_get_config_value(name, defaultValue);
+ recv_get_config_value(_return);
}
-void ThriftHiveMetastoreClient::send_append_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
+void ThriftHiveMetastoreClient::send_get_config_value(const std::string& name, const std::string& defaultValue)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_append_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_name = &part_name;
+ ThriftHiveMetastore_get_config_value_pargs args;
+ args.name = &name;
+ args.defaultValue = &defaultValue;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10222,7 +14026,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return)
+void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return)
{
int32_t rseqid = 0;
@@ -10243,13 +14047,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("append_partition_by_name") != 0) {
+ if (fname.compare("get_config_value") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_append_partition_by_name_presult result;
+ ThriftHiveMetastore_get_config_value_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10262,31 +14066,22 @@
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "append_partition_by_name failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_config_value failed: unknown result");
}
-bool ThriftHiveMetastoreClient::drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
+void ThriftHiveMetastoreClient::partition_name_to_vals(std::vector & _return, const std::string& part_name)
{
- send_drop_partition(db_name, tbl_name, part_vals, deleteData);
- return recv_drop_partition();
+ send_partition_name_to_vals(part_name);
+ recv_partition_name_to_vals(_return);
}
-void ThriftHiveMetastoreClient::send_drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData)
+void ThriftHiveMetastoreClient::send_partition_name_to_vals(const std::string& part_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.deleteData = &deleteData;
+ ThriftHiveMetastore_partition_name_to_vals_pargs args;
+ args.part_name = &part_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10294,7 +14089,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_partition()
+void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10315,47 +14110,41 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_partition") != 0) {
+ if (fname.compare("partition_name_to_vals") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- bool _return;
- ThriftHiveMetastore_drop_partition_presult result;
+ ThriftHiveMetastore_partition_name_to_vals_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- return _return;
+ // _return pointer has now been filled
+ return;
}
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_vals failed: unknown result");
}
-bool ThriftHiveMetastoreClient::drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
+void ThriftHiveMetastoreClient::partition_name_to_spec(std::map & _return, const std::string& part_name)
{
- send_drop_partition_by_name(db_name, tbl_name, part_name, deleteData);
- return recv_drop_partition_by_name();
+ send_partition_name_to_spec(part_name);
+ recv_partition_name_to_spec(_return);
}
-void ThriftHiveMetastoreClient::send_drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_partition_name_to_spec(const std::string& part_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
+ ThriftHiveMetastore_partition_name_to_spec_pargs args;
args.part_name = &part_name;
- args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10363,7 +14152,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_partition_by_name()
+void ThriftHiveMetastoreClient::recv_partition_name_to_spec(std::map & _return)
{
int32_t rseqid = 0;
@@ -10384,46 +14173,42 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_partition_by_name") != 0) {
+ if (fname.compare("partition_name_to_spec") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- bool _return;
- ThriftHiveMetastore_drop_partition_by_name_presult result;
+ ThriftHiveMetastore_partition_name_to_spec_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- return _return;
+ // _return pointer has now been filled
+ return;
}
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_partition_by_name failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_spec failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
+void ThriftHiveMetastoreClient::add_index(Index& _return, const Index& new_index, const Table& index_table)
{
- send_get_partition(db_name, tbl_name, part_vals);
- recv_get_partition(_return);
+ send_add_index(new_index, index_table);
+ recv_add_index(_return);
}
-void ThriftHiveMetastoreClient::send_get_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
+void ThriftHiveMetastoreClient::send_add_index(const Index& new_index, const Table& index_table)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_index", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
+ ThriftHiveMetastore_add_index_pargs args;
+ args.new_index = &new_index;
+ args.index_table = &index_table;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10431,7 +14216,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return)
+void ThriftHiveMetastoreClient::recv_add_index(Index& _return)
{
int32_t rseqid = 0;
@@ -10452,13 +14237,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partition") != 0) {
+ if (fname.compare("add_index") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partition_presult result;
+ ThriftHiveMetastore_add_index_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10474,24 +14259,28 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition failed: unknown result");
+ if (result.__isset.o3) {
+ throw result.o3;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_index failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
+void ThriftHiveMetastoreClient::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
{
- send_get_partition_by_name(db_name, tbl_name, part_name);
- recv_get_partition_by_name(_return);
+ send_alter_index(dbname, base_tbl_name, idx_name, new_idx);
+ recv_alter_index();
}
-void ThriftHiveMetastoreClient::send_get_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name)
+void ThriftHiveMetastoreClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partition_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.part_name = &part_name;
+ ThriftHiveMetastore_alter_index_pargs args;
+ args.dbname = &dbname;
+ args.base_tbl_name = &base_tbl_name;
+ args.idx_name = &idx_name;
+ args.new_idx = &new_idx;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10499,7 +14288,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return)
+void ThriftHiveMetastoreClient::recv_alter_index()
{
int32_t rseqid = 0;
@@ -10520,46 +14309,42 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partition_by_name") != 0) {
+ if (fname.compare("alter_index") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partition_by_name_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_alter_index_presult result;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
- return;
- }
if (result.__isset.o1) {
throw result.o1;
}
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_by_name failed: unknown result");
+ return;
}
-void ThriftHiveMetastoreClient::get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
+bool ThriftHiveMetastoreClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
{
- send_get_partitions(db_name, tbl_name, max_parts);
- recv_get_partitions(_return);
+ send_drop_index_by_name(db_name, tbl_name, index_name, deleteData);
+ return recv_drop_index_by_name();
}
-void ThriftHiveMetastoreClient::send_get_partitions(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
+void ThriftHiveMetastoreClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partitions_pargs args;
+ ThriftHiveMetastore_drop_index_by_name_pargs args;
args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.max_parts = &max_parts;
+ args.index_name = &index_name;
+ args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10567,7 +14352,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_drop_index_by_name()
{
int32_t rseqid = 0;
@@ -10588,21 +14373,21 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partitions") != 0) {
+ if (fname.compare("drop_index_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partitions_presult result;
+ bool _return;
+ ThriftHiveMetastore_drop_index_by_name_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- // _return pointer has now been filled
- return;
+ return _return;
}
if (result.__isset.o1) {
throw result.o1;
@@ -10610,24 +14395,24 @@
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
+void ThriftHiveMetastoreClient::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
{
- send_get_partition_names(db_name, tbl_name, max_parts);
- recv_get_partition_names(_return);
+ send_get_index_by_name(db_name, tbl_name, index_name);
+ recv_get_index_by_name(_return);
}
-void ThriftHiveMetastoreClient::send_get_partition_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_parts)
+void ThriftHiveMetastoreClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partition_names_pargs args;
+ ThriftHiveMetastore_get_index_by_name_pargs args;
args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.max_parts = &max_parts;
+ args.index_name = &index_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10635,7 +14420,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition_names(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return)
{
int32_t rseqid = 0;
@@ -10656,13 +14441,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partition_names") != 0) {
+ if (fname.compare("get_index_by_name") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partition_names_presult result;
+ ThriftHiveMetastore_get_index_by_name_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10672,28 +14457,30 @@
// _return pointer has now been filled
return;
}
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
if (result.__isset.o2) {
throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
+void ThriftHiveMetastoreClient::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
{
- send_get_partitions_ps(db_name, tbl_name, part_vals, max_parts);
- recv_get_partitions_ps(_return);
+ send_get_indexes(db_name, tbl_name, max_indexes);
+ recv_get_indexes(_return);
}
-void ThriftHiveMetastoreClient::send_get_partitions_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
+void ThriftHiveMetastoreClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partitions_ps_pargs args;
+ ThriftHiveMetastore_get_indexes_pargs args;
args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.max_parts = &max_parts;
+ args.max_indexes = &max_indexes;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10701,7 +14488,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partitions_ps(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_indexes(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10722,13 +14509,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partitions_ps") != 0) {
+ if (fname.compare("get_indexes") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partitions_ps_presult result;
+ ThriftHiveMetastore_get_indexes_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10741,25 +14528,27 @@
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_ps failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
+void ThriftHiveMetastoreClient::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
{
- send_get_partition_names_ps(db_name, tbl_name, part_vals, max_parts);
- recv_get_partition_names_ps(_return);
+ send_get_index_names(db_name, tbl_name, max_indexes);
+ recv_get_index_names(_return);
}
-void ThriftHiveMetastoreClient::send_get_partition_names_ps(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts)
+void ThriftHiveMetastoreClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partition_names_ps_pargs args;
+ ThriftHiveMetastore_get_index_names_pargs args;
args.db_name = &db_name;
args.tbl_name = &tbl_name;
- args.part_vals = &part_vals;
- args.max_parts = &max_parts;
+ args.max_indexes = &max_indexes;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10767,7 +14556,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10788,13 +14577,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partition_names_ps") != 0) {
+ if (fname.compare("get_index_names") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partition_names_ps_presult result;
+ ThriftHiveMetastore_get_index_names_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -10804,28 +14593,25 @@
// _return pointer has now been filled
return;
}
- if (result.__isset.o1) {
- throw result.o1;
+ if (result.__isset.o2) {
+ throw result.o2;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partition_names_ps failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_names failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts)
+bool ThriftHiveMetastoreClient::create_role(const Role& role)
{
- send_get_partitions_by_filter(db_name, tbl_name, filter, max_parts);
- recv_get_partitions_by_filter(_return);
+ send_create_role(role);
+ return recv_create_role();
}
-void ThriftHiveMetastoreClient::send_get_partitions_by_filter(const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts)
+void ThriftHiveMetastoreClient::send_create_role(const Role& role)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("create_role", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_partitions_by_filter_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.filter = &filter;
- args.max_parts = &max_parts;
+ ThriftHiveMetastore_create_role_pargs args;
+ args.role = &role;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10833,7 +14619,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_create_role()
{
int32_t rseqid = 0;
@@ -10854,46 +14640,41 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_partitions_by_filter") != 0) {
+ if (fname.compare("create_role") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_partitions_by_filter_presult result;
+ bool _return;
+ ThriftHiveMetastore_create_role_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- // _return pointer has now been filled
- return;
+ return _return;
}
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_by_filter failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_role failed: unknown result");
}
-void ThriftHiveMetastoreClient::alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
+bool ThriftHiveMetastoreClient::drop_role(const std::string& role_name)
{
- send_alter_partition(db_name, tbl_name, new_part);
- recv_alter_partition();
+ send_drop_role(role_name);
+ return recv_drop_role();
}
-void ThriftHiveMetastoreClient::send_alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part)
+void ThriftHiveMetastoreClient::send_drop_role(const std::string& role_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_alter_partition_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.new_part = &new_part;
+ ThriftHiveMetastore_drop_role_pargs args;
+ args.role_name = &role_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10901,7 +14682,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_partition()
+bool ThriftHiveMetastoreClient::recv_drop_role()
{
int32_t rseqid = 0;
@@ -10922,40 +14703,46 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("alter_partition") != 0) {
+ if (fname.compare("drop_role") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_alter_partition_presult result;
+ bool _return;
+ ThriftHiveMetastore_drop_role_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ return _return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_role failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_config_value(std::string& _return, const std::string& name, const std::string& defaultValue)
+bool ThriftHiveMetastoreClient::grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option)
{
- send_get_config_value(name, defaultValue);
- recv_get_config_value(_return);
+ send_grant_role(role_name, principal_name, principal_type, grantor, grantorType, grant_option);
+ return recv_grant_role();
}
-void ThriftHiveMetastoreClient::send_get_config_value(const std::string& name, const std::string& defaultValue)
+void ThriftHiveMetastoreClient::send_grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_config_value_pargs args;
- args.name = &name;
- args.defaultValue = &defaultValue;
+ ThriftHiveMetastore_grant_role_pargs args;
+ args.role_name = &role_name;
+ args.principal_name = &principal_name;
+ args.principal_type = &principal_type;
+ args.grantor = &grantor;
+ args.grantorType = &grantorType;
+ args.grant_option = &grant_option;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -10963,7 +14750,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return)
+bool ThriftHiveMetastoreClient::recv_grant_role()
{
int32_t rseqid = 0;
@@ -10984,41 +14771,43 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_config_value") != 0) {
+ if (fname.compare("grant_role") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_config_value_presult result;
+ bool _return;
+ ThriftHiveMetastore_grant_role_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- // _return pointer has now been filled
- return;
+ return _return;
}
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_config_value failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_role failed: unknown result");
}
-void ThriftHiveMetastoreClient::partition_name_to_vals(std::vector & _return, const std::string& part_name)
+bool ThriftHiveMetastoreClient::revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type)
{
- send_partition_name_to_vals(part_name);
- recv_partition_name_to_vals(_return);
+ send_revoke_role(role_name, principal_name, principal_type);
+ return recv_revoke_role();
}
-void ThriftHiveMetastoreClient::send_partition_name_to_vals(const std::string& part_name)
+void ThriftHiveMetastoreClient::send_revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_partition_name_to_vals_pargs args;
- args.part_name = &part_name;
+ ThriftHiveMetastore_revoke_role_pargs args;
+ args.role_name = &role_name;
+ args.principal_name = &principal_name;
+ args.principal_type = &principal_type;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11026,7 +14815,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_revoke_role()
{
int32_t rseqid = 0;
@@ -11047,41 +14836,42 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("partition_name_to_vals") != 0) {
+ if (fname.compare("revoke_role") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_partition_name_to_vals_presult result;
+ bool _return;
+ ThriftHiveMetastore_revoke_role_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
if (result.__isset.success) {
- // _return pointer has now been filled
- return;
+ return _return;
}
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_vals failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_role failed: unknown result");
}
-void ThriftHiveMetastoreClient::partition_name_to_spec(std::map & _return, const std::string& part_name)
+void ThriftHiveMetastoreClient::list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type)
{
- send_partition_name_to_spec(part_name);
- recv_partition_name_to_spec(_return);
+ send_list_roles(principal_name, principal_type);
+ recv_list_roles(_return);
}
-void ThriftHiveMetastoreClient::send_partition_name_to_spec(const std::string& part_name)
+void ThriftHiveMetastoreClient::send_list_roles(const std::string& principal_name, const PrincipalType::type principal_type)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_partition_name_to_spec_pargs args;
- args.part_name = &part_name;
+ ThriftHiveMetastore_list_roles_pargs args;
+ args.principal_name = &principal_name;
+ args.principal_type = &principal_type;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11089,7 +14879,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_partition_name_to_spec(std::map & _return)
+void ThriftHiveMetastoreClient::recv_list_roles(std::vector & _return)
{
int32_t rseqid = 0;
@@ -11110,13 +14900,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("partition_name_to_spec") != 0) {
+ if (fname.compare("list_roles") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_partition_name_to_spec_presult result;
+ ThriftHiveMetastore_list_roles_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -11129,23 +14919,24 @@
if (result.__isset.o1) {
throw result.o1;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "partition_name_to_spec failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_roles failed: unknown result");
}
-void ThriftHiveMetastoreClient::add_index(Index& _return, const Index& new_index, const Table& index_table)
+void ThriftHiveMetastoreClient::get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names)
{
- send_add_index(new_index, index_table);
- recv_add_index(_return);
+ send_get_privilege_set(hiveObject, user_name, group_names);
+ recv_get_privilege_set(_return);
}
-void ThriftHiveMetastoreClient::send_add_index(const Index& new_index, const Table& index_table)
+void ThriftHiveMetastoreClient::send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("add_index", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_add_index_pargs args;
- args.new_index = &new_index;
- args.index_table = &index_table;
+ ThriftHiveMetastore_get_privilege_set_pargs args;
+ args.hiveObject = &hiveObject;
+ args.user_name = &user_name;
+ args.group_names = &group_names;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11153,7 +14944,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_add_index(Index& _return)
+void ThriftHiveMetastoreClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return)
{
int32_t rseqid = 0;
@@ -11174,13 +14965,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("add_index") != 0) {
+ if (fname.compare("get_privilege_set") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_add_index_presult result;
+ ThriftHiveMetastore_get_privilege_set_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -11193,31 +14984,24 @@
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- if (result.__isset.o3) {
- throw result.o3;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "add_index failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_privilege_set failed: unknown result");
}
-void ThriftHiveMetastoreClient::alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
+void ThriftHiveMetastoreClient::list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject)
{
- send_alter_index(dbname, base_tbl_name, idx_name, new_idx);
- recv_alter_index();
+ send_list_privileges(principal_name, principal_type, hiveObject);
+ recv_list_privileges(_return);
}
-void ThriftHiveMetastoreClient::send_alter_index(const std::string& dbname, const std::string& base_tbl_name, const std::string& idx_name, const Index& new_idx)
+void ThriftHiveMetastoreClient::send_list_privileges(const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_alter_index_pargs args;
- args.dbname = &dbname;
- args.base_tbl_name = &base_tbl_name;
- args.idx_name = &idx_name;
- args.new_idx = &new_idx;
+ ThriftHiveMetastore_list_privileges_pargs args;
+ args.principal_name = &principal_name;
+ args.principal_type = &principal_type;
+ args.hiveObject = &hiveObject;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11225,7 +15009,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_index()
+void ThriftHiveMetastoreClient::recv_list_privileges(std::vector & _return)
{
int32_t rseqid = 0;
@@ -11246,42 +15030,41 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("alter_index") != 0) {
+ if (fname.compare("list_privileges") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_alter_index_presult result;
+ ThriftHiveMetastore_list_privileges_presult result;
+ result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
+ if (result.__isset.success) {
+ // _return pointer has now been filled
+ return;
+ }
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- return;
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_privileges failed: unknown result");
}
-bool ThriftHiveMetastoreClient::drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
+bool ThriftHiveMetastoreClient::grant_privileges(const PrivilegeBag& privileges)
{
- send_drop_index_by_name(db_name, tbl_name, index_name, deleteData);
- return recv_drop_index_by_name();
+ send_grant_privileges(privileges);
+ return recv_grant_privileges();
}
-void ThriftHiveMetastoreClient::send_drop_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_grant_privileges(const PrivilegeBag& privileges)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_index_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.index_name = &index_name;
- args.deleteData = &deleteData;
+ ThriftHiveMetastore_grant_privileges_pargs args;
+ args.privileges = &privileges;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11289,7 +15072,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_index_by_name()
+bool ThriftHiveMetastoreClient::recv_grant_privileges()
{
int32_t rseqid = 0;
@@ -11310,14 +15093,14 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_index_by_name") != 0) {
+ if (fname.compare("grant_privileges") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
bool _return;
- ThriftHiveMetastore_drop_index_by_name_presult result;
+ ThriftHiveMetastore_grant_privileges_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -11329,27 +15112,22 @@
if (result.__isset.o1) {
throw result.o1;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_index_by_name failed: unknown result");
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "grant_privileges failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
+bool ThriftHiveMetastoreClient::revoke_privileges(const PrivilegeBag& privileges)
{
- send_get_index_by_name(db_name, tbl_name, index_name);
- recv_get_index_by_name(_return);
+ send_revoke_privileges(privileges);
+ return recv_revoke_privileges();
}
-void ThriftHiveMetastoreClient::send_get_index_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& index_name)
+void ThriftHiveMetastoreClient::send_revoke_privileges(const PrivilegeBag& privileges)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_index_by_name_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.index_name = &index_name;
+ ThriftHiveMetastore_revoke_privileges_pargs args;
+ args.privileges = &privileges;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -11357,7 +15135,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return)
+bool ThriftHiveMetastoreClient::recv_revoke_privileges()
{
int32_t rseqid = 0;
@@ -11378,222 +15156,428 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_index_by_name") != 0) {
+ if (fname.compare("revoke_privileges") != 0) {
iprot_->skip(::apache::thrift::protocol::T_STRUCT);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
}
- ThriftHiveMetastore_get_index_by_name_presult result;
+ bool _return;
+ ThriftHiveMetastore_revoke_privileges_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
+ if (result.__isset.success) {
+ return _return;
+ }
+ if (result.__isset.o1) {
+ throw result.o1;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "revoke_privileges failed: unknown result");
+}
+
+bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot) {
+
+ ::apache::thrift::protocol::TProtocol* iprot = piprot.get();
+ ::apache::thrift::protocol::TProtocol* oprot = poprot.get();
+ std::string fname;
+ ::apache::thrift::protocol::TMessageType mtype;
+ int32_t seqid;
+
+ iprot->readMessageBegin(fname, mtype, seqid);
+
+ if (mtype != ::apache::thrift::protocol::T_CALL && mtype != ::apache::thrift::protocol::T_ONEWAY) {
+ iprot->skip(::apache::thrift::protocol::T_STRUCT);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+ ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
+ oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return true;
+ }
+
+ return process_fn(iprot, oprot, fname, seqid);
+}
+
+bool ThriftHiveMetastoreProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid) {
+ std::map::iterator pfn;
+ pfn = processMap_.find(fname);
+ if (pfn == processMap_.end()) {
+ return facebook::fb303::FacebookServiceProcessor::process_fn(iprot, oprot, fname, seqid);
+ }
+ (this->*(pfn->second))(seqid, iprot, oprot);
+ return true;
+}
+
+void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_create_database_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_create_database_result result;
+ try {
+ iface_->create_database(args.database);
+ } catch (AlreadyExistsException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (InvalidObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
+
+ oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_get_database_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_get_database_result result;
+ try {
+ iface_->get_database(result.success, args.name);
+ result.__isset.success = true;
+ } catch (NoSuchObjectException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
+
+ oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_drop_database_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_drop_database_result result;
+ try {
+ iface_->drop_database(args.name, args.deleteData);
+ } catch (NoSuchObjectException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (InvalidOperationException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
return;
}
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_by_name failed: unknown result");
-}
-void ThriftHiveMetastoreClient::get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- send_get_indexes(db_name, tbl_name, max_indexes);
- recv_get_indexes(_return);
+ oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::send_get_indexes(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
+void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_CALL, cseqid);
+ ThriftHiveMetastore_get_databases_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_indexes_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_indexes = &max_indexes;
- args.write(oprot_);
+ ThriftHiveMetastore_get_databases_result result;
+ try {
+ iface_->get_databases(result.success, args.pattern);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
+ oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_indexes(std::vector & _return)
+void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
-
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
- }
- if (fname.compare("get_indexes") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
- }
- ThriftHiveMetastore_get_indexes_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
+ ThriftHiveMetastore_get_all_databases_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
+ ThriftHiveMetastore_get_all_databases_result result;
+ try {
+ iface_->get_all_databases(result.success);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
return;
}
- if (result.__isset.o1) {
- throw result.o1;
- }
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_indexes failed: unknown result");
-}
-void ThriftHiveMetastoreClient::get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
-{
- send_get_index_names(db_name, tbl_name, max_indexes);
- recv_get_index_names(_return);
+ oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes)
+void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_CALL, cseqid);
+ ThriftHiveMetastore_get_type_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_index_names_pargs args;
- args.db_name = &db_name;
- args.tbl_name = &tbl_name;
- args.max_indexes = &max_indexes;
- args.write(oprot_);
+ ThriftHiveMetastore_get_type_result result;
+ try {
+ iface_->get_type(result.success, args.name);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
- oprot_->writeMessageEnd();
- oprot_->getTransport()->flush();
- oprot_->getTransport()->writeEnd();
+ oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & _return)
+void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
-
- int32_t rseqid = 0;
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
+ ThriftHiveMetastore_create_type_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
- iprot_->readMessageBegin(fname, mtype, rseqid);
- if (mtype == ::apache::thrift::protocol::T_EXCEPTION) {
- ::apache::thrift::TApplicationException x;
- x.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw x;
- }
- if (mtype != ::apache::thrift::protocol::T_REPLY) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
- }
- if (fname.compare("get_index_names") != 0) {
- iprot_->skip(::apache::thrift::protocol::T_STRUCT);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::WRONG_METHOD_NAME);
+ ThriftHiveMetastore_create_type_result result;
+ try {
+ result.success = iface_->create_type(args.type);
+ result.__isset.success = true;
+ } catch (AlreadyExistsException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (InvalidObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
}
- ThriftHiveMetastore_get_index_names_presult result;
- result.success = &_return;
- result.read(iprot_);
- iprot_->readMessageEnd();
- iprot_->getTransport()->readEnd();
- if (result.__isset.success) {
- // _return pointer has now been filled
+ oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_drop_type_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_drop_type_result result;
+ try {
+ result.success = iface_->drop_type(args.type);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
return;
}
- if (result.__isset.o2) {
- throw result.o2;
- }
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_names failed: unknown result");
-}
-
-bool ThriftHiveMetastoreProcessor::process(boost::shared_ptr< ::apache::thrift::protocol::TProtocol> piprot, boost::shared_ptr< ::apache::thrift::protocol::TProtocol> poprot) {
- ::apache::thrift::protocol::TProtocol* iprot = piprot.get();
- ::apache::thrift::protocol::TProtocol* oprot = poprot.get();
- std::string fname;
- ::apache::thrift::protocol::TMessageType mtype;
- int32_t seqid;
+ oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
- iprot->readMessageBegin(fname, mtype, seqid);
+void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_get_type_all_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
- if (mtype != ::apache::thrift::protocol::T_CALL && mtype != ::apache::thrift::protocol::T_ONEWAY) {
- iprot->skip(::apache::thrift::protocol::T_STRUCT);
- iprot->readMessageEnd();
- iprot->getTransport()->readEnd();
- ::apache::thrift::TApplicationException x(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
- oprot->writeMessageBegin(fname, ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ ThriftHiveMetastore_get_type_all_result result;
+ try {
+ iface_->get_type_all(result.success, args.name);
+ result.__isset.success = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
- return true;
+ return;
}
- return process_fn(iprot, oprot, fname, seqid);
+ oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreProcessor::process_fn(::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, std::string& fname, int32_t seqid) {
- std::map::iterator pfn;
- pfn = processMap_.find(fname);
- if (pfn == processMap_.end()) {
- return facebook::fb303::FacebookServiceProcessor::process_fn(iprot, oprot, fname, seqid);
+void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_get_fields_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_get_fields_result result;
+ try {
+ iface_->get_fields(result.success, args.db_name, args.table_name);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (UnknownTableException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (UnknownDBException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
}
- (this->*(pfn->second))(seqid, iprot, oprot);
- return true;
+
+ oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_create_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_create_database_args args;
+ ThriftHiveMetastore_get_schema_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_create_database_result result;
+ ThriftHiveMetastore_get_schema_result result;
try {
- iface_->create_database(args.database);
- } catch (AlreadyExistsException &o1) {
+ iface_->get_schema(result.success, args.db_name, args.table_name);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
+ } catch (UnknownTableException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
- } catch (MetaException &o3) {
+ } catch (UnknownDBException &o3) {
result.o3 = o3;
result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11601,33 +15585,38 @@
return;
}
- oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_database_args args;
+ ThriftHiveMetastore_create_table_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_database_result result;
+ ThriftHiveMetastore_create_table_result result;
try {
- iface_->get_database(result.success, args.name);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ iface_->create_table(args.tbl);
+ } catch (AlreadyExistsException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
+ } catch (InvalidObjectException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
+ } catch (NoSuchObjectException &o4) {
+ result.o4 = o4;
+ result.__isset.o4 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11635,35 +15624,32 @@
return;
}
- oprot->writeMessageBegin("get_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_database_args args;
+ ThriftHiveMetastore_drop_table_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_database_result result;
+ ThriftHiveMetastore_drop_table_result result;
try {
- iface_->drop_database(args.name, args.deleteData);
+ iface_->drop_table(args.dbname, args.name, args.deleteData);
} catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (InvalidOperationException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (MetaException &o3) {
result.o3 = o3;
result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11671,30 +15657,30 @@
return;
}
- oprot->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_databases_args args;
+ ThriftHiveMetastore_get_tables_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_databases_result result;
+ ThriftHiveMetastore_get_tables_result result;
try {
- iface_->get_databases(result.success, args.pattern);
+ iface_->get_tables(result.success, args.db_name, args.pattern);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11702,30 +15688,30 @@
return;
}
- oprot->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_all_databases(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_all_databases_args args;
+ ThriftHiveMetastore_get_all_tables_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_all_databases_result result;
+ ThriftHiveMetastore_get_all_tables_result result;
try {
- iface_->get_all_databases(result.success);
+ iface_->get_all_tables(result.success, args.db_name);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11733,33 +15719,103 @@
return;
}
- oprot->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_get_table_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_get_table_result result;
+ try {
+ iface_->get_table(result.success, args.dbname, args.tbl_name);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
+
+ oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_REPLY, seqid);
+ result.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_alter_table_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_alter_table_result result;
+ try {
+ iface_->alter_table(args.dbname, args.tbl_name, args.new_tbl);
+ } catch (InvalidOperationException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
+ } catch (const std::exception& e) {
+ ::apache::thrift::TApplicationException x(e.what());
+ oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
+
+ oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_type_args args;
+ ThriftHiveMetastore_add_partition_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_type_result result;
+ ThriftHiveMetastore_add_partition_result result;
try {
- iface_->get_type(result.success, args.name);
+ iface_->add_partition(result.success, args.new_part);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (InvalidObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
+ } catch (AlreadyExistsException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11767,28 +15823,28 @@
return;
}
- oprot->writeMessageBegin("get_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_create_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_create_type_args args;
+ ThriftHiveMetastore_append_partition_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_create_type_result result;
+ ThriftHiveMetastore_append_partition_result result;
try {
- result.success = iface_->create_type(args.type);
+ iface_->append_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
result.__isset.success = true;
- } catch (AlreadyExistsException &o1) {
+ } catch (InvalidObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
+ } catch (AlreadyExistsException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (MetaException &o3) {
@@ -11796,7 +15852,7 @@
result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11804,33 +15860,36 @@
return;
}
- oprot->writeMessageBegin("create_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_type(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_type_args args;
+ ThriftHiveMetastore_append_partition_by_name_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_type_result result;
+ ThriftHiveMetastore_append_partition_by_name_result result;
try {
- result.success = iface_->drop_type(args.type);
+ iface_->append_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (InvalidObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
+ } catch (AlreadyExistsException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11838,30 +15897,33 @@
return;
}
- oprot->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_type_all(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_type_all_args args;
+ ThriftHiveMetastore_drop_partition_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_type_all_result result;
+ ThriftHiveMetastore_drop_partition_result result;
try {
- iface_->get_type_all(result.success, args.name);
+ result.success = iface_->drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData);
result.__isset.success = true;
+ } catch (NoSuchObjectException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
} catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11869,36 +15931,33 @@
return;
}
- oprot->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_fields_args args;
+ ThriftHiveMetastore_drop_partition_by_name_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_fields_result result;
+ ThriftHiveMetastore_drop_partition_by_name_result result;
try {
- iface_->get_fields(result.success, args.db_name, args.table_name);
+ result.success = iface_->drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (UnknownTableException &o2) {
+ } catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
- } catch (UnknownDBException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11906,36 +15965,33 @@
return;
}
- oprot->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_schema_args args;
+ ThriftHiveMetastore_get_partition_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_schema_result result;
+ ThriftHiveMetastore_get_partition_result result;
try {
- iface_->get_schema(result.success, args.db_name, args.table_name);
+ iface_->get_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (UnknownTableException &o2) {
+ } catch (NoSuchObjectException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
- } catch (UnknownDBException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11943,38 +15999,33 @@
return;
}
- oprot->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_create_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partition_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_create_table_args args;
+ ThriftHiveMetastore_get_partition_with_auth_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_create_table_result result;
+ ThriftHiveMetastore_get_partition_with_auth_result result;
try {
- iface_->create_table(args.tbl);
- } catch (AlreadyExistsException &o1) {
+ iface_->get_partition_with_auth(result.success, args.db_name, args.tbl_name, args.part_vals, args.user_name, args.group_names);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (InvalidObjectException &o2) {
+ } catch (NoSuchObjectException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
- } catch (NoSuchObjectException &o4) {
- result.o4 = o4;
- result.__isset.o4 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11982,32 +16033,33 @@
return;
}
- oprot->writeMessageBegin("create_table", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partition_with_auth", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_table_args args;
+ ThriftHiveMetastore_get_partition_by_name_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_table_result result;
+ ThriftHiveMetastore_get_partition_by_name_result result;
try {
- iface_->drop_table(args.dbname, args.name, args.deleteData);
- } catch (NoSuchObjectException &o1) {
+ iface_->get_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12015,30 +16067,33 @@
return;
}
- oprot->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_tables_args args;
+ ThriftHiveMetastore_get_partitions_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_tables_result result;
+ ThriftHiveMetastore_get_partitions_result result;
try {
- iface_->get_tables(result.success, args.db_name, args.pattern);
+ iface_->get_partitions(result.success, args.db_name, args.tbl_name, args.max_parts);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12046,30 +16101,33 @@
return;
}
- oprot->writeMessageBegin("get_tables", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_all_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partitions_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_all_tables_args args;
+ ThriftHiveMetastore_get_partitions_with_auth_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_all_tables_result result;
+ ThriftHiveMetastore_get_partitions_with_auth_result result;
try {
- iface_->get_all_tables(result.success, args.db_name);
+ iface_->get_partitions_with_auth(result.success, args.db_name, args.tbl_name, args.max_parts, args.user_name, args.group_names);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12077,33 +16135,30 @@
return;
}
- oprot->writeMessageBegin("get_all_tables", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partitions_with_auth", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_table_args args;
+ ThriftHiveMetastore_get_partition_names_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_table_result result;
+ ThriftHiveMetastore_get_partition_names_result result;
try {
- iface_->get_table(result.success, args.dbname, args.tbl_name);
+ iface_->get_partition_names(result.success, args.db_name, args.tbl_name, args.max_parts);
result.__isset.success = true;
- } catch (MetaException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
+ } catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12111,32 +16166,30 @@
return;
}
- oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_alter_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_alter_table_args args;
+ ThriftHiveMetastore_get_partitions_ps_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_alter_table_result result;
+ ThriftHiveMetastore_get_partitions_ps_result result;
try {
- iface_->alter_table(args.dbname, args.tbl_name, args.new_tbl);
- } catch (InvalidOperationException &o1) {
+ iface_->get_partitions_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12144,36 +16197,33 @@
return;
}
- oprot->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_add_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partitions_ps_with_auth(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_add_partition_args args;
+ ThriftHiveMetastore_get_partitions_ps_with_auth_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_add_partition_result result;
+ ThriftHiveMetastore_get_partitions_ps_with_auth_result result;
try {
- iface_->add_partition(result.success, args.new_part);
+ iface_->get_partitions_ps_with_auth(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts, args.user_name, args.group_names);
result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
+ } catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12181,36 +16231,30 @@
return;
}
- oprot->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partitions_ps_with_auth", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_append_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_append_partition_args args;
+ ThriftHiveMetastore_get_partition_names_ps_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_append_partition_result result;
+ ThriftHiveMetastore_get_partition_names_ps_result result;
try {
- iface_->append_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
+ iface_->get_partition_names_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12218,36 +16262,33 @@
return;
}
- oprot->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_append_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_append_partition_by_name_args args;
+ ThriftHiveMetastore_get_partitions_by_filter_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_append_partition_by_name_result result;
+ ThriftHiveMetastore_get_partitions_by_filter_result result;
try {
- iface_->append_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
+ iface_->get_partitions_by_filter(result.success, args.db_name, args.tbl_name, args.filter, args.max_parts);
result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12255,25 +16296,24 @@
return;
}
- oprot->writeMessageBegin("append_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_partition_args args;
+ ThriftHiveMetastore_alter_partition_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_partition_result result;
+ ThriftHiveMetastore_alter_partition_result result;
try {
- result.success = iface_->drop_partition(args.db_name, args.tbl_name, args.part_vals, args.deleteData);
- result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ iface_->alter_partition(args.db_name, args.tbl_name, args.new_part);
+ } catch (InvalidOperationException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (MetaException &o2) {
@@ -12281,7 +16321,7 @@
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12289,33 +16329,30 @@
return;
}
- oprot->writeMessageBegin("drop_partition", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_partition_by_name_args args;
+ ThriftHiveMetastore_get_config_value_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_partition_by_name_result result;
+ ThriftHiveMetastore_get_config_value_result result;
try {
- result.success = iface_->drop_partition_by_name(args.db_name, args.tbl_name, args.part_name, args.deleteData);
+ iface_->get_config_value(result.success, args.name, args.defaultValue);
result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ } catch (ConfigValSecurityException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12323,33 +16360,30 @@
return;
}
- oprot->writeMessageBegin("drop_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partition_args args;
+ ThriftHiveMetastore_partition_name_to_vals_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partition_result result;
+ ThriftHiveMetastore_partition_name_to_vals_result result;
try {
- iface_->get_partition(result.success, args.db_name, args.tbl_name, args.part_vals);
+ iface_->partition_name_to_vals(result.success, args.part_name);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12357,33 +16391,30 @@
return;
}
- oprot->writeMessageBegin("get_partition", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partition_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partition_by_name_args args;
+ ThriftHiveMetastore_partition_name_to_spec_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partition_by_name_result result;
+ ThriftHiveMetastore_partition_name_to_spec_result result;
try {
- iface_->get_partition_by_name(result.success, args.db_name, args.tbl_name, args.part_name);
+ iface_->partition_name_to_spec(result.success, args.part_name);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12391,33 +16422,36 @@
return;
}
- oprot->writeMessageBegin("get_partition_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partitions(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partitions_args args;
+ ThriftHiveMetastore_add_index_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partitions_result result;
+ ThriftHiveMetastore_add_index_result result;
try {
- iface_->get_partitions(result.success, args.db_name, args.tbl_name, args.max_parts);
+ iface_->add_index(result.success, args.new_index, args.index_table);
result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ } catch (InvalidObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
+ } catch (AlreadyExistsException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
+ } catch (MetaException &o3) {
+ result.o3 = o3;
+ result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12425,30 +16459,32 @@
return;
}
- oprot->writeMessageBegin("get_partitions", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partition_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partition_names_args args;
+ ThriftHiveMetastore_alter_index_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partition_names_result result;
+ ThriftHiveMetastore_alter_index_result result;
try {
- iface_->get_partition_names(result.success, args.db_name, args.tbl_name, args.max_parts);
- result.__isset.success = true;
+ iface_->alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx);
+ } catch (InvalidOperationException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
} catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12456,30 +16492,33 @@
return;
}
- oprot->writeMessageBegin("get_partition_names", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partitions_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partitions_ps_args args;
+ ThriftHiveMetastore_drop_index_by_name_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partitions_ps_result result;
+ ThriftHiveMetastore_drop_index_by_name_result result;
try {
- iface_->get_partitions_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
+ result.success = iface_->drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
+ } catch (MetaException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12487,30 +16526,33 @@
return;
}
- oprot->writeMessageBegin("get_partitions_ps", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partition_names_ps(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partition_names_ps_args args;
+ ThriftHiveMetastore_get_index_by_name_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partition_names_ps_result result;
+ ThriftHiveMetastore_get_index_by_name_result result;
try {
- iface_->get_partition_names_ps(result.success, args.db_name, args.tbl_name, args.part_vals, args.max_parts);
+ iface_->get_index_by_name(result.success, args.db_name, args.tbl_name, args.index_name);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
+ } catch (NoSuchObjectException &o2) {
+ result.o2 = o2;
+ result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12518,33 +16560,33 @@
return;
}
- oprot->writeMessageBegin("get_partition_names_ps", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_partitions_by_filter(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_partitions_by_filter_args args;
+ ThriftHiveMetastore_get_indexes_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_partitions_by_filter_result result;
+ ThriftHiveMetastore_get_indexes_result result;
try {
- iface_->get_partitions_by_filter(result.success, args.db_name, args.tbl_name, args.filter, args.max_parts);
+ iface_->get_indexes(result.success, args.db_name, args.tbl_name, args.max_indexes);
result.__isset.success = true;
- } catch (MetaException &o1) {
+ } catch (NoSuchObjectException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
+ } catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12552,32 +16594,30 @@
return;
}
- oprot->writeMessageBegin("get_partitions_by_filter", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_alter_partition(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_alter_partition_args args;
+ ThriftHiveMetastore_get_index_names_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_alter_partition_result result;
+ ThriftHiveMetastore_get_index_names_result result;
try {
- iface_->alter_partition(args.db_name, args.tbl_name, args.new_part);
- } catch (InvalidOperationException &o1) {
- result.o1 = o1;
- result.__isset.o1 = true;
+ iface_->get_index_names(result.success, args.db_name, args.tbl_name, args.max_indexes);
+ result.__isset.success = true;
} catch (MetaException &o2) {
result.o2 = o2;
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12585,30 +16625,30 @@
return;
}
- oprot->writeMessageBegin("alter_partition", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_config_value(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_create_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_config_value_args args;
+ ThriftHiveMetastore_create_role_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_config_value_result result;
+ ThriftHiveMetastore_create_role_result result;
try {
- iface_->get_config_value(result.success, args.name, args.defaultValue);
+ result.success = iface_->create_role(args.role);
result.__isset.success = true;
- } catch (ConfigValSecurityException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("create_role", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12616,30 +16656,30 @@
return;
}
- oprot->writeMessageBegin("get_config_value", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("create_role", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_partition_name_to_vals(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_drop_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_partition_name_to_vals_args args;
+ ThriftHiveMetastore_drop_role_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_partition_name_to_vals_result result;
+ ThriftHiveMetastore_drop_role_result result;
try {
- iface_->partition_name_to_vals(result.success, args.part_name);
+ result.success = iface_->drop_role(args.role_name);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12647,30 +16687,30 @@
return;
}
- oprot->writeMessageBegin("partition_name_to_vals", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("drop_role", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_partition_name_to_spec(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_partition_name_to_spec_args args;
+ ThriftHiveMetastore_grant_role_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_partition_name_to_spec_result result;
+ ThriftHiveMetastore_grant_role_result result;
try {
- iface_->partition_name_to_spec(result.success, args.part_name);
+ result.success = iface_->grant_role(args.role_name, args.principal_name, args.principal_type, args.grantor, args.grantorType, args.grant_option);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12678,36 +16718,30 @@
return;
}
- oprot->writeMessageBegin("partition_name_to_spec", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("grant_role", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_add_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_add_index_args args;
+ ThriftHiveMetastore_revoke_role_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_add_index_result result;
+ ThriftHiveMetastore_revoke_role_result result;
try {
- iface_->add_index(result.success, args.new_index, args.index_table);
+ result.success = iface_->revoke_role(args.role_name, args.principal_name, args.principal_type);
result.__isset.success = true;
- } catch (InvalidObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (AlreadyExistsException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
- } catch (MetaException &o3) {
- result.o3 = o3;
- result.__isset.o3 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12715,32 +16749,30 @@
return;
}
- oprot->writeMessageBegin("add_index", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("revoke_role", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_alter_index(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_alter_index_args args;
+ ThriftHiveMetastore_list_roles_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_alter_index_result result;
+ ThriftHiveMetastore_list_roles_result result;
try {
- iface_->alter_index(args.dbname, args.base_tbl_name, args.idx_name, args.new_idx);
- } catch (InvalidOperationException &o1) {
+ iface_->list_roles(result.success, args.principal_name, args.principal_type);
+ result.__isset.success = true;
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12748,33 +16780,30 @@
return;
}
- oprot->writeMessageBegin("alter_index", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("list_roles", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_drop_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_drop_index_by_name_args args;
+ ThriftHiveMetastore_get_privilege_set_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_index_by_name_result result;
+ ThriftHiveMetastore_get_privilege_set_result result;
try {
- result.success = iface_->drop_index_by_name(args.db_name, args.tbl_name, args.index_name, args.deleteData);
+ iface_->get_privilege_set(result.success, args.hiveObject, args.user_name, args.group_names);
result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12782,33 +16811,30 @@
return;
}
- oprot->writeMessageBegin("drop_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_privilege_set", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_index_by_name_args args;
+ ThriftHiveMetastore_list_privileges_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_index_by_name_result result;
+ ThriftHiveMetastore_list_privileges_result result;
try {
- iface_->get_index_by_name(result.success, args.db_name, args.tbl_name, args.index_name);
+ iface_->list_privileges(result.success, args.principal_name, args.principal_type, args.hiveObject);
result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (NoSuchObjectException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12816,33 +16842,30 @@
return;
}
- oprot->writeMessageBegin("get_index_by_name", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("list_privileges", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_indexes_args args;
+ ThriftHiveMetastore_grant_privileges_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_indexes_result result;
+ ThriftHiveMetastore_grant_privileges_result result;
try {
- iface_->get_indexes(result.success, args.db_name, args.tbl_name, args.max_indexes);
+ result.success = iface_->grant_privileges(args.privileges);
result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12850,30 +16873,30 @@
return;
}
- oprot->writeMessageBegin("get_indexes", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("grant_privileges", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
oprot->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_revoke_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_index_names_args args;
+ ThriftHiveMetastore_revoke_privileges_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_index_names_result result;
+ ThriftHiveMetastore_revoke_privileges_result result;
try {
- iface_->get_index_names(result.success, args.db_name, args.tbl_name, args.max_indexes);
+ result.success = iface_->revoke_privileges(args.privileges);
result.__isset.success = true;
- } catch (MetaException &o2) {
- result.o2 = o2;
- result.__isset.o2 = true;
+ } catch (MetaException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12881,7 +16904,7 @@
return;
}
- oprot->writeMessageBegin("get_index_names", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("revoke_privileges", ::apache::thrift::protocol::T_REPLY, seqid);
result.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
Index: metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h
===================================================================
--- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (revision 1054697)
+++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (working copy)
@@ -38,10 +38,13 @@
virtual bool drop_partition(const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const bool deleteData) = 0;
virtual bool drop_partition_by_name(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const bool deleteData) = 0;
virtual void get_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals) = 0;
+ virtual void get_partition_with_auth(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const std::string& user_name, const std::vector & group_names) = 0;
virtual void get_partition_by_name(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name) = 0;
virtual void get_partitions(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0;
+ virtual void get_partitions_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0;
virtual void get_partition_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_parts) = 0;
virtual void get_partitions_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0;
+ virtual void get_partitions_ps_with_auth(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts, const std::string& user_name, const std::vector & group_names) = 0;
virtual void get_partition_names_ps(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals, const int16_t max_parts) = 0;
virtual void get_partitions_by_filter(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const std::string& filter, const int16_t max_parts) = 0;
virtual void alter_partition(const std::string& db_name, const std::string& tbl_name, const Partition& new_part) = 0;
@@ -54,6 +57,15 @@
virtual void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) = 0;
virtual void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0;
virtual void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0;
+ virtual bool create_role(const Role& role) = 0;
+ virtual bool drop_role(const std::string& role_name) = 0;
+ virtual bool grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option) = 0;
+ virtual bool revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type) = 0;
+ virtual void list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type) = 0;
+ virtual void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) = 0;
+ virtual void list_privileges(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type, const HiveObjectRef& hiveObject) = 0;
+ virtual bool grant_privileges(const PrivilegeBag& privileges) = 0;
+ virtual bool revoke_privileges(const PrivilegeBag& privileges) = 0;
};
class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual public facebook::fb303::FacebookServiceNull {
@@ -132,18 +144,27 @@
void get_partition(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */) {
return;
}
+ void get_partition_with_auth(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const std::string& /* user_name */, const std::vector & /* group_names */) {
+ return;
+ }
void get_partition_by_name(Partition& /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */) {
return;
}
void get_partitions(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) {
return;
}
+ void get_partitions_with_auth(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */, const std::string& /* user_name */, const std::vector & /* group_names */) {
+ return;
+ }
void get_partition_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_parts */) {
return;
}
void get_partitions_ps(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */) {
return;
}
+ void get_partitions_ps_with_auth(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */, const std::string& /* user_name */, const std::vector & /* group_names */) {
+ return;
+ }
void get_partition_names_ps(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const std::vector & /* part_vals */, const int16_t /* max_parts */) {
return;
}
@@ -181,6 +202,39 @@
void get_index_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_indexes */) {
return;
}
+ bool create_role(const Role& /* role */) {
+ bool _return = false;
+ return _return;
+ }
+ bool drop_role(const std::string& /* role_name */) {
+ bool _return = false;
+ return _return;
+ }
+ bool grant_role(const std::string& /* role_name */, const std::string& /* principal_name */, const PrincipalType::type /* principal_type */, const std::string& /* grantor */, const PrincipalType::type /* grantorType */, const bool /* grant_option */) {
+ bool _return = false;
+ return _return;
+ }
+ bool revoke_role(const std::string& /* role_name */, const std::string& /* principal_name */, const PrincipalType::type /* principal_type */) {
+ bool _return = false;
+ return _return;
+ }
+ void list_roles(std::vector & /* _return */, const std::string& /* principal_name */, const PrincipalType::type /* principal_type */) {
+ return;
+ }
+ void get_privilege_set(PrincipalPrivilegeSet& /* _return */, const HiveObjectRef& /* hiveObject */, const std::string& /* user_name */, const std::vector & /* group_names */) {
+ return;
+ }
+ void list_privileges(std::vector & /* _return */, const std::string& /* principal_name */, const PrincipalType::type /* principal_type */, const HiveObjectRef& /* hiveObject */) {
+ return;
+ }
+ bool grant_privileges(const PrivilegeBag& /* privileges */) {
+ bool _return = false;
+ return _return;
+ }
+ bool revoke_privileges(const PrivilegeBag& /* privileges */) {
+ bool _return = false;
+ return _return;
+ }
};
typedef struct _ThriftHiveMetastore_create_database_args__isset {
@@ -2854,6 +2908,138 @@
};
+typedef struct _ThriftHiveMetastore_get_partition_with_auth_args__isset {
+ _ThriftHiveMetastore_get_partition_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), user_name(false), group_names(false) {}
+ bool db_name;
+ bool tbl_name;
+ bool part_vals;
+ bool user_name;
+ bool group_names;
+} _ThriftHiveMetastore_get_partition_with_auth_args__isset;
+
+class ThriftHiveMetastore_get_partition_with_auth_args {
+ public:
+
+ ThriftHiveMetastore_get_partition_with_auth_args() : db_name(""), tbl_name(""), user_name("") {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partition_with_auth_args() throw() {}
+
+ std::string db_name;
+ std::string tbl_name;
+ std::vector part_vals;
+ std::string user_name;
+ std::vector group_names;
+
+ _ThriftHiveMetastore_get_partition_with_auth_args__isset __isset;
+
+ bool operator == (const ThriftHiveMetastore_get_partition_with_auth_args & rhs) const
+ {
+ if (!(db_name == rhs.db_name))
+ return false;
+ if (!(tbl_name == rhs.tbl_name))
+ return false;
+ if (!(part_vals == rhs.part_vals))
+ return false;
+ if (!(user_name == rhs.user_name))
+ return false;
+ if (!(group_names == rhs.group_names))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partition_with_auth_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partition_with_auth_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_get_partition_with_auth_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partition_with_auth_pargs() throw() {}
+
+ const std::string* db_name;
+ const std::string* tbl_name;
+ const std::vector * part_vals;
+ const std::string* user_name;
+ const std::vector * group_names;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partition_with_auth_result__isset {
+ _ThriftHiveMetastore_get_partition_with_auth_result__isset() : success(false), o1(false), o2(false) {}
+ bool success;
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_get_partition_with_auth_result__isset;
+
+class ThriftHiveMetastore_get_partition_with_auth_result {
+ public:
+
+ ThriftHiveMetastore_get_partition_with_auth_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partition_with_auth_result() throw() {}
+
+ Partition success;
+ MetaException o1;
+ NoSuchObjectException o2;
+
+ _ThriftHiveMetastore_get_partition_with_auth_result__isset __isset;
+
+ bool operator == (const ThriftHiveMetastore_get_partition_with_auth_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ if (!(o1 == rhs.o1))
+ return false;
+ if (!(o2 == rhs.o2))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partition_with_auth_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partition_with_auth_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partition_with_auth_presult__isset {
+ _ThriftHiveMetastore_get_partition_with_auth_presult__isset() : success(false), o1(false), o2(false) {}
+ bool success;
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_get_partition_with_auth_presult__isset;
+
+class ThriftHiveMetastore_get_partition_with_auth_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partition_with_auth_presult() throw() {}
+
+ Partition* success;
+ MetaException o1;
+ NoSuchObjectException o2;
+
+ _ThriftHiveMetastore_get_partition_with_auth_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_get_partition_by_name_args__isset {
_ThriftHiveMetastore_get_partition_by_name_args__isset() : db_name(false), tbl_name(false), part_name(false) {}
bool db_name;
@@ -3098,6 +3284,138 @@
};
+typedef struct _ThriftHiveMetastore_get_partitions_with_auth_args__isset {
+ _ThriftHiveMetastore_get_partitions_with_auth_args__isset() : db_name(false), tbl_name(false), max_parts(false), user_name(false), group_names(false) {}
+ bool db_name;
+ bool tbl_name;
+ bool max_parts;
+ bool user_name;
+ bool group_names;
+} _ThriftHiveMetastore_get_partitions_with_auth_args__isset;
+
+class ThriftHiveMetastore_get_partitions_with_auth_args {
+ public:
+
+ ThriftHiveMetastore_get_partitions_with_auth_args() : db_name(""), tbl_name(""), max_parts(-1), user_name("") {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partitions_with_auth_args() throw() {}
+
+ std::string db_name;
+ std::string tbl_name;
+ int16_t max_parts;
+ std::string user_name;
+ std::vector group_names;
+
+ _ThriftHiveMetastore_get_partitions_with_auth_args__isset __isset;
+
+ bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_args & rhs) const
+ {
+ if (!(db_name == rhs.db_name))
+ return false;
+ if (!(tbl_name == rhs.tbl_name))
+ return false;
+ if (!(max_parts == rhs.max_parts))
+ return false;
+ if (!(user_name == rhs.user_name))
+ return false;
+ if (!(group_names == rhs.group_names))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partitions_with_auth_args &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partitions_with_auth_args & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+
+class ThriftHiveMetastore_get_partitions_with_auth_pargs {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partitions_with_auth_pargs() throw() {}
+
+ const std::string* db_name;
+ const std::string* tbl_name;
+ const int16_t* max_parts;
+ const std::string* user_name;
+ const std::vector * group_names;
+
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partitions_with_auth_result__isset {
+ _ThriftHiveMetastore_get_partitions_with_auth_result__isset() : success(false), o1(false), o2(false) {}
+ bool success;
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_get_partitions_with_auth_result__isset;
+
+class ThriftHiveMetastore_get_partitions_with_auth_result {
+ public:
+
+ ThriftHiveMetastore_get_partitions_with_auth_result() {
+ }
+
+ virtual ~ThriftHiveMetastore_get_partitions_with_auth_result() throw() {}
+
+ std::vector success;
+ NoSuchObjectException o1;
+ MetaException o2;
+
+ _ThriftHiveMetastore_get_partitions_with_auth_result__isset __isset;
+
+ bool operator == (const ThriftHiveMetastore_get_partitions_with_auth_result & rhs) const
+ {
+ if (!(success == rhs.success))
+ return false;
+ if (!(o1 == rhs.o1))
+ return false;
+ if (!(o2 == rhs.o2))
+ return false;
+ return true;
+ }
+ bool operator != (const ThriftHiveMetastore_get_partitions_with_auth_result &rhs) const {
+ return !(*this == rhs);
+ }
+
+ bool operator < (const ThriftHiveMetastore_get_partitions_with_auth_result & ) const;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+ uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
+
+};
+
+typedef struct _ThriftHiveMetastore_get_partitions_with_auth_presult__isset {
+ _ThriftHiveMetastore_get_partitions_with_auth_presult__isset() : success(false), o1(false), o2(false) {}
+ bool success;
+ bool o1;
+ bool o2;
+} _ThriftHiveMetastore_get_partitions_with_auth_presult__isset;
+
+class ThriftHiveMetastore_get_partitions_with_auth_presult {
+ public:
+
+
+ virtual ~ThriftHiveMetastore_get_partitions_with_auth_presult() throw() {}
+
+ std::vector * success;
+ NoSuchObjectException o1;
+ MetaException o2;
+
+ _ThriftHiveMetastore_get_partitions_with_auth_presult__isset __isset;
+
+ uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
+
+};
+
typedef struct _ThriftHiveMetastore_get_partition_names_args__isset {
_ThriftHiveMetastore_get_partition_names_args__isset() : db_name(false), tbl_name(false), max_parts(false) {}
bool db_name;
@@ -3335,30 +3653,34 @@
};
-typedef struct _ThriftHiveMetastore_get_partition_names_ps_args__isset {
- _ThriftHiveMetastore_get_partition_names_ps_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(false) {}
+typedef struct _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset {
+ _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset() : db_name(false), tbl_name(false), part_vals(false), max_parts(false), user_name(false), group_names(false) {}
bool db_name;
bool tbl_name;
bool part_vals;
bool max_parts;
-} _ThriftHiveMetastore_get_partition_names_ps_args__isset;
+ bool user_name;
+ bool group_names;
+} _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset;
-class ThriftHiveMetastore_get_partition_names_ps_args {
+class ThriftHiveMetastore_get_partitions_ps_with_auth_args {
public:
- ThriftHiveMetastore_get_partition_names_ps_args() : db_name(""), tbl_name(""), max_parts(-1) {
+ ThriftHiveMetastore_get_partitions_ps_with_auth_args() : db_name(""), tbl_name(""), max_parts(-1), user_name("") {
}
- virtual ~ThriftHiveMetastore_get_partition_names_ps_args() throw() {}
+ virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_args() throw() {}
std::string db_name;
std::string tbl_name;
std::vector part_vals;
int16_t max_parts;
+ std::string user_name;
+ std::vector group_names;
- _ThriftHiveMetastore_get_partition_names_ps_args__isset __isset;
+ _ThriftHiveMetastore_get_partitions_ps_with_auth_args__isset __isset;
- bool operator == (const ThriftHiveMetastore_get_partition_names_ps_args & rhs) const
+ bool operator == (const ThriftHiveMetastore_get_partitions_ps_with_auth_args & rhs) const
{
if (!(db_name == rhs.db_name))
return false;
@@ -3368,13 +3690,17 @@
return false;
if (!(max_parts == rhs.max_parts))
return false;
+ if (!(user_name == rhs.user_name))
+ return false;
+ if (!(group_names == rhs.group_names))
+ return false;
return true;
}
- bool operator != (const ThriftHiveMetastore_get_partition_names_ps_args &rhs) const {
+ bool operator != (const ThriftHiveMetastore_get_partitions_ps_with_auth_args &rhs) const {
return !(*this == rhs);
}
- bool operator < (const ThriftHiveMetastore_get_partition_names_ps_args & ) const;
+ bool operator < (const ThriftHiveMetastore_get_partitions_ps_with_auth_args & ) const;
uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
@@ -3382,61 +3708,190 @@
};
-class ThriftHiveMetastore_get_partition_names_ps_pargs {
+class ThriftHiveMetastore_get_partitions_ps_with_auth_pargs {
public:
- virtual ~ThriftHiveMetastore_get_partition_names_ps_pargs() throw() {}
+ virtual ~ThriftHiveMetastore_get_partitions_ps_with_auth_pargs() throw() {}
const std::string* db_name;
const std::string* tbl_name;
const std::vector