Index: common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
===================================================================
--- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (revision 1056526)
+++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (working copy)
@@ -259,7 +259,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),
@@ -330,6 +330,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 1056526)
+++ 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 1056526)
+++ 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
}
@@ -210,6 +265,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)
@@ -217,6 +276,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)
@@ -229,6 +291,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)
@@ -273,6 +338,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 1056526)
+++ 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();
}
@@ -1913,17 +1913,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();
}
@@ -1962,11 +1962,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();
}
@@ -2005,17 +2005,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();
}
@@ -2144,14 +2144,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();
}
@@ -2206,10 +2206,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();
}
@@ -2256,14 +2256,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();
}
@@ -2408,14 +2408,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();
}
@@ -2470,10 +2470,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();
}
@@ -2520,14 +2520,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();
}
@@ -3096,14 +3096,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();
}
@@ -3142,10 +3142,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();
}
@@ -3184,14 +3184,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();
}
@@ -3306,14 +3306,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();
}
@@ -3352,10 +3352,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();
}
@@ -3394,14 +3394,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();
}
@@ -4106,14 +4106,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();
}
@@ -4146,10 +4146,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();
}
@@ -4171,10 +4171,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();
}
@@ -4626,14 +4626,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();
}
@@ -4674,10 +4674,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();
}
@@ -4702,10 +4702,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();
}
@@ -5134,14 +5134,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();
}
@@ -5174,10 +5174,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();
}
@@ -5199,10 +5199,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();
}
@@ -5348,7 +5348,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;
@@ -5385,9 +5385,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);
}
@@ -5404,41 +5444,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;
@@ -5494,11 +5578,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);
@@ -5518,7 +5602,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;
@@ -5574,7 +5658,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;
@@ -5611,9 +5695,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);
}
@@ -5630,41 +5714,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;
@@ -5685,20 +5769,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);
@@ -5732,23 +5804,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);
@@ -5764,7 +5828,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;
@@ -5785,20 +5849,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);
@@ -5832,7 +5884,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;
@@ -5888,9 +5940,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();
@@ -5905,9 +5957,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();
@@ -5922,7 +5974,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;
@@ -5946,14 +5998,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();
}
@@ -5964,6 +6016,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 {
@@ -5982,26 +6042,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();
}
@@ -6010,7 +6074,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;
@@ -6034,14 +6098,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();
}
@@ -6052,6 +6116,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 {
@@ -6070,7 +6142,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;
@@ -6107,29 +6179,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);
}
@@ -6146,63 +6226,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;
@@ -6226,14 +6312,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();
}
@@ -6250,6 +6336,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;
@@ -6262,20 +6356,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();
}
@@ -6284,13 +6378,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;
@@ -6314,14 +6412,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();
}
@@ -6338,6 +6436,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;
@@ -6350,7 +6456,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;
@@ -6387,34 +6493,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;
}
@@ -6426,27 +6512,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();
@@ -6454,27 +6529,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();
@@ -6482,7 +6546,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;
@@ -6506,14 +6570,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();
}
@@ -6524,8 +6588,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);
}
@@ -6542,27 +6606,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();
@@ -6570,7 +6634,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;
@@ -6594,14 +6658,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();
}
@@ -6612,8 +6676,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);
}
@@ -6630,7 +6694,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;
@@ -6667,9 +6731,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);
}
@@ -6694,17 +6770,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);
@@ -6714,17 +6798,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)));
@@ -6734,7 +6826,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;
@@ -6758,14 +6850,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();
}
@@ -6782,14 +6874,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;
@@ -6802,20 +6886,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();
}
@@ -6824,17 +6908,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;
@@ -6858,14 +6938,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();
}
@@ -6882,14 +6962,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;
@@ -6902,7 +6974,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;
@@ -6939,9 +7011,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);
}
@@ -6958,41 +7078,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;
@@ -7012,6 +7182,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);
@@ -7040,13 +7230,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();
@@ -7060,7 +7262,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;
@@ -7080,6 +7282,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);
@@ -7108,7 +7330,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;
@@ -7130,16 +7352,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);
}
@@ -7156,35 +7406,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;
@@ -7205,8 +7483,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);
@@ -7232,15 +7522,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);
@@ -7252,7 +7550,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;
@@ -7273,8 +7571,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);
@@ -7300,7 +7610,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;
@@ -7322,8 +7632,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);
}
@@ -7340,29 +7674,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;
@@ -7386,14 +7738,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();
}
@@ -7410,6 +7762,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;
@@ -7422,20 +7782,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();
}
@@ -7444,13 +7804,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;
@@ -7474,14 +7838,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();
}
@@ -7498,6 +7862,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;
@@ -7510,7 +7882,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;
@@ -7532,8 +7904,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);
}
@@ -7550,29 +7938,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;
@@ -7592,33 +7992,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);
}
@@ -7635,36 +8020,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;
@@ -7684,33 +8060,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);
}
@@ -7727,7 +8088,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;
@@ -7748,17 +8109,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);
}
@@ -7775,35 +8136,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;
@@ -7824,8 +8185,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);
@@ -7839,22 +8200,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;
@@ -7867,35 +8212,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;
@@ -7916,8 +8253,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);
@@ -7931,22 +8268,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;
@@ -7959,7 +8280,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;
@@ -7981,32 +8302,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);
}
@@ -8023,47 +8320,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;
@@ -8083,18 +8362,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);
}
@@ -8111,27 +8402,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;
@@ -8151,18 +8450,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);
}
@@ -8179,7 +8490,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;
@@ -8201,32 +8512,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);
}
@@ -8243,47 +8530,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;
@@ -8304,8 +8573,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);
@@ -8319,14 +8603,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;
@@ -8339,31 +8615,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;
@@ -8384,8 +8665,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);
@@ -8399,14 +8695,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;
@@ -8419,7 +8707,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;
@@ -8440,25 +8728,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);
}
@@ -8475,41 +8755,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;
@@ -8553,6 +8827,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;
@@ -8565,11 +8847,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);
@@ -8583,13 +8865,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;
@@ -8633,6 +8919,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;
@@ -8645,7 +8939,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;
@@ -8667,24 +8961,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);
}
@@ -8701,41 +9003,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;
@@ -8755,26 +9063,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);
@@ -8803,25 +9091,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();
@@ -8835,7 +9111,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;
@@ -8855,26 +9131,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);
@@ -8903,7 +9159,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;
@@ -8940,9 +9196,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);
}
@@ -8959,41 +9223,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;
@@ -9014,20 +9284,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);
@@ -9035,6 +9293,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 {
@@ -9053,26 +9319,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();
}
@@ -9081,7 +9343,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;
@@ -9102,20 +9364,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);
@@ -9123,6 +9373,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 {
@@ -9141,32 +9399,3343 @@
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::alter_database(const std::string& dbname, const Database& db)
+{
+ send_alter_database(dbname, db);
+ recv_alter_database();
+}
+
+void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, const Database& db)
+{
+ int32_t cseqid = 0;
+ oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid);
+
+ ThriftHiveMetastore_alter_database_pargs args;
+ args.dbname = &dbname;
+ args.db = &db;
+ args.write(oprot_);
+
+ oprot_->writeMessageEnd();
+ oprot_->getTransport()->flush();
+ oprot_->getTransport()->writeEnd();
+}
+
+void ThriftHiveMetastoreClient::recv_alter_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("alter_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_alter_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;
+ }
+ return;
+}
+
+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) {
@@ -9182,13 +12751,82 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("create_database") != 0) {
+ 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_create_database_presult result;
+ 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();
@@ -9202,22 +12840,27 @@
if (result.__isset.o3) {
throw result.o3;
}
+ if (result.__isset.o4) {
+ throw result.o4;
+ }
return;
}
-void ThriftHiveMetastoreClient::get_database(Database& _return, const std::string& name)
+void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
{
- send_get_database(name);
- recv_get_database(_return);
+ send_drop_table(dbname, name, deleteData);
+ recv_drop_table();
}
-void ThriftHiveMetastoreClient::send_get_database(const std::string& name)
+void ThriftHiveMetastoreClient::send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("drop_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_database_pargs args;
+ ThriftHiveMetastore_drop_table_pargs args;
+ args.dbname = &dbname;
args.name = &name;
+ args.deleteData = &deleteData;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9225,7 +12868,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_database(Database& _return)
+void ThriftHiveMetastoreClient::recv_drop_table()
{
int32_t rseqid = 0;
@@ -9246,13 +12889,75 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_database") != 0) {
+ 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_get_database_presult result;
+ 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();
@@ -9265,26 +12970,86 @@
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");
+}
+
+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) {
+ ::apache::thrift::TApplicationException x;
+ x.read(iprot_);
+ iprot_->readMessageEnd();
+ iprot_->getTransport()->readEnd();
+ throw x;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result");
+ 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_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_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;
+ }
+ throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_all_tables failed: unknown result");
}
-void ThriftHiveMetastoreClient::drop_database(const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::get_table(Table& _return, const std::string& dbname, const std::string& tbl_name)
{
- send_drop_database(name, deleteData);
- recv_drop_database();
+ send_get_table(dbname, tbl_name);
+ recv_get_table(_return);
}
-void ThriftHiveMetastoreClient::send_drop_database(const std::string& name, const bool deleteData)
+void ThriftHiveMetastoreClient::send_get_table(const std::string& dbname, const std::string& tbl_name)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("get_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_drop_database_pargs args;
- args.name = &name;
- args.deleteData = &deleteData;
+ ThriftHiveMetastore_get_table_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9292,7 +13057,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_drop_database()
+void ThriftHiveMetastoreClient::recv_get_table(Table& _return)
{
int32_t rseqid = 0;
@@ -9313,42 +13078,46 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("drop_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_drop_database_presult result;
+ ThriftHiveMetastore_get_table_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_table failed: unknown result");
}
-void ThriftHiveMetastoreClient::get_databases(std::vector & _return, const std::string& pattern)
+void ThriftHiveMetastoreClient::alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
- send_get_databases(pattern);
- recv_get_databases(_return);
+ send_alter_table(dbname, tbl_name, new_tbl);
+ recv_alter_table();
}
-void ThriftHiveMetastoreClient::send_get_databases(const std::string& pattern)
+void ThriftHiveMetastoreClient::send_alter_table(const std::string& dbname, const std::string& tbl_name, const Table& new_tbl)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("alter_table", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_databases_pargs args;
- args.pattern = &pattern;
+ ThriftHiveMetastore_alter_table_pargs args;
+ args.dbname = &dbname;
+ args.tbl_name = &tbl_name;
+ args.new_tbl = &new_tbl;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9356,7 +13125,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_alter_table()
{
int32_t rseqid = 0;
@@ -9377,40 +13146,39 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_databases") != 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_get_databases_presult result;
- result.success = &_return;
+ ThriftHiveMetastore_alter_table_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;
}
- throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result");
+ if (result.__isset.o2) {
+ throw result.o2;
+ }
+ return;
}
-void ThriftHiveMetastoreClient::get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::add_partition(Partition& _return, const Partition& new_part)
{
- send_get_all_databases();
- recv_get_all_databases(_return);
+ send_add_partition(new_part);
+ recv_add_partition(_return);
}
-void ThriftHiveMetastoreClient::send_get_all_databases()
+void ThriftHiveMetastoreClient::send_add_partition(const Partition& new_part)
{
int32_t cseqid = 0;
- oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("add_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_get_all_databases_pargs args;
+ ThriftHiveMetastore_add_partition_pargs args;
+ args.new_part = &new_part;
args.write(oprot_);
oprot_->writeMessageEnd();
@@ -9418,7 +13186,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_all_databases(std::vector & _return)
+void ThriftHiveMetastoreClient::recv_add_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9439,13 +13207,13 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("get_all_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_all_databases_presult result;
+ ThriftHiveMetastore_add_partition_presult result;
result.success = &_return;
result.read(iprot_);
iprot_->readMessageEnd();
@@ -9458,23 +13226,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, "add_partition failed: unknown result");
}
-void ThriftHiveMetastoreClient::alter_database(const std::string& dbname, const Database& db)
+void ThriftHiveMetastoreClient::append_partition(Partition& _return, const std::string& db_name, const std::string& tbl_name, const std::vector & part_vals)
{
- send_alter_database(dbname, db);
- recv_alter_database();
+ send_append_partition(db_name, tbl_name, part_vals);
+ recv_append_partition(_return);
}
-void ThriftHiveMetastoreClient::send_alter_database(const std::string& dbname, const Database& db)
+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("alter_database", ::apache::thrift::protocol::T_CALL, cseqid);
+ oprot_->writeMessageBegin("append_partition", ::apache::thrift::protocol::T_CALL, cseqid);
- ThriftHiveMetastore_alter_database_pargs args;
- args.dbname = &dbname;
- args.db = &db;
+ 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();
@@ -9482,7 +13257,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_database()
+void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9503,39 +13278,49 @@
iprot_->getTransport()->readEnd();
throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::INVALID_MESSAGE_TYPE);
}
- if (fname.compare("alter_database") != 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_alter_database_presult result;
+ ThriftHiveMetastore_append_partition_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;
+ 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();
@@ -9543,7 +13328,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_type(Type& _return)
+void ThriftHiveMetastoreClient::recv_append_partition_by_name(Partition& _return)
{
int32_t rseqid = 0;
@@ -9564,13 +13349,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();
@@ -9586,22 +13371,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();
@@ -9609,7 +13400,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_create_type()
+bool ThriftHiveMetastoreClient::recv_drop_partition()
{
int32_t rseqid = 0;
@@ -9630,14 +13421,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();
@@ -9652,25 +13443,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();
@@ -9678,7 +13469,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_type()
+bool ThriftHiveMetastoreClient::recv_drop_partition_by_name()
{
int32_t rseqid = 0;
@@ -9699,14 +13490,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();
@@ -9721,22 +13512,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();
@@ -9744,7 +13537,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_type_all(std::map & _return)
+void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return)
{
int32_t rseqid = 0;
@@ -9765,13 +13558,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();
@@ -9781,26 +13574,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();
@@ -9808,7 +13607,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;
@@ -9829,13 +13628,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();
@@ -9851,26 +13650,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();
@@ -9878,7 +13675,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;
@@ -9899,13 +13696,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();
@@ -9921,25 +13718,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();
@@ -9947,7 +13743,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_create_table()
+void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return)
{
int32_t rseqid = 0;
@@ -9968,47 +13764,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();
@@ -10016,7 +13813,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_drop_table()
+void ThriftHiveMetastoreClient::recv_get_partitions_with_auth(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10037,40 +13834,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();
@@ -10078,7 +13881,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;
@@ -10099,13 +13902,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();
@@ -10115,25 +13918,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();
@@ -10141,7 +13947,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;
@@ -10162,13 +13968,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();
@@ -10181,23 +13987,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();
@@ -10205,7 +14015,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;
@@ -10226,13 +14036,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();
@@ -10248,24 +14058,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();
@@ -10273,7 +14084,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_table()
+void ThriftHiveMetastoreClient::recv_get_partition_names_ps(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10294,39 +14105,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();
@@ -10334,7 +14150,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;
@@ -10355,13 +14171,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();
@@ -10377,27 +14193,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();
@@ -10405,7 +14218,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_append_partition(Partition& _return)
+void ThriftHiveMetastoreClient::recv_alter_partition()
{
int32_t rseqid = 0;
@@ -10426,49 +14239,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();
@@ -10476,7 +14280,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;
@@ -10497,13 +14301,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();
@@ -10513,34 +14317,25 @@
// _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.o1) {
+ throw result.o1;
}
- 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();
@@ -10548,7 +14343,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_partition()
+void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return)
{
int32_t rseqid = 0;
@@ -10569,47 +14364,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();
@@ -10617,7 +14406,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;
@@ -10638,46 +14427,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();
@@ -10685,7 +14470,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition(Partition& _return)
+void ThriftHiveMetastoreClient::recv_add_index(Index& _return)
{
int32_t rseqid = 0;
@@ -10706,13 +14491,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();
@@ -10728,24 +14513,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();
@@ -10753,7 +14542,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partition_by_name(Partition& _return)
+void ThriftHiveMetastoreClient::recv_alter_index()
{
int32_t rseqid = 0;
@@ -10774,46 +14563,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();
@@ -10821,7 +14606,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partitions(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_drop_index_by_name()
{
int32_t rseqid = 0;
@@ -10842,21 +14627,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;
@@ -10864,24 +14649,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();
@@ -10889,7 +14674,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;
@@ -10910,13 +14695,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();
@@ -10926,28 +14711,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();
@@ -10955,7 +14742,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;
@@ -10976,13 +14763,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();
@@ -10995,25 +14782,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();
@@ -11021,7 +14810,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;
@@ -11042,13 +14831,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();
@@ -11058,28 +14847,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();
@@ -11087,7 +14873,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_partitions_by_filter(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_create_role()
{
int32_t rseqid = 0;
@@ -11108,46 +14894,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)
-{
- send_alter_partition(db_name, tbl_name, new_part);
- recv_alter_partition();
+bool ThriftHiveMetastoreClient::drop_role(const std::string& role_name)
+{
+ 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();
@@ -11155,7 +14936,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_partition()
+bool ThriftHiveMetastoreClient::recv_drop_role()
{
int32_t rseqid = 0;
@@ -11176,40 +14957,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();
@@ -11217,7 +15004,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_config_value(std::string& _return)
+bool ThriftHiveMetastoreClient::recv_grant_role()
{
int32_t rseqid = 0;
@@ -11238,41 +15025,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();
@@ -11280,7 +15069,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_partition_name_to_vals(std::vector & _return)
+bool ThriftHiveMetastoreClient::recv_revoke_role()
{
int32_t rseqid = 0;
@@ -11301,41 +15090,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();
@@ -11343,7 +15133,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;
@@ -11364,13 +15154,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();
@@ -11383,23 +15173,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();
@@ -11407,7 +15198,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_add_index(Index& _return)
+void ThriftHiveMetastoreClient::recv_get_privilege_set(PrincipalPrivilegeSet& _return)
{
int32_t rseqid = 0;
@@ -11428,13 +15219,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();
@@ -11447,31 +15238,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();
@@ -11479,7 +15263,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_alter_index()
+void ThriftHiveMetastoreClient::recv_list_privileges(std::vector & _return)
{
int32_t rseqid = 0;
@@ -11500,42 +15284,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();
@@ -11543,7 +15326,7 @@
oprot_->getTransport()->writeEnd();
}
-bool ThriftHiveMetastoreClient::recv_drop_index_by_name()
+bool ThriftHiveMetastoreClient::recv_grant_privileges()
{
int32_t rseqid = 0;
@@ -11564,14 +15347,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();
@@ -11583,27 +15366,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();
@@ -11611,7 +15389,7 @@
oprot_->getTransport()->writeEnd();
}
-void ThriftHiveMetastoreClient::recv_get_index_by_name(Index& _return)
+bool ThriftHiveMetastoreClient::recv_revoke_privileges()
{
int32_t rseqid = 0;
@@ -11632,222 +15410,424 @@
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
+ 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_alter_database(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_alter_database_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_alter_database_result result;
+ try {
+ iface_->alter_database(args.dbname, args.db);
+ } 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("alter_database", ::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("alter_database", ::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_get_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_get_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_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;
}
- 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("get_type", ::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)
+{
+ ThriftHiveMetastore_create_type_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ 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;
}
- 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("create_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_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();
- 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_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 true;
+ return;
}
- return process_fn(iprot, oprot, fname, seqid);
+ oprot->writeMessageBegin("drop_type", ::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_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();
+
+ 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;
}
- (this->*(pfn->second))(seqid, iprot, oprot);
- return true;
+
+ oprot->writeMessageBegin("get_type_all", ::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_fields(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_create_database_args args;
+ ThriftHiveMetastore_get_fields_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_create_database_result result;
+ ThriftHiveMetastore_get_fields_result result;
try {
- iface_->create_database(args.database);
- } catch (AlreadyExistsException &o1) {
+ 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 (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_fields", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -11855,33 +15835,36 @@
return;
}
- oprot->writeMessageBegin("create_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ oprot->writeMessageBegin("get_fields", ::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_get_schema(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_get_database_args args;
+ ThriftHiveMetastore_get_schema_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_database_result result;
+ ThriftHiveMetastore_get_schema_result result;
try {
- iface_->get_database(result.success, args.name);
+ iface_->get_schema(result.success, args.db_name, args.table_name);
result.__isset.success = true;
- } catch (NoSuchObjectException &o1) {
+ } catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (MetaException &o2) {
+ } 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_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();
@@ -11889,35 +15872,38 @@
return;
}
- oprot->writeMessageBegin("get_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_drop_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_drop_database_args args;
+ ThriftHiveMetastore_create_table_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_drop_database_result result;
+ ThriftHiveMetastore_create_table_result result;
try {
- iface_->drop_database(args.name, args.deleteData);
- } catch (NoSuchObjectException &o1) {
+ iface_->create_table(args.tbl);
+ } catch (AlreadyExistsException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
- } catch (InvalidOperationException &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("drop_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();
@@ -11925,30 +15911,63 @@
return;
}
- oprot->writeMessageBegin("drop_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_get_databases(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_get_databases_args args;
+ ThriftHiveMetastore_drop_table_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_get_databases_result result;
+ ThriftHiveMetastore_drop_table_result result;
try {
- iface_->get_databases(result.success, args.pattern);
+ iface_->drop_table(args.dbname, args.name, args.deleteData);
+ } catch (NoSuchObjectException &o1) {
+ result.o1 = o1;
+ result.__isset.o1 = 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_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ x.write(oprot);
+ oprot->writeMessageEnd();
+ oprot->getTransport()->flush();
+ oprot->getTransport()->writeEnd();
+ return;
+ }
+
+ 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_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+{
+ ThriftHiveMetastore_get_tables_args args;
+ args.read(iprot);
+ iprot->readMessageEnd();
+ iprot->getTransport()->readEnd();
+
+ ThriftHiveMetastore_get_tables_result result;
+ try {
+ 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();
@@ -11956,30 +15975,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();
@@ -11987,23 +16006,24 @@
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_alter_database(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
+void ThriftHiveMetastoreProcessor::process_get_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot)
{
- ThriftHiveMetastore_alter_database_args args;
+ ThriftHiveMetastore_get_table_args args;
args.read(iprot);
iprot->readMessageEnd();
iprot->getTransport()->readEnd();
- ThriftHiveMetastore_alter_database_result result;
+ ThriftHiveMetastore_get_table_result result;
try {
- iface_->alter_database(args.dbname, args.db);
+ iface_->get_table(result.success, args.dbname, args.tbl_name);
+ result.__isset.success = true;
} catch (MetaException &o1) {
result.o1 = o1;
result.__isset.o1 = true;
@@ -12012,7 +16032,7 @@
result.__isset.o2 = true;
} catch (const std::exception& e) {
::apache::thrift::TApplicationException x(e.what());
- oprot->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_EXCEPTION, seqid);
+ oprot->writeMessageBegin("get_table", ::apache::thrift::protocol::T_EXCEPTION, seqid);
x.write(oprot);
oprot->writeMessageEnd();
oprot->getTransport()->flush();
@@ -12020,33 +16040,69 @@
return;
}
- oprot->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_REPLY, seqid);
+ 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();
@@ -12054,28 +16110,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) {
@@ -12083,7 +16139,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();
@@ -12091,33 +16147,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();
@@ -12125,30 +16184,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();
@@ -12156,36 +16218,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();
@@ -12193,36 +16252,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();
@@ -12230,38 +16286,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();
@@ -12269,32 +16320,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();
@@ -12302,30 +16354,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();
@@ -12333,30 +16388,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();
@@ -12364,33 +16422,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();
@@ -12398,32 +16453,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();
@@ -12431,36 +16484,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();
@@ -12468,36 +16518,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();
@@ -12505,36 +16549,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();
@@ -12542,25 +16583,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) {
@@ -12568,7 +16608,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();
@@ -12576,33 +16616,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();
@@ -12610,33 +16647,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();
@@ -12644,33 +16678,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();
@@ -12678,33 +16709,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();
@@ -12712,30 +16746,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();
@@ -12743,30 +16779,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();
@@ -12774,30 +16813,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();
@@ -12805,33 +16847,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();
@@ -12839,32 +16881,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();
@@ -12872,30 +16912,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();
@@ -12903,30 +16943,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();
@@ -12934,30 +16974,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();
@@ -12965,36 +17005,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();
@@ -13002,32 +17036,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();
@@ -13035,33 +17067,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();
@@ -13069,33 +17098,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();
@@ -13103,33 +17129,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();
@@ -13137,30 +17160,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();
@@ -13168,7 +17191,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 1056526)
+++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h (working copy)
@@ -39,10 +39,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;
@@ -55,6 +58,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 {
@@ -136,18 +148,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;
}
@@ -185,6 +206,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 {
@@ -2969,6 +3023,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;
@@ -3213,6 +3399,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;
@@ -3450,30 +3768,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;
@@ -3483,13 +3805,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;
@@ -3497,61 +3823,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