diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index b3f01d6..be14acc 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -138,16 +138,6 @@ struct Role { 1: string roleName, 2: i32 createTime, 3: string ownerName, - - // Following fields are populated by list_roles - // They are ignored during other commands such as role creation - // See RolePrincipalGrant which gives a 'normalized' representation - // of this information - 4: optional string principalName, - 5: optional string principalType, - 6: optional bool grantOption, - 7: optional i32 grantTime, - 8: optional string grantor } // Representation of a grant for a principal to a role @@ -161,12 +151,21 @@ struct RolePrincipalGrant { 7: PrincipalType grantorPrincipalType } +struct GetRoleGrantsForPrincipalRequest { + 1: required string principal_name, + 2: required PrincipalType principal_type +} + +struct GetRoleGrantsForPrincipalResponse { + 1: required list principalGrants; +} + struct GetPrincipalsInRoleRequest { - 1: string roleName; + 1: required string roleName; } struct GetPrincipalsInRoleResponse { - 1: list principalGrants; + 1: required list principalGrants; } // namespace for tables @@ -945,6 +944,11 @@ service ThriftHiveMetastore extends fb303.FacebookService // redundant as it would match the role_name argument of this function GetPrincipalsInRoleResponse get_principals_in_role(1: GetPrincipalsInRoleRequest request) throws(1:MetaException o1) + // get grant information of all roles granted to the given principal + // Note that in the returned list of RolePrincipalGrants, the principal name,type is + // redundant as it would match the principal name,type arguments of this function + GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(1: GetRoleGrantsForPrincipalRequest request) 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, diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 712c2a2..d49efe8 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -736,14 +736,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size338; - ::apache::thrift::protocol::TType _etype341; - xfer += iprot->readListBegin(_etype341, _size338); - this->success.resize(_size338); - uint32_t _i342; - for (_i342 = 0; _i342 < _size338; ++_i342) + uint32_t _size345; + ::apache::thrift::protocol::TType _etype348; + xfer += iprot->readListBegin(_etype348, _size345); + this->success.resize(_size345); + uint32_t _i349; + for (_i349 = 0; _i349 < _size345; ++_i349) { - xfer += iprot->readString(this->success[_i342]); + xfer += iprot->readString(this->success[_i349]); } xfer += iprot->readListEnd(); } @@ -782,10 +782,10 @@ uint32_t ThriftHiveMetastore_get_databases_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter343; - for (_iter343 = this->success.begin(); _iter343 != this->success.end(); ++_iter343) + std::vector ::const_iterator _iter350; + for (_iter350 = this->success.begin(); _iter350 != this->success.end(); ++_iter350) { - xfer += oprot->writeString((*_iter343)); + xfer += oprot->writeString((*_iter350)); } xfer += oprot->writeListEnd(); } @@ -824,14 +824,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size344; - ::apache::thrift::protocol::TType _etype347; - xfer += iprot->readListBegin(_etype347, _size344); - (*(this->success)).resize(_size344); - uint32_t _i348; - for (_i348 = 0; _i348 < _size344; ++_i348) + uint32_t _size351; + ::apache::thrift::protocol::TType _etype354; + xfer += iprot->readListBegin(_etype354, _size351); + (*(this->success)).resize(_size351); + uint32_t _i355; + for (_i355 = 0; _i355 < _size351; ++_i355) { - xfer += iprot->readString((*(this->success))[_i348]); + xfer += iprot->readString((*(this->success))[_i355]); } xfer += iprot->readListEnd(); } @@ -929,14 +929,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size349; - ::apache::thrift::protocol::TType _etype352; - xfer += iprot->readListBegin(_etype352, _size349); - this->success.resize(_size349); - uint32_t _i353; - for (_i353 = 0; _i353 < _size349; ++_i353) + uint32_t _size356; + ::apache::thrift::protocol::TType _etype359; + xfer += iprot->readListBegin(_etype359, _size356); + this->success.resize(_size356); + uint32_t _i360; + for (_i360 = 0; _i360 < _size356; ++_i360) { - xfer += iprot->readString(this->success[_i353]); + xfer += iprot->readString(this->success[_i360]); } xfer += iprot->readListEnd(); } @@ -975,10 +975,10 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter354; - for (_iter354 = this->success.begin(); _iter354 != this->success.end(); ++_iter354) + std::vector ::const_iterator _iter361; + for (_iter361 = this->success.begin(); _iter361 != this->success.end(); ++_iter361) { - xfer += oprot->writeString((*_iter354)); + xfer += oprot->writeString((*_iter361)); } xfer += oprot->writeListEnd(); } @@ -1017,14 +1017,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size355; - ::apache::thrift::protocol::TType _etype358; - xfer += iprot->readListBegin(_etype358, _size355); - (*(this->success)).resize(_size355); - uint32_t _i359; - for (_i359 = 0; _i359 < _size355; ++_i359) + uint32_t _size362; + ::apache::thrift::protocol::TType _etype365; + xfer += iprot->readListBegin(_etype365, _size362); + (*(this->success)).resize(_size362); + uint32_t _i366; + for (_i366 = 0; _i366 < _size362; ++_i366) { - xfer += iprot->readString((*(this->success))[_i359]); + xfer += iprot->readString((*(this->success))[_i366]); } xfer += iprot->readListEnd(); } @@ -1967,17 +1967,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size360; - ::apache::thrift::protocol::TType _ktype361; - ::apache::thrift::protocol::TType _vtype362; - xfer += iprot->readMapBegin(_ktype361, _vtype362, _size360); - uint32_t _i364; - for (_i364 = 0; _i364 < _size360; ++_i364) + uint32_t _size367; + ::apache::thrift::protocol::TType _ktype368; + ::apache::thrift::protocol::TType _vtype369; + xfer += iprot->readMapBegin(_ktype368, _vtype369, _size367); + uint32_t _i371; + for (_i371 = 0; _i371 < _size367; ++_i371) { - std::string _key365; - xfer += iprot->readString(_key365); - Type& _val366 = this->success[_key365]; - xfer += _val366.read(iprot); + std::string _key372; + xfer += iprot->readString(_key372); + Type& _val373 = this->success[_key372]; + xfer += _val373.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2016,11 +2016,11 @@ uint32_t ThriftHiveMetastore_get_type_all_result::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::map ::const_iterator _iter367; - for (_iter367 = this->success.begin(); _iter367 != this->success.end(); ++_iter367) + std::map ::const_iterator _iter374; + for (_iter374 = this->success.begin(); _iter374 != this->success.end(); ++_iter374) { - xfer += oprot->writeString(_iter367->first); - xfer += _iter367->second.write(oprot); + xfer += oprot->writeString(_iter374->first); + xfer += _iter374->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2059,17 +2059,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size368; - ::apache::thrift::protocol::TType _ktype369; - ::apache::thrift::protocol::TType _vtype370; - xfer += iprot->readMapBegin(_ktype369, _vtype370, _size368); - uint32_t _i372; - for (_i372 = 0; _i372 < _size368; ++_i372) + uint32_t _size375; + ::apache::thrift::protocol::TType _ktype376; + ::apache::thrift::protocol::TType _vtype377; + xfer += iprot->readMapBegin(_ktype376, _vtype377, _size375); + uint32_t _i379; + for (_i379 = 0; _i379 < _size375; ++_i379) { - std::string _key373; - xfer += iprot->readString(_key373); - Type& _val374 = (*(this->success))[_key373]; - xfer += _val374.read(iprot); + std::string _key380; + xfer += iprot->readString(_key380); + Type& _val381 = (*(this->success))[_key380]; + xfer += _val381.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2204,14 +2204,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size375; - ::apache::thrift::protocol::TType _etype378; - xfer += iprot->readListBegin(_etype378, _size375); - this->success.resize(_size375); - uint32_t _i379; - for (_i379 = 0; _i379 < _size375; ++_i379) + uint32_t _size382; + ::apache::thrift::protocol::TType _etype385; + xfer += iprot->readListBegin(_etype385, _size382); + this->success.resize(_size382); + uint32_t _i386; + for (_i386 = 0; _i386 < _size382; ++_i386) { - xfer += this->success[_i379].read(iprot); + xfer += this->success[_i386].read(iprot); } xfer += iprot->readListEnd(); } @@ -2266,10 +2266,10 @@ uint32_t ThriftHiveMetastore_get_fields_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter380; - for (_iter380 = this->success.begin(); _iter380 != this->success.end(); ++_iter380) + std::vector ::const_iterator _iter387; + for (_iter387 = this->success.begin(); _iter387 != this->success.end(); ++_iter387) { - xfer += (*_iter380).write(oprot); + xfer += (*_iter387).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2316,14 +2316,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size381; - ::apache::thrift::protocol::TType _etype384; - xfer += iprot->readListBegin(_etype384, _size381); - (*(this->success)).resize(_size381); - uint32_t _i385; - for (_i385 = 0; _i385 < _size381; ++_i385) + uint32_t _size388; + ::apache::thrift::protocol::TType _etype391; + xfer += iprot->readListBegin(_etype391, _size388); + (*(this->success)).resize(_size388); + uint32_t _i392; + for (_i392 = 0; _i392 < _size388; ++_i392) { - xfer += (*(this->success))[_i385].read(iprot); + xfer += (*(this->success))[_i392].read(iprot); } xfer += iprot->readListEnd(); } @@ -2474,14 +2474,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size386; - ::apache::thrift::protocol::TType _etype389; - xfer += iprot->readListBegin(_etype389, _size386); - this->success.resize(_size386); - uint32_t _i390; - for (_i390 = 0; _i390 < _size386; ++_i390) + uint32_t _size393; + ::apache::thrift::protocol::TType _etype396; + xfer += iprot->readListBegin(_etype396, _size393); + this->success.resize(_size393); + uint32_t _i397; + for (_i397 = 0; _i397 < _size393; ++_i397) { - xfer += this->success[_i390].read(iprot); + xfer += this->success[_i397].read(iprot); } xfer += iprot->readListEnd(); } @@ -2536,10 +2536,10 @@ uint32_t ThriftHiveMetastore_get_schema_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter391; - for (_iter391 = this->success.begin(); _iter391 != this->success.end(); ++_iter391) + std::vector ::const_iterator _iter398; + for (_iter398 = this->success.begin(); _iter398 != this->success.end(); ++_iter398) { - xfer += (*_iter391).write(oprot); + xfer += (*_iter398).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2586,14 +2586,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size392; - ::apache::thrift::protocol::TType _etype395; - xfer += iprot->readListBegin(_etype395, _size392); - (*(this->success)).resize(_size392); - uint32_t _i396; - for (_i396 = 0; _i396 < _size392; ++_i396) + uint32_t _size399; + ::apache::thrift::protocol::TType _etype402; + xfer += iprot->readListBegin(_etype402, _size399); + (*(this->success)).resize(_size399); + uint32_t _i403; + for (_i403 = 0; _i403 < _size399; ++_i403) { - xfer += (*(this->success))[_i396].read(iprot); + xfer += (*(this->success))[_i403].read(iprot); } xfer += iprot->readListEnd(); } @@ -3648,14 +3648,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size397; - ::apache::thrift::protocol::TType _etype400; - xfer += iprot->readListBegin(_etype400, _size397); - this->success.resize(_size397); - uint32_t _i401; - for (_i401 = 0; _i401 < _size397; ++_i401) + uint32_t _size404; + ::apache::thrift::protocol::TType _etype407; + xfer += iprot->readListBegin(_etype407, _size404); + this->success.resize(_size404); + uint32_t _i408; + for (_i408 = 0; _i408 < _size404; ++_i408) { - xfer += iprot->readString(this->success[_i401]); + xfer += iprot->readString(this->success[_i408]); } xfer += iprot->readListEnd(); } @@ -3694,10 +3694,10 @@ uint32_t ThriftHiveMetastore_get_tables_result::write(::apache::thrift::protocol xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter402; - for (_iter402 = this->success.begin(); _iter402 != this->success.end(); ++_iter402) + std::vector ::const_iterator _iter409; + for (_iter409 = this->success.begin(); _iter409 != this->success.end(); ++_iter409) { - xfer += oprot->writeString((*_iter402)); + xfer += oprot->writeString((*_iter409)); } xfer += oprot->writeListEnd(); } @@ -3736,14 +3736,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size403; - ::apache::thrift::protocol::TType _etype406; - xfer += iprot->readListBegin(_etype406, _size403); - (*(this->success)).resize(_size403); - uint32_t _i407; - for (_i407 = 0; _i407 < _size403; ++_i407) + uint32_t _size410; + ::apache::thrift::protocol::TType _etype413; + xfer += iprot->readListBegin(_etype413, _size410); + (*(this->success)).resize(_size410); + uint32_t _i414; + for (_i414 = 0; _i414 < _size410; ++_i414) { - xfer += iprot->readString((*(this->success))[_i407]); + xfer += iprot->readString((*(this->success))[_i414]); } xfer += iprot->readListEnd(); } @@ -3862,14 +3862,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size408; - ::apache::thrift::protocol::TType _etype411; - xfer += iprot->readListBegin(_etype411, _size408); - this->success.resize(_size408); - uint32_t _i412; - for (_i412 = 0; _i412 < _size408; ++_i412) + uint32_t _size415; + ::apache::thrift::protocol::TType _etype418; + xfer += iprot->readListBegin(_etype418, _size415); + this->success.resize(_size415); + uint32_t _i419; + for (_i419 = 0; _i419 < _size415; ++_i419) { - xfer += iprot->readString(this->success[_i412]); + xfer += iprot->readString(this->success[_i419]); } xfer += iprot->readListEnd(); } @@ -3908,10 +3908,10 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter413; - for (_iter413 = this->success.begin(); _iter413 != this->success.end(); ++_iter413) + std::vector ::const_iterator _iter420; + for (_iter420 = this->success.begin(); _iter420 != this->success.end(); ++_iter420) { - xfer += oprot->writeString((*_iter413)); + xfer += oprot->writeString((*_iter420)); } xfer += oprot->writeListEnd(); } @@ -3950,14 +3950,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size414; - ::apache::thrift::protocol::TType _etype417; - xfer += iprot->readListBegin(_etype417, _size414); - (*(this->success)).resize(_size414); - uint32_t _i418; - for (_i418 = 0; _i418 < _size414; ++_i418) + uint32_t _size421; + ::apache::thrift::protocol::TType _etype424; + xfer += iprot->readListBegin(_etype424, _size421); + (*(this->success)).resize(_size421); + uint32_t _i425; + for (_i425 = 0; _i425 < _size421; ++_i425) { - xfer += iprot->readString((*(this->success))[_i418]); + xfer += iprot->readString((*(this->success))[_i425]); } xfer += iprot->readListEnd(); } @@ -4236,14 +4236,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_names.clear(); - uint32_t _size419; - ::apache::thrift::protocol::TType _etype422; - xfer += iprot->readListBegin(_etype422, _size419); - this->tbl_names.resize(_size419); - uint32_t _i423; - for (_i423 = 0; _i423 < _size419; ++_i423) + uint32_t _size426; + ::apache::thrift::protocol::TType _etype429; + xfer += iprot->readListBegin(_etype429, _size426); + this->tbl_names.resize(_size426); + uint32_t _i430; + for (_i430 = 0; _i430 < _size426; ++_i430) { - xfer += iprot->readString(this->tbl_names[_i423]); + xfer += iprot->readString(this->tbl_names[_i430]); } xfer += iprot->readListEnd(); } @@ -4275,10 +4275,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_args::write(::apache::thr xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_names.size())); - std::vector ::const_iterator _iter424; - for (_iter424 = this->tbl_names.begin(); _iter424 != this->tbl_names.end(); ++_iter424) + std::vector ::const_iterator _iter431; + for (_iter431 = this->tbl_names.begin(); _iter431 != this->tbl_names.end(); ++_iter431) { - xfer += oprot->writeString((*_iter424)); + xfer += oprot->writeString((*_iter431)); } xfer += oprot->writeListEnd(); } @@ -4300,10 +4300,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_pargs::write(::apache::th xfer += oprot->writeFieldBegin("tbl_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_names)).size())); - std::vector ::const_iterator _iter425; - for (_iter425 = (*(this->tbl_names)).begin(); _iter425 != (*(this->tbl_names)).end(); ++_iter425) + std::vector ::const_iterator _iter432; + for (_iter432 = (*(this->tbl_names)).begin(); _iter432 != (*(this->tbl_names)).end(); ++_iter432) { - xfer += oprot->writeString((*_iter425)); + xfer += oprot->writeString((*_iter432)); } xfer += oprot->writeListEnd(); } @@ -4338,14 +4338,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size426; - ::apache::thrift::protocol::TType _etype429; - xfer += iprot->readListBegin(_etype429, _size426); - this->success.resize(_size426); - uint32_t _i430; - for (_i430 = 0; _i430 < _size426; ++_i430) + uint32_t _size433; + ::apache::thrift::protocol::TType _etype436; + xfer += iprot->readListBegin(_etype436, _size433); + this->success.resize(_size433); + uint32_t _i437; + for (_i437 = 0; _i437 < _size433; ++_i437) { - xfer += this->success[_i430].read(iprot); + xfer += this->success[_i437].read(iprot); } xfer += iprot->readListEnd(); } @@ -4400,10 +4400,10 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter431; - for (_iter431 = this->success.begin(); _iter431 != this->success.end(); ++_iter431) + std::vector
::const_iterator _iter438; + for (_iter438 = this->success.begin(); _iter438 != this->success.end(); ++_iter438) { - xfer += (*_iter431).write(oprot); + xfer += (*_iter438).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4450,14 +4450,14 @@ uint32_t ThriftHiveMetastore_get_table_objects_by_name_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size432; - ::apache::thrift::protocol::TType _etype435; - xfer += iprot->readListBegin(_etype435, _size432); - (*(this->success)).resize(_size432); - uint32_t _i436; - for (_i436 = 0; _i436 < _size432; ++_i436) + uint32_t _size439; + ::apache::thrift::protocol::TType _etype442; + xfer += iprot->readListBegin(_etype442, _size439); + (*(this->success)).resize(_size439); + uint32_t _i443; + for (_i443 = 0; _i443 < _size439; ++_i443) { - xfer += (*(this->success))[_i436].read(iprot); + xfer += (*(this->success))[_i443].read(iprot); } xfer += iprot->readListEnd(); } @@ -4624,14 +4624,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size437; - ::apache::thrift::protocol::TType _etype440; - xfer += iprot->readListBegin(_etype440, _size437); - this->success.resize(_size437); - uint32_t _i441; - for (_i441 = 0; _i441 < _size437; ++_i441) + uint32_t _size444; + ::apache::thrift::protocol::TType _etype447; + xfer += iprot->readListBegin(_etype447, _size444); + this->success.resize(_size444); + uint32_t _i448; + for (_i448 = 0; _i448 < _size444; ++_i448) { - xfer += iprot->readString(this->success[_i441]); + xfer += iprot->readString(this->success[_i448]); } xfer += iprot->readListEnd(); } @@ -4686,10 +4686,10 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_result::write(::apache::t xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter442; - for (_iter442 = this->success.begin(); _iter442 != this->success.end(); ++_iter442) + std::vector ::const_iterator _iter449; + for (_iter449 = this->success.begin(); _iter449 != this->success.end(); ++_iter449) { - xfer += oprot->writeString((*_iter442)); + xfer += oprot->writeString((*_iter449)); } xfer += oprot->writeListEnd(); } @@ -4736,14 +4736,14 @@ uint32_t ThriftHiveMetastore_get_table_names_by_filter_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size443; - ::apache::thrift::protocol::TType _etype446; - xfer += iprot->readListBegin(_etype446, _size443); - (*(this->success)).resize(_size443); - uint32_t _i447; - for (_i447 = 0; _i447 < _size443; ++_i447) + uint32_t _size450; + ::apache::thrift::protocol::TType _etype453; + xfer += iprot->readListBegin(_etype453, _size450); + (*(this->success)).resize(_size450); + uint32_t _i454; + for (_i454 = 0; _i454 < _size450; ++_i454) { - xfer += iprot->readString((*(this->success))[_i447]); + xfer += iprot->readString((*(this->success))[_i454]); } xfer += iprot->readListEnd(); } @@ -5716,14 +5716,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size448; - ::apache::thrift::protocol::TType _etype451; - xfer += iprot->readListBegin(_etype451, _size448); - this->new_parts.resize(_size448); - uint32_t _i452; - for (_i452 = 0; _i452 < _size448; ++_i452) + uint32_t _size455; + ::apache::thrift::protocol::TType _etype458; + xfer += iprot->readListBegin(_etype458, _size455); + this->new_parts.resize(_size455); + uint32_t _i459; + for (_i459 = 0; _i459 < _size455; ++_i459) { - xfer += this->new_parts[_i452].read(iprot); + xfer += this->new_parts[_i459].read(iprot); } xfer += iprot->readListEnd(); } @@ -5751,10 +5751,10 @@ uint32_t ThriftHiveMetastore_add_partitions_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter453; - for (_iter453 = this->new_parts.begin(); _iter453 != this->new_parts.end(); ++_iter453) + std::vector ::const_iterator _iter460; + for (_iter460 = this->new_parts.begin(); _iter460 != this->new_parts.end(); ++_iter460) { - xfer += (*_iter453).write(oprot); + xfer += (*_iter460).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5772,10 +5772,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter454; - for (_iter454 = (*(this->new_parts)).begin(); _iter454 != (*(this->new_parts)).end(); ++_iter454) + std::vector ::const_iterator _iter461; + for (_iter461 = (*(this->new_parts)).begin(); _iter461 != (*(this->new_parts)).end(); ++_iter461) { - xfer += (*_iter454).write(oprot); + xfer += (*_iter461).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5982,14 +5982,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size455; - ::apache::thrift::protocol::TType _etype458; - xfer += iprot->readListBegin(_etype458, _size455); - this->part_vals.resize(_size455); - uint32_t _i459; - for (_i459 = 0; _i459 < _size455; ++_i459) + uint32_t _size462; + ::apache::thrift::protocol::TType _etype465; + xfer += iprot->readListBegin(_etype465, _size462); + this->part_vals.resize(_size462); + uint32_t _i466; + for (_i466 = 0; _i466 < _size462; ++_i466) { - xfer += iprot->readString(this->part_vals[_i459]); + xfer += iprot->readString(this->part_vals[_i466]); } xfer += iprot->readListEnd(); } @@ -6025,10 +6025,10 @@ uint32_t ThriftHiveMetastore_append_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter460; - for (_iter460 = this->part_vals.begin(); _iter460 != this->part_vals.end(); ++_iter460) + std::vector ::const_iterator _iter467; + for (_iter467 = this->part_vals.begin(); _iter467 != this->part_vals.end(); ++_iter467) { - xfer += oprot->writeString((*_iter460)); + xfer += oprot->writeString((*_iter467)); } xfer += oprot->writeListEnd(); } @@ -6054,10 +6054,10 @@ uint32_t ThriftHiveMetastore_append_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter461; - for (_iter461 = (*(this->part_vals)).begin(); _iter461 != (*(this->part_vals)).end(); ++_iter461) + std::vector ::const_iterator _iter468; + for (_iter468 = (*(this->part_vals)).begin(); _iter468 != (*(this->part_vals)).end(); ++_iter468) { - xfer += oprot->writeString((*_iter461)); + xfer += oprot->writeString((*_iter468)); } xfer += oprot->writeListEnd(); } @@ -6486,14 +6486,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size462; - ::apache::thrift::protocol::TType _etype465; - xfer += iprot->readListBegin(_etype465, _size462); - this->part_vals.resize(_size462); - uint32_t _i466; - for (_i466 = 0; _i466 < _size462; ++_i466) + uint32_t _size469; + ::apache::thrift::protocol::TType _etype472; + xfer += iprot->readListBegin(_etype472, _size469); + this->part_vals.resize(_size469); + uint32_t _i473; + for (_i473 = 0; _i473 < _size469; ++_i473) { - xfer += iprot->readString(this->part_vals[_i466]); + xfer += iprot->readString(this->part_vals[_i473]); } xfer += iprot->readListEnd(); } @@ -6537,10 +6537,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::wri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter467; - for (_iter467 = this->part_vals.begin(); _iter467 != this->part_vals.end(); ++_iter467) + std::vector ::const_iterator _iter474; + for (_iter474 = this->part_vals.begin(); _iter474 != this->part_vals.end(); ++_iter474) { - xfer += oprot->writeString((*_iter467)); + xfer += oprot->writeString((*_iter474)); } xfer += oprot->writeListEnd(); } @@ -6570,10 +6570,10 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_pargs::wr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter468; - for (_iter468 = (*(this->part_vals)).begin(); _iter468 != (*(this->part_vals)).end(); ++_iter468) + std::vector ::const_iterator _iter475; + for (_iter475 = (*(this->part_vals)).begin(); _iter475 != (*(this->part_vals)).end(); ++_iter475) { - xfer += oprot->writeString((*_iter468)); + xfer += oprot->writeString((*_iter475)); } xfer += oprot->writeListEnd(); } @@ -7308,14 +7308,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size469; - ::apache::thrift::protocol::TType _etype472; - xfer += iprot->readListBegin(_etype472, _size469); - this->part_vals.resize(_size469); - uint32_t _i473; - for (_i473 = 0; _i473 < _size469; ++_i473) + uint32_t _size476; + ::apache::thrift::protocol::TType _etype479; + xfer += iprot->readListBegin(_etype479, _size476); + this->part_vals.resize(_size476); + uint32_t _i480; + for (_i480 = 0; _i480 < _size476; ++_i480) { - xfer += iprot->readString(this->part_vals[_i473]); + xfer += iprot->readString(this->part_vals[_i480]); } xfer += iprot->readListEnd(); } @@ -7359,10 +7359,10 @@ uint32_t ThriftHiveMetastore_drop_partition_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter474; - for (_iter474 = this->part_vals.begin(); _iter474 != this->part_vals.end(); ++_iter474) + std::vector ::const_iterator _iter481; + for (_iter481 = this->part_vals.begin(); _iter481 != this->part_vals.end(); ++_iter481) { - xfer += oprot->writeString((*_iter474)); + xfer += oprot->writeString((*_iter481)); } xfer += oprot->writeListEnd(); } @@ -7392,10 +7392,10 @@ uint32_t ThriftHiveMetastore_drop_partition_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter475; - for (_iter475 = (*(this->part_vals)).begin(); _iter475 != (*(this->part_vals)).end(); ++_iter475) + std::vector ::const_iterator _iter482; + for (_iter482 = (*(this->part_vals)).begin(); _iter482 != (*(this->part_vals)).end(); ++_iter482) { - xfer += oprot->writeString((*_iter475)); + xfer += oprot->writeString((*_iter482)); } xfer += oprot->writeListEnd(); } @@ -7586,14 +7586,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size476; - ::apache::thrift::protocol::TType _etype479; - xfer += iprot->readListBegin(_etype479, _size476); - this->part_vals.resize(_size476); - uint32_t _i480; - for (_i480 = 0; _i480 < _size476; ++_i480) + uint32_t _size483; + ::apache::thrift::protocol::TType _etype486; + xfer += iprot->readListBegin(_etype486, _size483); + this->part_vals.resize(_size483); + uint32_t _i487; + for (_i487 = 0; _i487 < _size483; ++_i487) { - xfer += iprot->readString(this->part_vals[_i480]); + xfer += iprot->readString(this->part_vals[_i487]); } xfer += iprot->readListEnd(); } @@ -7645,10 +7645,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::write xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter481; - for (_iter481 = this->part_vals.begin(); _iter481 != this->part_vals.end(); ++_iter481) + std::vector ::const_iterator _iter488; + for (_iter488 = this->part_vals.begin(); _iter488 != this->part_vals.end(); ++_iter488) { - xfer += oprot->writeString((*_iter481)); + xfer += oprot->writeString((*_iter488)); } xfer += oprot->writeListEnd(); } @@ -7682,10 +7682,10 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_pargs::writ xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter482; - for (_iter482 = (*(this->part_vals)).begin(); _iter482 != (*(this->part_vals)).end(); ++_iter482) + std::vector ::const_iterator _iter489; + for (_iter489 = (*(this->part_vals)).begin(); _iter489 != (*(this->part_vals)).end(); ++_iter489) { - xfer += oprot->writeString((*_iter482)); + xfer += oprot->writeString((*_iter489)); } xfer += oprot->writeListEnd(); } @@ -8598,14 +8598,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size483; - ::apache::thrift::protocol::TType _etype486; - xfer += iprot->readListBegin(_etype486, _size483); - this->part_vals.resize(_size483); - uint32_t _i487; - for (_i487 = 0; _i487 < _size483; ++_i487) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->part_vals.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += iprot->readString(this->part_vals[_i487]); + xfer += iprot->readString(this->part_vals[_i494]); } xfer += iprot->readListEnd(); } @@ -8641,10 +8641,10 @@ uint32_t ThriftHiveMetastore_get_partition_args::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter488; - for (_iter488 = this->part_vals.begin(); _iter488 != this->part_vals.end(); ++_iter488) + std::vector ::const_iterator _iter495; + for (_iter495 = this->part_vals.begin(); _iter495 != this->part_vals.end(); ++_iter495) { - xfer += oprot->writeString((*_iter488)); + xfer += oprot->writeString((*_iter495)); } xfer += oprot->writeListEnd(); } @@ -8670,10 +8670,10 @@ uint32_t ThriftHiveMetastore_get_partition_pargs::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter489; - for (_iter489 = (*(this->part_vals)).begin(); _iter489 != (*(this->part_vals)).end(); ++_iter489) + std::vector ::const_iterator _iter496; + for (_iter496 = (*(this->part_vals)).begin(); _iter496 != (*(this->part_vals)).end(); ++_iter496) { - xfer += oprot->writeString((*_iter489)); + xfer += oprot->writeString((*_iter496)); } xfer += oprot->writeListEnd(); } @@ -8844,17 +8844,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size490; - ::apache::thrift::protocol::TType _ktype491; - ::apache::thrift::protocol::TType _vtype492; - xfer += iprot->readMapBegin(_ktype491, _vtype492, _size490); - uint32_t _i494; - for (_i494 = 0; _i494 < _size490; ++_i494) + uint32_t _size497; + ::apache::thrift::protocol::TType _ktype498; + ::apache::thrift::protocol::TType _vtype499; + xfer += iprot->readMapBegin(_ktype498, _vtype499, _size497); + uint32_t _i501; + for (_i501 = 0; _i501 < _size497; ++_i501) { - std::string _key495; - xfer += iprot->readString(_key495); - std::string& _val496 = this->partitionSpecs[_key495]; - xfer += iprot->readString(_val496); + std::string _key502; + xfer += iprot->readString(_key502); + std::string& _val503 = this->partitionSpecs[_key502]; + xfer += iprot->readString(_val503); } xfer += iprot->readMapEnd(); } @@ -8914,11 +8914,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->partitionSpecs.size())); - std::map ::const_iterator _iter497; - for (_iter497 = this->partitionSpecs.begin(); _iter497 != this->partitionSpecs.end(); ++_iter497) + std::map ::const_iterator _iter504; + for (_iter504 = this->partitionSpecs.begin(); _iter504 != this->partitionSpecs.end(); ++_iter504) { - xfer += oprot->writeString(_iter497->first); - xfer += oprot->writeString(_iter497->second); + xfer += oprot->writeString(_iter504->first); + xfer += oprot->writeString(_iter504->second); } xfer += oprot->writeMapEnd(); } @@ -8952,11 +8952,11 @@ uint32_t ThriftHiveMetastore_exchange_partition_pargs::write(::apache::thrift::p xfer += oprot->writeFieldBegin("partitionSpecs", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->partitionSpecs)).size())); - std::map ::const_iterator _iter498; - for (_iter498 = (*(this->partitionSpecs)).begin(); _iter498 != (*(this->partitionSpecs)).end(); ++_iter498) + std::map ::const_iterator _iter505; + for (_iter505 = (*(this->partitionSpecs)).begin(); _iter505 != (*(this->partitionSpecs)).end(); ++_iter505) { - xfer += oprot->writeString(_iter498->first); - xfer += oprot->writeString(_iter498->second); + xfer += oprot->writeString(_iter505->first); + xfer += oprot->writeString(_iter505->second); } xfer += oprot->writeMapEnd(); } @@ -9199,14 +9199,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size499; - ::apache::thrift::protocol::TType _etype502; - xfer += iprot->readListBegin(_etype502, _size499); - this->part_vals.resize(_size499); - uint32_t _i503; - for (_i503 = 0; _i503 < _size499; ++_i503) + uint32_t _size506; + ::apache::thrift::protocol::TType _etype509; + xfer += iprot->readListBegin(_etype509, _size506); + this->part_vals.resize(_size506); + uint32_t _i510; + for (_i510 = 0; _i510 < _size506; ++_i510) { - xfer += iprot->readString(this->part_vals[_i503]); + xfer += iprot->readString(this->part_vals[_i510]); } xfer += iprot->readListEnd(); } @@ -9227,14 +9227,14 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size504; - ::apache::thrift::protocol::TType _etype507; - xfer += iprot->readListBegin(_etype507, _size504); - this->group_names.resize(_size504); - uint32_t _i508; - for (_i508 = 0; _i508 < _size504; ++_i508) + uint32_t _size511; + ::apache::thrift::protocol::TType _etype514; + xfer += iprot->readListBegin(_etype514, _size511); + this->group_names.resize(_size511); + uint32_t _i515; + for (_i515 = 0; _i515 < _size511; ++_i515) { - xfer += iprot->readString(this->group_names[_i508]); + xfer += iprot->readString(this->group_names[_i515]); } xfer += iprot->readListEnd(); } @@ -9270,10 +9270,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter509; - for (_iter509 = this->part_vals.begin(); _iter509 != this->part_vals.end(); ++_iter509) + std::vector ::const_iterator _iter516; + for (_iter516 = this->part_vals.begin(); _iter516 != this->part_vals.end(); ++_iter516) { - xfer += oprot->writeString((*_iter509)); + xfer += oprot->writeString((*_iter516)); } xfer += oprot->writeListEnd(); } @@ -9286,10 +9286,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_args::write(::apache::thrif xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter510; - for (_iter510 = this->group_names.begin(); _iter510 != this->group_names.end(); ++_iter510) + std::vector ::const_iterator _iter517; + for (_iter517 = this->group_names.begin(); _iter517 != this->group_names.end(); ++_iter517) { - xfer += oprot->writeString((*_iter510)); + xfer += oprot->writeString((*_iter517)); } xfer += oprot->writeListEnd(); } @@ -9315,10 +9315,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter511; - for (_iter511 = (*(this->part_vals)).begin(); _iter511 != (*(this->part_vals)).end(); ++_iter511) + std::vector ::const_iterator _iter518; + for (_iter518 = (*(this->part_vals)).begin(); _iter518 != (*(this->part_vals)).end(); ++_iter518) { - xfer += oprot->writeString((*_iter511)); + xfer += oprot->writeString((*_iter518)); } xfer += oprot->writeListEnd(); } @@ -9331,10 +9331,10 @@ uint32_t ThriftHiveMetastore_get_partition_with_auth_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter512; - for (_iter512 = (*(this->group_names)).begin(); _iter512 != (*(this->group_names)).end(); ++_iter512) + std::vector ::const_iterator _iter519; + for (_iter519 = (*(this->group_names)).begin(); _iter519 != (*(this->group_names)).end(); ++_iter519) { - xfer += oprot->writeString((*_iter512)); + xfer += oprot->writeString((*_iter519)); } xfer += oprot->writeListEnd(); } @@ -9837,14 +9837,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size513; - ::apache::thrift::protocol::TType _etype516; - xfer += iprot->readListBegin(_etype516, _size513); - this->success.resize(_size513); - uint32_t _i517; - for (_i517 = 0; _i517 < _size513; ++_i517) + uint32_t _size520; + ::apache::thrift::protocol::TType _etype523; + xfer += iprot->readListBegin(_etype523, _size520); + this->success.resize(_size520); + uint32_t _i524; + for (_i524 = 0; _i524 < _size520; ++_i524) { - xfer += this->success[_i517].read(iprot); + xfer += this->success[_i524].read(iprot); } xfer += iprot->readListEnd(); } @@ -9891,10 +9891,10 @@ uint32_t ThriftHiveMetastore_get_partitions_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter518; - for (_iter518 = this->success.begin(); _iter518 != this->success.end(); ++_iter518) + std::vector ::const_iterator _iter525; + for (_iter525 = this->success.begin(); _iter525 != this->success.end(); ++_iter525) { - xfer += (*_iter518).write(oprot); + xfer += (*_iter525).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9937,14 +9937,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size519; - ::apache::thrift::protocol::TType _etype522; - xfer += iprot->readListBegin(_etype522, _size519); - (*(this->success)).resize(_size519); - uint32_t _i523; - for (_i523 = 0; _i523 < _size519; ++_i523) + uint32_t _size526; + ::apache::thrift::protocol::TType _etype529; + xfer += iprot->readListBegin(_etype529, _size526); + (*(this->success)).resize(_size526); + uint32_t _i530; + for (_i530 = 0; _i530 < _size526; ++_i530) { - xfer += (*(this->success))[_i523].read(iprot); + xfer += (*(this->success))[_i530].read(iprot); } xfer += iprot->readListEnd(); } @@ -10037,14 +10037,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size524; - ::apache::thrift::protocol::TType _etype527; - xfer += iprot->readListBegin(_etype527, _size524); - this->group_names.resize(_size524); - uint32_t _i528; - for (_i528 = 0; _i528 < _size524; ++_i528) + uint32_t _size531; + ::apache::thrift::protocol::TType _etype534; + xfer += iprot->readListBegin(_etype534, _size531); + this->group_names.resize(_size531); + uint32_t _i535; + for (_i535 = 0; _i535 < _size531; ++_i535) { - xfer += iprot->readString(this->group_names[_i528]); + xfer += iprot->readString(this->group_names[_i535]); } xfer += iprot->readListEnd(); } @@ -10088,10 +10088,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_args::write(::apache::thri xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter529; - for (_iter529 = this->group_names.begin(); _iter529 != this->group_names.end(); ++_iter529) + std::vector ::const_iterator _iter536; + for (_iter536 = this->group_names.begin(); _iter536 != this->group_names.end(); ++_iter536) { - xfer += oprot->writeString((*_iter529)); + xfer += oprot->writeString((*_iter536)); } xfer += oprot->writeListEnd(); } @@ -10125,10 +10125,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_pargs::write(::apache::thr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter530; - for (_iter530 = (*(this->group_names)).begin(); _iter530 != (*(this->group_names)).end(); ++_iter530) + std::vector ::const_iterator _iter537; + for (_iter537 = (*(this->group_names)).begin(); _iter537 != (*(this->group_names)).end(); ++_iter537) { - xfer += oprot->writeString((*_iter530)); + xfer += oprot->writeString((*_iter537)); } xfer += oprot->writeListEnd(); } @@ -10163,14 +10163,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size531; - ::apache::thrift::protocol::TType _etype534; - xfer += iprot->readListBegin(_etype534, _size531); - this->success.resize(_size531); - uint32_t _i535; - for (_i535 = 0; _i535 < _size531; ++_i535) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + this->success.resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += this->success[_i535].read(iprot); + xfer += this->success[_i542].read(iprot); } xfer += iprot->readListEnd(); } @@ -10217,10 +10217,10 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter536; - for (_iter536 = this->success.begin(); _iter536 != this->success.end(); ++_iter536) + std::vector ::const_iterator _iter543; + for (_iter543 = this->success.begin(); _iter543 != this->success.end(); ++_iter543) { - xfer += (*_iter536).write(oprot); + xfer += (*_iter543).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10263,14 +10263,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size537; - ::apache::thrift::protocol::TType _etype540; - xfer += iprot->readListBegin(_etype540, _size537); - (*(this->success)).resize(_size537); - uint32_t _i541; - for (_i541 = 0; _i541 < _size537; ++_i541) + uint32_t _size544; + ::apache::thrift::protocol::TType _etype547; + xfer += iprot->readListBegin(_etype547, _size544); + (*(this->success)).resize(_size544); + uint32_t _i548; + for (_i548 = 0; _i548 < _size544; ++_i548) { - xfer += (*(this->success))[_i541].read(iprot); + xfer += (*(this->success))[_i548].read(iprot); } xfer += iprot->readListEnd(); } @@ -10429,14 +10429,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size542; - ::apache::thrift::protocol::TType _etype545; - xfer += iprot->readListBegin(_etype545, _size542); - this->success.resize(_size542); - uint32_t _i546; - for (_i546 = 0; _i546 < _size542; ++_i546) + uint32_t _size549; + ::apache::thrift::protocol::TType _etype552; + xfer += iprot->readListBegin(_etype552, _size549); + this->success.resize(_size549); + uint32_t _i553; + for (_i553 = 0; _i553 < _size549; ++_i553) { - xfer += iprot->readString(this->success[_i546]); + xfer += iprot->readString(this->success[_i553]); } xfer += iprot->readListEnd(); } @@ -10475,10 +10475,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::write(::apache::thrift: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter547; - for (_iter547 = this->success.begin(); _iter547 != this->success.end(); ++_iter547) + std::vector ::const_iterator _iter554; + for (_iter554 = this->success.begin(); _iter554 != this->success.end(); ++_iter554) { - xfer += oprot->writeString((*_iter547)); + xfer += oprot->writeString((*_iter554)); } xfer += oprot->writeListEnd(); } @@ -10517,14 +10517,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size548; - ::apache::thrift::protocol::TType _etype551; - xfer += iprot->readListBegin(_etype551, _size548); - (*(this->success)).resize(_size548); - uint32_t _i552; - for (_i552 = 0; _i552 < _size548; ++_i552) + uint32_t _size555; + ::apache::thrift::protocol::TType _etype558; + xfer += iprot->readListBegin(_etype558, _size555); + (*(this->success)).resize(_size555); + uint32_t _i559; + for (_i559 = 0; _i559 < _size555; ++_i559) { - xfer += iprot->readString((*(this->success))[_i552]); + xfer += iprot->readString((*(this->success))[_i559]); } xfer += iprot->readListEnd(); } @@ -10593,14 +10593,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size553; - ::apache::thrift::protocol::TType _etype556; - xfer += iprot->readListBegin(_etype556, _size553); - this->part_vals.resize(_size553); - uint32_t _i557; - for (_i557 = 0; _i557 < _size553; ++_i557) + uint32_t _size560; + ::apache::thrift::protocol::TType _etype563; + xfer += iprot->readListBegin(_etype563, _size560); + this->part_vals.resize(_size560); + uint32_t _i564; + for (_i564 = 0; _i564 < _size560; ++_i564) { - xfer += iprot->readString(this->part_vals[_i557]); + xfer += iprot->readString(this->part_vals[_i564]); } xfer += iprot->readListEnd(); } @@ -10644,10 +10644,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter558; - for (_iter558 = this->part_vals.begin(); _iter558 != this->part_vals.end(); ++_iter558) + std::vector ::const_iterator _iter565; + for (_iter565 = this->part_vals.begin(); _iter565 != this->part_vals.end(); ++_iter565) { - xfer += oprot->writeString((*_iter558)); + xfer += oprot->writeString((*_iter565)); } xfer += oprot->writeListEnd(); } @@ -10677,10 +10677,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter559; - for (_iter559 = (*(this->part_vals)).begin(); _iter559 != (*(this->part_vals)).end(); ++_iter559) + std::vector ::const_iterator _iter566; + for (_iter566 = (*(this->part_vals)).begin(); _iter566 != (*(this->part_vals)).end(); ++_iter566) { - xfer += oprot->writeString((*_iter559)); + xfer += oprot->writeString((*_iter566)); } xfer += oprot->writeListEnd(); } @@ -10719,14 +10719,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size560; - ::apache::thrift::protocol::TType _etype563; - xfer += iprot->readListBegin(_etype563, _size560); - this->success.resize(_size560); - uint32_t _i564; - for (_i564 = 0; _i564 < _size560; ++_i564) + uint32_t _size567; + ::apache::thrift::protocol::TType _etype570; + xfer += iprot->readListBegin(_etype570, _size567); + this->success.resize(_size567); + uint32_t _i571; + for (_i571 = 0; _i571 < _size567; ++_i571) { - xfer += this->success[_i564].read(iprot); + xfer += this->success[_i571].read(iprot); } xfer += iprot->readListEnd(); } @@ -10773,10 +10773,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::write(::apache::thrift::p xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter565; - for (_iter565 = this->success.begin(); _iter565 != this->success.end(); ++_iter565) + std::vector ::const_iterator _iter572; + for (_iter572 = this->success.begin(); _iter572 != this->success.end(); ++_iter572) { - xfer += (*_iter565).write(oprot); + xfer += (*_iter572).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10819,14 +10819,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size566; - ::apache::thrift::protocol::TType _etype569; - xfer += iprot->readListBegin(_etype569, _size566); - (*(this->success)).resize(_size566); - uint32_t _i570; - for (_i570 = 0; _i570 < _size566; ++_i570) + uint32_t _size573; + ::apache::thrift::protocol::TType _etype576; + xfer += iprot->readListBegin(_etype576, _size573); + (*(this->success)).resize(_size573); + uint32_t _i577; + for (_i577 = 0; _i577 < _size573; ++_i577) { - xfer += (*(this->success))[_i570].read(iprot); + xfer += (*(this->success))[_i577].read(iprot); } xfer += iprot->readListEnd(); } @@ -10903,14 +10903,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size571; - ::apache::thrift::protocol::TType _etype574; - xfer += iprot->readListBegin(_etype574, _size571); - this->part_vals.resize(_size571); - uint32_t _i575; - for (_i575 = 0; _i575 < _size571; ++_i575) + uint32_t _size578; + ::apache::thrift::protocol::TType _etype581; + xfer += iprot->readListBegin(_etype581, _size578); + this->part_vals.resize(_size578); + uint32_t _i582; + for (_i582 = 0; _i582 < _size578; ++_i582) { - xfer += iprot->readString(this->part_vals[_i575]); + xfer += iprot->readString(this->part_vals[_i582]); } xfer += iprot->readListEnd(); } @@ -10939,14 +10939,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size576; - ::apache::thrift::protocol::TType _etype579; - xfer += iprot->readListBegin(_etype579, _size576); - this->group_names.resize(_size576); - uint32_t _i580; - for (_i580 = 0; _i580 < _size576; ++_i580) + uint32_t _size583; + ::apache::thrift::protocol::TType _etype586; + xfer += iprot->readListBegin(_etype586, _size583); + this->group_names.resize(_size583); + uint32_t _i587; + for (_i587 = 0; _i587 < _size583; ++_i587) { - xfer += iprot->readString(this->group_names[_i580]); + xfer += iprot->readString(this->group_names[_i587]); } xfer += iprot->readListEnd(); } @@ -10982,10 +10982,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter581; - for (_iter581 = this->part_vals.begin(); _iter581 != this->part_vals.end(); ++_iter581) + std::vector ::const_iterator _iter588; + for (_iter588 = this->part_vals.begin(); _iter588 != this->part_vals.end(); ++_iter588) { - xfer += oprot->writeString((*_iter581)); + xfer += oprot->writeString((*_iter588)); } xfer += oprot->writeListEnd(); } @@ -11002,10 +11002,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_args::write(::apache::t xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter582; - for (_iter582 = this->group_names.begin(); _iter582 != this->group_names.end(); ++_iter582) + std::vector ::const_iterator _iter589; + for (_iter589 = this->group_names.begin(); _iter589 != this->group_names.end(); ++_iter589) { - xfer += oprot->writeString((*_iter582)); + xfer += oprot->writeString((*_iter589)); } xfer += oprot->writeListEnd(); } @@ -11031,10 +11031,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter583; - for (_iter583 = (*(this->part_vals)).begin(); _iter583 != (*(this->part_vals)).end(); ++_iter583) + std::vector ::const_iterator _iter590; + for (_iter590 = (*(this->part_vals)).begin(); _iter590 != (*(this->part_vals)).end(); ++_iter590) { - xfer += oprot->writeString((*_iter583)); + xfer += oprot->writeString((*_iter590)); } xfer += oprot->writeListEnd(); } @@ -11051,10 +11051,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_pargs::write(::apache:: xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 6); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter584; - for (_iter584 = (*(this->group_names)).begin(); _iter584 != (*(this->group_names)).end(); ++_iter584) + std::vector ::const_iterator _iter591; + for (_iter591 = (*(this->group_names)).begin(); _iter591 != (*(this->group_names)).end(); ++_iter591) { - xfer += oprot->writeString((*_iter584)); + xfer += oprot->writeString((*_iter591)); } xfer += oprot->writeListEnd(); } @@ -11089,14 +11089,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size585; - ::apache::thrift::protocol::TType _etype588; - xfer += iprot->readListBegin(_etype588, _size585); - this->success.resize(_size585); - uint32_t _i589; - for (_i589 = 0; _i589 < _size585; ++_i589) + uint32_t _size592; + ::apache::thrift::protocol::TType _etype595; + xfer += iprot->readListBegin(_etype595, _size592); + this->success.resize(_size592); + uint32_t _i596; + for (_i596 = 0; _i596 < _size592; ++_i596) { - xfer += this->success[_i589].read(iprot); + xfer += this->success[_i596].read(iprot); } xfer += iprot->readListEnd(); } @@ -11143,10 +11143,10 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::write(::apache: xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter590; - for (_iter590 = this->success.begin(); _iter590 != this->success.end(); ++_iter590) + std::vector ::const_iterator _iter597; + for (_iter597 = this->success.begin(); _iter597 != this->success.end(); ++_iter597) { - xfer += (*_iter590).write(oprot); + xfer += (*_iter597).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11189,14 +11189,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size591; - ::apache::thrift::protocol::TType _etype594; - xfer += iprot->readListBegin(_etype594, _size591); - (*(this->success)).resize(_size591); - uint32_t _i595; - for (_i595 = 0; _i595 < _size591; ++_i595) + uint32_t _size598; + ::apache::thrift::protocol::TType _etype601; + xfer += iprot->readListBegin(_etype601, _size598); + (*(this->success)).resize(_size598); + uint32_t _i602; + for (_i602 = 0; _i602 < _size598; ++_i602) { - xfer += (*(this->success))[_i595].read(iprot); + xfer += (*(this->success))[_i602].read(iprot); } xfer += iprot->readListEnd(); } @@ -11273,14 +11273,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size596; - ::apache::thrift::protocol::TType _etype599; - xfer += iprot->readListBegin(_etype599, _size596); - this->part_vals.resize(_size596); - uint32_t _i600; - for (_i600 = 0; _i600 < _size596; ++_i600) + uint32_t _size603; + ::apache::thrift::protocol::TType _etype606; + xfer += iprot->readListBegin(_etype606, _size603); + this->part_vals.resize(_size603); + uint32_t _i607; + for (_i607 = 0; _i607 < _size603; ++_i607) { - xfer += iprot->readString(this->part_vals[_i600]); + xfer += iprot->readString(this->part_vals[_i607]); } xfer += iprot->readListEnd(); } @@ -11324,10 +11324,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_args::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter601; - for (_iter601 = this->part_vals.begin(); _iter601 != this->part_vals.end(); ++_iter601) + std::vector ::const_iterator _iter608; + for (_iter608 = this->part_vals.begin(); _iter608 != this->part_vals.end(); ++_iter608) { - xfer += oprot->writeString((*_iter601)); + xfer += oprot->writeString((*_iter608)); } xfer += oprot->writeListEnd(); } @@ -11357,10 +11357,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_pargs::write(::apache::thrif xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter602; - for (_iter602 = (*(this->part_vals)).begin(); _iter602 != (*(this->part_vals)).end(); ++_iter602) + std::vector ::const_iterator _iter609; + for (_iter609 = (*(this->part_vals)).begin(); _iter609 != (*(this->part_vals)).end(); ++_iter609) { - xfer += oprot->writeString((*_iter602)); + xfer += oprot->writeString((*_iter609)); } xfer += oprot->writeListEnd(); } @@ -11399,14 +11399,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size603; - ::apache::thrift::protocol::TType _etype606; - xfer += iprot->readListBegin(_etype606, _size603); - this->success.resize(_size603); - uint32_t _i607; - for (_i607 = 0; _i607 < _size603; ++_i607) + uint32_t _size610; + ::apache::thrift::protocol::TType _etype613; + xfer += iprot->readListBegin(_etype613, _size610); + this->success.resize(_size610); + uint32_t _i614; + for (_i614 = 0; _i614 < _size610; ++_i614) { - xfer += iprot->readString(this->success[_i607]); + xfer += iprot->readString(this->success[_i614]); } xfer += iprot->readListEnd(); } @@ -11453,10 +11453,10 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter608; - for (_iter608 = this->success.begin(); _iter608 != this->success.end(); ++_iter608) + std::vector ::const_iterator _iter615; + for (_iter615 = this->success.begin(); _iter615 != this->success.end(); ++_iter615) { - xfer += oprot->writeString((*_iter608)); + xfer += oprot->writeString((*_iter615)); } xfer += oprot->writeListEnd(); } @@ -11499,14 +11499,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size609; - ::apache::thrift::protocol::TType _etype612; - xfer += iprot->readListBegin(_etype612, _size609); - (*(this->success)).resize(_size609); - uint32_t _i613; - for (_i613 = 0; _i613 < _size609; ++_i613) + uint32_t _size616; + ::apache::thrift::protocol::TType _etype619; + xfer += iprot->readListBegin(_etype619, _size616); + (*(this->success)).resize(_size616); + uint32_t _i620; + for (_i620 = 0; _i620 < _size616; ++_i620) { - xfer += iprot->readString((*(this->success))[_i613]); + xfer += iprot->readString((*(this->success))[_i620]); } xfer += iprot->readListEnd(); } @@ -11681,14 +11681,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size614; - ::apache::thrift::protocol::TType _etype617; - xfer += iprot->readListBegin(_etype617, _size614); - this->success.resize(_size614); - uint32_t _i618; - for (_i618 = 0; _i618 < _size614; ++_i618) + uint32_t _size621; + ::apache::thrift::protocol::TType _etype624; + xfer += iprot->readListBegin(_etype624, _size621); + this->success.resize(_size621); + uint32_t _i625; + for (_i625 = 0; _i625 < _size621; ++_i625) { - xfer += this->success[_i618].read(iprot); + xfer += this->success[_i625].read(iprot); } xfer += iprot->readListEnd(); } @@ -11735,10 +11735,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::write(::apache::th xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter619; - for (_iter619 = this->success.begin(); _iter619 != this->success.end(); ++_iter619) + std::vector ::const_iterator _iter626; + for (_iter626 = this->success.begin(); _iter626 != this->success.end(); ++_iter626) { - xfer += (*_iter619).write(oprot); + xfer += (*_iter626).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11781,14 +11781,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size620; - ::apache::thrift::protocol::TType _etype623; - xfer += iprot->readListBegin(_etype623, _size620); - (*(this->success)).resize(_size620); - uint32_t _i624; - for (_i624 = 0; _i624 < _size620; ++_i624) + uint32_t _size627; + ::apache::thrift::protocol::TType _etype630; + xfer += iprot->readListBegin(_etype630, _size627); + (*(this->success)).resize(_size627); + uint32_t _i631; + for (_i631 = 0; _i631 < _size627; ++_i631) { - xfer += (*(this->success))[_i624].read(iprot); + xfer += (*(this->success))[_i631].read(iprot); } xfer += iprot->readListEnd(); } @@ -12067,14 +12067,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size625; - ::apache::thrift::protocol::TType _etype628; - xfer += iprot->readListBegin(_etype628, _size625); - this->names.resize(_size625); - uint32_t _i629; - for (_i629 = 0; _i629 < _size625; ++_i629) + uint32_t _size632; + ::apache::thrift::protocol::TType _etype635; + xfer += iprot->readListBegin(_etype635, _size632); + this->names.resize(_size632); + uint32_t _i636; + for (_i636 = 0; _i636 < _size632; ++_i636) { - xfer += iprot->readString(this->names[_i629]); + xfer += iprot->readString(this->names[_i636]); } xfer += iprot->readListEnd(); } @@ -12110,10 +12110,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::write(::apache::thrif xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter630; - for (_iter630 = this->names.begin(); _iter630 != this->names.end(); ++_iter630) + std::vector ::const_iterator _iter637; + for (_iter637 = this->names.begin(); _iter637 != this->names.end(); ++_iter637) { - xfer += oprot->writeString((*_iter630)); + xfer += oprot->writeString((*_iter637)); } xfer += oprot->writeListEnd(); } @@ -12139,10 +12139,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_pargs::write(::apache::thri xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->names)).size())); - std::vector ::const_iterator _iter631; - for (_iter631 = (*(this->names)).begin(); _iter631 != (*(this->names)).end(); ++_iter631) + std::vector ::const_iterator _iter638; + for (_iter638 = (*(this->names)).begin(); _iter638 != (*(this->names)).end(); ++_iter638) { - xfer += oprot->writeString((*_iter631)); + xfer += oprot->writeString((*_iter638)); } xfer += oprot->writeListEnd(); } @@ -12177,14 +12177,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size632; - ::apache::thrift::protocol::TType _etype635; - xfer += iprot->readListBegin(_etype635, _size632); - this->success.resize(_size632); - uint32_t _i636; - for (_i636 = 0; _i636 < _size632; ++_i636) + uint32_t _size639; + ::apache::thrift::protocol::TType _etype642; + xfer += iprot->readListBegin(_etype642, _size639); + this->success.resize(_size639); + uint32_t _i643; + for (_i643 = 0; _i643 < _size639; ++_i643) { - xfer += this->success[_i636].read(iprot); + xfer += this->success[_i643].read(iprot); } xfer += iprot->readListEnd(); } @@ -12231,10 +12231,10 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::write(::apache::thr xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter637; - for (_iter637 = this->success.begin(); _iter637 != this->success.end(); ++_iter637) + std::vector ::const_iterator _iter644; + for (_iter644 = this->success.begin(); _iter644 != this->success.end(); ++_iter644) { - xfer += (*_iter637).write(oprot); + xfer += (*_iter644).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12277,14 +12277,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size638; - ::apache::thrift::protocol::TType _etype641; - xfer += iprot->readListBegin(_etype641, _size638); - (*(this->success)).resize(_size638); - uint32_t _i642; - for (_i642 = 0; _i642 < _size638; ++_i642) + uint32_t _size645; + ::apache::thrift::protocol::TType _etype648; + xfer += iprot->readListBegin(_etype648, _size645); + (*(this->success)).resize(_size645); + uint32_t _i649; + for (_i649 = 0; _i649 < _size645; ++_i649) { - xfer += (*(this->success))[_i642].read(iprot); + xfer += (*(this->success))[_i649].read(iprot); } xfer += iprot->readListEnd(); } @@ -12575,14 +12575,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size643; - ::apache::thrift::protocol::TType _etype646; - xfer += iprot->readListBegin(_etype646, _size643); - this->new_parts.resize(_size643); - uint32_t _i647; - for (_i647 = 0; _i647 < _size643; ++_i647) + uint32_t _size650; + ::apache::thrift::protocol::TType _etype653; + xfer += iprot->readListBegin(_etype653, _size650); + this->new_parts.resize(_size650); + uint32_t _i654; + for (_i654 = 0; _i654 < _size650; ++_i654) { - xfer += this->new_parts[_i647].read(iprot); + xfer += this->new_parts[_i654].read(iprot); } xfer += iprot->readListEnd(); } @@ -12618,10 +12618,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->new_parts.size())); - std::vector ::const_iterator _iter648; - for (_iter648 = this->new_parts.begin(); _iter648 != this->new_parts.end(); ++_iter648) + std::vector ::const_iterator _iter655; + for (_iter655 = this->new_parts.begin(); _iter655 != this->new_parts.end(); ++_iter655) { - xfer += (*_iter648).write(oprot); + xfer += (*_iter655).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12647,10 +12647,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("new_parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->new_parts)).size())); - std::vector ::const_iterator _iter649; - for (_iter649 = (*(this->new_parts)).begin(); _iter649 != (*(this->new_parts)).end(); ++_iter649) + std::vector ::const_iterator _iter656; + for (_iter656 = (*(this->new_parts)).begin(); _iter656 != (*(this->new_parts)).end(); ++_iter656) { - xfer += (*_iter649).write(oprot); + xfer += (*_iter656).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13047,14 +13047,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size650; - ::apache::thrift::protocol::TType _etype653; - xfer += iprot->readListBegin(_etype653, _size650); - this->part_vals.resize(_size650); - uint32_t _i654; - for (_i654 = 0; _i654 < _size650; ++_i654) + uint32_t _size657; + ::apache::thrift::protocol::TType _etype660; + xfer += iprot->readListBegin(_etype660, _size657); + this->part_vals.resize(_size657); + uint32_t _i661; + for (_i661 = 0; _i661 < _size657; ++_i661) { - xfer += iprot->readString(this->part_vals[_i654]); + xfer += iprot->readString(this->part_vals[_i661]); } xfer += iprot->readListEnd(); } @@ -13098,10 +13098,10 @@ uint32_t ThriftHiveMetastore_rename_partition_args::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter655; - for (_iter655 = this->part_vals.begin(); _iter655 != this->part_vals.end(); ++_iter655) + std::vector ::const_iterator _iter662; + for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) { - xfer += oprot->writeString((*_iter655)); + xfer += oprot->writeString((*_iter662)); } xfer += oprot->writeListEnd(); } @@ -13131,10 +13131,10 @@ uint32_t ThriftHiveMetastore_rename_partition_pargs::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter656; - for (_iter656 = (*(this->part_vals)).begin(); _iter656 != (*(this->part_vals)).end(); ++_iter656) + std::vector ::const_iterator _iter663; + for (_iter663 = (*(this->part_vals)).begin(); _iter663 != (*(this->part_vals)).end(); ++_iter663) { - xfer += oprot->writeString((*_iter656)); + xfer += oprot->writeString((*_iter663)); } xfer += oprot->writeListEnd(); } @@ -13289,14 +13289,14 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::read(::ap if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size657; - ::apache::thrift::protocol::TType _etype660; - xfer += iprot->readListBegin(_etype660, _size657); - this->part_vals.resize(_size657); - uint32_t _i661; - for (_i661 = 0; _i661 < _size657; ++_i661) + uint32_t _size664; + ::apache::thrift::protocol::TType _etype667; + xfer += iprot->readListBegin(_etype667, _size664); + this->part_vals.resize(_size664); + uint32_t _i668; + for (_i668 = 0; _i668 < _size664; ++_i668) { - xfer += iprot->readString(this->part_vals[_i661]); + xfer += iprot->readString(this->part_vals[_i668]); } xfer += iprot->readListEnd(); } @@ -13332,10 +13332,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_args::write(::a xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::vector ::const_iterator _iter662; - for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) + std::vector ::const_iterator _iter669; + for (_iter669 = this->part_vals.begin(); _iter669 != this->part_vals.end(); ++_iter669) { - xfer += oprot->writeString((*_iter662)); + xfer += oprot->writeString((*_iter669)); } xfer += oprot->writeListEnd(); } @@ -13357,10 +13357,10 @@ uint32_t ThriftHiveMetastore_partition_name_has_valid_characters_pargs::write(:: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::vector ::const_iterator _iter663; - for (_iter663 = (*(this->part_vals)).begin(); _iter663 != (*(this->part_vals)).end(); ++_iter663) + std::vector ::const_iterator _iter670; + for (_iter670 = (*(this->part_vals)).begin(); _iter670 != (*(this->part_vals)).end(); ++_iter670) { - xfer += oprot->writeString((*_iter663)); + xfer += oprot->writeString((*_iter670)); } xfer += oprot->writeListEnd(); } @@ -13779,14 +13779,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size664; - ::apache::thrift::protocol::TType _etype667; - xfer += iprot->readListBegin(_etype667, _size664); - this->success.resize(_size664); - uint32_t _i668; - for (_i668 = 0; _i668 < _size664; ++_i668) + uint32_t _size671; + ::apache::thrift::protocol::TType _etype674; + xfer += iprot->readListBegin(_etype674, _size671); + this->success.resize(_size671); + uint32_t _i675; + for (_i675 = 0; _i675 < _size671; ++_i675) { - xfer += iprot->readString(this->success[_i668]); + xfer += iprot->readString(this->success[_i675]); } xfer += iprot->readListEnd(); } @@ -13825,10 +13825,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter669; - for (_iter669 = this->success.begin(); _iter669 != this->success.end(); ++_iter669) + std::vector ::const_iterator _iter676; + for (_iter676 = this->success.begin(); _iter676 != this->success.end(); ++_iter676) { - xfer += oprot->writeString((*_iter669)); + xfer += oprot->writeString((*_iter676)); } xfer += oprot->writeListEnd(); } @@ -13867,14 +13867,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size670; - ::apache::thrift::protocol::TType _etype673; - xfer += iprot->readListBegin(_etype673, _size670); - (*(this->success)).resize(_size670); - uint32_t _i674; - for (_i674 = 0; _i674 < _size670; ++_i674) + uint32_t _size677; + ::apache::thrift::protocol::TType _etype680; + xfer += iprot->readListBegin(_etype680, _size677); + (*(this->success)).resize(_size677); + uint32_t _i681; + for (_i681 = 0; _i681 < _size677; ++_i681) { - xfer += iprot->readString((*(this->success))[_i674]); + xfer += iprot->readString((*(this->success))[_i681]); } xfer += iprot->readListEnd(); } @@ -13993,17 +13993,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size675; - ::apache::thrift::protocol::TType _ktype676; - ::apache::thrift::protocol::TType _vtype677; - xfer += iprot->readMapBegin(_ktype676, _vtype677, _size675); - uint32_t _i679; - for (_i679 = 0; _i679 < _size675; ++_i679) + uint32_t _size682; + ::apache::thrift::protocol::TType _ktype683; + ::apache::thrift::protocol::TType _vtype684; + xfer += iprot->readMapBegin(_ktype683, _vtype684, _size682); + uint32_t _i686; + for (_i686 = 0; _i686 < _size682; ++_i686) { - std::string _key680; - xfer += iprot->readString(_key680); - std::string& _val681 = this->success[_key680]; - xfer += iprot->readString(_val681); + std::string _key687; + xfer += iprot->readString(_key687); + std::string& _val688 = this->success[_key687]; + xfer += iprot->readString(_val688); } xfer += iprot->readMapEnd(); } @@ -14042,11 +14042,11 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_MAP, 0); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::map ::const_iterator _iter682; - for (_iter682 = this->success.begin(); _iter682 != this->success.end(); ++_iter682) + std::map ::const_iterator _iter689; + for (_iter689 = this->success.begin(); _iter689 != this->success.end(); ++_iter689) { - xfer += oprot->writeString(_iter682->first); - xfer += oprot->writeString(_iter682->second); + xfer += oprot->writeString(_iter689->first); + xfer += oprot->writeString(_iter689->second); } xfer += oprot->writeMapEnd(); } @@ -14085,17 +14085,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size683; - ::apache::thrift::protocol::TType _ktype684; - ::apache::thrift::protocol::TType _vtype685; - xfer += iprot->readMapBegin(_ktype684, _vtype685, _size683); - uint32_t _i687; - for (_i687 = 0; _i687 < _size683; ++_i687) + uint32_t _size690; + ::apache::thrift::protocol::TType _ktype691; + ::apache::thrift::protocol::TType _vtype692; + xfer += iprot->readMapBegin(_ktype691, _vtype692, _size690); + uint32_t _i694; + for (_i694 = 0; _i694 < _size690; ++_i694) { - std::string _key688; - xfer += iprot->readString(_key688); - std::string& _val689 = (*(this->success))[_key688]; - xfer += iprot->readString(_val689); + std::string _key695; + xfer += iprot->readString(_key695); + std::string& _val696 = (*(this->success))[_key695]; + xfer += iprot->readString(_val696); } xfer += iprot->readMapEnd(); } @@ -14164,17 +14164,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size690; - ::apache::thrift::protocol::TType _ktype691; - ::apache::thrift::protocol::TType _vtype692; - xfer += iprot->readMapBegin(_ktype691, _vtype692, _size690); - uint32_t _i694; - for (_i694 = 0; _i694 < _size690; ++_i694) + uint32_t _size697; + ::apache::thrift::protocol::TType _ktype698; + ::apache::thrift::protocol::TType _vtype699; + xfer += iprot->readMapBegin(_ktype698, _vtype699, _size697); + uint32_t _i701; + for (_i701 = 0; _i701 < _size697; ++_i701) { - std::string _key695; - xfer += iprot->readString(_key695); - std::string& _val696 = this->part_vals[_key695]; - xfer += iprot->readString(_val696); + std::string _key702; + xfer += iprot->readString(_key702); + std::string& _val703 = this->part_vals[_key702]; + xfer += iprot->readString(_val703); } xfer += iprot->readMapEnd(); } @@ -14185,9 +14185,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast697; - xfer += iprot->readI32(ecast697); - this->eventType = (PartitionEventType::type)ecast697; + int32_t ecast704; + xfer += iprot->readI32(ecast704); + this->eventType = (PartitionEventType::type)ecast704; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14220,11 +14220,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::write(::apache::thrift: xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter698; - for (_iter698 = this->part_vals.begin(); _iter698 != this->part_vals.end(); ++_iter698) + std::map ::const_iterator _iter705; + for (_iter705 = this->part_vals.begin(); _iter705 != this->part_vals.end(); ++_iter705) { - xfer += oprot->writeString(_iter698->first); - xfer += oprot->writeString(_iter698->second); + xfer += oprot->writeString(_iter705->first); + xfer += oprot->writeString(_iter705->second); } xfer += oprot->writeMapEnd(); } @@ -14254,11 +14254,11 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_pargs::write(::apache::thrift xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter699; - for (_iter699 = (*(this->part_vals)).begin(); _iter699 != (*(this->part_vals)).end(); ++_iter699) + std::map ::const_iterator _iter706; + for (_iter706 = (*(this->part_vals)).begin(); _iter706 != (*(this->part_vals)).end(); ++_iter706) { - xfer += oprot->writeString(_iter699->first); - xfer += oprot->writeString(_iter699->second); + xfer += oprot->writeString(_iter706->first); + xfer += oprot->writeString(_iter706->second); } xfer += oprot->writeMapEnd(); } @@ -14509,17 +14509,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size700; - ::apache::thrift::protocol::TType _ktype701; - ::apache::thrift::protocol::TType _vtype702; - xfer += iprot->readMapBegin(_ktype701, _vtype702, _size700); - uint32_t _i704; - for (_i704 = 0; _i704 < _size700; ++_i704) + uint32_t _size707; + ::apache::thrift::protocol::TType _ktype708; + ::apache::thrift::protocol::TType _vtype709; + xfer += iprot->readMapBegin(_ktype708, _vtype709, _size707); + uint32_t _i711; + for (_i711 = 0; _i711 < _size707; ++_i711) { - std::string _key705; - xfer += iprot->readString(_key705); - std::string& _val706 = this->part_vals[_key705]; - xfer += iprot->readString(_val706); + std::string _key712; + xfer += iprot->readString(_key712); + std::string& _val713 = this->part_vals[_key712]; + xfer += iprot->readString(_val713); } xfer += iprot->readMapEnd(); } @@ -14530,9 +14530,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast707; - xfer += iprot->readI32(ecast707); - this->eventType = (PartitionEventType::type)ecast707; + int32_t ecast714; + xfer += iprot->readI32(ecast714); + this->eventType = (PartitionEventType::type)ecast714; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -14565,11 +14565,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::write(::apache::thr xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->part_vals.size())); - std::map ::const_iterator _iter708; - for (_iter708 = this->part_vals.begin(); _iter708 != this->part_vals.end(); ++_iter708) + std::map ::const_iterator _iter715; + for (_iter715 = this->part_vals.begin(); _iter715 != this->part_vals.end(); ++_iter715) { - xfer += oprot->writeString(_iter708->first); - xfer += oprot->writeString(_iter708->second); + xfer += oprot->writeString(_iter715->first); + xfer += oprot->writeString(_iter715->second); } xfer += oprot->writeMapEnd(); } @@ -14599,11 +14599,11 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_pargs::write(::apache::th xfer += oprot->writeFieldBegin("part_vals", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast((*(this->part_vals)).size())); - std::map ::const_iterator _iter709; - for (_iter709 = (*(this->part_vals)).begin(); _iter709 != (*(this->part_vals)).end(); ++_iter709) + std::map ::const_iterator _iter716; + for (_iter716 = (*(this->part_vals)).begin(); _iter716 != (*(this->part_vals)).end(); ++_iter716) { - xfer += oprot->writeString(_iter709->first); - xfer += oprot->writeString(_iter709->second); + xfer += oprot->writeString(_iter716->first); + xfer += oprot->writeString(_iter716->second); } xfer += oprot->writeMapEnd(); } @@ -15908,14 +15908,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size710; - ::apache::thrift::protocol::TType _etype713; - xfer += iprot->readListBegin(_etype713, _size710); - this->success.resize(_size710); - uint32_t _i714; - for (_i714 = 0; _i714 < _size710; ++_i714) + uint32_t _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->success.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += this->success[_i714].read(iprot); + xfer += this->success[_i721].read(iprot); } xfer += iprot->readListEnd(); } @@ -15962,10 +15962,10 @@ uint32_t ThriftHiveMetastore_get_indexes_result::write(::apache::thrift::protoco xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter715; - for (_iter715 = this->success.begin(); _iter715 != this->success.end(); ++_iter715) + std::vector ::const_iterator _iter722; + for (_iter722 = this->success.begin(); _iter722 != this->success.end(); ++_iter722) { - xfer += (*_iter715).write(oprot); + xfer += (*_iter722).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16008,14 +16008,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size716; - ::apache::thrift::protocol::TType _etype719; - xfer += iprot->readListBegin(_etype719, _size716); - (*(this->success)).resize(_size716); - uint32_t _i720; - for (_i720 = 0; _i720 < _size716; ++_i720) + uint32_t _size723; + ::apache::thrift::protocol::TType _etype726; + xfer += iprot->readListBegin(_etype726, _size723); + (*(this->success)).resize(_size723); + uint32_t _i727; + for (_i727 = 0; _i727 < _size723; ++_i727) { - xfer += (*(this->success))[_i720].read(iprot); + xfer += (*(this->success))[_i727].read(iprot); } xfer += iprot->readListEnd(); } @@ -16174,14 +16174,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size721; - ::apache::thrift::protocol::TType _etype724; - xfer += iprot->readListBegin(_etype724, _size721); - this->success.resize(_size721); - uint32_t _i725; - for (_i725 = 0; _i725 < _size721; ++_i725) + uint32_t _size728; + ::apache::thrift::protocol::TType _etype731; + xfer += iprot->readListBegin(_etype731, _size728); + this->success.resize(_size728); + uint32_t _i732; + for (_i732 = 0; _i732 < _size728; ++_i732) { - xfer += iprot->readString(this->success[_i725]); + xfer += iprot->readString(this->success[_i732]); } xfer += iprot->readListEnd(); } @@ -16220,10 +16220,10 @@ uint32_t ThriftHiveMetastore_get_index_names_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter726; - for (_iter726 = this->success.begin(); _iter726 != this->success.end(); ++_iter726) + std::vector ::const_iterator _iter733; + for (_iter733 = this->success.begin(); _iter733 != this->success.end(); ++_iter733) { - xfer += oprot->writeString((*_iter726)); + xfer += oprot->writeString((*_iter733)); } xfer += oprot->writeListEnd(); } @@ -16262,14 +16262,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size727; - ::apache::thrift::protocol::TType _etype730; - xfer += iprot->readListBegin(_etype730, _size727); - (*(this->success)).resize(_size727); - uint32_t _i731; - for (_i731 = 0; _i731 < _size727; ++_i731) + uint32_t _size734; + ::apache::thrift::protocol::TType _etype737; + xfer += iprot->readListBegin(_etype737, _size734); + (*(this->success)).resize(_size734); + uint32_t _i738; + for (_i738 = 0; _i738 < _size734; ++_i738) { - xfer += iprot->readString((*(this->success))[_i731]); + xfer += iprot->readString((*(this->success))[_i738]); } xfer += iprot->readListEnd(); } @@ -19054,14 +19054,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size732; - ::apache::thrift::protocol::TType _etype735; - xfer += iprot->readListBegin(_etype735, _size732); - this->success.resize(_size732); - uint32_t _i736; - for (_i736 = 0; _i736 < _size732; ++_i736) + uint32_t _size739; + ::apache::thrift::protocol::TType _etype742; + xfer += iprot->readListBegin(_etype742, _size739); + this->success.resize(_size739); + uint32_t _i743; + for (_i743 = 0; _i743 < _size739; ++_i743) { - xfer += iprot->readString(this->success[_i736]); + xfer += iprot->readString(this->success[_i743]); } xfer += iprot->readListEnd(); } @@ -19100,10 +19100,10 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter737; - for (_iter737 = this->success.begin(); _iter737 != this->success.end(); ++_iter737) + std::vector ::const_iterator _iter744; + for (_iter744 = this->success.begin(); _iter744 != this->success.end(); ++_iter744) { - xfer += oprot->writeString((*_iter737)); + xfer += oprot->writeString((*_iter744)); } xfer += oprot->writeListEnd(); } @@ -19142,14 +19142,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size738; - ::apache::thrift::protocol::TType _etype741; - xfer += iprot->readListBegin(_etype741, _size738); - (*(this->success)).resize(_size738); - uint32_t _i742; - for (_i742 = 0; _i742 < _size738; ++_i742) + uint32_t _size745; + ::apache::thrift::protocol::TType _etype748; + xfer += iprot->readListBegin(_etype748, _size745); + (*(this->success)).resize(_size745); + uint32_t _i749; + for (_i749 = 0; _i749 < _size745; ++_i749) { - xfer += iprot->readString((*(this->success))[_i742]); + xfer += iprot->readString((*(this->success))[_i749]); } xfer += iprot->readListEnd(); } @@ -19829,14 +19829,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size743; - ::apache::thrift::protocol::TType _etype746; - xfer += iprot->readListBegin(_etype746, _size743); - this->success.resize(_size743); - uint32_t _i747; - for (_i747 = 0; _i747 < _size743; ++_i747) + uint32_t _size750; + ::apache::thrift::protocol::TType _etype753; + xfer += iprot->readListBegin(_etype753, _size750); + this->success.resize(_size750); + uint32_t _i754; + for (_i754 = 0; _i754 < _size750; ++_i754) { - xfer += iprot->readString(this->success[_i747]); + xfer += iprot->readString(this->success[_i754]); } xfer += iprot->readListEnd(); } @@ -19875,10 +19875,10 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter748; - for (_iter748 = this->success.begin(); _iter748 != this->success.end(); ++_iter748) + std::vector ::const_iterator _iter755; + for (_iter755 = this->success.begin(); _iter755 != this->success.end(); ++_iter755) { - xfer += oprot->writeString((*_iter748)); + xfer += oprot->writeString((*_iter755)); } xfer += oprot->writeListEnd(); } @@ -19917,14 +19917,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size749; - ::apache::thrift::protocol::TType _etype752; - xfer += iprot->readListBegin(_etype752, _size749); - (*(this->success)).resize(_size749); - uint32_t _i753; - for (_i753 = 0; _i753 < _size749; ++_i753) + uint32_t _size756; + ::apache::thrift::protocol::TType _etype759; + xfer += iprot->readListBegin(_etype759, _size756); + (*(this->success)).resize(_size756); + uint32_t _i760; + for (_i760 = 0; _i760 < _size756; ++_i760) { - xfer += iprot->readString((*(this->success))[_i753]); + xfer += iprot->readString((*(this->success))[_i760]); } xfer += iprot->readListEnd(); } @@ -19991,9 +19991,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast754; - xfer += iprot->readI32(ecast754); - this->principal_type = (PrincipalType::type)ecast754; + int32_t ecast761; + xfer += iprot->readI32(ecast761); + this->principal_type = (PrincipalType::type)ecast761; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20009,9 +20009,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast755; - xfer += iprot->readI32(ecast755); - this->grantorType = (PrincipalType::type)ecast755; + int32_t ecast762; + xfer += iprot->readI32(ecast762); + this->grantorType = (PrincipalType::type)ecast762; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20241,25 +20241,233 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: { 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->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 ecast763; + xfer += iprot->readI32(ecast763); + this->principal_type = (PrincipalType::type)ecast763; + 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 3: + case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast756; - xfer += iprot->readI32(ecast756); - this->principal_type = (PrincipalType::type)ecast756; + int32_t ecast764; + xfer += iprot->readI32(ecast764); + this->principal_type = (PrincipalType::type)ecast764; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20277,19 +20485,15 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_list_roles_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->writeStructBegin("ThriftHiveMetastore_list_roles_args"); - xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2); + 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, 3); + xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2); xfer += oprot->writeI32((int32_t)this->principal_type); xfer += oprot->writeFieldEnd(); @@ -20298,19 +20502,15 @@ uint32_t ThriftHiveMetastore_revoke_role_args::write(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_list_roles_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->writeStructBegin("ThriftHiveMetastore_list_roles_pargs"); - xfer += oprot->writeFieldBegin("principal_name", ::apache::thrift::protocol::T_STRING, 2); + 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, 3); + xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2); xfer += oprot->writeI32((int32_t)(*(this->principal_type))); xfer += oprot->writeFieldEnd(); @@ -20319,7 +20519,7 @@ uint32_t ThriftHiveMetastore_revoke_role_pargs::write(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20340,8 +20540,20 @@ uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size765; + ::apache::thrift::protocol::TType _etype768; + xfer += iprot->readListBegin(_etype768, _size765); + this->success.resize(_size765); + uint32_t _i769; + for (_i769 = 0; _i769 < _size765; ++_i769) + { + xfer += this->success[_i769].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20367,15 +20579,23 @@ uint32_t ThriftHiveMetastore_revoke_role_result::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_revoke_role_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_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_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter770; + for (_iter770 = this->success.begin(); _iter770 != this->success.end(); ++_iter770) + { + xfer += (*_iter770).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -20387,7 +20607,7 @@ uint32_t ThriftHiveMetastore_revoke_role_result::write(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20408,8 +20628,20 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size771; + ::apache::thrift::protocol::TType _etype774; + xfer += iprot->readListBegin(_etype774, _size771); + (*(this->success)).resize(_size771); + uint32_t _i775; + for (_i775 = 0; _i775 < _size771; ++_i775) + { + xfer += (*(this->success))[_i775].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20435,7 +20667,7 @@ uint32_t ThriftHiveMetastore_revoke_role_presult::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20456,19 +20688,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T 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 ecast757; - xfer += iprot->readI32(ecast757); - this->principal_type = (PrincipalType::type)ecast757; - this->__isset.principal_type = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -20485,16 +20707,12 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_principals_in_role_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->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_args"); - xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)this->principal_type); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20502,16 +20720,12 @@ uint32_t ThriftHiveMetastore_list_roles_args::write(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_principals_in_role_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->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_pargs"); - xfer += oprot->writeFieldBegin("principal_type", ::apache::thrift::protocol::T_I32, 2); - xfer += oprot->writeI32((int32_t)(*(this->principal_type))); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -20519,7 +20733,7 @@ uint32_t ThriftHiveMetastore_list_roles_pargs::write(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_principals_in_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20540,20 +20754,8 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size758; - ::apache::thrift::protocol::TType _etype761; - xfer += iprot->readListBegin(_etype761, _size758); - this->success.resize(_size758); - uint32_t _i762; - for (_i762 = 0; _i762 < _size758; ++_i762) - { - xfer += this->success[_i762].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20579,23 +20781,15 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_list_roles_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter763; - for (_iter763 = this->success.begin(); _iter763 != this->success.end(); ++_iter763) - { - xfer += (*_iter763).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); @@ -20607,7 +20801,7 @@ uint32_t ThriftHiveMetastore_list_roles_result::write(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_principals_in_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20628,20 +20822,8 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size764; - ::apache::thrift::protocol::TType _etype767; - xfer += iprot->readListBegin(_etype767, _size764); - (*(this->success)).resize(_size764); - uint32_t _i768; - for (_i768 = 0; _i768 < _size764; ++_i768) - { - xfer += (*(this->success))[_i768].read(iprot); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -20667,7 +20849,7 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20707,9 +20889,9 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::read(::apache::thrift: return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -20720,9 +20902,9 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -20733,7 +20915,7 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrif return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_result::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20781,11 +20963,11 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_result::read(::apache::thrif return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_grants_for_principal_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -20801,7 +20983,7 @@ uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thri return xfer; } -uint32_t ThriftHiveMetastore_get_principals_in_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_role_grants_for_principal_presult::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -20889,14 +21071,14 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size769; - ::apache::thrift::protocol::TType _etype772; - xfer += iprot->readListBegin(_etype772, _size769); - this->group_names.resize(_size769); - uint32_t _i773; - for (_i773 = 0; _i773 < _size769; ++_i773) + uint32_t _size776; + ::apache::thrift::protocol::TType _etype779; + xfer += iprot->readListBegin(_etype779, _size776); + this->group_names.resize(_size776); + uint32_t _i780; + for (_i780 = 0; _i780 < _size776; ++_i780) { - xfer += iprot->readString(this->group_names[_i773]); + xfer += iprot->readString(this->group_names[_i780]); } xfer += iprot->readListEnd(); } @@ -20932,10 +21114,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_args::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter774; - for (_iter774 = this->group_names.begin(); _iter774 != this->group_names.end(); ++_iter774) + std::vector ::const_iterator _iter781; + for (_iter781 = this->group_names.begin(); _iter781 != this->group_names.end(); ++_iter781) { - xfer += oprot->writeString((*_iter774)); + xfer += oprot->writeString((*_iter781)); } xfer += oprot->writeListEnd(); } @@ -20961,10 +21143,10 @@ uint32_t ThriftHiveMetastore_get_privilege_set_pargs::write(::apache::thrift::pr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter775; - for (_iter775 = (*(this->group_names)).begin(); _iter775 != (*(this->group_names)).end(); ++_iter775) + std::vector ::const_iterator _iter782; + for (_iter782 = (*(this->group_names)).begin(); _iter782 != (*(this->group_names)).end(); ++_iter782) { - xfer += oprot->writeString((*_iter775)); + xfer += oprot->writeString((*_iter782)); } xfer += oprot->writeListEnd(); } @@ -21121,9 +21303,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast776; - xfer += iprot->readI32(ecast776); - this->principal_type = (PrincipalType::type)ecast776; + int32_t ecast783; + xfer += iprot->readI32(ecast783); + this->principal_type = (PrincipalType::type)ecast783; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21215,14 +21397,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size777; - ::apache::thrift::protocol::TType _etype780; - xfer += iprot->readListBegin(_etype780, _size777); - this->success.resize(_size777); - uint32_t _i781; - for (_i781 = 0; _i781 < _size777; ++_i781) + uint32_t _size784; + ::apache::thrift::protocol::TType _etype787; + xfer += iprot->readListBegin(_etype787, _size784); + this->success.resize(_size784); + uint32_t _i788; + for (_i788 = 0; _i788 < _size784; ++_i788) { - xfer += this->success[_i781].read(iprot); + xfer += this->success[_i788].read(iprot); } xfer += iprot->readListEnd(); } @@ -21261,10 +21443,10 @@ uint32_t ThriftHiveMetastore_list_privileges_result::write(::apache::thrift::pro xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); - std::vector ::const_iterator _iter782; - for (_iter782 = this->success.begin(); _iter782 != this->success.end(); ++_iter782) + std::vector ::const_iterator _iter789; + for (_iter789 = this->success.begin(); _iter789 != this->success.end(); ++_iter789) { - xfer += (*_iter782).write(oprot); + xfer += (*_iter789).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21303,14 +21485,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size783; - ::apache::thrift::protocol::TType _etype786; - xfer += iprot->readListBegin(_etype786, _size783); - (*(this->success)).resize(_size783); - uint32_t _i787; - for (_i787 = 0; _i787 < _size783; ++_i787) + uint32_t _size790; + ::apache::thrift::protocol::TType _etype793; + xfer += iprot->readListBegin(_etype793, _size790); + (*(this->success)).resize(_size790); + uint32_t _i794; + for (_i794 = 0; _i794 < _size790; ++_i794) { - xfer += (*(this->success))[_i787].read(iprot); + xfer += (*(this->success))[_i794].read(iprot); } xfer += iprot->readListEnd(); } @@ -21735,14 +21917,14 @@ uint32_t ThriftHiveMetastore_set_ugi_args::read(::apache::thrift::protocol::TPro if (ftype == ::apache::thrift::protocol::T_LIST) { { this->group_names.clear(); - uint32_t _size788; - ::apache::thrift::protocol::TType _etype791; - xfer += iprot->readListBegin(_etype791, _size788); - this->group_names.resize(_size788); - uint32_t _i792; - for (_i792 = 0; _i792 < _size788; ++_i792) + uint32_t _size795; + ::apache::thrift::protocol::TType _etype798; + xfer += iprot->readListBegin(_etype798, _size795); + this->group_names.resize(_size795); + uint32_t _i799; + for (_i799 = 0; _i799 < _size795; ++_i799) { - xfer += iprot->readString(this->group_names[_i792]); + xfer += iprot->readString(this->group_names[_i799]); } xfer += iprot->readListEnd(); } @@ -21774,10 +21956,10 @@ uint32_t ThriftHiveMetastore_set_ugi_args::write(::apache::thrift::protocol::TPr xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->group_names.size())); - std::vector ::const_iterator _iter793; - for (_iter793 = this->group_names.begin(); _iter793 != this->group_names.end(); ++_iter793) + std::vector ::const_iterator _iter800; + for (_iter800 = this->group_names.begin(); _iter800 != this->group_names.end(); ++_iter800) { - xfer += oprot->writeString((*_iter793)); + xfer += oprot->writeString((*_iter800)); } xfer += oprot->writeListEnd(); } @@ -21799,10 +21981,10 @@ uint32_t ThriftHiveMetastore_set_ugi_pargs::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("group_names", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->group_names)).size())); - std::vector ::const_iterator _iter794; - for (_iter794 = (*(this->group_names)).begin(); _iter794 != (*(this->group_names)).end(); ++_iter794) + std::vector ::const_iterator _iter801; + for (_iter801 = (*(this->group_names)).begin(); _iter801 != (*(this->group_names)).end(); ++_iter801) { - xfer += oprot->writeString((*_iter794)); + xfer += oprot->writeString((*_iter801)); } xfer += oprot->writeListEnd(); } @@ -21837,14 +22019,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size795; - ::apache::thrift::protocol::TType _etype798; - xfer += iprot->readListBegin(_etype798, _size795); - this->success.resize(_size795); - uint32_t _i799; - for (_i799 = 0; _i799 < _size795; ++_i799) + uint32_t _size802; + ::apache::thrift::protocol::TType _etype805; + xfer += iprot->readListBegin(_etype805, _size802); + this->success.resize(_size802); + uint32_t _i806; + for (_i806 = 0; _i806 < _size802; ++_i806) { - xfer += iprot->readString(this->success[_i799]); + xfer += iprot->readString(this->success[_i806]); } xfer += iprot->readListEnd(); } @@ -21883,10 +22065,10 @@ uint32_t ThriftHiveMetastore_set_ugi_result::write(::apache::thrift::protocol::T xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter800; - for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) + std::vector ::const_iterator _iter807; + for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) { - xfer += oprot->writeString((*_iter800)); + xfer += oprot->writeString((*_iter807)); } xfer += oprot->writeListEnd(); } @@ -21925,14 +22107,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - (*(this->success)).resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + (*(this->success)).resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += iprot->readString((*(this->success))[_i805]); + xfer += iprot->readString((*(this->success))[_i812]); } xfer += iprot->readListEnd(); } @@ -30113,6 +30295,67 @@ void ThriftHiveMetastoreClient::recv_get_principals_in_role(GetPrincipalsInRoleR throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_principals_in_role failed: unknown result"); } +void ThriftHiveMetastoreClient::get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) +{ + send_get_role_grants_for_principal(request); + recv_get_role_grants_for_principal(_return); +} + +void ThriftHiveMetastoreClient::send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_role_grants_for_principal_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _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(); + } + if (fname.compare("get_role_grants_for_principal") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_role_grants_for_principal_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_role_grants_for_principal failed: unknown result"); +} + void ThriftHiveMetastoreClient::get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { send_get_privilege_set(hiveObject, user_name, group_names); @@ -36477,6 +36720,63 @@ void ThriftHiveMetastoreProcessor::process_get_principals_in_role(int32_t seqid, } } +void ThriftHiveMetastoreProcessor::process_get_role_grants_for_principal(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.get_role_grants_for_principal", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_role_grants_for_principal"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_role_grants_for_principal"); + } + + ThriftHiveMetastore_get_role_grants_for_principal_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_role_grants_for_principal", bytes); + } + + ThriftHiveMetastore_get_role_grants_for_principal_result result; + try { + iface_->get_role_grants_for_principal(result.success, args.request); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_role_grants_for_principal"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_role_grants_for_principal"); + } + + oprot->writeMessageBegin("get_role_grants_for_principal", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_role_grants_for_principal", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index ca972ef..469a590 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -101,6 +101,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService 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_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request) = 0; + virtual void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) = 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; @@ -423,6 +424,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_principals_in_role(GetPrincipalsInRoleResponse& /* _return */, const GetPrincipalsInRoleRequest& /* request */) { return; } + void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& /* _return */, const GetRoleGrantsForPrincipalRequest& /* request */) { + return; + } void get_privilege_set(PrincipalPrivilegeSet& /* _return */, const HiveObjectRef& /* hiveObject */, const std::string& /* user_name */, const std::vector & /* group_names */) { return; } @@ -12634,6 +12638,124 @@ class ThriftHiveMetastore_get_principals_in_role_presult { }; +typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_args__isset { + _ThriftHiveMetastore_get_role_grants_for_principal_args__isset() : request(false) {} + bool request; +} _ThriftHiveMetastore_get_role_grants_for_principal_args__isset; + +class ThriftHiveMetastore_get_role_grants_for_principal_args { + public: + + ThriftHiveMetastore_get_role_grants_for_principal_args() { + } + + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_args() throw() {} + + GetRoleGrantsForPrincipalRequest request; + + _ThriftHiveMetastore_get_role_grants_for_principal_args__isset __isset; + + void __set_request(const GetRoleGrantsForPrincipalRequest& val) { + request = val; + } + + bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_role_grants_for_principal_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_role_grants_for_principal_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_role_grants_for_principal_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_pargs() throw() {} + + const GetRoleGrantsForPrincipalRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_result__isset { + _ThriftHiveMetastore_get_role_grants_for_principal_result__isset() : success(false), o1(false) {} + bool success; + bool o1; +} _ThriftHiveMetastore_get_role_grants_for_principal_result__isset; + +class ThriftHiveMetastore_get_role_grants_for_principal_result { + public: + + ThriftHiveMetastore_get_role_grants_for_principal_result() { + } + + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_result() throw() {} + + GetRoleGrantsForPrincipalResponse success; + MetaException o1; + + _ThriftHiveMetastore_get_role_grants_for_principal_result__isset __isset; + + void __set_success(const GetRoleGrantsForPrincipalResponse& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + bool operator == (const ThriftHiveMetastore_get_role_grants_for_principal_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_role_grants_for_principal_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_role_grants_for_principal_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset { + _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset() : success(false), o1(false) {} + bool success; + bool o1; +} _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset; + +class ThriftHiveMetastore_get_role_grants_for_principal_presult { + public: + + + virtual ~ThriftHiveMetastore_get_role_grants_for_principal_presult() throw() {} + + GetRoleGrantsForPrincipalResponse* success; + MetaException o1; + + _ThriftHiveMetastore_get_role_grants_for_principal_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_get_privilege_set_args__isset { _ThriftHiveMetastore_get_privilege_set_args__isset() : hiveObject(false), user_name(false), group_names(false) {} bool hiveObject; @@ -15227,6 +15349,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request); void send_get_principals_in_role(const GetPrincipalsInRoleRequest& request); void recv_get_principals_in_role(GetPrincipalsInRoleResponse& _return); + void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request); + void send_get_role_grants_for_principal(const GetRoleGrantsForPrincipalRequest& request); + void recv_get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return); void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names); void send_get_privilege_set(const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names); void recv_get_privilege_set(PrincipalPrivilegeSet& _return); @@ -15382,6 +15507,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_revoke_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_list_roles(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_principals_in_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_role_grants_for_principal(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_privilege_set(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_list_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_grant_privileges(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -15491,6 +15617,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["revoke_role"] = &ThriftHiveMetastoreProcessor::process_revoke_role; processMap_["list_roles"] = &ThriftHiveMetastoreProcessor::process_list_roles; processMap_["get_principals_in_role"] = &ThriftHiveMetastoreProcessor::process_get_principals_in_role; + processMap_["get_role_grants_for_principal"] = &ThriftHiveMetastoreProcessor::process_get_role_grants_for_principal; processMap_["get_privilege_set"] = &ThriftHiveMetastoreProcessor::process_get_privilege_set; processMap_["list_privileges"] = &ThriftHiveMetastoreProcessor::process_list_privileges; processMap_["grant_privileges"] = &ThriftHiveMetastoreProcessor::process_grant_privileges; @@ -16358,6 +16485,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_role_grants_for_principal(_return, request); + } + ifaces_[i]->get_role_grants_for_principal(_return, request); + return; + } + void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { size_t sz = ifaces_.size(); size_t i = 0; diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index d1523ce..cdc04e0 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -447,6 +447,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_principals_in_role\n"); } + void get_role_grants_for_principal(GetRoleGrantsForPrincipalResponse& _return, const GetRoleGrantsForPrincipalRequest& request) { + // Your implementation goes here + printf("get_role_grants_for_principal\n"); + } + void get_privilege_set(PrincipalPrivilegeSet& _return, const HiveObjectRef& hiveObject, const std::string& user_name, const std::vector & group_names) { // Your implementation goes here printf("get_privilege_set\n"); diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index 59ac959..e213890 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -1070,8 +1070,8 @@ void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { swap(a.__isset, b.__isset); } -const char* Role::ascii_fingerprint = "8DEBC3096AEF414FFF38C357ECEEA8BC"; -const uint8_t Role::binary_fingerprint[16] = {0x8D,0xEB,0xC3,0x09,0x6A,0xEF,0x41,0x4F,0xFF,0x38,0xC3,0x57,0xEC,0xEE,0xA8,0xBC}; +const char* Role::ascii_fingerprint = "70563A0628F75DF9555F4D24690B1E26"; +const uint8_t Role::binary_fingerprint[16] = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { @@ -1117,46 +1117,6 @@ uint32_t Role::read(::apache::thrift::protocol::TProtocol* iprot) { xfer += iprot->skip(ftype); } break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->principalName); - this->__isset.principalName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 5: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->principalType); - this->__isset.principalType = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 6: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->grantOption); - this->__isset.grantOption = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 7: - if (ftype == ::apache::thrift::protocol::T_I32) { - xfer += iprot->readI32(this->grantTime); - this->__isset.grantTime = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 8: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->grantor); - this->__isset.grantor = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -1185,31 +1145,6 @@ uint32_t Role::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeString(this->ownerName); xfer += oprot->writeFieldEnd(); - if (this->__isset.principalName) { - xfer += oprot->writeFieldBegin("principalName", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->principalName); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.principalType) { - xfer += oprot->writeFieldBegin("principalType", ::apache::thrift::protocol::T_STRING, 5); - xfer += oprot->writeString(this->principalType); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.grantOption) { - xfer += oprot->writeFieldBegin("grantOption", ::apache::thrift::protocol::T_BOOL, 6); - xfer += oprot->writeBool(this->grantOption); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.grantTime) { - xfer += oprot->writeFieldBegin("grantTime", ::apache::thrift::protocol::T_I32, 7); - xfer += oprot->writeI32(this->grantTime); - xfer += oprot->writeFieldEnd(); - } - if (this->__isset.grantor) { - xfer += oprot->writeFieldBegin("grantor", ::apache::thrift::protocol::T_STRING, 8); - xfer += oprot->writeString(this->grantor); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; @@ -1220,11 +1155,6 @@ void swap(Role &a, Role &b) { swap(a.roleName, b.roleName); swap(a.createTime, b.createTime); swap(a.ownerName, b.ownerName); - swap(a.principalName, b.principalName); - swap(a.principalType, b.principalType); - swap(a.grantOption, b.grantOption); - swap(a.grantTime, b.grantTime); - swap(a.grantor, b.grantor); swap(a.__isset, b.__isset); } @@ -1372,6 +1302,172 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__isset); } +const char* GetRoleGrantsForPrincipalRequest::ascii_fingerprint = "D6FD826D949221396F4FFC3ECCD3D192"; +const uint8_t GetRoleGrantsForPrincipalRequest::binary_fingerprint[16] = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; + +uint32_t GetRoleGrantsForPrincipalRequest::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; + + bool isset_principal_name = false; + bool isset_principal_type = false; + + 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); + isset_principal_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast65; + xfer += iprot->readI32(ecast65); + this->principal_type = (PrincipalType::type)ecast65; + isset_principal_type = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_principal_name) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_principal_type) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t GetRoleGrantsForPrincipalRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalRequest"); + + 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; +} + +void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest &b) { + using ::std::swap; + swap(a.principal_name, b.principal_name); + swap(a.principal_type, b.principal_type); +} + +const char* GetRoleGrantsForPrincipalResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; +const uint8_t GetRoleGrantsForPrincipalResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; + +uint32_t GetRoleGrantsForPrincipalResponse::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; + + bool isset_principalGrants = false; + + 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_LIST) { + { + this->principalGrants.clear(); + uint32_t _size66; + ::apache::thrift::protocol::TType _etype69; + xfer += iprot->readListBegin(_etype69, _size66); + this->principalGrants.resize(_size66); + uint32_t _i70; + for (_i70 = 0; _i70 < _size66; ++_i70) + { + xfer += this->principalGrants[_i70].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_principalGrants = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_principalGrants) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("GetRoleGrantsForPrincipalResponse"); + + xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); + std::vector ::const_iterator _iter71; + for (_iter71 = this->principalGrants.begin(); _iter71 != this->principalGrants.end(); ++_iter71) + { + xfer += (*_iter71).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalResponse &b) { + using ::std::swap; + swap(a.principalGrants, b.principalGrants); +} + const char* GetPrincipalsInRoleRequest::ascii_fingerprint = "EFB929595D312AC8F305D5A794CFEDA1"; const uint8_t GetPrincipalsInRoleRequest::binary_fingerprint[16] = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; @@ -1386,6 +1482,7 @@ uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* using ::apache::thrift::protocol::TProtocolException; + bool isset_roleName = false; while (true) { @@ -1398,7 +1495,7 @@ uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { xfer += iprot->readString(this->roleName); - this->__isset.roleName = true; + isset_roleName = true; } else { xfer += iprot->skip(ftype); } @@ -1412,6 +1509,8 @@ uint32_t GetPrincipalsInRoleRequest::read(::apache::thrift::protocol::TProtocol* xfer += iprot->readStructEnd(); + if (!isset_roleName) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } @@ -1431,7 +1530,6 @@ uint32_t GetPrincipalsInRoleRequest::write(::apache::thrift::protocol::TProtocol void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { using ::std::swap; swap(a.roleName, b.roleName); - swap(a.__isset, b.__isset); } const char* GetPrincipalsInRoleResponse::ascii_fingerprint = "5926B4B3541A62E17663820C7E3BE690"; @@ -1448,6 +1546,7 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol using ::apache::thrift::protocol::TProtocolException; + bool isset_principalGrants = false; while (true) { @@ -1461,18 +1560,18 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size65; - ::apache::thrift::protocol::TType _etype68; - xfer += iprot->readListBegin(_etype68, _size65); - this->principalGrants.resize(_size65); - uint32_t _i69; - for (_i69 = 0; _i69 < _size65; ++_i69) + uint32_t _size72; + ::apache::thrift::protocol::TType _etype75; + xfer += iprot->readListBegin(_etype75, _size72); + this->principalGrants.resize(_size72); + uint32_t _i76; + for (_i76 = 0; _i76 < _size72; ++_i76) { - xfer += this->principalGrants[_i69].read(iprot); + xfer += this->principalGrants[_i76].read(iprot); } xfer += iprot->readListEnd(); } - this->__isset.principalGrants = true; + isset_principalGrants = true; } else { xfer += iprot->skip(ftype); } @@ -1486,6 +1585,8 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol xfer += iprot->readStructEnd(); + if (!isset_principalGrants) + throw TProtocolException(TProtocolException::INVALID_DATA); return xfer; } @@ -1496,10 +1597,10 @@ uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter70; - for (_iter70 = this->principalGrants.begin(); _iter70 != this->principalGrants.end(); ++_iter70) + std::vector ::const_iterator _iter77; + for (_iter77 = this->principalGrants.begin(); _iter77 != this->principalGrants.end(); ++_iter77) { - xfer += (*_iter70).write(oprot); + xfer += (*_iter77).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1513,7 +1614,6 @@ uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtoco void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { using ::std::swap; swap(a.principalGrants, b.principalGrants); - swap(a.__isset, b.__isset); } const char* Database::ascii_fingerprint = "553495CAE243A1C583D5C3DD990AED53"; @@ -1567,17 +1667,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size71; - ::apache::thrift::protocol::TType _ktype72; - ::apache::thrift::protocol::TType _vtype73; - xfer += iprot->readMapBegin(_ktype72, _vtype73, _size71); - uint32_t _i75; - for (_i75 = 0; _i75 < _size71; ++_i75) + uint32_t _size78; + ::apache::thrift::protocol::TType _ktype79; + ::apache::thrift::protocol::TType _vtype80; + xfer += iprot->readMapBegin(_ktype79, _vtype80, _size78); + uint32_t _i82; + for (_i82 = 0; _i82 < _size78; ++_i82) { - std::string _key76; - xfer += iprot->readString(_key76); - std::string& _val77 = this->parameters[_key76]; - xfer += iprot->readString(_val77); + std::string _key83; + xfer += iprot->readString(_key83); + std::string& _val84 = this->parameters[_key83]; + xfer += iprot->readString(_val84); } xfer += iprot->readMapEnd(); } @@ -1604,9 +1704,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast78; - xfer += iprot->readI32(ecast78); - this->ownerType = (PrincipalType::type)ecast78; + int32_t ecast85; + xfer += iprot->readI32(ecast85); + this->ownerType = (PrincipalType::type)ecast85; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -1643,11 +1743,11 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter79; - for (_iter79 = this->parameters.begin(); _iter79 != this->parameters.end(); ++_iter79) + std::map ::const_iterator _iter86; + for (_iter86 = this->parameters.begin(); _iter86 != this->parameters.end(); ++_iter86) { - xfer += oprot->writeString(_iter79->first); - xfer += oprot->writeString(_iter79->second); + xfer += oprot->writeString(_iter86->first); + xfer += oprot->writeString(_iter86->second); } xfer += oprot->writeMapEnd(); } @@ -1728,17 +1828,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size80; - ::apache::thrift::protocol::TType _ktype81; - ::apache::thrift::protocol::TType _vtype82; - xfer += iprot->readMapBegin(_ktype81, _vtype82, _size80); - uint32_t _i84; - for (_i84 = 0; _i84 < _size80; ++_i84) + uint32_t _size87; + ::apache::thrift::protocol::TType _ktype88; + ::apache::thrift::protocol::TType _vtype89; + xfer += iprot->readMapBegin(_ktype88, _vtype89, _size87); + uint32_t _i91; + for (_i91 = 0; _i91 < _size87; ++_i91) { - std::string _key85; - xfer += iprot->readString(_key85); - std::string& _val86 = this->parameters[_key85]; - xfer += iprot->readString(_val86); + std::string _key92; + xfer += iprot->readString(_key92); + std::string& _val93 = this->parameters[_key92]; + xfer += iprot->readString(_val93); } xfer += iprot->readMapEnd(); } @@ -1774,11 +1874,11 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter87; - for (_iter87 = this->parameters.begin(); _iter87 != this->parameters.end(); ++_iter87) + std::map ::const_iterator _iter94; + for (_iter94 = this->parameters.begin(); _iter94 != this->parameters.end(); ++_iter94) { - xfer += oprot->writeString(_iter87->first); - xfer += oprot->writeString(_iter87->second); + xfer += oprot->writeString(_iter94->first); + xfer += oprot->writeString(_iter94->second); } xfer += oprot->writeMapEnd(); } @@ -1899,14 +1999,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size88; - ::apache::thrift::protocol::TType _etype91; - xfer += iprot->readListBegin(_etype91, _size88); - this->skewedColNames.resize(_size88); - uint32_t _i92; - for (_i92 = 0; _i92 < _size88; ++_i92) + uint32_t _size95; + ::apache::thrift::protocol::TType _etype98; + xfer += iprot->readListBegin(_etype98, _size95); + this->skewedColNames.resize(_size95); + uint32_t _i99; + for (_i99 = 0; _i99 < _size95; ++_i99) { - xfer += iprot->readString(this->skewedColNames[_i92]); + xfer += iprot->readString(this->skewedColNames[_i99]); } xfer += iprot->readListEnd(); } @@ -1919,23 +2019,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->skewedColValues.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size100; + ::apache::thrift::protocol::TType _etype103; + xfer += iprot->readListBegin(_etype103, _size100); + this->skewedColValues.resize(_size100); + uint32_t _i104; + for (_i104 = 0; _i104 < _size100; ++_i104) { { - this->skewedColValues[_i97].clear(); - uint32_t _size98; - ::apache::thrift::protocol::TType _etype101; - xfer += iprot->readListBegin(_etype101, _size98); - this->skewedColValues[_i97].resize(_size98); - uint32_t _i102; - for (_i102 = 0; _i102 < _size98; ++_i102) + this->skewedColValues[_i104].clear(); + uint32_t _size105; + ::apache::thrift::protocol::TType _etype108; + xfer += iprot->readListBegin(_etype108, _size105); + this->skewedColValues[_i104].resize(_size105); + uint32_t _i109; + for (_i109 = 0; _i109 < _size105; ++_i109) { - xfer += iprot->readString(this->skewedColValues[_i97][_i102]); + xfer += iprot->readString(this->skewedColValues[_i104][_i109]); } xfer += iprot->readListEnd(); } @@ -1951,29 +2051,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size103; - ::apache::thrift::protocol::TType _ktype104; - ::apache::thrift::protocol::TType _vtype105; - xfer += iprot->readMapBegin(_ktype104, _vtype105, _size103); - uint32_t _i107; - for (_i107 = 0; _i107 < _size103; ++_i107) + uint32_t _size110; + ::apache::thrift::protocol::TType _ktype111; + ::apache::thrift::protocol::TType _vtype112; + xfer += iprot->readMapBegin(_ktype111, _vtype112, _size110); + uint32_t _i114; + for (_i114 = 0; _i114 < _size110; ++_i114) { - std::vector _key108; + std::vector _key115; { - _key108.clear(); - uint32_t _size110; - ::apache::thrift::protocol::TType _etype113; - xfer += iprot->readListBegin(_etype113, _size110); - _key108.resize(_size110); - uint32_t _i114; - for (_i114 = 0; _i114 < _size110; ++_i114) + _key115.clear(); + uint32_t _size117; + ::apache::thrift::protocol::TType _etype120; + xfer += iprot->readListBegin(_etype120, _size117); + _key115.resize(_size117); + uint32_t _i121; + for (_i121 = 0; _i121 < _size117; ++_i121) { - xfer += iprot->readString(_key108[_i114]); + xfer += iprot->readString(_key115[_i121]); } xfer += iprot->readListEnd(); } - std::string& _val109 = this->skewedColValueLocationMaps[_key108]; - xfer += iprot->readString(_val109); + std::string& _val116 = this->skewedColValueLocationMaps[_key115]; + xfer += iprot->readString(_val116); } xfer += iprot->readMapEnd(); } @@ -2001,10 +2101,10 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->skewedColNames.size())); - std::vector ::const_iterator _iter115; - for (_iter115 = this->skewedColNames.begin(); _iter115 != this->skewedColNames.end(); ++_iter115) + std::vector ::const_iterator _iter122; + for (_iter122 = this->skewedColNames.begin(); _iter122 != this->skewedColNames.end(); ++_iter122) { - xfer += oprot->writeString((*_iter115)); + xfer += oprot->writeString((*_iter122)); } xfer += oprot->writeListEnd(); } @@ -2013,15 +2113,15 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValues", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->skewedColValues.size())); - std::vector > ::const_iterator _iter116; - for (_iter116 = this->skewedColValues.begin(); _iter116 != this->skewedColValues.end(); ++_iter116) + std::vector > ::const_iterator _iter123; + for (_iter123 = this->skewedColValues.begin(); _iter123 != this->skewedColValues.end(); ++_iter123) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter116).size())); - std::vector ::const_iterator _iter117; - for (_iter117 = (*_iter116).begin(); _iter117 != (*_iter116).end(); ++_iter117) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter123).size())); + std::vector ::const_iterator _iter124; + for (_iter124 = (*_iter123).begin(); _iter124 != (*_iter123).end(); ++_iter124) { - xfer += oprot->writeString((*_iter117)); + xfer += oprot->writeString((*_iter124)); } xfer += oprot->writeListEnd(); } @@ -2033,19 +2133,19 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValueLocationMaps", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_LIST, ::apache::thrift::protocol::T_STRING, static_cast(this->skewedColValueLocationMaps.size())); - std::map , std::string> ::const_iterator _iter118; - for (_iter118 = this->skewedColValueLocationMaps.begin(); _iter118 != this->skewedColValueLocationMaps.end(); ++_iter118) + std::map , std::string> ::const_iterator _iter125; + for (_iter125 = this->skewedColValueLocationMaps.begin(); _iter125 != this->skewedColValueLocationMaps.end(); ++_iter125) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter118->first.size())); - std::vector ::const_iterator _iter119; - for (_iter119 = _iter118->first.begin(); _iter119 != _iter118->first.end(); ++_iter119) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter125->first.size())); + std::vector ::const_iterator _iter126; + for (_iter126 = _iter125->first.begin(); _iter126 != _iter125->first.end(); ++_iter126) { - xfer += oprot->writeString((*_iter119)); + xfer += oprot->writeString((*_iter126)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter118->second); + xfer += oprot->writeString(_iter125->second); } xfer += oprot->writeMapEnd(); } @@ -2091,14 +2191,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size120; - ::apache::thrift::protocol::TType _etype123; - xfer += iprot->readListBegin(_etype123, _size120); - this->cols.resize(_size120); - uint32_t _i124; - for (_i124 = 0; _i124 < _size120; ++_i124) + uint32_t _size127; + ::apache::thrift::protocol::TType _etype130; + xfer += iprot->readListBegin(_etype130, _size127); + this->cols.resize(_size127); + uint32_t _i131; + for (_i131 = 0; _i131 < _size127; ++_i131) { - xfer += this->cols[_i124].read(iprot); + xfer += this->cols[_i131].read(iprot); } xfer += iprot->readListEnd(); } @@ -2159,14 +2259,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size125; - ::apache::thrift::protocol::TType _etype128; - xfer += iprot->readListBegin(_etype128, _size125); - this->bucketCols.resize(_size125); - uint32_t _i129; - for (_i129 = 0; _i129 < _size125; ++_i129) + uint32_t _size132; + ::apache::thrift::protocol::TType _etype135; + xfer += iprot->readListBegin(_etype135, _size132); + this->bucketCols.resize(_size132); + uint32_t _i136; + for (_i136 = 0; _i136 < _size132; ++_i136) { - xfer += iprot->readString(this->bucketCols[_i129]); + xfer += iprot->readString(this->bucketCols[_i136]); } xfer += iprot->readListEnd(); } @@ -2179,14 +2279,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size130; - ::apache::thrift::protocol::TType _etype133; - xfer += iprot->readListBegin(_etype133, _size130); - this->sortCols.resize(_size130); - uint32_t _i134; - for (_i134 = 0; _i134 < _size130; ++_i134) + uint32_t _size137; + ::apache::thrift::protocol::TType _etype140; + xfer += iprot->readListBegin(_etype140, _size137); + this->sortCols.resize(_size137); + uint32_t _i141; + for (_i141 = 0; _i141 < _size137; ++_i141) { - xfer += this->sortCols[_i134].read(iprot); + xfer += this->sortCols[_i141].read(iprot); } xfer += iprot->readListEnd(); } @@ -2199,17 +2299,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size135; - ::apache::thrift::protocol::TType _ktype136; - ::apache::thrift::protocol::TType _vtype137; - xfer += iprot->readMapBegin(_ktype136, _vtype137, _size135); - uint32_t _i139; - for (_i139 = 0; _i139 < _size135; ++_i139) + uint32_t _size142; + ::apache::thrift::protocol::TType _ktype143; + ::apache::thrift::protocol::TType _vtype144; + xfer += iprot->readMapBegin(_ktype143, _vtype144, _size142); + uint32_t _i146; + for (_i146 = 0; _i146 < _size142; ++_i146) { - std::string _key140; - xfer += iprot->readString(_key140); - std::string& _val141 = this->parameters[_key140]; - xfer += iprot->readString(_val141); + std::string _key147; + xfer += iprot->readString(_key147); + std::string& _val148 = this->parameters[_key147]; + xfer += iprot->readString(_val148); } xfer += iprot->readMapEnd(); } @@ -2253,10 +2353,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter142; - for (_iter142 = this->cols.begin(); _iter142 != this->cols.end(); ++_iter142) + std::vector ::const_iterator _iter149; + for (_iter149 = this->cols.begin(); _iter149 != this->cols.end(); ++_iter149) { - xfer += (*_iter142).write(oprot); + xfer += (*_iter149).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2289,10 +2389,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->bucketCols.size())); - std::vector ::const_iterator _iter143; - for (_iter143 = this->bucketCols.begin(); _iter143 != this->bucketCols.end(); ++_iter143) + std::vector ::const_iterator _iter150; + for (_iter150 = this->bucketCols.begin(); _iter150 != this->bucketCols.end(); ++_iter150) { - xfer += oprot->writeString((*_iter143)); + xfer += oprot->writeString((*_iter150)); } xfer += oprot->writeListEnd(); } @@ -2301,10 +2401,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sortCols.size())); - std::vector ::const_iterator _iter144; - for (_iter144 = this->sortCols.begin(); _iter144 != this->sortCols.end(); ++_iter144) + std::vector ::const_iterator _iter151; + for (_iter151 = this->sortCols.begin(); _iter151 != this->sortCols.end(); ++_iter151) { - xfer += (*_iter144).write(oprot); + xfer += (*_iter151).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2313,11 +2413,11 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter145; - for (_iter145 = this->parameters.begin(); _iter145 != this->parameters.end(); ++_iter145) + std::map ::const_iterator _iter152; + for (_iter152 = this->parameters.begin(); _iter152 != this->parameters.end(); ++_iter152) { - xfer += oprot->writeString(_iter145->first); - xfer += oprot->writeString(_iter145->second); + xfer += oprot->writeString(_iter152->first); + xfer += oprot->writeString(_iter152->second); } xfer += oprot->writeMapEnd(); } @@ -2438,14 +2538,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size146; - ::apache::thrift::protocol::TType _etype149; - xfer += iprot->readListBegin(_etype149, _size146); - this->partitionKeys.resize(_size146); - uint32_t _i150; - for (_i150 = 0; _i150 < _size146; ++_i150) + uint32_t _size153; + ::apache::thrift::protocol::TType _etype156; + xfer += iprot->readListBegin(_etype156, _size153); + this->partitionKeys.resize(_size153); + uint32_t _i157; + for (_i157 = 0; _i157 < _size153; ++_i157) { - xfer += this->partitionKeys[_i150].read(iprot); + xfer += this->partitionKeys[_i157].read(iprot); } xfer += iprot->readListEnd(); } @@ -2458,17 +2558,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size151; - ::apache::thrift::protocol::TType _ktype152; - ::apache::thrift::protocol::TType _vtype153; - xfer += iprot->readMapBegin(_ktype152, _vtype153, _size151); - uint32_t _i155; - for (_i155 = 0; _i155 < _size151; ++_i155) + uint32_t _size158; + ::apache::thrift::protocol::TType _ktype159; + ::apache::thrift::protocol::TType _vtype160; + xfer += iprot->readMapBegin(_ktype159, _vtype160, _size158); + uint32_t _i162; + for (_i162 = 0; _i162 < _size158; ++_i162) { - std::string _key156; - xfer += iprot->readString(_key156); - std::string& _val157 = this->parameters[_key156]; - xfer += iprot->readString(_val157); + std::string _key163; + xfer += iprot->readString(_key163); + std::string& _val164 = this->parameters[_key163]; + xfer += iprot->readString(_val164); } xfer += iprot->readMapEnd(); } @@ -2556,10 +2656,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter158; - for (_iter158 = this->partitionKeys.begin(); _iter158 != this->partitionKeys.end(); ++_iter158) + std::vector ::const_iterator _iter165; + for (_iter165 = this->partitionKeys.begin(); _iter165 != this->partitionKeys.end(); ++_iter165) { - xfer += (*_iter158).write(oprot); + xfer += (*_iter165).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2568,11 +2668,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter159; - for (_iter159 = this->parameters.begin(); _iter159 != this->parameters.end(); ++_iter159) + std::map ::const_iterator _iter166; + for (_iter166 = this->parameters.begin(); _iter166 != this->parameters.end(); ++_iter166) { - xfer += oprot->writeString(_iter159->first); - xfer += oprot->writeString(_iter159->second); + xfer += oprot->writeString(_iter166->first); + xfer += oprot->writeString(_iter166->second); } xfer += oprot->writeMapEnd(); } @@ -2645,14 +2745,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size160; - ::apache::thrift::protocol::TType _etype163; - xfer += iprot->readListBegin(_etype163, _size160); - this->values.resize(_size160); - uint32_t _i164; - for (_i164 = 0; _i164 < _size160; ++_i164) + uint32_t _size167; + ::apache::thrift::protocol::TType _etype170; + xfer += iprot->readListBegin(_etype170, _size167); + this->values.resize(_size167); + uint32_t _i171; + for (_i171 = 0; _i171 < _size167; ++_i171) { - xfer += iprot->readString(this->values[_i164]); + xfer += iprot->readString(this->values[_i171]); } xfer += iprot->readListEnd(); } @@ -2705,17 +2805,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size165; - ::apache::thrift::protocol::TType _ktype166; - ::apache::thrift::protocol::TType _vtype167; - xfer += iprot->readMapBegin(_ktype166, _vtype167, _size165); - uint32_t _i169; - for (_i169 = 0; _i169 < _size165; ++_i169) + uint32_t _size172; + ::apache::thrift::protocol::TType _ktype173; + ::apache::thrift::protocol::TType _vtype174; + xfer += iprot->readMapBegin(_ktype173, _vtype174, _size172); + uint32_t _i176; + for (_i176 = 0; _i176 < _size172; ++_i176) { - std::string _key170; - xfer += iprot->readString(_key170); - std::string& _val171 = this->parameters[_key170]; - xfer += iprot->readString(_val171); + std::string _key177; + xfer += iprot->readString(_key177); + std::string& _val178 = this->parameters[_key177]; + xfer += iprot->readString(_val178); } xfer += iprot->readMapEnd(); } @@ -2751,10 +2851,10 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter172; - for (_iter172 = this->values.begin(); _iter172 != this->values.end(); ++_iter172) + std::vector ::const_iterator _iter179; + for (_iter179 = this->values.begin(); _iter179 != this->values.end(); ++_iter179) { - xfer += oprot->writeString((*_iter172)); + xfer += oprot->writeString((*_iter179)); } xfer += oprot->writeListEnd(); } @@ -2783,11 +2883,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter173; - for (_iter173 = this->parameters.begin(); _iter173 != this->parameters.end(); ++_iter173) + std::map ::const_iterator _iter180; + for (_iter180 = this->parameters.begin(); _iter180 != this->parameters.end(); ++_iter180) { - xfer += oprot->writeString(_iter173->first); - xfer += oprot->writeString(_iter173->second); + xfer += oprot->writeString(_iter180->first); + xfer += oprot->writeString(_iter180->second); } xfer += oprot->writeMapEnd(); } @@ -2907,17 +3007,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size174; - ::apache::thrift::protocol::TType _ktype175; - ::apache::thrift::protocol::TType _vtype176; - xfer += iprot->readMapBegin(_ktype175, _vtype176, _size174); - uint32_t _i178; - for (_i178 = 0; _i178 < _size174; ++_i178) + uint32_t _size181; + ::apache::thrift::protocol::TType _ktype182; + ::apache::thrift::protocol::TType _vtype183; + xfer += iprot->readMapBegin(_ktype182, _vtype183, _size181); + uint32_t _i185; + for (_i185 = 0; _i185 < _size181; ++_i185) { - std::string _key179; - xfer += iprot->readString(_key179); - std::string& _val180 = this->parameters[_key179]; - xfer += iprot->readString(_val180); + std::string _key186; + xfer += iprot->readString(_key186); + std::string& _val187 = this->parameters[_key186]; + xfer += iprot->readString(_val187); } xfer += iprot->readMapEnd(); } @@ -2985,11 +3085,11 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter181; - for (_iter181 = this->parameters.begin(); _iter181 != this->parameters.end(); ++_iter181) + std::map ::const_iterator _iter188; + for (_iter188 = this->parameters.begin(); _iter188 != this->parameters.end(); ++_iter188) { - xfer += oprot->writeString(_iter181->first); - xfer += oprot->writeString(_iter181->second); + xfer += oprot->writeString(_iter188->first); + xfer += oprot->writeString(_iter188->second); } xfer += oprot->writeMapEnd(); } @@ -3919,14 +4019,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size182; - ::apache::thrift::protocol::TType _etype185; - xfer += iprot->readListBegin(_etype185, _size182); - this->statsObj.resize(_size182); - uint32_t _i186; - for (_i186 = 0; _i186 < _size182; ++_i186) + uint32_t _size189; + ::apache::thrift::protocol::TType _etype192; + xfer += iprot->readListBegin(_etype192, _size189); + this->statsObj.resize(_size189); + uint32_t _i193; + for (_i193 = 0; _i193 < _size189; ++_i193) { - xfer += this->statsObj[_i186].read(iprot); + xfer += this->statsObj[_i193].read(iprot); } xfer += iprot->readListEnd(); } @@ -3962,10 +4062,10 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter187; - for (_iter187 = this->statsObj.begin(); _iter187 != this->statsObj.end(); ++_iter187) + std::vector ::const_iterator _iter194; + for (_iter194 = this->statsObj.begin(); _iter194 != this->statsObj.end(); ++_iter194) { - xfer += (*_iter187).write(oprot); + xfer += (*_iter194).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4009,14 +4109,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size188; - ::apache::thrift::protocol::TType _etype191; - xfer += iprot->readListBegin(_etype191, _size188); - this->fieldSchemas.resize(_size188); - uint32_t _i192; - for (_i192 = 0; _i192 < _size188; ++_i192) + uint32_t _size195; + ::apache::thrift::protocol::TType _etype198; + xfer += iprot->readListBegin(_etype198, _size195); + this->fieldSchemas.resize(_size195); + uint32_t _i199; + for (_i199 = 0; _i199 < _size195; ++_i199) { - xfer += this->fieldSchemas[_i192].read(iprot); + xfer += this->fieldSchemas[_i199].read(iprot); } xfer += iprot->readListEnd(); } @@ -4029,17 +4129,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size193; - ::apache::thrift::protocol::TType _ktype194; - ::apache::thrift::protocol::TType _vtype195; - xfer += iprot->readMapBegin(_ktype194, _vtype195, _size193); - uint32_t _i197; - for (_i197 = 0; _i197 < _size193; ++_i197) + uint32_t _size200; + ::apache::thrift::protocol::TType _ktype201; + ::apache::thrift::protocol::TType _vtype202; + xfer += iprot->readMapBegin(_ktype201, _vtype202, _size200); + uint32_t _i204; + for (_i204 = 0; _i204 < _size200; ++_i204) { - std::string _key198; - xfer += iprot->readString(_key198); - std::string& _val199 = this->properties[_key198]; - xfer += iprot->readString(_val199); + std::string _key205; + xfer += iprot->readString(_key205); + std::string& _val206 = this->properties[_key205]; + xfer += iprot->readString(_val206); } xfer += iprot->readMapEnd(); } @@ -4067,10 +4167,10 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); - std::vector ::const_iterator _iter200; - for (_iter200 = this->fieldSchemas.begin(); _iter200 != this->fieldSchemas.end(); ++_iter200) + std::vector ::const_iterator _iter207; + for (_iter207 = this->fieldSchemas.begin(); _iter207 != this->fieldSchemas.end(); ++_iter207) { - xfer += (*_iter200).write(oprot); + xfer += (*_iter207).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4079,11 +4179,11 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter201; - for (_iter201 = this->properties.begin(); _iter201 != this->properties.end(); ++_iter201) + std::map ::const_iterator _iter208; + for (_iter208 = this->properties.begin(); _iter208 != this->properties.end(); ++_iter208) { - xfer += oprot->writeString(_iter201->first); - xfer += oprot->writeString(_iter201->second); + xfer += oprot->writeString(_iter208->first); + xfer += oprot->writeString(_iter208->second); } xfer += oprot->writeMapEnd(); } @@ -4128,17 +4228,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size202; - ::apache::thrift::protocol::TType _ktype203; - ::apache::thrift::protocol::TType _vtype204; - xfer += iprot->readMapBegin(_ktype203, _vtype204, _size202); - uint32_t _i206; - for (_i206 = 0; _i206 < _size202; ++_i206) + uint32_t _size209; + ::apache::thrift::protocol::TType _ktype210; + ::apache::thrift::protocol::TType _vtype211; + xfer += iprot->readMapBegin(_ktype210, _vtype211, _size209); + uint32_t _i213; + for (_i213 = 0; _i213 < _size209; ++_i213) { - std::string _key207; - xfer += iprot->readString(_key207); - std::string& _val208 = this->properties[_key207]; - xfer += iprot->readString(_val208); + std::string _key214; + xfer += iprot->readString(_key214); + std::string& _val215 = this->properties[_key214]; + xfer += iprot->readString(_val215); } xfer += iprot->readMapEnd(); } @@ -4166,11 +4266,11 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter209; - for (_iter209 = this->properties.begin(); _iter209 != this->properties.end(); ++_iter209) + std::map ::const_iterator _iter216; + for (_iter216 = this->properties.begin(); _iter216 != this->properties.end(); ++_iter216) { - xfer += oprot->writeString(_iter209->first); - xfer += oprot->writeString(_iter209->second); + xfer += oprot->writeString(_iter216->first); + xfer += oprot->writeString(_iter216->second); } xfer += oprot->writeMapEnd(); } @@ -4216,14 +4316,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size210; - ::apache::thrift::protocol::TType _etype213; - xfer += iprot->readListBegin(_etype213, _size210); - this->partitions.resize(_size210); - uint32_t _i214; - for (_i214 = 0; _i214 < _size210; ++_i214) + uint32_t _size217; + ::apache::thrift::protocol::TType _etype220; + xfer += iprot->readListBegin(_etype220, _size217); + this->partitions.resize(_size217); + uint32_t _i221; + for (_i221 = 0; _i221 < _size217; ++_i221) { - xfer += this->partitions[_i214].read(iprot); + xfer += this->partitions[_i221].read(iprot); } xfer += iprot->readListEnd(); } @@ -4263,10 +4363,10 @@ uint32_t PartitionsByExprResult::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter215; - for (_iter215 = this->partitions.begin(); _iter215 != this->partitions.end(); ++_iter215) + std::vector ::const_iterator _iter222; + for (_iter222 = this->partitions.begin(); _iter222 != this->partitions.end(); ++_iter222) { - xfer += (*_iter215).write(oprot); + xfer += (*_iter222).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4440,14 +4540,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size216; - ::apache::thrift::protocol::TType _etype219; - xfer += iprot->readListBegin(_etype219, _size216); - this->tableStats.resize(_size216); - uint32_t _i220; - for (_i220 = 0; _i220 < _size216; ++_i220) + uint32_t _size223; + ::apache::thrift::protocol::TType _etype226; + xfer += iprot->readListBegin(_etype226, _size223); + this->tableStats.resize(_size223); + uint32_t _i227; + for (_i227 = 0; _i227 < _size223; ++_i227) { - xfer += this->tableStats[_i220].read(iprot); + xfer += this->tableStats[_i227].read(iprot); } xfer += iprot->readListEnd(); } @@ -4477,10 +4577,10 @@ uint32_t TableStatsResult::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("tableStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->tableStats.size())); - std::vector ::const_iterator _iter221; - for (_iter221 = this->tableStats.begin(); _iter221 != this->tableStats.end(); ++_iter221) + std::vector ::const_iterator _iter228; + for (_iter228 = this->tableStats.begin(); _iter228 != this->tableStats.end(); ++_iter228) { - xfer += (*_iter221).write(oprot); + xfer += (*_iter228).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4524,26 +4624,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size222; - ::apache::thrift::protocol::TType _ktype223; - ::apache::thrift::protocol::TType _vtype224; - xfer += iprot->readMapBegin(_ktype223, _vtype224, _size222); - uint32_t _i226; - for (_i226 = 0; _i226 < _size222; ++_i226) + uint32_t _size229; + ::apache::thrift::protocol::TType _ktype230; + ::apache::thrift::protocol::TType _vtype231; + xfer += iprot->readMapBegin(_ktype230, _vtype231, _size229); + uint32_t _i233; + for (_i233 = 0; _i233 < _size229; ++_i233) { - std::string _key227; - xfer += iprot->readString(_key227); - std::vector & _val228 = this->partStats[_key227]; + std::string _key234; + xfer += iprot->readString(_key234); + std::vector & _val235 = this->partStats[_key234]; { - _val228.clear(); - uint32_t _size229; - ::apache::thrift::protocol::TType _etype232; - xfer += iprot->readListBegin(_etype232, _size229); - _val228.resize(_size229); - uint32_t _i233; - for (_i233 = 0; _i233 < _size229; ++_i233) + _val235.clear(); + uint32_t _size236; + ::apache::thrift::protocol::TType _etype239; + xfer += iprot->readListBegin(_etype239, _size236); + _val235.resize(_size236); + uint32_t _i240; + for (_i240 = 0; _i240 < _size236; ++_i240) { - xfer += _val228[_i233].read(iprot); + xfer += _val235[_i240].read(iprot); } xfer += iprot->readListEnd(); } @@ -4576,16 +4676,16 @@ uint32_t PartitionsStatsResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("partStats", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->partStats.size())); - std::map > ::const_iterator _iter234; - for (_iter234 = this->partStats.begin(); _iter234 != this->partStats.end(); ++_iter234) + std::map > ::const_iterator _iter241; + for (_iter241 = this->partStats.begin(); _iter241 != this->partStats.end(); ++_iter241) { - xfer += oprot->writeString(_iter234->first); + xfer += oprot->writeString(_iter241->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter234->second.size())); - std::vector ::const_iterator _iter235; - for (_iter235 = _iter234->second.begin(); _iter235 != _iter234->second.end(); ++_iter235) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter241->second.size())); + std::vector ::const_iterator _iter242; + for (_iter242 = _iter241->second.begin(); _iter242 != _iter241->second.end(); ++_iter242) { - xfer += (*_iter235).write(oprot); + xfer += (*_iter242).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4650,14 +4750,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size236; - ::apache::thrift::protocol::TType _etype239; - xfer += iprot->readListBegin(_etype239, _size236); - this->colNames.resize(_size236); - uint32_t _i240; - for (_i240 = 0; _i240 < _size236; ++_i240) + uint32_t _size243; + ::apache::thrift::protocol::TType _etype246; + xfer += iprot->readListBegin(_etype246, _size243); + this->colNames.resize(_size243); + uint32_t _i247; + for (_i247 = 0; _i247 < _size243; ++_i247) { - xfer += iprot->readString(this->colNames[_i240]); + xfer += iprot->readString(this->colNames[_i247]); } xfer += iprot->readListEnd(); } @@ -4699,10 +4799,10 @@ uint32_t TableStatsRequest::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter241; - for (_iter241 = this->colNames.begin(); _iter241 != this->colNames.end(); ++_iter241) + std::vector ::const_iterator _iter248; + for (_iter248 = this->colNames.begin(); _iter248 != this->colNames.end(); ++_iter248) { - xfer += oprot->writeString((*_iter241)); + xfer += oprot->writeString((*_iter248)); } xfer += oprot->writeListEnd(); } @@ -4767,14 +4867,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size242; - ::apache::thrift::protocol::TType _etype245; - xfer += iprot->readListBegin(_etype245, _size242); - this->colNames.resize(_size242); - uint32_t _i246; - for (_i246 = 0; _i246 < _size242; ++_i246) + uint32_t _size249; + ::apache::thrift::protocol::TType _etype252; + xfer += iprot->readListBegin(_etype252, _size249); + this->colNames.resize(_size249); + uint32_t _i253; + for (_i253 = 0; _i253 < _size249; ++_i253) { - xfer += iprot->readString(this->colNames[_i246]); + xfer += iprot->readString(this->colNames[_i253]); } xfer += iprot->readListEnd(); } @@ -4787,14 +4887,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size247; - ::apache::thrift::protocol::TType _etype250; - xfer += iprot->readListBegin(_etype250, _size247); - this->partNames.resize(_size247); - uint32_t _i251; - for (_i251 = 0; _i251 < _size247; ++_i251) + uint32_t _size254; + ::apache::thrift::protocol::TType _etype257; + xfer += iprot->readListBegin(_etype257, _size254); + this->partNames.resize(_size254); + uint32_t _i258; + for (_i258 = 0; _i258 < _size254; ++_i258) { - xfer += iprot->readString(this->partNames[_i251]); + xfer += iprot->readString(this->partNames[_i258]); } xfer += iprot->readListEnd(); } @@ -4838,10 +4938,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("colNames", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->colNames.size())); - std::vector ::const_iterator _iter252; - for (_iter252 = this->colNames.begin(); _iter252 != this->colNames.end(); ++_iter252) + std::vector ::const_iterator _iter259; + for (_iter259 = this->colNames.begin(); _iter259 != this->colNames.end(); ++_iter259) { - xfer += oprot->writeString((*_iter252)); + xfer += oprot->writeString((*_iter259)); } xfer += oprot->writeListEnd(); } @@ -4850,10 +4950,10 @@ uint32_t PartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("partNames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partNames.size())); - std::vector ::const_iterator _iter253; - for (_iter253 = this->partNames.begin(); _iter253 != this->partNames.end(); ++_iter253) + std::vector ::const_iterator _iter260; + for (_iter260 = this->partNames.begin(); _iter260 != this->partNames.end(); ++_iter260) { - xfer += oprot->writeString((*_iter253)); + xfer += oprot->writeString((*_iter260)); } xfer += oprot->writeListEnd(); } @@ -4899,14 +4999,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size254; - ::apache::thrift::protocol::TType _etype257; - xfer += iprot->readListBegin(_etype257, _size254); - this->partitions.resize(_size254); - uint32_t _i258; - for (_i258 = 0; _i258 < _size254; ++_i258) + uint32_t _size261; + ::apache::thrift::protocol::TType _etype264; + xfer += iprot->readListBegin(_etype264, _size261); + this->partitions.resize(_size261); + uint32_t _i265; + for (_i265 = 0; _i265 < _size261; ++_i265) { - xfer += this->partitions[_i258].read(iprot); + xfer += this->partitions[_i265].read(iprot); } xfer += iprot->readListEnd(); } @@ -4935,10 +5035,10 @@ uint32_t AddPartitionsResult::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter259; - for (_iter259 = this->partitions.begin(); _iter259 != this->partitions.end(); ++_iter259) + std::vector ::const_iterator _iter266; + for (_iter266 = this->partitions.begin(); _iter266 != this->partitions.end(); ++_iter266) { - xfer += (*_iter259).write(oprot); + xfer += (*_iter266).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5002,14 +5102,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size260; - ::apache::thrift::protocol::TType _etype263; - xfer += iprot->readListBegin(_etype263, _size260); - this->parts.resize(_size260); - uint32_t _i264; - for (_i264 = 0; _i264 < _size260; ++_i264) + uint32_t _size267; + ::apache::thrift::protocol::TType _etype270; + xfer += iprot->readListBegin(_etype270, _size267); + this->parts.resize(_size267); + uint32_t _i271; + for (_i271 = 0; _i271 < _size267; ++_i271) { - xfer += this->parts[_i264].read(iprot); + xfer += this->parts[_i271].read(iprot); } xfer += iprot->readListEnd(); } @@ -5069,10 +5169,10 @@ uint32_t AddPartitionsRequest::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("parts", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->parts.size())); - std::vector ::const_iterator _iter265; - for (_iter265 = this->parts.begin(); _iter265 != this->parts.end(); ++_iter265) + std::vector ::const_iterator _iter272; + for (_iter272 = this->parts.begin(); _iter272 != this->parts.end(); ++_iter272) { - xfer += (*_iter265).write(oprot); + xfer += (*_iter272).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5129,14 +5229,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size266; - ::apache::thrift::protocol::TType _etype269; - xfer += iprot->readListBegin(_etype269, _size266); - this->partitions.resize(_size266); - uint32_t _i270; - for (_i270 = 0; _i270 < _size266; ++_i270) + uint32_t _size273; + ::apache::thrift::protocol::TType _etype276; + xfer += iprot->readListBegin(_etype276, _size273); + this->partitions.resize(_size273); + uint32_t _i277; + for (_i277 = 0; _i277 < _size273; ++_i277) { - xfer += this->partitions[_i270].read(iprot); + xfer += this->partitions[_i277].read(iprot); } xfer += iprot->readListEnd(); } @@ -5165,10 +5265,10 @@ uint32_t DropPartitionsResult::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitions.size())); - std::vector ::const_iterator _iter271; - for (_iter271 = this->partitions.begin(); _iter271 != this->partitions.end(); ++_iter271) + std::vector ::const_iterator _iter278; + for (_iter278 = this->partitions.begin(); _iter278 != this->partitions.end(); ++_iter278) { - xfer += (*_iter271).write(oprot); + xfer += (*_iter278).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5291,14 +5391,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size272; - ::apache::thrift::protocol::TType _etype275; - xfer += iprot->readListBegin(_etype275, _size272); - this->names.resize(_size272); - uint32_t _i276; - for (_i276 = 0; _i276 < _size272; ++_i276) + uint32_t _size279; + ::apache::thrift::protocol::TType _etype282; + xfer += iprot->readListBegin(_etype282, _size279); + this->names.resize(_size279); + uint32_t _i283; + for (_i283 = 0; _i283 < _size279; ++_i283) { - xfer += iprot->readString(this->names[_i276]); + xfer += iprot->readString(this->names[_i283]); } xfer += iprot->readListEnd(); } @@ -5311,14 +5411,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _etype280; - xfer += iprot->readListBegin(_etype280, _size277); - this->exprs.resize(_size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) + uint32_t _size284; + ::apache::thrift::protocol::TType _etype287; + xfer += iprot->readListBegin(_etype287, _size284); + this->exprs.resize(_size284); + uint32_t _i288; + for (_i288 = 0; _i288 < _size284; ++_i288) { - xfer += this->exprs[_i281].read(iprot); + xfer += this->exprs[_i288].read(iprot); } xfer += iprot->readListEnd(); } @@ -5346,10 +5446,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("names", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->names.size())); - std::vector ::const_iterator _iter282; - for (_iter282 = this->names.begin(); _iter282 != this->names.end(); ++_iter282) + std::vector ::const_iterator _iter289; + for (_iter289 = this->names.begin(); _iter289 != this->names.end(); ++_iter289) { - xfer += oprot->writeString((*_iter282)); + xfer += oprot->writeString((*_iter289)); } xfer += oprot->writeListEnd(); } @@ -5358,10 +5458,10 @@ uint32_t RequestPartsSpec::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("exprs", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->exprs.size())); - std::vector ::const_iterator _iter283; - for (_iter283 = this->exprs.begin(); _iter283 != this->exprs.end(); ++_iter283) + std::vector ::const_iterator _iter290; + for (_iter290 = this->exprs.begin(); _iter290 != this->exprs.end(); ++_iter290) { - xfer += (*_iter283).write(oprot); + xfer += (*_iter290).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5571,9 +5671,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast284; - xfer += iprot->readI32(ecast284); - this->resourceType = (ResourceType::type)ecast284; + int32_t ecast291; + xfer += iprot->readI32(ecast291); + this->resourceType = (ResourceType::type)ecast291; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -5680,9 +5780,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast285; - xfer += iprot->readI32(ecast285); - this->ownerType = (PrincipalType::type)ecast285; + int32_t ecast292; + xfer += iprot->readI32(ecast292); + this->ownerType = (PrincipalType::type)ecast292; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -5698,9 +5798,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast286; - xfer += iprot->readI32(ecast286); - this->functionType = (FunctionType::type)ecast286; + int32_t ecast293; + xfer += iprot->readI32(ecast293); + this->functionType = (FunctionType::type)ecast293; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -5710,14 +5810,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size287; - ::apache::thrift::protocol::TType _etype290; - xfer += iprot->readListBegin(_etype290, _size287); - this->resourceUris.resize(_size287); - uint32_t _i291; - for (_i291 = 0; _i291 < _size287; ++_i291) + uint32_t _size294; + ::apache::thrift::protocol::TType _etype297; + xfer += iprot->readListBegin(_etype297, _size294); + this->resourceUris.resize(_size294); + uint32_t _i298; + for (_i298 = 0; _i298 < _size294; ++_i298) { - xfer += this->resourceUris[_i291].read(iprot); + xfer += this->resourceUris[_i298].read(iprot); } xfer += iprot->readListEnd(); } @@ -5773,10 +5873,10 @@ uint32_t Function::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("resourceUris", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->resourceUris.size())); - std::vector ::const_iterator _iter292; - for (_iter292 = this->resourceUris.begin(); _iter292 != this->resourceUris.end(); ++_iter292) + std::vector ::const_iterator _iter299; + for (_iter299 = this->resourceUris.begin(); _iter299 != this->resourceUris.end(); ++_iter299) { - xfer += (*_iter292).write(oprot); + xfer += (*_iter299).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5837,9 +5937,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast293; - xfer += iprot->readI32(ecast293); - this->state = (TxnState::type)ecast293; + int32_t ecast300; + xfer += iprot->readI32(ecast300); + this->state = (TxnState::type)ecast300; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -5951,14 +6051,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size294; - ::apache::thrift::protocol::TType _etype297; - xfer += iprot->readListBegin(_etype297, _size294); - this->open_txns.resize(_size294); - uint32_t _i298; - for (_i298 = 0; _i298 < _size294; ++_i298) + uint32_t _size301; + ::apache::thrift::protocol::TType _etype304; + xfer += iprot->readListBegin(_etype304, _size301); + this->open_txns.resize(_size301); + uint32_t _i305; + for (_i305 = 0; _i305 < _size301; ++_i305) { - xfer += this->open_txns[_i298].read(iprot); + xfer += this->open_txns[_i305].read(iprot); } xfer += iprot->readListEnd(); } @@ -5994,10 +6094,10 @@ uint32_t GetOpenTxnsInfoResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->open_txns.size())); - std::vector ::const_iterator _iter299; - for (_iter299 = this->open_txns.begin(); _iter299 != this->open_txns.end(); ++_iter299) + std::vector ::const_iterator _iter306; + for (_iter306 = this->open_txns.begin(); _iter306 != this->open_txns.end(); ++_iter306) { - xfer += (*_iter299).write(oprot); + xfer += (*_iter306).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6051,15 +6151,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size300; - ::apache::thrift::protocol::TType _etype303; - xfer += iprot->readSetBegin(_etype303, _size300); - uint32_t _i304; - for (_i304 = 0; _i304 < _size300; ++_i304) + uint32_t _size307; + ::apache::thrift::protocol::TType _etype310; + xfer += iprot->readSetBegin(_etype310, _size307); + uint32_t _i311; + for (_i311 = 0; _i311 < _size307; ++_i311) { - int64_t _elem305; - xfer += iprot->readI64(_elem305); - this->open_txns.insert(_elem305); + int64_t _elem312; + xfer += iprot->readI64(_elem312); + this->open_txns.insert(_elem312); } xfer += iprot->readSetEnd(); } @@ -6095,10 +6195,10 @@ uint32_t GetOpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("open_txns", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->open_txns.size())); - std::set ::const_iterator _iter306; - for (_iter306 = this->open_txns.begin(); _iter306 != this->open_txns.end(); ++_iter306) + std::set ::const_iterator _iter313; + for (_iter313 = this->open_txns.begin(); _iter313 != this->open_txns.end(); ++_iter313) { - xfer += oprot->writeI64((*_iter306)); + xfer += oprot->writeI64((*_iter313)); } xfer += oprot->writeSetEnd(); } @@ -6239,14 +6339,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size307; - ::apache::thrift::protocol::TType _etype310; - xfer += iprot->readListBegin(_etype310, _size307); - this->txn_ids.resize(_size307); - uint32_t _i311; - for (_i311 = 0; _i311 < _size307; ++_i311) + uint32_t _size314; + ::apache::thrift::protocol::TType _etype317; + xfer += iprot->readListBegin(_etype317, _size314); + this->txn_ids.resize(_size314); + uint32_t _i318; + for (_i318 = 0; _i318 < _size314; ++_i318) { - xfer += iprot->readI64(this->txn_ids[_i311]); + xfer += iprot->readI64(this->txn_ids[_i318]); } xfer += iprot->readListEnd(); } @@ -6276,10 +6376,10 @@ uint32_t OpenTxnsResponse::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("txn_ids", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->txn_ids.size())); - std::vector ::const_iterator _iter312; - for (_iter312 = this->txn_ids.begin(); _iter312 != this->txn_ids.end(); ++_iter312) + std::vector ::const_iterator _iter319; + for (_iter319 = this->txn_ids.begin(); _iter319 != this->txn_ids.end(); ++_iter319) { - xfer += oprot->writeI64((*_iter312)); + xfer += oprot->writeI64((*_iter319)); } xfer += oprot->writeListEnd(); } @@ -6451,9 +6551,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast313; - xfer += iprot->readI32(ecast313); - this->type = (LockType::type)ecast313; + int32_t ecast320; + xfer += iprot->readI32(ecast320); + this->type = (LockType::type)ecast320; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -6461,9 +6561,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast314; - xfer += iprot->readI32(ecast314); - this->level = (LockLevel::type)ecast314; + int32_t ecast321; + xfer += iprot->readI32(ecast321); + this->level = (LockLevel::type)ecast321; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -6582,14 +6682,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size315; - ::apache::thrift::protocol::TType _etype318; - xfer += iprot->readListBegin(_etype318, _size315); - this->component.resize(_size315); - uint32_t _i319; - for (_i319 = 0; _i319 < _size315; ++_i319) + uint32_t _size322; + ::apache::thrift::protocol::TType _etype325; + xfer += iprot->readListBegin(_etype325, _size322); + this->component.resize(_size322); + uint32_t _i326; + for (_i326 = 0; _i326 < _size322; ++_i326) { - xfer += this->component[_i319].read(iprot); + xfer += this->component[_i326].read(iprot); } xfer += iprot->readListEnd(); } @@ -6647,10 +6747,10 @@ uint32_t LockRequest::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("component", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->component.size())); - std::vector ::const_iterator _iter320; - for (_iter320 = this->component.begin(); _iter320 != this->component.end(); ++_iter320) + std::vector ::const_iterator _iter327; + for (_iter327 = this->component.begin(); _iter327 != this->component.end(); ++_iter327) { - xfer += (*_iter320).write(oprot); + xfer += (*_iter327).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6718,9 +6818,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast321; - xfer += iprot->readI32(ecast321); - this->state = (LockState::type)ecast321; + int32_t ecast328; + xfer += iprot->readI32(ecast328); + this->state = (LockState::type)ecast328; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -7002,9 +7102,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast322; - xfer += iprot->readI32(ecast322); - this->state = (LockState::type)ecast322; + int32_t ecast329; + xfer += iprot->readI32(ecast329); + this->state = (LockState::type)ecast329; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -7012,9 +7112,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast323; - xfer += iprot->readI32(ecast323); - this->type = (LockType::type)ecast323; + int32_t ecast330; + xfer += iprot->readI32(ecast330); + this->type = (LockType::type)ecast330; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7186,14 +7286,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size324; - ::apache::thrift::protocol::TType _etype327; - xfer += iprot->readListBegin(_etype327, _size324); - this->locks.resize(_size324); - uint32_t _i328; - for (_i328 = 0; _i328 < _size324; ++_i328) + uint32_t _size331; + ::apache::thrift::protocol::TType _etype334; + xfer += iprot->readListBegin(_etype334, _size331); + this->locks.resize(_size331); + uint32_t _i335; + for (_i335 = 0; _i335 < _size331; ++_i335) { - xfer += this->locks[_i328].read(iprot); + xfer += this->locks[_i335].read(iprot); } xfer += iprot->readListEnd(); } @@ -7221,10 +7321,10 @@ uint32_t ShowLocksResponse::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("locks", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->locks.size())); - std::vector ::const_iterator _iter329; - for (_iter329 = this->locks.begin(); _iter329 != this->locks.end(); ++_iter329) + std::vector ::const_iterator _iter336; + for (_iter336 = this->locks.begin(); _iter336 != this->locks.end(); ++_iter336) { - xfer += (*_iter329).write(oprot); + xfer += (*_iter336).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7370,9 +7470,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast330; - xfer += iprot->readI32(ecast330); - this->type = (CompactionType::type)ecast330; + int32_t ecast337; + xfer += iprot->readI32(ecast337); + this->type = (CompactionType::type)ecast337; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7547,9 +7647,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast331; - xfer += iprot->readI32(ecast331); - this->type = (CompactionType::type)ecast331; + int32_t ecast338; + xfer += iprot->readI32(ecast338); + this->type = (CompactionType::type)ecast338; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7696,14 +7796,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size332; - ::apache::thrift::protocol::TType _etype335; - xfer += iprot->readListBegin(_etype335, _size332); - this->compacts.resize(_size332); - uint32_t _i336; - for (_i336 = 0; _i336 < _size332; ++_i336) + uint32_t _size339; + ::apache::thrift::protocol::TType _etype342; + xfer += iprot->readListBegin(_etype342, _size339); + this->compacts.resize(_size339); + uint32_t _i343; + for (_i343 = 0; _i343 < _size339; ++_i343) { - xfer += this->compacts[_i336].read(iprot); + xfer += this->compacts[_i343].read(iprot); } xfer += iprot->readListEnd(); } @@ -7733,10 +7833,10 @@ uint32_t ShowCompactResponse::write(::apache::thrift::protocol::TProtocol* oprot xfer += oprot->writeFieldBegin("compacts", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->compacts.size())); - std::vector ::const_iterator _iter337; - for (_iter337 = this->compacts.begin(); _iter337 != this->compacts.end(); ++_iter337) + std::vector ::const_iterator _iter344; + for (_iter344 = this->compacts.begin(); _iter344 != this->compacts.end(); ++_iter344) { - xfer += (*_iter337).write(oprot); + xfer += (*_iter344).write(oprot); } xfer += oprot->writeListEnd(); } diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index d0998e0..4038327 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -621,24 +621,19 @@ class PrincipalPrivilegeSet { void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b); typedef struct _Role__isset { - _Role__isset() : roleName(false), createTime(false), ownerName(false), principalName(false), principalType(false), grantOption(false), grantTime(false), grantor(false) {} + _Role__isset() : roleName(false), createTime(false), ownerName(false) {} bool roleName; bool createTime; bool ownerName; - bool principalName; - bool principalType; - bool grantOption; - bool grantTime; - bool grantor; } _Role__isset; class Role { public: - static const char* ascii_fingerprint; // = "8DEBC3096AEF414FFF38C357ECEEA8BC"; - static const uint8_t binary_fingerprint[16]; // = {0x8D,0xEB,0xC3,0x09,0x6A,0xEF,0x41,0x4F,0xFF,0x38,0xC3,0x57,0xEC,0xEE,0xA8,0xBC}; + static const char* ascii_fingerprint; // = "70563A0628F75DF9555F4D24690B1E26"; + static const uint8_t binary_fingerprint[16]; // = {0x70,0x56,0x3A,0x06,0x28,0xF7,0x5D,0xF9,0x55,0x5F,0x4D,0x24,0x69,0x0B,0x1E,0x26}; - Role() : roleName(), createTime(0), ownerName(), principalName(), principalType(), grantOption(0), grantTime(0), grantor() { + Role() : roleName(), createTime(0), ownerName() { } virtual ~Role() throw() {} @@ -646,11 +641,6 @@ class Role { std::string roleName; int32_t createTime; std::string ownerName; - std::string principalName; - std::string principalType; - bool grantOption; - int32_t grantTime; - std::string grantor; _Role__isset __isset; @@ -666,31 +656,6 @@ class Role { ownerName = val; } - void __set_principalName(const std::string& val) { - principalName = val; - __isset.principalName = true; - } - - void __set_principalType(const std::string& val) { - principalType = val; - __isset.principalType = true; - } - - void __set_grantOption(const bool val) { - grantOption = val; - __isset.grantOption = true; - } - - void __set_grantTime(const int32_t val) { - grantTime = val; - __isset.grantTime = true; - } - - void __set_grantor(const std::string& val) { - grantor = val; - __isset.grantor = true; - } - bool operator == (const Role & rhs) const { if (!(roleName == rhs.roleName)) @@ -699,26 +664,6 @@ class Role { return false; if (!(ownerName == rhs.ownerName)) return false; - if (__isset.principalName != rhs.__isset.principalName) - return false; - else if (__isset.principalName && !(principalName == rhs.principalName)) - return false; - if (__isset.principalType != rhs.__isset.principalType) - return false; - else if (__isset.principalType && !(principalType == rhs.principalType)) - return false; - if (__isset.grantOption != rhs.__isset.grantOption) - return false; - else if (__isset.grantOption && !(grantOption == rhs.grantOption)) - return false; - if (__isset.grantTime != rhs.__isset.grantTime) - return false; - else if (__isset.grantTime && !(grantTime == rhs.grantTime)) - return false; - if (__isset.grantor != rhs.__isset.grantor) - return false; - else if (__isset.grantor && !(grantor == rhs.grantor)) - return false; return true; } bool operator != (const Role &rhs) const { @@ -825,10 +770,87 @@ class RolePrincipalGrant { void swap(RolePrincipalGrant &a, RolePrincipalGrant &b); -typedef struct _GetPrincipalsInRoleRequest__isset { - _GetPrincipalsInRoleRequest__isset() : roleName(false) {} - bool roleName; -} _GetPrincipalsInRoleRequest__isset; + +class GetRoleGrantsForPrincipalRequest { + public: + + static const char* ascii_fingerprint; // = "D6FD826D949221396F4FFC3ECCD3D192"; + static const uint8_t binary_fingerprint[16]; // = {0xD6,0xFD,0x82,0x6D,0x94,0x92,0x21,0x39,0x6F,0x4F,0xFC,0x3E,0xCC,0xD3,0xD1,0x92}; + + GetRoleGrantsForPrincipalRequest() : principal_name(), principal_type((PrincipalType::type)0) { + } + + virtual ~GetRoleGrantsForPrincipalRequest() throw() {} + + std::string principal_name; + PrincipalType::type principal_type; + + void __set_principal_name(const std::string& val) { + principal_name = val; + } + + void __set_principal_type(const PrincipalType::type val) { + principal_type = val; + } + + bool operator == (const GetRoleGrantsForPrincipalRequest & rhs) const + { + if (!(principal_name == rhs.principal_name)) + return false; + if (!(principal_type == rhs.principal_type)) + return false; + return true; + } + bool operator != (const GetRoleGrantsForPrincipalRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetRoleGrantsForPrincipalRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest &b); + + +class GetRoleGrantsForPrincipalResponse { + public: + + static const char* ascii_fingerprint; // = "5926B4B3541A62E17663820C7E3BE690"; + static const uint8_t binary_fingerprint[16]; // = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; + + GetRoleGrantsForPrincipalResponse() { + } + + virtual ~GetRoleGrantsForPrincipalResponse() throw() {} + + std::vector principalGrants; + + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } + + bool operator == (const GetRoleGrantsForPrincipalResponse & rhs) const + { + if (!(principalGrants == rhs.principalGrants)) + return false; + return true; + } + bool operator != (const GetRoleGrantsForPrincipalResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetRoleGrantsForPrincipalResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalResponse &b); + class GetPrincipalsInRoleRequest { public: @@ -843,8 +865,6 @@ class GetPrincipalsInRoleRequest { std::string roleName; - _GetPrincipalsInRoleRequest__isset __isset; - void __set_roleName(const std::string& val) { roleName = val; } @@ -868,10 +888,6 @@ class GetPrincipalsInRoleRequest { void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b); -typedef struct _GetPrincipalsInRoleResponse__isset { - _GetPrincipalsInRoleResponse__isset() : principalGrants(false) {} - bool principalGrants; -} _GetPrincipalsInRoleResponse__isset; class GetPrincipalsInRoleResponse { public: @@ -886,8 +902,6 @@ class GetPrincipalsInRoleResponse { std::vector principalGrants; - _GetPrincipalsInRoleResponse__isset __isset; - void __set_principalGrants(const std::vector & val) { principalGrants = val; } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index d0c6ef4..4547970 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -700,14 +700,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsReques case 3: // PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); - struct.parts = new ArrayList(_list330.size); - for (int _i331 = 0; _i331 < _list330.size; ++_i331) + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.parts = new ArrayList(_list338.size); + for (int _i339 = 0; _i339 < _list338.size; ++_i339) { - Partition _elem332; // optional - _elem332 = new Partition(); - _elem332.read(iprot); - struct.parts.add(_elem332); + Partition _elem340; // optional + _elem340 = new Partition(); + _elem340.read(iprot); + struct.parts.add(_elem340); } iprot.readListEnd(); } @@ -759,9 +759,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsReque oprot.writeFieldBegin(PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.parts.size())); - for (Partition _iter333 : struct.parts) + for (Partition _iter341 : struct.parts) { - _iter333.write(oprot); + _iter341.write(oprot); } oprot.writeListEnd(); } @@ -796,9 +796,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsReques oprot.writeString(struct.tblName); { oprot.writeI32(struct.parts.size()); - for (Partition _iter334 : struct.parts) + for (Partition _iter342 : struct.parts) { - _iter334.write(oprot); + _iter342.write(oprot); } } oprot.writeBool(struct.ifNotExists); @@ -820,14 +820,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list335.size); - for (int _i336 = 0; _i336 < _list335.size; ++_i336) + org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list343.size); + for (int _i344 = 0; _i344 < _list343.size; ++_i344) { - Partition _elem337; // optional - _elem337 = new Partition(); - _elem337.read(iprot); - struct.parts.add(_elem337); + Partition _elem345; // optional + _elem345 = new Partition(); + _elem345.read(iprot); + struct.parts.add(_elem345); } } struct.setPartsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index f2da4c0..68a4219 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -342,14 +342,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddPartitionsResult case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list322.size); - for (int _i323 = 0; _i323 < _list322.size; ++_i323) + org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list330.size); + for (int _i331 = 0; _i331 < _list330.size; ++_i331) { - Partition _elem324; // optional - _elem324 = new Partition(); - _elem324.read(iprot); - struct.partitions.add(_elem324); + Partition _elem332; // optional + _elem332 = new Partition(); + _elem332.read(iprot); + struct.partitions.add(_elem332); } iprot.readListEnd(); } @@ -376,9 +376,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddPartitionsResul oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter325 : struct.partitions) + for (Partition _iter333 : struct.partitions) { - _iter325.write(oprot); + _iter333.write(oprot); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter326 : struct.partitions) + for (Partition _iter334 : struct.partitions) { - _iter326.write(oprot); + _iter334.write(oprot); } } } @@ -424,14 +424,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list327.size); - for (int _i328 = 0; _i328 < _list327.size; ++_i328) + org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list335.size); + for (int _i336 = 0; _i336 < _list335.size; ++_i336) { - Partition _elem329; // optional - _elem329 = new Partition(); - _elem329.read(iprot); - struct.partitions.add(_elem329); + Partition _elem337; // optional + _elem337 = new Partition(); + _elem337.read(iprot); + struct.partitions.add(_elem337); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index 937ef94..6aecf26 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -447,14 +447,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st case 2: // STATS_OBJ if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); - struct.statsObj = new ArrayList(_list228.size); - for (int _i229 = 0; _i229 < _list228.size; ++_i229) + org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); + struct.statsObj = new ArrayList(_list236.size); + for (int _i237 = 0; _i237 < _list236.size; ++_i237) { - ColumnStatisticsObj _elem230; // optional - _elem230 = new ColumnStatisticsObj(); - _elem230.read(iprot); - struct.statsObj.add(_elem230); + ColumnStatisticsObj _elem238; // optional + _elem238 = new ColumnStatisticsObj(); + _elem238.read(iprot); + struct.statsObj.add(_elem238); } iprot.readListEnd(); } @@ -485,9 +485,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ColumnStatistics s oprot.writeFieldBegin(STATS_OBJ_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.statsObj.size())); - for (ColumnStatisticsObj _iter231 : struct.statsObj) + for (ColumnStatisticsObj _iter239 : struct.statsObj) { - _iter231.write(oprot); + _iter239.write(oprot); } oprot.writeListEnd(); } @@ -513,9 +513,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics st struct.statsDesc.write(oprot); { oprot.writeI32(struct.statsObj.size()); - for (ColumnStatisticsObj _iter232 : struct.statsObj) + for (ColumnStatisticsObj _iter240 : struct.statsObj) { - _iter232.write(oprot); + _iter240.write(oprot); } } } @@ -527,14 +527,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str struct.statsDesc.read(iprot); struct.setStatsDescIsSet(true); { - org.apache.thrift.protocol.TList _list233 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList(_list233.size); - for (int _i234 = 0; _i234 < _list233.size; ++_i234) + org.apache.thrift.protocol.TList _list241 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.statsObj = new ArrayList(_list241.size); + for (int _i242 = 0; _i242 < _list241.size; ++_i242) { - ColumnStatisticsObj _elem235; // optional - _elem235 = new ColumnStatisticsObj(); - _elem235.read(iprot); - struct.statsObj.add(_elem235); + ColumnStatisticsObj _elem243; // optional + _elem243 = new ColumnStatisticsObj(); + _elem243.read(iprot); + struct.statsObj.add(_elem243); } } struct.setStatsObjIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java index e1e9012..c3c531d 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Database.java @@ -877,15 +877,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Database struct) th case 4: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map86 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map86.size); - for (int _i87 = 0; _i87 < _map86.size; ++_i87) + org.apache.thrift.protocol.TMap _map94 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map94.size); + for (int _i95 = 0; _i95 < _map94.size; ++_i95) { - String _key88; // required - String _val89; // required - _key88 = iprot.readString(); - _val89 = iprot.readString(); - struct.parameters.put(_key88, _val89); + String _key96; // required + String _val97; // required + _key96 = iprot.readString(); + _val97 = iprot.readString(); + struct.parameters.put(_key96, _val97); } iprot.readMapEnd(); } @@ -951,10 +951,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Database struct) t oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter90 : struct.parameters.entrySet()) + for (Map.Entry _iter98 : struct.parameters.entrySet()) { - oprot.writeString(_iter90.getKey()); - oprot.writeString(_iter90.getValue()); + oprot.writeString(_iter98.getKey()); + oprot.writeString(_iter98.getValue()); } oprot.writeMapEnd(); } @@ -1033,10 +1033,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Database struct) th if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter91 : struct.parameters.entrySet()) + for (Map.Entry _iter99 : struct.parameters.entrySet()) { - oprot.writeString(_iter91.getKey()); - oprot.writeString(_iter91.getValue()); + oprot.writeString(_iter99.getKey()); + oprot.writeString(_iter99.getValue()); } } } @@ -1069,15 +1069,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Database struct) thr } if (incoming.get(3)) { { - org.apache.thrift.protocol.TMap _map92 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map92.size); - for (int _i93 = 0; _i93 < _map92.size; ++_i93) + org.apache.thrift.protocol.TMap _map100 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map100.size); + for (int _i101 = 0; _i101 < _map100.size; ++_i101) { - String _key94; // required - String _val95; // required - _key94 = iprot.readString(); - _val95 = iprot.readString(); - struct.parameters.put(_key94, _val95); + String _key102; // required + String _val103; // required + _key102 = iprot.readString(); + _val103 = iprot.readString(); + struct.parameters.put(_key102, _val103); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index 0bff340..a4ae892 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -342,14 +342,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, DropPartitionsResul case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list338.size); - for (int _i339 = 0; _i339 < _list338.size; ++_i339) + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list346.size); + for (int _i347 = 0; _i347 < _list346.size; ++_i347) { - Partition _elem340; // optional - _elem340 = new Partition(); - _elem340.read(iprot); - struct.partitions.add(_elem340); + Partition _elem348; // optional + _elem348 = new Partition(); + _elem348.read(iprot); + struct.partitions.add(_elem348); } iprot.readListEnd(); } @@ -376,9 +376,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, DropPartitionsResu oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter341 : struct.partitions) + for (Partition _iter349 : struct.partitions) { - _iter341.write(oprot); + _iter349.write(oprot); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResul if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter342 : struct.partitions) + for (Partition _iter350 : struct.partitions) { - _iter342.write(oprot); + _iter350.write(oprot); } } } @@ -424,14 +424,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResult BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list343.size); - for (int _i344 = 0; _i344 < _list343.size; ++_i344) + org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list351.size); + for (int _i352 = 0; _i352 < _list351.size; ++_i352) { - Partition _elem345; // optional - _elem345 = new Partition(); - _elem345.read(iprot); - struct.partitions.add(_elem345); + Partition _elem353; // optional + _elem353 = new Partition(); + _elem353.read(iprot); + struct.partitions.add(_elem353); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index b8ba555..ed464d6 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java @@ -351,15 +351,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, EnvironmentContext case 1: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map254 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map254.size); - for (int _i255 = 0; _i255 < _map254.size; ++_i255) + org.apache.thrift.protocol.TMap _map262 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map262.size); + for (int _i263 = 0; _i263 < _map262.size; ++_i263) { - String _key256; // required - String _val257; // required - _key256 = iprot.readString(); - _val257 = iprot.readString(); - struct.properties.put(_key256, _val257); + String _key264; // required + String _val265; // required + _key264 = iprot.readString(); + _val265 = iprot.readString(); + struct.properties.put(_key264, _val265); } iprot.readMapEnd(); } @@ -385,10 +385,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, EnvironmentContext oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter258 : struct.properties.entrySet()) + for (Map.Entry _iter266 : struct.properties.entrySet()) { - oprot.writeString(_iter258.getKey()); - oprot.writeString(_iter258.getValue()); + oprot.writeString(_iter266.getKey()); + oprot.writeString(_iter266.getValue()); } oprot.writeMapEnd(); } @@ -419,10 +419,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter259 : struct.properties.entrySet()) + for (Map.Entry _iter267 : struct.properties.entrySet()) { - oprot.writeString(_iter259.getKey()); - oprot.writeString(_iter259.getValue()); + oprot.writeString(_iter267.getKey()); + oprot.writeString(_iter267.getValue()); } } } @@ -434,15 +434,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, EnvironmentContext s BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map260 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map260.size); - for (int _i261 = 0; _i261 < _map260.size; ++_i261) + org.apache.thrift.protocol.TMap _map268 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map268.size); + for (int _i269 = 0; _i269 < _map268.size; ++_i269) { - String _key262; // required - String _val263; // required - _key262 = iprot.readString(); - _val263 = iprot.readString(); - struct.properties.put(_key262, _val263); + String _key270; // required + String _val271; // required + _key270 = iprot.readString(); + _val271 = iprot.readString(); + struct.properties.put(_key270, _val271); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 7197dc0..781281a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -993,14 +993,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Function struct) th case 8: // RESOURCE_URIS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list362.size); - for (int _i363 = 0; _i363 < _list362.size; ++_i363) + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list370.size); + for (int _i371 = 0; _i371 < _list370.size; ++_i371) { - ResourceUri _elem364; // optional - _elem364 = new ResourceUri(); - _elem364.read(iprot); - struct.resourceUris.add(_elem364); + ResourceUri _elem372; // optional + _elem372 = new ResourceUri(); + _elem372.read(iprot); + struct.resourceUris.add(_elem372); } iprot.readListEnd(); } @@ -1059,9 +1059,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Function struct) t oprot.writeFieldBegin(RESOURCE_URIS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.resourceUris.size())); - for (ResourceUri _iter365 : struct.resourceUris) + for (ResourceUri _iter373 : struct.resourceUris) { - _iter365.write(oprot); + _iter373.write(oprot); } oprot.writeListEnd(); } @@ -1134,9 +1134,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter366 : struct.resourceUris) + for (ResourceUri _iter374 : struct.resourceUris) { - _iter366.write(oprot); + _iter374.write(oprot); } } } @@ -1176,14 +1176,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list367.size); - for (int _i368 = 0; _i368 < _list367.size; ++_i368) + org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list375.size); + for (int _i376 = 0; _i376 < _list375.size; ++_i376) { - ResourceUri _elem369; // optional - _elem369 = new ResourceUri(); - _elem369.read(iprot); - struct.resourceUris.add(_elem369); + ResourceUri _elem377; // optional + _elem377 = new ResourceUri(); + _elem377.read(iprot); + struct.resourceUris.add(_elem377); } } struct.setResourceUrisIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index c510cdb..b782d32 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -443,14 +443,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsInfoResp case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list370.size); - for (int _i371 = 0; _i371 < _list370.size; ++_i371) + org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list378.size); + for (int _i379 = 0; _i379 < _list378.size; ++_i379) { - TxnInfo _elem372; // optional - _elem372 = new TxnInfo(); - _elem372.read(iprot); - struct.open_txns.add(_elem372); + TxnInfo _elem380; // optional + _elem380 = new TxnInfo(); + _elem380.read(iprot); + struct.open_txns.add(_elem380); } iprot.readListEnd(); } @@ -479,9 +479,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsInfoRes oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.open_txns.size())); - for (TxnInfo _iter373 : struct.open_txns) + for (TxnInfo _iter381 : struct.open_txns) { - _iter373.write(oprot); + _iter381.write(oprot); } oprot.writeListEnd(); } @@ -507,9 +507,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoResp oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (TxnInfo _iter374 : struct.open_txns) + for (TxnInfo _iter382 : struct.open_txns) { - _iter374.write(oprot); + _iter382.write(oprot); } } } @@ -520,14 +520,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsInfoRespo struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TList _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list375.size); - for (int _i376 = 0; _i376 < _list375.size; ++_i376) + org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list383.size); + for (int _i384 = 0; _i384 < _list383.size; ++_i384) { - TxnInfo _elem377; // optional - _elem377 = new TxnInfo(); - _elem377.read(iprot); - struct.open_txns.add(_elem377); + TxnInfo _elem385; // optional + _elem385 = new TxnInfo(); + _elem385.read(iprot); + struct.open_txns.add(_elem385); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index 06660d9..d549ce9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -443,13 +443,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetOpenTxnsResponse case 2: // OPEN_TXNS if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set378 = iprot.readSetBegin(); - struct.open_txns = new HashSet(2*_set378.size); - for (int _i379 = 0; _i379 < _set378.size; ++_i379) + org.apache.thrift.protocol.TSet _set386 = iprot.readSetBegin(); + struct.open_txns = new HashSet(2*_set386.size); + for (int _i387 = 0; _i387 < _set386.size; ++_i387) { - long _elem380; // optional - _elem380 = iprot.readI64(); - struct.open_txns.add(_elem380); + long _elem388; // optional + _elem388 = iprot.readI64(); + struct.open_txns.add(_elem388); } iprot.readSetEnd(); } @@ -478,9 +478,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetOpenTxnsRespons oprot.writeFieldBegin(OPEN_TXNS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.open_txns.size())); - for (long _iter381 : struct.open_txns) + for (long _iter389 : struct.open_txns) { - oprot.writeI64(_iter381); + oprot.writeI64(_iter389); } oprot.writeSetEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse oprot.writeI64(struct.txn_high_water_mark); { oprot.writeI32(struct.open_txns.size()); - for (long _iter382 : struct.open_txns) + for (long _iter390 : struct.open_txns) { - oprot.writeI64(_iter382); + oprot.writeI64(_iter390); } } } @@ -519,13 +519,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetOpenTxnsResponse struct.txn_high_water_mark = iprot.readI64(); struct.setTxn_high_water_markIsSet(true); { - org.apache.thrift.protocol.TSet _set383 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet(2*_set383.size); - for (int _i384 = 0; _i384 < _set383.size; ++_i384) + org.apache.thrift.protocol.TSet _set391 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new HashSet(2*_set391.size); + for (int _i392 = 0; _i392 < _set391.size; ++_i392) { - long _elem385; // optional - _elem385 = iprot.readI64(); - struct.open_txns.add(_elem385); + long _elem393; // optional + _elem393 = iprot.readI64(); + struct.open_txns.add(_elem393); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java index 6b3b194..565eba9 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java @@ -106,7 +106,7 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrincipalsInRoleRequest.class, metaDataMap); @@ -286,6 +286,10 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields + if (!isSetRoleName()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -366,24 +370,14 @@ public GetPrincipalsInRoleRequestTupleScheme getScheme() { @Override public void write(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetRoleName()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetRoleName()) { - oprot.writeString(struct.roleName); - } + oprot.writeString(struct.roleName); } @Override public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { - struct.roleName = iprot.readString(); - struct.setRoleNameIsSet(true); - } + struct.roleName = iprot.readString(); + struct.setRoleNameIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java index e5ba412..3ef6224 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java @@ -106,7 +106,7 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRINCIPAL_GRANTS, new org.apache.thrift.meta_data.FieldMetaData("principalGrants", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PRINCIPAL_GRANTS, new org.apache.thrift.meta_data.FieldMetaData("principalGrants", org.apache.thrift.TFieldRequirementType.REQUIRED, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RolePrincipalGrant.class)))); metaDataMap = Collections.unmodifiableMap(tmpMap); @@ -306,6 +306,10 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields + if (!isSetPrincipalGrants()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'principalGrants' is unset! Struct:" + toString()); + } + // check for sub-struct validity } @@ -346,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRole case 1: // PRINCIPAL_GRANTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); - struct.principalGrants = new ArrayList(_list78.size); - for (int _i79 = 0; _i79 < _list78.size; ++_i79) + org.apache.thrift.protocol.TList _list86 = iprot.readListBegin(); + struct.principalGrants = new ArrayList(_list86.size); + for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - RolePrincipalGrant _elem80; // optional - _elem80 = new RolePrincipalGrant(); - _elem80.read(iprot); - struct.principalGrants.add(_elem80); + RolePrincipalGrant _elem88; // optional + _elem88 = new RolePrincipalGrant(); + _elem88.read(iprot); + struct.principalGrants.add(_elem88); } iprot.readListEnd(); } @@ -379,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetPrincipalsInRol oprot.writeFieldBegin(PRINCIPAL_GRANTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.principalGrants.size())); - for (RolePrincipalGrant _iter81 : struct.principalGrants) + for (RolePrincipalGrant _iter89 : struct.principalGrants) { - _iter81.write(oprot); + _iter89.write(oprot); } oprot.writeListEnd(); } @@ -404,18 +408,11 @@ public GetPrincipalsInRoleResponseTupleScheme getScheme() { @Override public void write(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; - BitSet optionals = new BitSet(); - if (struct.isSetPrincipalGrants()) { - optionals.set(0); - } - oprot.writeBitSet(optionals, 1); - if (struct.isSetPrincipalGrants()) { + { + oprot.writeI32(struct.principalGrants.size()); + for (RolePrincipalGrant _iter90 : struct.principalGrants) { - oprot.writeI32(struct.principalGrants.size()); - for (RolePrincipalGrant _iter82 : struct.principalGrants) - { - _iter82.write(oprot); - } + _iter90.write(oprot); } } } @@ -423,21 +420,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRole @Override public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(1); - if (incoming.get(0)) { + { + org.apache.thrift.protocol.TList _list91 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.principalGrants = new ArrayList(_list91.size); + for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.principalGrants = new ArrayList(_list83.size); - for (int _i84 = 0; _i84 < _list83.size; ++_i84) - { - RolePrincipalGrant _elem85; // optional - _elem85 = new RolePrincipalGrant(); - _elem85.read(iprot); - struct.principalGrants.add(_elem85); - } + RolePrincipalGrant _elem93; // optional + _elem93 = new RolePrincipalGrant(); + _elem93.read(iprot); + struct.principalGrants.add(_elem93); } - struct.setPrincipalGrantsIsSet(true); } + struct.setPrincipalGrantsIsSet(true); } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java new file mode 100644 index 0000000..84b73c3 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalRequest.java @@ -0,0 +1,498 @@ +/** + * Autogenerated by Thrift Compiler (0.9.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class GetRoleGrantsForPrincipalRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalRequest"); + + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetRoleGrantsForPrincipalRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetRoleGrantsForPrincipalRequestTupleSchemeFactory()); + } + + private String principal_name; // required + private PrincipalType principal_type; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + PRINCIPAL_NAME((short)1, "principal_name"), + /** + * + * @see PrincipalType + */ + PRINCIPAL_TYPE((short)2, "principal_type"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PRINCIPAL_NAME + return PRINCIPAL_NAME; + case 2: // PRINCIPAL_TYPE + return PRINCIPAL_TYPE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetRoleGrantsForPrincipalRequest.class, metaDataMap); + } + + public GetRoleGrantsForPrincipalRequest() { + } + + public GetRoleGrantsForPrincipalRequest( + String principal_name, + PrincipalType principal_type) + { + this(); + this.principal_name = principal_name; + this.principal_type = principal_type; + } + + /** + * Performs a deep copy on other. + */ + public GetRoleGrantsForPrincipalRequest(GetRoleGrantsForPrincipalRequest other) { + if (other.isSetPrincipal_name()) { + this.principal_name = other.principal_name; + } + if (other.isSetPrincipal_type()) { + this.principal_type = other.principal_type; + } + } + + public GetRoleGrantsForPrincipalRequest deepCopy() { + return new GetRoleGrantsForPrincipalRequest(this); + } + + @Override + public void clear() { + this.principal_name = null; + this.principal_type = null; + } + + public String getPrincipal_name() { + return this.principal_name; + } + + public void setPrincipal_name(String principal_name) { + this.principal_name = principal_name; + } + + public void unsetPrincipal_name() { + this.principal_name = null; + } + + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPrincipal_name() { + return this.principal_name != null; + } + + public void setPrincipal_nameIsSet(boolean value) { + if (!value) { + this.principal_name = null; + } + } + + /** + * + * @see PrincipalType + */ + public PrincipalType getPrincipal_type() { + return this.principal_type; + } + + /** + * + * @see PrincipalType + */ + public void setPrincipal_type(PrincipalType principal_type) { + this.principal_type = principal_type; + } + + public void unsetPrincipal_type() { + this.principal_type = null; + } + + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ + public boolean isSetPrincipal_type() { + return this.principal_type != null; + } + + public void setPrincipal_typeIsSet(boolean value) { + if (!value) { + this.principal_type = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PRINCIPAL_NAME: + if (value == null) { + unsetPrincipal_name(); + } else { + setPrincipal_name((String)value); + } + break; + + case PRINCIPAL_TYPE: + if (value == null) { + unsetPrincipal_type(); + } else { + setPrincipal_type((PrincipalType)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PRINCIPAL_NAME: + return getPrincipal_name(); + + case PRINCIPAL_TYPE: + return getPrincipal_type(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PRINCIPAL_NAME: + return isSetPrincipal_name(); + case PRINCIPAL_TYPE: + return isSetPrincipal_type(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetRoleGrantsForPrincipalRequest) + return this.equals((GetRoleGrantsForPrincipalRequest)that); + return false; + } + + public boolean equals(GetRoleGrantsForPrincipalRequest that) { + if (that == null) + return false; + + boolean this_present_principal_name = true && this.isSetPrincipal_name(); + boolean that_present_principal_name = true && that.isSetPrincipal_name(); + if (this_present_principal_name || that_present_principal_name) { + if (!(this_present_principal_name && that_present_principal_name)) + return false; + if (!this.principal_name.equals(that.principal_name)) + return false; + } + + boolean this_present_principal_type = true && this.isSetPrincipal_type(); + boolean that_present_principal_type = true && that.isSetPrincipal_type(); + if (this_present_principal_type || that_present_principal_type) { + if (!(this_present_principal_type && that_present_principal_type)) + return false; + if (!this.principal_type.equals(that.principal_type)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_principal_name = true && (isSetPrincipal_name()); + builder.append(present_principal_name); + if (present_principal_name) + builder.append(principal_name); + + boolean present_principal_type = true && (isSetPrincipal_type()); + builder.append(present_principal_type); + if (present_principal_type) + builder.append(principal_type.getValue()); + + return builder.toHashCode(); + } + + public int compareTo(GetRoleGrantsForPrincipalRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + GetRoleGrantsForPrincipalRequest typedOther = (GetRoleGrantsForPrincipalRequest)other; + + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrincipal_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrincipal_type()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("GetRoleGrantsForPrincipalRequest("); + boolean first = true; + + sb.append("principal_name:"); + if (this.principal_name == null) { + sb.append("null"); + } else { + sb.append(this.principal_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("principal_type:"); + if (this.principal_type == null) { + sb.append("null"); + } else { + sb.append(this.principal_type); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPrincipal_name()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'principal_name' is unset! Struct:" + toString()); + } + + if (!isSetPrincipal_type()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'principal_type' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetRoleGrantsForPrincipalRequestStandardSchemeFactory implements SchemeFactory { + public GetRoleGrantsForPrincipalRequestStandardScheme getScheme() { + return new GetRoleGrantsForPrincipalRequestStandardScheme(); + } + } + + private static class GetRoleGrantsForPrincipalRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPrincipalRequest struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // PRINCIPAL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal_name = iprot.readString(); + struct.setPrincipal_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipal_typeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, GetRoleGrantsForPrincipalRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.principal_name != null) { + oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); + oprot.writeString(struct.principal_name); + oprot.writeFieldEnd(); + } + if (struct.principal_type != null) { + oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC); + oprot.writeI32(struct.principal_type.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetRoleGrantsForPrincipalRequestTupleSchemeFactory implements SchemeFactory { + public GetRoleGrantsForPrincipalRequestTupleScheme getScheme() { + return new GetRoleGrantsForPrincipalRequestTupleScheme(); + } + } + + private static class GetRoleGrantsForPrincipalRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrincipalRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + oprot.writeString(struct.principal_name); + oprot.writeI32(struct.principal_type.getValue()); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrincipalRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + struct.principal_name = iprot.readString(); + struct.setPrincipal_nameIsSet(true); + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipal_typeIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java new file mode 100644 index 0000000..3ddc1ac --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java @@ -0,0 +1,439 @@ +/** + * Autogenerated by Thrift Compiler (0.9.0) + * + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * @generated + */ +package org.apache.hadoop.hive.metastore.api; + +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.thrift.scheme.IScheme; +import org.apache.thrift.scheme.SchemeFactory; +import org.apache.thrift.scheme.StandardScheme; + +import org.apache.thrift.scheme.TupleScheme; +import org.apache.thrift.protocol.TTupleProtocol; +import org.apache.thrift.protocol.TProtocolException; +import org.apache.thrift.EncodingUtils; +import org.apache.thrift.TException; +import java.util.List; +import java.util.ArrayList; +import java.util.Map; +import java.util.HashMap; +import java.util.EnumMap; +import java.util.Set; +import java.util.HashSet; +import java.util.EnumSet; +import java.util.Collections; +import java.util.BitSet; +import java.nio.ByteBuffer; +import java.util.Arrays; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class GetRoleGrantsForPrincipalResponse implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("GetRoleGrantsForPrincipalResponse"); + + private static final org.apache.thrift.protocol.TField PRINCIPAL_GRANTS_FIELD_DESC = new org.apache.thrift.protocol.TField("principalGrants", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetRoleGrantsForPrincipalResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetRoleGrantsForPrincipalResponseTupleSchemeFactory()); + } + + private List principalGrants; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + PRINCIPAL_GRANTS((short)1, "principalGrants"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // PRINCIPAL_GRANTS + return PRINCIPAL_GRANTS; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PRINCIPAL_GRANTS, new org.apache.thrift.meta_data.FieldMetaData("principalGrants", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, RolePrincipalGrant.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetRoleGrantsForPrincipalResponse.class, metaDataMap); + } + + public GetRoleGrantsForPrincipalResponse() { + } + + public GetRoleGrantsForPrincipalResponse( + List principalGrants) + { + this(); + this.principalGrants = principalGrants; + } + + /** + * Performs a deep copy on other. + */ + public GetRoleGrantsForPrincipalResponse(GetRoleGrantsForPrincipalResponse other) { + if (other.isSetPrincipalGrants()) { + List __this__principalGrants = new ArrayList(); + for (RolePrincipalGrant other_element : other.principalGrants) { + __this__principalGrants.add(new RolePrincipalGrant(other_element)); + } + this.principalGrants = __this__principalGrants; + } + } + + public GetRoleGrantsForPrincipalResponse deepCopy() { + return new GetRoleGrantsForPrincipalResponse(this); + } + + @Override + public void clear() { + this.principalGrants = null; + } + + public int getPrincipalGrantsSize() { + return (this.principalGrants == null) ? 0 : this.principalGrants.size(); + } + + public java.util.Iterator getPrincipalGrantsIterator() { + return (this.principalGrants == null) ? null : this.principalGrants.iterator(); + } + + public void addToPrincipalGrants(RolePrincipalGrant elem) { + if (this.principalGrants == null) { + this.principalGrants = new ArrayList(); + } + this.principalGrants.add(elem); + } + + public List getPrincipalGrants() { + return this.principalGrants; + } + + public void setPrincipalGrants(List principalGrants) { + this.principalGrants = principalGrants; + } + + public void unsetPrincipalGrants() { + this.principalGrants = null; + } + + /** Returns true if field principalGrants is set (has been assigned a value) and false otherwise */ + public boolean isSetPrincipalGrants() { + return this.principalGrants != null; + } + + public void setPrincipalGrantsIsSet(boolean value) { + if (!value) { + this.principalGrants = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PRINCIPAL_GRANTS: + if (value == null) { + unsetPrincipalGrants(); + } else { + setPrincipalGrants((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PRINCIPAL_GRANTS: + return getPrincipalGrants(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case PRINCIPAL_GRANTS: + return isSetPrincipalGrants(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetRoleGrantsForPrincipalResponse) + return this.equals((GetRoleGrantsForPrincipalResponse)that); + return false; + } + + public boolean equals(GetRoleGrantsForPrincipalResponse that) { + if (that == null) + return false; + + boolean this_present_principalGrants = true && this.isSetPrincipalGrants(); + boolean that_present_principalGrants = true && that.isSetPrincipalGrants(); + if (this_present_principalGrants || that_present_principalGrants) { + if (!(this_present_principalGrants && that_present_principalGrants)) + return false; + if (!this.principalGrants.equals(that.principalGrants)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_principalGrants = true && (isSetPrincipalGrants()); + builder.append(present_principalGrants); + if (present_principalGrants) + builder.append(principalGrants); + + return builder.toHashCode(); + } + + public int compareTo(GetRoleGrantsForPrincipalResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + GetRoleGrantsForPrincipalResponse typedOther = (GetRoleGrantsForPrincipalResponse)other; + + lastComparison = Boolean.valueOf(isSetPrincipalGrants()).compareTo(typedOther.isSetPrincipalGrants()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrincipalGrants()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalGrants, typedOther.principalGrants); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("GetRoleGrantsForPrincipalResponse("); + boolean first = true; + + sb.append("principalGrants:"); + if (this.principalGrants == null) { + sb.append("null"); + } else { + sb.append(this.principalGrants); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPrincipalGrants()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'principalGrants' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class GetRoleGrantsForPrincipalResponseStandardSchemeFactory implements SchemeFactory { + public GetRoleGrantsForPrincipalResponseStandardScheme getScheme() { + return new GetRoleGrantsForPrincipalResponseStandardScheme(); + } + } + + private static class GetRoleGrantsForPrincipalResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPrincipalResponse struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // PRINCIPAL_GRANTS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list78 = iprot.readListBegin(); + struct.principalGrants = new ArrayList(_list78.size); + for (int _i79 = 0; _i79 < _list78.size; ++_i79) + { + RolePrincipalGrant _elem80; // optional + _elem80 = new RolePrincipalGrant(); + _elem80.read(iprot); + struct.principalGrants.add(_elem80); + } + iprot.readListEnd(); + } + struct.setPrincipalGrantsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, GetRoleGrantsForPrincipalResponse struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.principalGrants != null) { + oprot.writeFieldBegin(PRINCIPAL_GRANTS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.principalGrants.size())); + for (RolePrincipalGrant _iter81 : struct.principalGrants) + { + _iter81.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetRoleGrantsForPrincipalResponseTupleSchemeFactory implements SchemeFactory { + public GetRoleGrantsForPrincipalResponseTupleScheme getScheme() { + return new GetRoleGrantsForPrincipalResponseTupleScheme(); + } + } + + private static class GetRoleGrantsForPrincipalResponseTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrincipalResponse struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.principalGrants.size()); + for (RolePrincipalGrant _iter82 : struct.principalGrants) + { + _iter82.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrincipalResponse struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list83 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.principalGrants = new ArrayList(_list83.size); + for (int _i84 = 0; _i84 < _list83.size; ++_i84) + { + RolePrincipalGrant _elem85; // optional + _elem85 = new RolePrincipalGrant(); + _elem85.read(iprot); + struct.principalGrants.add(_elem85); + } + } + struct.setPrincipalGrantsIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java index f6c62c1..19ff4f2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Index.java @@ -1140,15 +1140,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Index struct) throw case 9: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map218.size); - for (int _i219 = 0; _i219 < _map218.size; ++_i219) + org.apache.thrift.protocol.TMap _map226 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map226.size); + for (int _i227 = 0; _i227 < _map226.size; ++_i227) { - String _key220; // required - String _val221; // required - _key220 = iprot.readString(); - _val221 = iprot.readString(); - struct.parameters.put(_key220, _val221); + String _key228; // required + String _val229; // required + _key228 = iprot.readString(); + _val229 = iprot.readString(); + struct.parameters.put(_key228, _val229); } iprot.readMapEnd(); } @@ -1218,10 +1218,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Index struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter222 : struct.parameters.entrySet()) + for (Map.Entry _iter230 : struct.parameters.entrySet()) { - oprot.writeString(_iter222.getKey()); - oprot.writeString(_iter222.getValue()); + oprot.writeString(_iter230.getKey()); + oprot.writeString(_iter230.getValue()); } oprot.writeMapEnd(); } @@ -1306,10 +1306,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Index struct) throw if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter223 : struct.parameters.entrySet()) + for (Map.Entry _iter231 : struct.parameters.entrySet()) { - oprot.writeString(_iter223.getKey()); - oprot.writeString(_iter223.getValue()); + oprot.writeString(_iter231.getKey()); + oprot.writeString(_iter231.getValue()); } } } @@ -1357,15 +1357,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Index struct) throws } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map224 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map224.size); - for (int _i225 = 0; _i225 < _map224.size; ++_i225) + org.apache.thrift.protocol.TMap _map232 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map232.size); + for (int _i233 = 0; _i233 < _map232.size; ++_i233) { - String _key226; // required - String _val227; // required - _key226 = iprot.readString(); - _val227 = iprot.readString(); - struct.parameters.put(_key226, _val227); + String _key234; // required + String _val235; // required + _key234 = iprot.readString(); + _val235 = iprot.readString(); + struct.parameters.put(_key234, _val235); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index dd1da3d..cdf6f30 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -601,14 +601,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, LockRequest struct) case 1: // COMPONENT if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); - struct.component = new ArrayList(_list394.size); - for (int _i395 = 0; _i395 < _list394.size; ++_i395) + org.apache.thrift.protocol.TList _list402 = iprot.readListBegin(); + struct.component = new ArrayList(_list402.size); + for (int _i403 = 0; _i403 < _list402.size; ++_i403) { - LockComponent _elem396; // optional - _elem396 = new LockComponent(); - _elem396.read(iprot); - struct.component.add(_elem396); + LockComponent _elem404; // optional + _elem404 = new LockComponent(); + _elem404.read(iprot); + struct.component.add(_elem404); } iprot.readListEnd(); } @@ -658,9 +658,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, LockRequest struct oprot.writeFieldBegin(COMPONENT_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.component.size())); - for (LockComponent _iter397 : struct.component) + for (LockComponent _iter405 : struct.component) { - _iter397.write(oprot); + _iter405.write(oprot); } oprot.writeListEnd(); } @@ -700,9 +700,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter398 : struct.component) + for (LockComponent _iter406 : struct.component) { - _iter398.write(oprot); + _iter406.write(oprot); } } oprot.writeString(struct.user); @@ -721,14 +721,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) public void read(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list399.size); - for (int _i400 = 0; _i400 < _list399.size; ++_i400) + org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list407.size); + for (int _i408 = 0; _i408 < _list407.size; ++_i408) { - LockComponent _elem401; // optional - _elem401 = new LockComponent(); - _elem401.read(iprot); - struct.component.add(_elem401); + LockComponent _elem409; // optional + _elem409 = new LockComponent(); + _elem409.read(iprot); + struct.component.add(_elem409); } } struct.setComponentIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index 8ac2d6b..54955c6 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -350,13 +350,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, OpenTxnsResponse st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list386.size); - for (int _i387 = 0; _i387 < _list386.size; ++_i387) + org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list394.size); + for (int _i395 = 0; _i395 < _list394.size; ++_i395) { - long _elem388; // optional - _elem388 = iprot.readI64(); - struct.txn_ids.add(_elem388); + long _elem396; // optional + _elem396 = iprot.readI64(); + struct.txn_ids.add(_elem396); } iprot.readListEnd(); } @@ -382,9 +382,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, OpenTxnsResponse s oprot.writeFieldBegin(TXN_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.txn_ids.size())); - for (long _iter389 : struct.txn_ids) + for (long _iter397 : struct.txn_ids) { - oprot.writeI64(_iter389); + oprot.writeI64(_iter397); } oprot.writeListEnd(); } @@ -409,9 +409,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter390 : struct.txn_ids) + for (long _iter398 : struct.txn_ids) { - oprot.writeI64(_iter390); + oprot.writeI64(_iter398); } } } @@ -420,13 +420,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st public void read(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list391.size); - for (int _i392 = 0; _i392 < _list391.size; ++_i392) + org.apache.thrift.protocol.TList _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list399.size); + for (int _i400 = 0; _i400 < _list399.size; ++_i400) { - long _elem393; // optional - _elem393 = iprot.readI64(); - struct.txn_ids.add(_elem393); + long _elem401; // optional + _elem401 = iprot.readI64(); + struct.txn_ids.add(_elem401); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index bdfae38..7d29d09 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -941,13 +941,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 1: // VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); - struct.values = new ArrayList(_list200.size); - for (int _i201 = 0; _i201 < _list200.size; ++_i201) + org.apache.thrift.protocol.TList _list208 = iprot.readListBegin(); + struct.values = new ArrayList(_list208.size); + for (int _i209 = 0; _i209 < _list208.size; ++_i209) { - String _elem202; // optional - _elem202 = iprot.readString(); - struct.values.add(_elem202); + String _elem210; // optional + _elem210 = iprot.readString(); + struct.values.add(_elem210); } iprot.readListEnd(); } @@ -1000,15 +1000,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t case 7: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map203.size); - for (int _i204 = 0; _i204 < _map203.size; ++_i204) + org.apache.thrift.protocol.TMap _map211 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map211.size); + for (int _i212 = 0; _i212 < _map211.size; ++_i212) { - String _key205; // required - String _val206; // required - _key205 = iprot.readString(); - _val206 = iprot.readString(); - struct.parameters.put(_key205, _val206); + String _key213; // required + String _val214; // required + _key213 = iprot.readString(); + _val214 = iprot.readString(); + struct.parameters.put(_key213, _val214); } iprot.readMapEnd(); } @@ -1043,9 +1043,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.values.size())); - for (String _iter207 : struct.values) + for (String _iter215 : struct.values) { - oprot.writeString(_iter207); + oprot.writeString(_iter215); } oprot.writeListEnd(); } @@ -1076,10 +1076,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Partition struct) oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter208 : struct.parameters.entrySet()) + for (Map.Entry _iter216 : struct.parameters.entrySet()) { - oprot.writeString(_iter208.getKey()); - oprot.writeString(_iter208.getValue()); + oprot.writeString(_iter216.getKey()); + oprot.writeString(_iter216.getValue()); } oprot.writeMapEnd(); } @@ -1138,9 +1138,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetValues()) { { oprot.writeI32(struct.values.size()); - for (String _iter209 : struct.values) + for (String _iter217 : struct.values) { - oprot.writeString(_iter209); + oprot.writeString(_iter217); } } } @@ -1162,10 +1162,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Partition struct) t if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter210 : struct.parameters.entrySet()) + for (Map.Entry _iter218 : struct.parameters.entrySet()) { - oprot.writeString(_iter210.getKey()); - oprot.writeString(_iter210.getValue()); + oprot.writeString(_iter218.getKey()); + oprot.writeString(_iter218.getValue()); } } } @@ -1180,13 +1180,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th BitSet incoming = iprot.readBitSet(8); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list211 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list211.size); - for (int _i212 = 0; _i212 < _list211.size; ++_i212) + org.apache.thrift.protocol.TList _list219 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.values = new ArrayList(_list219.size); + for (int _i220 = 0; _i220 < _list219.size; ++_i220) { - String _elem213; // optional - _elem213 = iprot.readString(); - struct.values.add(_elem213); + String _elem221; // optional + _elem221 = iprot.readString(); + struct.values.add(_elem221); } } struct.setValuesIsSet(true); @@ -1214,15 +1214,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th } if (incoming.get(6)) { { - org.apache.thrift.protocol.TMap _map214 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map214.size); - for (int _i215 = 0; _i215 < _map214.size; ++_i215) + org.apache.thrift.protocol.TMap _map222 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map222.size); + for (int _i223 = 0; _i223 < _map222.size; ++_i223) { - String _key216; // required - String _val217; // required - _key216 = iprot.readString(); - _val217 = iprot.readString(); - struct.parameters.put(_key216, _val217); + String _key224; // required + String _val225; // required + _key224 = iprot.readString(); + _val225 = iprot.readString(); + struct.parameters.put(_key224, _val225); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 41f27b6..5ea5a1b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -435,14 +435,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsByExprRes case 1: // PARTITIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list264 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list264.size); - for (int _i265 = 0; _i265 < _list264.size; ++_i265) + org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list272.size); + for (int _i273 = 0; _i273 < _list272.size; ++_i273) { - Partition _elem266; // optional - _elem266 = new Partition(); - _elem266.read(iprot); - struct.partitions.add(_elem266); + Partition _elem274; // optional + _elem274 = new Partition(); + _elem274.read(iprot); + struct.partitions.add(_elem274); } iprot.readListEnd(); } @@ -476,9 +476,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsByExprRe oprot.writeFieldBegin(PARTITIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitions.size())); - for (Partition _iter267 : struct.partitions) + for (Partition _iter275 : struct.partitions) { - _iter267.write(oprot); + _iter275.write(oprot); } oprot.writeListEnd(); } @@ -506,9 +506,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter268 : struct.partitions) + for (Partition _iter276 : struct.partitions) { - _iter268.write(oprot); + _iter276.write(oprot); } } oprot.writeBool(struct.hasUnknownPartitions); @@ -518,14 +518,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list269.size); - for (int _i270 = 0; _i270 < _list269.size; ++_i270) + org.apache.thrift.protocol.TList _list277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list277.size); + for (int _i278 = 0; _i278 < _list277.size; ++_i278) { - Partition _elem271; // optional - _elem271 = new Partition(); - _elem271.read(iprot); - struct.partitions.add(_elem271); + Partition _elem279; // optional + _elem279 = new Partition(); + _elem279.read(iprot); + struct.partitions.add(_elem279); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 4ddc0d6..80a151a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -641,13 +641,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list306.size); - for (int _i307 = 0; _i307 < _list306.size; ++_i307) + org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list314.size); + for (int _i315 = 0; _i315 < _list314.size; ++_i315) { - String _elem308; // optional - _elem308 = iprot.readString(); - struct.colNames.add(_elem308); + String _elem316; // optional + _elem316 = iprot.readString(); + struct.colNames.add(_elem316); } iprot.readListEnd(); } @@ -659,13 +659,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsRequ case 4: // PART_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list309 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list309.size); - for (int _i310 = 0; _i310 < _list309.size; ++_i310) + org.apache.thrift.protocol.TList _list317 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list317.size); + for (int _i318 = 0; _i318 < _list317.size; ++_i318) { - String _elem311; // optional - _elem311 = iprot.readString(); - struct.partNames.add(_elem311); + String _elem319; // optional + _elem319 = iprot.readString(); + struct.partNames.add(_elem319); } iprot.readListEnd(); } @@ -701,9 +701,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter312 : struct.colNames) + for (String _iter320 : struct.colNames) { - oprot.writeString(_iter312); + oprot.writeString(_iter320); } oprot.writeListEnd(); } @@ -713,9 +713,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsReq oprot.writeFieldBegin(PART_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partNames.size())); - for (String _iter313 : struct.partNames) + for (String _iter321 : struct.partNames) { - oprot.writeString(_iter313); + oprot.writeString(_iter321); } oprot.writeListEnd(); } @@ -742,16 +742,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter314 : struct.colNames) + for (String _iter322 : struct.colNames) { - oprot.writeString(_iter314); + oprot.writeString(_iter322); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter315 : struct.partNames) + for (String _iter323 : struct.partNames) { - oprot.writeString(_iter315); + oprot.writeString(_iter323); } } } @@ -764,24 +764,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list316 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list316.size); - for (int _i317 = 0; _i317 < _list316.size; ++_i317) + org.apache.thrift.protocol.TList _list324 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list324.size); + for (int _i325 = 0; _i325 < _list324.size; ++_i325) { - String _elem318; // optional - _elem318 = iprot.readString(); - struct.colNames.add(_elem318); + String _elem326; // optional + _elem326 = iprot.readString(); + struct.colNames.add(_elem326); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list319.size); - for (int _i320 = 0; _i320 < _list319.size; ++_i320) + org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list327.size); + for (int _i328 = 0; _i328 < _list327.size; ++_i328) { - String _elem321; // optional - _elem321 = iprot.readString(); - struct.partNames.add(_elem321); + String _elem329; // optional + _elem329 = iprot.readString(); + struct.partNames.add(_elem329); } } struct.setPartNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index c3e276e..537db47 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -359,26 +359,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PartitionsStatsResu case 1: // PART_STATS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map280 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map280.size); - for (int _i281 = 0; _i281 < _map280.size; ++_i281) + org.apache.thrift.protocol.TMap _map288 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map288.size); + for (int _i289 = 0; _i289 < _map288.size; ++_i289) { - String _key282; // required - List _val283; // required - _key282 = iprot.readString(); + String _key290; // required + List _val291; // required + _key290 = iprot.readString(); { - org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(); - _val283 = new ArrayList(_list284.size); - for (int _i285 = 0; _i285 < _list284.size; ++_i285) + org.apache.thrift.protocol.TList _list292 = iprot.readListBegin(); + _val291 = new ArrayList(_list292.size); + for (int _i293 = 0; _i293 < _list292.size; ++_i293) { - ColumnStatisticsObj _elem286; // optional - _elem286 = new ColumnStatisticsObj(); - _elem286.read(iprot); - _val283.add(_elem286); + ColumnStatisticsObj _elem294; // optional + _elem294 = new ColumnStatisticsObj(); + _elem294.read(iprot); + _val291.add(_elem294); } iprot.readListEnd(); } - struct.partStats.put(_key282, _val283); + struct.partStats.put(_key290, _val291); } iprot.readMapEnd(); } @@ -404,14 +404,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PartitionsStatsRes oprot.writeFieldBegin(PART_STATS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, struct.partStats.size())); - for (Map.Entry> _iter287 : struct.partStats.entrySet()) + for (Map.Entry> _iter295 : struct.partStats.entrySet()) { - oprot.writeString(_iter287.getKey()); + oprot.writeString(_iter295.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter287.getValue().size())); - for (ColumnStatisticsObj _iter288 : _iter287.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter295.getValue().size())); + for (ColumnStatisticsObj _iter296 : _iter295.getValue()) { - _iter288.write(oprot); + _iter296.write(oprot); } oprot.writeListEnd(); } @@ -439,14 +439,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partStats.size()); - for (Map.Entry> _iter289 : struct.partStats.entrySet()) + for (Map.Entry> _iter297 : struct.partStats.entrySet()) { - oprot.writeString(_iter289.getKey()); + oprot.writeString(_iter297.getKey()); { - oprot.writeI32(_iter289.getValue().size()); - for (ColumnStatisticsObj _iter290 : _iter289.getValue()) + oprot.writeI32(_iter297.getValue().size()); + for (ColumnStatisticsObj _iter298 : _iter297.getValue()) { - _iter290.write(oprot); + _iter298.write(oprot); } } } @@ -457,25 +457,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map291 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.partStats = new HashMap>(2*_map291.size); - for (int _i292 = 0; _i292 < _map291.size; ++_i292) + org.apache.thrift.protocol.TMap _map299 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); + struct.partStats = new HashMap>(2*_map299.size); + for (int _i300 = 0; _i300 < _map299.size; ++_i300) { - String _key293; // required - List _val294; // required - _key293 = iprot.readString(); + String _key301; // required + List _val302; // required + _key301 = iprot.readString(); { - org.apache.thrift.protocol.TList _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val294 = new ArrayList(_list295.size); - for (int _i296 = 0; _i296 < _list295.size; ++_i296) + org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val302 = new ArrayList(_list303.size); + for (int _i304 = 0; _i304 < _list303.size; ++_i304) { - ColumnStatisticsObj _elem297; // optional - _elem297 = new ColumnStatisticsObj(); - _elem297.read(iprot); - _val294.add(_elem297); + ColumnStatisticsObj _elem305; // optional + _elem305 = new ColumnStatisticsObj(); + _elem305.read(iprot); + _val302.add(_elem305); } } - struct.partStats.put(_key293, _val294); + struct.partStats.put(_key301, _val302); } } struct.setPartStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 6b78ffe..2fcb216 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -165,13 +165,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == NAMES_FIELD_DESC.type) { List names; { - org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); - names = new ArrayList(_list346.size); - for (int _i347 = 0; _i347 < _list346.size; ++_i347) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + names = new ArrayList(_list354.size); + for (int _i355 = 0; _i355 < _list354.size; ++_i355) { - String _elem348; // optional - _elem348 = iprot.readString(); - names.add(_elem348); + String _elem356; // optional + _elem356 = iprot.readString(); + names.add(_elem356); } iprot.readListEnd(); } @@ -184,14 +184,14 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == EXPRS_FIELD_DESC.type) { List exprs; { - org.apache.thrift.protocol.TList _list349 = iprot.readListBegin(); - exprs = new ArrayList(_list349.size); - for (int _i350 = 0; _i350 < _list349.size; ++_i350) + org.apache.thrift.protocol.TList _list357 = iprot.readListBegin(); + exprs = new ArrayList(_list357.size); + for (int _i358 = 0; _i358 < _list357.size; ++_i358) { - DropPartitionsExpr _elem351; // optional - _elem351 = new DropPartitionsExpr(); - _elem351.read(iprot); - exprs.add(_elem351); + DropPartitionsExpr _elem359; // optional + _elem359 = new DropPartitionsExpr(); + _elem359.read(iprot); + exprs.add(_elem359); } iprot.readListEnd(); } @@ -215,9 +215,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter352 : names) + for (String _iter360 : names) { - oprot.writeString(_iter352); + oprot.writeString(_iter360); } oprot.writeListEnd(); } @@ -226,9 +226,9 @@ protected void standardSchemeWriteValue(org.apache.thrift.protocol.TProtocol opr List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter353 : exprs) + for (DropPartitionsExpr _iter361 : exprs) { - _iter353.write(oprot); + _iter361.write(oprot); } oprot.writeListEnd(); } @@ -246,13 +246,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case NAMES: List names; { - org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); - names = new ArrayList(_list354.size); - for (int _i355 = 0; _i355 < _list354.size; ++_i355) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + names = new ArrayList(_list362.size); + for (int _i363 = 0; _i363 < _list362.size; ++_i363) { - String _elem356; // optional - _elem356 = iprot.readString(); - names.add(_elem356); + String _elem364; // optional + _elem364 = iprot.readString(); + names.add(_elem364); } iprot.readListEnd(); } @@ -260,14 +260,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list357 = iprot.readListBegin(); - exprs = new ArrayList(_list357.size); - for (int _i358 = 0; _i358 < _list357.size; ++_i358) + org.apache.thrift.protocol.TList _list365 = iprot.readListBegin(); + exprs = new ArrayList(_list365.size); + for (int _i366 = 0; _i366 < _list365.size; ++_i366) { - DropPartitionsExpr _elem359; // optional - _elem359 = new DropPartitionsExpr(); - _elem359.read(iprot); - exprs.add(_elem359); + DropPartitionsExpr _elem367; // optional + _elem367 = new DropPartitionsExpr(); + _elem367.read(iprot); + exprs.add(_elem367); } iprot.readListEnd(); } @@ -287,9 +287,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List names = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, names.size())); - for (String _iter360 : names) + for (String _iter368 : names) { - oprot.writeString(_iter360); + oprot.writeString(_iter368); } oprot.writeListEnd(); } @@ -298,9 +298,9 @@ protected void tupleSchemeWriteValue(org.apache.thrift.protocol.TProtocol oprot) List exprs = (List)value_; { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, exprs.size())); - for (DropPartitionsExpr _iter361 : exprs) + for (DropPartitionsExpr _iter369 : exprs) { - _iter361.write(oprot); + _iter369.write(oprot); } oprot.writeListEnd(); } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java index 4e828a8..35fcf58 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Role.java @@ -37,11 +37,6 @@ private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField CREATE_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("createTime", org.apache.thrift.protocol.TType.I32, (short)2); private static final org.apache.thrift.protocol.TField OWNER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("ownerName", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principalName", org.apache.thrift.protocol.TType.STRING, (short)4); - private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principalType", org.apache.thrift.protocol.TType.STRING, (short)5); - private static final org.apache.thrift.protocol.TField GRANT_OPTION_FIELD_DESC = new org.apache.thrift.protocol.TField("grantOption", org.apache.thrift.protocol.TType.BOOL, (short)6); - private static final org.apache.thrift.protocol.TField GRANT_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("grantTime", org.apache.thrift.protocol.TType.I32, (short)7); - private static final org.apache.thrift.protocol.TField GRANTOR_FIELD_DESC = new org.apache.thrift.protocol.TField("grantor", org.apache.thrift.protocol.TType.STRING, (short)8); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { @@ -52,22 +47,12 @@ private String roleName; // required private int createTime; // required private String ownerName; // required - private String principalName; // optional - private String principalType; // optional - private boolean grantOption; // optional - private int grantTime; // optional - private String grantor; // optional /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { ROLE_NAME((short)1, "roleName"), CREATE_TIME((short)2, "createTime"), - OWNER_NAME((short)3, "ownerName"), - PRINCIPAL_NAME((short)4, "principalName"), - PRINCIPAL_TYPE((short)5, "principalType"), - GRANT_OPTION((short)6, "grantOption"), - GRANT_TIME((short)7, "grantTime"), - GRANTOR((short)8, "grantor"); + OWNER_NAME((short)3, "ownerName"); private static final Map byName = new HashMap(); @@ -88,16 +73,6 @@ public static _Fields findByThriftId(int fieldId) { return CREATE_TIME; case 3: // OWNER_NAME return OWNER_NAME; - case 4: // PRINCIPAL_NAME - return PRINCIPAL_NAME; - case 5: // PRINCIPAL_TYPE - return PRINCIPAL_TYPE; - case 6: // GRANT_OPTION - return GRANT_OPTION; - case 7: // GRANT_TIME - return GRANT_TIME; - case 8: // GRANTOR - return GRANTOR; default: return null; } @@ -139,10 +114,7 @@ public String getFieldName() { // isset id assignments private static final int __CREATETIME_ISSET_ID = 0; - private static final int __GRANTOPTION_ISSET_ID = 1; - private static final int __GRANTTIME_ISSET_ID = 2; private byte __isset_bitfield = 0; - private _Fields optionals[] = {_Fields.PRINCIPAL_NAME,_Fields.PRINCIPAL_TYPE,_Fields.GRANT_OPTION,_Fields.GRANT_TIME,_Fields.GRANTOR}; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -152,16 +124,6 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); tmpMap.put(_Fields.OWNER_NAME, new org.apache.thrift.meta_data.FieldMetaData("ownerName", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principalName", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principalType", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.GRANT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("grantOption", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); - tmpMap.put(_Fields.GRANT_TIME, new org.apache.thrift.meta_data.FieldMetaData("grantTime", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); - tmpMap.put(_Fields.GRANTOR, new org.apache.thrift.meta_data.FieldMetaData("grantor", org.apache.thrift.TFieldRequirementType.OPTIONAL, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); metaDataMap = Collections.unmodifiableMap(tmpMap); org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Role.class, metaDataMap); } @@ -193,17 +155,6 @@ public Role(Role other) { if (other.isSetOwnerName()) { this.ownerName = other.ownerName; } - if (other.isSetPrincipalName()) { - this.principalName = other.principalName; - } - if (other.isSetPrincipalType()) { - this.principalType = other.principalType; - } - this.grantOption = other.grantOption; - this.grantTime = other.grantTime; - if (other.isSetGrantor()) { - this.grantor = other.grantor; - } } public Role deepCopy() { @@ -216,13 +167,6 @@ public void clear() { setCreateTimeIsSet(false); this.createTime = 0; this.ownerName = null; - this.principalName = null; - this.principalType = null; - setGrantOptionIsSet(false); - this.grantOption = false; - setGrantTimeIsSet(false); - this.grantTime = 0; - this.grantor = null; } public String getRoleName() { @@ -293,119 +237,6 @@ public void setOwnerNameIsSet(boolean value) { } } - public String getPrincipalName() { - return this.principalName; - } - - public void setPrincipalName(String principalName) { - this.principalName = principalName; - } - - public void unsetPrincipalName() { - this.principalName = null; - } - - /** Returns true if field principalName is set (has been assigned a value) and false otherwise */ - public boolean isSetPrincipalName() { - return this.principalName != null; - } - - public void setPrincipalNameIsSet(boolean value) { - if (!value) { - this.principalName = null; - } - } - - public String getPrincipalType() { - return this.principalType; - } - - public void setPrincipalType(String principalType) { - this.principalType = principalType; - } - - public void unsetPrincipalType() { - this.principalType = null; - } - - /** Returns true if field principalType is set (has been assigned a value) and false otherwise */ - public boolean isSetPrincipalType() { - return this.principalType != null; - } - - public void setPrincipalTypeIsSet(boolean value) { - if (!value) { - this.principalType = null; - } - } - - public boolean isGrantOption() { - return this.grantOption; - } - - public void setGrantOption(boolean grantOption) { - this.grantOption = grantOption; - setGrantOptionIsSet(true); - } - - public void unsetGrantOption() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __GRANTOPTION_ISSET_ID); - } - - /** Returns true if field grantOption is set (has been assigned a value) and false otherwise */ - public boolean isSetGrantOption() { - return EncodingUtils.testBit(__isset_bitfield, __GRANTOPTION_ISSET_ID); - } - - public void setGrantOptionIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GRANTOPTION_ISSET_ID, value); - } - - public int getGrantTime() { - return this.grantTime; - } - - public void setGrantTime(int grantTime) { - this.grantTime = grantTime; - setGrantTimeIsSet(true); - } - - public void unsetGrantTime() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __GRANTTIME_ISSET_ID); - } - - /** Returns true if field grantTime is set (has been assigned a value) and false otherwise */ - public boolean isSetGrantTime() { - return EncodingUtils.testBit(__isset_bitfield, __GRANTTIME_ISSET_ID); - } - - public void setGrantTimeIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __GRANTTIME_ISSET_ID, value); - } - - public String getGrantor() { - return this.grantor; - } - - public void setGrantor(String grantor) { - this.grantor = grantor; - } - - public void unsetGrantor() { - this.grantor = null; - } - - /** Returns true if field grantor is set (has been assigned a value) and false otherwise */ - public boolean isSetGrantor() { - return this.grantor != null; - } - - public void setGrantorIsSet(boolean value) { - if (!value) { - this.grantor = null; - } - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case ROLE_NAME: @@ -432,46 +263,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case PRINCIPAL_NAME: - if (value == null) { - unsetPrincipalName(); - } else { - setPrincipalName((String)value); - } - break; - - case PRINCIPAL_TYPE: - if (value == null) { - unsetPrincipalType(); - } else { - setPrincipalType((String)value); - } - break; - - case GRANT_OPTION: - if (value == null) { - unsetGrantOption(); - } else { - setGrantOption((Boolean)value); - } - break; - - case GRANT_TIME: - if (value == null) { - unsetGrantTime(); - } else { - setGrantTime((Integer)value); - } - break; - - case GRANTOR: - if (value == null) { - unsetGrantor(); - } else { - setGrantor((String)value); - } - break; - } } @@ -486,21 +277,6 @@ public Object getFieldValue(_Fields field) { case OWNER_NAME: return getOwnerName(); - case PRINCIPAL_NAME: - return getPrincipalName(); - - case PRINCIPAL_TYPE: - return getPrincipalType(); - - case GRANT_OPTION: - return Boolean.valueOf(isGrantOption()); - - case GRANT_TIME: - return Integer.valueOf(getGrantTime()); - - case GRANTOR: - return getGrantor(); - } throw new IllegalStateException(); } @@ -518,16 +294,6 @@ public boolean isSet(_Fields field) { return isSetCreateTime(); case OWNER_NAME: return isSetOwnerName(); - case PRINCIPAL_NAME: - return isSetPrincipalName(); - case PRINCIPAL_TYPE: - return isSetPrincipalType(); - case GRANT_OPTION: - return isSetGrantOption(); - case GRANT_TIME: - return isSetGrantTime(); - case GRANTOR: - return isSetGrantor(); } throw new IllegalStateException(); } @@ -572,51 +338,6 @@ public boolean equals(Role that) { return false; } - boolean this_present_principalName = true && this.isSetPrincipalName(); - boolean that_present_principalName = true && that.isSetPrincipalName(); - if (this_present_principalName || that_present_principalName) { - if (!(this_present_principalName && that_present_principalName)) - return false; - if (!this.principalName.equals(that.principalName)) - return false; - } - - boolean this_present_principalType = true && this.isSetPrincipalType(); - boolean that_present_principalType = true && that.isSetPrincipalType(); - if (this_present_principalType || that_present_principalType) { - if (!(this_present_principalType && that_present_principalType)) - return false; - if (!this.principalType.equals(that.principalType)) - return false; - } - - boolean this_present_grantOption = true && this.isSetGrantOption(); - boolean that_present_grantOption = true && that.isSetGrantOption(); - if (this_present_grantOption || that_present_grantOption) { - if (!(this_present_grantOption && that_present_grantOption)) - return false; - if (this.grantOption != that.grantOption) - return false; - } - - boolean this_present_grantTime = true && this.isSetGrantTime(); - boolean that_present_grantTime = true && that.isSetGrantTime(); - if (this_present_grantTime || that_present_grantTime) { - if (!(this_present_grantTime && that_present_grantTime)) - return false; - if (this.grantTime != that.grantTime) - return false; - } - - boolean this_present_grantor = true && this.isSetGrantor(); - boolean that_present_grantor = true && that.isSetGrantor(); - if (this_present_grantor || that_present_grantor) { - if (!(this_present_grantor && that_present_grantor)) - return false; - if (!this.grantor.equals(that.grantor)) - return false; - } - return true; } @@ -639,31 +360,6 @@ public int hashCode() { if (present_ownerName) builder.append(ownerName); - boolean present_principalName = true && (isSetPrincipalName()); - builder.append(present_principalName); - if (present_principalName) - builder.append(principalName); - - boolean present_principalType = true && (isSetPrincipalType()); - builder.append(present_principalType); - if (present_principalType) - builder.append(principalType); - - boolean present_grantOption = true && (isSetGrantOption()); - builder.append(present_grantOption); - if (present_grantOption) - builder.append(grantOption); - - boolean present_grantTime = true && (isSetGrantTime()); - builder.append(present_grantTime); - if (present_grantTime) - builder.append(grantTime); - - boolean present_grantor = true && (isSetGrantor()); - builder.append(present_grantor); - if (present_grantor) - builder.append(grantor); - return builder.toHashCode(); } @@ -705,56 +401,6 @@ public int compareTo(Role other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetPrincipalName()).compareTo(typedOther.isSetPrincipalName()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPrincipalName()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalName, typedOther.principalName); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPrincipalType()).compareTo(typedOther.isSetPrincipalType()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPrincipalType()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principalType, typedOther.principalType); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGrantOption()).compareTo(typedOther.isSetGrantOption()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGrantOption()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantOption, typedOther.grantOption); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGrantTime()).compareTo(typedOther.isSetGrantTime()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGrantTime()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantTime, typedOther.grantTime); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetGrantor()).compareTo(typedOther.isSetGrantor()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetGrantor()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantor, typedOther.grantor); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -794,48 +440,6 @@ public String toString() { sb.append(this.ownerName); } first = false; - if (isSetPrincipalName()) { - if (!first) sb.append(", "); - sb.append("principalName:"); - if (this.principalName == null) { - sb.append("null"); - } else { - sb.append(this.principalName); - } - first = false; - } - if (isSetPrincipalType()) { - if (!first) sb.append(", "); - sb.append("principalType:"); - if (this.principalType == null) { - sb.append("null"); - } else { - sb.append(this.principalType); - } - first = false; - } - if (isSetGrantOption()) { - if (!first) sb.append(", "); - sb.append("grantOption:"); - sb.append(this.grantOption); - first = false; - } - if (isSetGrantTime()) { - if (!first) sb.append(", "); - sb.append("grantTime:"); - sb.append(this.grantTime); - first = false; - } - if (isSetGrantor()) { - if (!first) sb.append(", "); - sb.append("grantor:"); - if (this.grantor == null) { - sb.append("null"); - } else { - sb.append(this.grantor); - } - first = false; - } sb.append(")"); return sb.toString(); } @@ -905,46 +509,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Role struct) throws org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // PRINCIPAL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principalName = iprot.readString(); - struct.setPrincipalNameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // PRINCIPAL_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principalType = iprot.readString(); - struct.setPrincipalTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GRANT_OPTION - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.grantOption = iprot.readBool(); - struct.setGrantOptionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 7: // GRANT_TIME - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantTime = iprot.readI32(); - struct.setGrantTimeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 8: // GRANTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.grantor = iprot.readString(); - struct.setGrantorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -971,37 +535,6 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Role struct) throw oprot.writeString(struct.ownerName); oprot.writeFieldEnd(); } - if (struct.principalName != null) { - if (struct.isSetPrincipalName()) { - oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); - oprot.writeString(struct.principalName); - oprot.writeFieldEnd(); - } - } - if (struct.principalType != null) { - if (struct.isSetPrincipalType()) { - oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC); - oprot.writeString(struct.principalType); - oprot.writeFieldEnd(); - } - } - if (struct.isSetGrantOption()) { - oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); - oprot.writeBool(struct.grantOption); - oprot.writeFieldEnd(); - } - if (struct.isSetGrantTime()) { - oprot.writeFieldBegin(GRANT_TIME_FIELD_DESC); - oprot.writeI32(struct.grantTime); - oprot.writeFieldEnd(); - } - if (struct.grantor != null) { - if (struct.isSetGrantor()) { - oprot.writeFieldBegin(GRANTOR_FIELD_DESC); - oprot.writeString(struct.grantor); - oprot.writeFieldEnd(); - } - } oprot.writeFieldStop(); oprot.writeStructEnd(); } @@ -1029,22 +562,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Role struct) throws if (struct.isSetOwnerName()) { optionals.set(2); } - if (struct.isSetPrincipalName()) { - optionals.set(3); - } - if (struct.isSetPrincipalType()) { - optionals.set(4); - } - if (struct.isSetGrantOption()) { - optionals.set(5); - } - if (struct.isSetGrantTime()) { - optionals.set(6); - } - if (struct.isSetGrantor()) { - optionals.set(7); - } - oprot.writeBitSet(optionals, 8); + oprot.writeBitSet(optionals, 3); if (struct.isSetRoleName()) { oprot.writeString(struct.roleName); } @@ -1054,27 +572,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Role struct) throws if (struct.isSetOwnerName()) { oprot.writeString(struct.ownerName); } - if (struct.isSetPrincipalName()) { - oprot.writeString(struct.principalName); - } - if (struct.isSetPrincipalType()) { - oprot.writeString(struct.principalType); - } - if (struct.isSetGrantOption()) { - oprot.writeBool(struct.grantOption); - } - if (struct.isSetGrantTime()) { - oprot.writeI32(struct.grantTime); - } - if (struct.isSetGrantor()) { - oprot.writeString(struct.grantor); - } } @Override public void read(org.apache.thrift.protocol.TProtocol prot, Role struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(8); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.roleName = iprot.readString(); struct.setRoleNameIsSet(true); @@ -1087,26 +590,6 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Role struct) throws struct.ownerName = iprot.readString(); struct.setOwnerNameIsSet(true); } - if (incoming.get(3)) { - struct.principalName = iprot.readString(); - struct.setPrincipalNameIsSet(true); - } - if (incoming.get(4)) { - struct.principalType = iprot.readString(); - struct.setPrincipalTypeIsSet(true); - } - if (incoming.get(5)) { - struct.grantOption = iprot.readBool(); - struct.setGrantOptionIsSet(true); - } - if (incoming.get(6)) { - struct.grantTime = iprot.readI32(); - struct.setGrantTimeIsSet(true); - } - if (incoming.get(7)) { - struct.grantor = iprot.readString(); - struct.setGrantorIsSet(true); - } } } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index 0ced725..58e9028 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java @@ -452,14 +452,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 1: // FIELD_SCHEMAS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); - struct.fieldSchemas = new ArrayList(_list236.size); - for (int _i237 = 0; _i237 < _list236.size; ++_i237) + org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); + struct.fieldSchemas = new ArrayList(_list244.size); + for (int _i245 = 0; _i245 < _list244.size; ++_i245) { - FieldSchema _elem238; // optional - _elem238 = new FieldSchema(); - _elem238.read(iprot); - struct.fieldSchemas.add(_elem238); + FieldSchema _elem246; // optional + _elem246 = new FieldSchema(); + _elem246.read(iprot); + struct.fieldSchemas.add(_elem246); } iprot.readListEnd(); } @@ -471,15 +471,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Schema struct) thro case 2: // PROPERTIES if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map239 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map239.size); - for (int _i240 = 0; _i240 < _map239.size; ++_i240) + org.apache.thrift.protocol.TMap _map247 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map247.size); + for (int _i248 = 0; _i248 < _map247.size; ++_i248) { - String _key241; // required - String _val242; // required - _key241 = iprot.readString(); - _val242 = iprot.readString(); - struct.properties.put(_key241, _val242); + String _key249; // required + String _val250; // required + _key249 = iprot.readString(); + _val250 = iprot.readString(); + struct.properties.put(_key249, _val250); } iprot.readMapEnd(); } @@ -505,9 +505,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(FIELD_SCHEMAS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.fieldSchemas.size())); - for (FieldSchema _iter243 : struct.fieldSchemas) + for (FieldSchema _iter251 : struct.fieldSchemas) { - _iter243.write(oprot); + _iter251.write(oprot); } oprot.writeListEnd(); } @@ -517,10 +517,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Schema struct) thr oprot.writeFieldBegin(PROPERTIES_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.properties.size())); - for (Map.Entry _iter244 : struct.properties.entrySet()) + for (Map.Entry _iter252 : struct.properties.entrySet()) { - oprot.writeString(_iter244.getKey()); - oprot.writeString(_iter244.getValue()); + oprot.writeString(_iter252.getKey()); + oprot.writeString(_iter252.getValue()); } oprot.writeMapEnd(); } @@ -554,19 +554,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Schema struct) thro if (struct.isSetFieldSchemas()) { { oprot.writeI32(struct.fieldSchemas.size()); - for (FieldSchema _iter245 : struct.fieldSchemas) + for (FieldSchema _iter253 : struct.fieldSchemas) { - _iter245.write(oprot); + _iter253.write(oprot); } } } if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter246 : struct.properties.entrySet()) + for (Map.Entry _iter254 : struct.properties.entrySet()) { - oprot.writeString(_iter246.getKey()); - oprot.writeString(_iter246.getValue()); + oprot.writeString(_iter254.getKey()); + oprot.writeString(_iter254.getValue()); } } } @@ -578,29 +578,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Schema struct) throw BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list247 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.fieldSchemas = new ArrayList(_list247.size); - for (int _i248 = 0; _i248 < _list247.size; ++_i248) + org.apache.thrift.protocol.TList _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fieldSchemas = new ArrayList(_list255.size); + for (int _i256 = 0; _i256 < _list255.size; ++_i256) { - FieldSchema _elem249; // optional - _elem249 = new FieldSchema(); - _elem249.read(iprot); - struct.fieldSchemas.add(_elem249); + FieldSchema _elem257; // optional + _elem257 = new FieldSchema(); + _elem257.read(iprot); + struct.fieldSchemas.add(_elem257); } } struct.setFieldSchemasIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TMap _map250 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map250.size); - for (int _i251 = 0; _i251 < _map250.size; ++_i251) + org.apache.thrift.protocol.TMap _map258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.properties = new HashMap(2*_map258.size); + for (int _i259 = 0; _i259 < _map258.size; ++_i259) { - String _key252; // required - String _val253; // required - _key252 = iprot.readString(); - _val253 = iprot.readString(); - struct.properties.put(_key252, _val253); + String _key260; // required + String _val261; // required + _key260 = iprot.readString(); + _val261 = iprot.readString(); + struct.properties.put(_key260, _val261); } } struct.setPropertiesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java index 6fbf905..24d65bb 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SerDeInfo.java @@ -529,15 +529,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SerDeInfo struct) t case 3: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map96.size); - for (int _i97 = 0; _i97 < _map96.size; ++_i97) + org.apache.thrift.protocol.TMap _map104 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map104.size); + for (int _i105 = 0; _i105 < _map104.size; ++_i105) { - String _key98; // required - String _val99; // required - _key98 = iprot.readString(); - _val99 = iprot.readString(); - struct.parameters.put(_key98, _val99); + String _key106; // required + String _val107; // required + _key106 = iprot.readString(); + _val107 = iprot.readString(); + struct.parameters.put(_key106, _val107); } iprot.readMapEnd(); } @@ -573,10 +573,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SerDeInfo struct) oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter100 : struct.parameters.entrySet()) + for (Map.Entry _iter108 : struct.parameters.entrySet()) { - oprot.writeString(_iter100.getKey()); - oprot.writeString(_iter100.getValue()); + oprot.writeString(_iter108.getKey()); + oprot.writeString(_iter108.getValue()); } oprot.writeMapEnd(); } @@ -619,10 +619,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SerDeInfo struct) t if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter101 : struct.parameters.entrySet()) + for (Map.Entry _iter109 : struct.parameters.entrySet()) { - oprot.writeString(_iter101.getKey()); - oprot.writeString(_iter101.getValue()); + oprot.writeString(_iter109.getKey()); + oprot.writeString(_iter109.getValue()); } } } @@ -642,15 +642,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SerDeInfo struct) th } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map102 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map102.size); - for (int _i103 = 0; _i103 < _map102.size; ++_i103) + org.apache.thrift.protocol.TMap _map110 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map110.size); + for (int _i111 = 0; _i111 < _map110.size; ++_i111) { - String _key104; // required - String _val105; // required - _key104 = iprot.readString(); - _val105 = iprot.readString(); - struct.parameters.put(_key104, _val105); + String _key112; // required + String _val113; // required + _key112 = iprot.readString(); + _val113 = iprot.readString(); + struct.parameters.put(_key112, _val113); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index c06d0bb..6ac7673 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowCompactResponse case 1: // COMPACTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list410 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list410.size); - for (int _i411 = 0; _i411 < _list410.size; ++_i411) + org.apache.thrift.protocol.TList _list418 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list418.size); + for (int _i419 = 0; _i419 < _list418.size; ++_i419) { - ShowCompactResponseElement _elem412; // optional - _elem412 = new ShowCompactResponseElement(); - _elem412.read(iprot); - struct.compacts.add(_elem412); + ShowCompactResponseElement _elem420; // optional + _elem420 = new ShowCompactResponseElement(); + _elem420.read(iprot); + struct.compacts.add(_elem420); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowCompactRespons oprot.writeFieldBegin(COMPACTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.compacts.size())); - for (ShowCompactResponseElement _iter413 : struct.compacts) + for (ShowCompactResponseElement _iter421 : struct.compacts) { - _iter413.write(oprot); + _iter421.write(oprot); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter414 : struct.compacts) + for (ShowCompactResponseElement _iter422 : struct.compacts) { - _iter414.write(oprot); + _iter422.write(oprot); } } } @@ -421,14 +421,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse public void read(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list415.size); - for (int _i416 = 0; _i416 < _list415.size; ++_i416) + org.apache.thrift.protocol.TList _list423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list423.size); + for (int _i424 = 0; _i424 < _list423.size; ++_i424) { - ShowCompactResponseElement _elem417; // optional - _elem417 = new ShowCompactResponseElement(); - _elem417.read(iprot); - struct.compacts.add(_elem417); + ShowCompactResponseElement _elem425; // optional + _elem425 = new ShowCompactResponseElement(); + _elem425.read(iprot); + struct.compacts.add(_elem425); } } struct.setCompactsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index ef5f6e2..1399f8b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ShowLocksResponse s case 1: // LOCKS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list402 = iprot.readListBegin(); - struct.locks = new ArrayList(_list402.size); - for (int _i403 = 0; _i403 < _list402.size; ++_i403) + org.apache.thrift.protocol.TList _list410 = iprot.readListBegin(); + struct.locks = new ArrayList(_list410.size); + for (int _i411 = 0; _i411 < _list410.size; ++_i411) { - ShowLocksResponseElement _elem404; // optional - _elem404 = new ShowLocksResponseElement(); - _elem404.read(iprot); - struct.locks.add(_elem404); + ShowLocksResponseElement _elem412; // optional + _elem412 = new ShowLocksResponseElement(); + _elem412.read(iprot); + struct.locks.add(_elem412); } iprot.readListEnd(); } @@ -379,9 +379,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ShowLocksResponse oprot.writeFieldBegin(LOCKS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.locks.size())); - for (ShowLocksResponseElement _iter405 : struct.locks) + for (ShowLocksResponseElement _iter413 : struct.locks) { - _iter405.write(oprot); + _iter413.write(oprot); } oprot.writeListEnd(); } @@ -412,9 +412,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse s if (struct.isSetLocks()) { { oprot.writeI32(struct.locks.size()); - for (ShowLocksResponseElement _iter406 : struct.locks) + for (ShowLocksResponseElement _iter414 : struct.locks) { - _iter406.write(oprot); + _iter414.write(oprot); } } } @@ -426,14 +426,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse st BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list407.size); - for (int _i408 = 0; _i408 < _list407.size; ++_i408) + org.apache.thrift.protocol.TList _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list415.size); + for (int _i416 = 0; _i416 < _list415.size; ++_i416) { - ShowLocksResponseElement _elem409; // optional - _elem409 = new ShowLocksResponseElement(); - _elem409.read(iprot); - struct.locks.add(_elem409); + ShowLocksResponseElement _elem417; // optional + _elem417 = new ShowLocksResponseElement(); + _elem417.read(iprot); + struct.locks.add(_elem417); } } struct.setLocksIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java index 33d4b53..ab5c0ed 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java @@ -562,13 +562,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) case 1: // SKEWED_COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); - struct.skewedColNames = new ArrayList(_list106.size); - for (int _i107 = 0; _i107 < _list106.size; ++_i107) + org.apache.thrift.protocol.TList _list114 = iprot.readListBegin(); + struct.skewedColNames = new ArrayList(_list114.size); + for (int _i115 = 0; _i115 < _list114.size; ++_i115) { - String _elem108; // optional - _elem108 = iprot.readString(); - struct.skewedColNames.add(_elem108); + String _elem116; // optional + _elem116 = iprot.readString(); + struct.skewedColNames.add(_elem116); } iprot.readListEnd(); } @@ -580,23 +580,23 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) case 2: // SKEWED_COL_VALUES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(); - struct.skewedColValues = new ArrayList>(_list109.size); - for (int _i110 = 0; _i110 < _list109.size; ++_i110) + org.apache.thrift.protocol.TList _list117 = iprot.readListBegin(); + struct.skewedColValues = new ArrayList>(_list117.size); + for (int _i118 = 0; _i118 < _list117.size; ++_i118) { - List _elem111; // optional + List _elem119; // optional { - org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); - _elem111 = new ArrayList(_list112.size); - for (int _i113 = 0; _i113 < _list112.size; ++_i113) + org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); + _elem119 = new ArrayList(_list120.size); + for (int _i121 = 0; _i121 < _list120.size; ++_i121) { - String _elem114; // optional - _elem114 = iprot.readString(); - _elem111.add(_elem114); + String _elem122; // optional + _elem122 = iprot.readString(); + _elem119.add(_elem122); } iprot.readListEnd(); } - struct.skewedColValues.add(_elem111); + struct.skewedColValues.add(_elem119); } iprot.readListEnd(); } @@ -608,25 +608,25 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) case 3: // SKEWED_COL_VALUE_LOCATION_MAPS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map115 = iprot.readMapBegin(); - struct.skewedColValueLocationMaps = new HashMap,String>(2*_map115.size); - for (int _i116 = 0; _i116 < _map115.size; ++_i116) + org.apache.thrift.protocol.TMap _map123 = iprot.readMapBegin(); + struct.skewedColValueLocationMaps = new HashMap,String>(2*_map123.size); + for (int _i124 = 0; _i124 < _map123.size; ++_i124) { - List _key117; // required - String _val118; // required + List _key125; // required + String _val126; // required { - org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(); - _key117 = new ArrayList(_list119.size); - for (int _i120 = 0; _i120 < _list119.size; ++_i120) + org.apache.thrift.protocol.TList _list127 = iprot.readListBegin(); + _key125 = new ArrayList(_list127.size); + for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - String _elem121; // optional - _elem121 = iprot.readString(); - _key117.add(_elem121); + String _elem129; // optional + _elem129 = iprot.readString(); + _key125.add(_elem129); } iprot.readListEnd(); } - _val118 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key117, _val118); + _val126 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key125, _val126); } iprot.readMapEnd(); } @@ -652,9 +652,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SkewedInfo struct) oprot.writeFieldBegin(SKEWED_COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.skewedColNames.size())); - for (String _iter122 : struct.skewedColNames) + for (String _iter130 : struct.skewedColNames) { - oprot.writeString(_iter122); + oprot.writeString(_iter130); } oprot.writeListEnd(); } @@ -664,13 +664,13 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SkewedInfo struct) oprot.writeFieldBegin(SKEWED_COL_VALUES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, struct.skewedColValues.size())); - for (List _iter123 : struct.skewedColValues) + for (List _iter131 : struct.skewedColValues) { { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter123.size())); - for (String _iter124 : _iter123) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter131.size())); + for (String _iter132 : _iter131) { - oprot.writeString(_iter124); + oprot.writeString(_iter132); } oprot.writeListEnd(); } @@ -683,17 +683,17 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, SkewedInfo struct) oprot.writeFieldBegin(SKEWED_COL_VALUE_LOCATION_MAPS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, struct.skewedColValueLocationMaps.size())); - for (Map.Entry, String> _iter125 : struct.skewedColValueLocationMaps.entrySet()) + for (Map.Entry, String> _iter133 : struct.skewedColValueLocationMaps.entrySet()) { { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter125.getKey().size())); - for (String _iter126 : _iter125.getKey()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter133.getKey().size())); + for (String _iter134 : _iter133.getKey()) { - oprot.writeString(_iter126); + oprot.writeString(_iter134); } oprot.writeListEnd(); } - oprot.writeString(_iter125.getValue()); + oprot.writeString(_iter133.getValue()); } oprot.writeMapEnd(); } @@ -730,22 +730,22 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) if (struct.isSetSkewedColNames()) { { oprot.writeI32(struct.skewedColNames.size()); - for (String _iter127 : struct.skewedColNames) + for (String _iter135 : struct.skewedColNames) { - oprot.writeString(_iter127); + oprot.writeString(_iter135); } } } if (struct.isSetSkewedColValues()) { { oprot.writeI32(struct.skewedColValues.size()); - for (List _iter128 : struct.skewedColValues) + for (List _iter136 : struct.skewedColValues) { { - oprot.writeI32(_iter128.size()); - for (String _iter129 : _iter128) + oprot.writeI32(_iter136.size()); + for (String _iter137 : _iter136) { - oprot.writeString(_iter129); + oprot.writeString(_iter137); } } } @@ -754,16 +754,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) if (struct.isSetSkewedColValueLocationMaps()) { { oprot.writeI32(struct.skewedColValueLocationMaps.size()); - for (Map.Entry, String> _iter130 : struct.skewedColValueLocationMaps.entrySet()) + for (Map.Entry, String> _iter138 : struct.skewedColValueLocationMaps.entrySet()) { { - oprot.writeI32(_iter130.getKey().size()); - for (String _iter131 : _iter130.getKey()) + oprot.writeI32(_iter138.getKey().size()); + for (String _iter139 : _iter138.getKey()) { - oprot.writeString(_iter131); + oprot.writeString(_iter139); } } - oprot.writeString(_iter130.getValue()); + oprot.writeString(_iter138.getValue()); } } } @@ -775,59 +775,59 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list132 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.skewedColNames = new ArrayList(_list132.size); - for (int _i133 = 0; _i133 < _list132.size; ++_i133) + org.apache.thrift.protocol.TList _list140 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.skewedColNames = new ArrayList(_list140.size); + for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - String _elem134; // optional - _elem134 = iprot.readString(); - struct.skewedColNames.add(_elem134); + String _elem142; // optional + _elem142 = iprot.readString(); + struct.skewedColNames.add(_elem142); } } struct.setSkewedColNamesIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list135 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.skewedColValues = new ArrayList>(_list135.size); - for (int _i136 = 0; _i136 < _list135.size; ++_i136) + org.apache.thrift.protocol.TList _list143 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32()); + struct.skewedColValues = new ArrayList>(_list143.size); + for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - List _elem137; // optional + List _elem145; // optional { - org.apache.thrift.protocol.TList _list138 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _elem137 = new ArrayList(_list138.size); - for (int _i139 = 0; _i139 < _list138.size; ++_i139) + org.apache.thrift.protocol.TList _list146 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + _elem145 = new ArrayList(_list146.size); + for (int _i147 = 0; _i147 < _list146.size; ++_i147) { - String _elem140; // optional - _elem140 = iprot.readString(); - _elem137.add(_elem140); + String _elem148; // optional + _elem148 = iprot.readString(); + _elem145.add(_elem148); } } - struct.skewedColValues.add(_elem137); + struct.skewedColValues.add(_elem145); } } struct.setSkewedColValuesIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map141 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.skewedColValueLocationMaps = new HashMap,String>(2*_map141.size); - for (int _i142 = 0; _i142 < _map141.size; ++_i142) + org.apache.thrift.protocol.TMap _map149 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.LIST, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.skewedColValueLocationMaps = new HashMap,String>(2*_map149.size); + for (int _i150 = 0; _i150 < _map149.size; ++_i150) { - List _key143; // required - String _val144; // required + List _key151; // required + String _val152; // required { - org.apache.thrift.protocol.TList _list145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _key143 = new ArrayList(_list145.size); - for (int _i146 = 0; _i146 < _list145.size; ++_i146) + org.apache.thrift.protocol.TList _list153 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + _key151 = new ArrayList(_list153.size); + for (int _i154 = 0; _i154 < _list153.size; ++_i154) { - String _elem147; // optional - _elem147 = iprot.readString(); - _key143.add(_elem147); + String _elem155; // optional + _elem155 = iprot.readString(); + _key151.add(_elem155); } } - _val144 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key143, _val144); + _val152 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key151, _val152); } } struct.setSkewedColValueLocationMapsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java index bd02c5b..813b4f0 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java @@ -1300,14 +1300,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s case 1: // COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); - struct.cols = new ArrayList(_list148.size); - for (int _i149 = 0; _i149 < _list148.size; ++_i149) + org.apache.thrift.protocol.TList _list156 = iprot.readListBegin(); + struct.cols = new ArrayList(_list156.size); + for (int _i157 = 0; _i157 < _list156.size; ++_i157) { - FieldSchema _elem150; // optional - _elem150 = new FieldSchema(); - _elem150.read(iprot); - struct.cols.add(_elem150); + FieldSchema _elem158; // optional + _elem158 = new FieldSchema(); + _elem158.read(iprot); + struct.cols.add(_elem158); } iprot.readListEnd(); } @@ -1368,13 +1368,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s case 8: // BUCKET_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(); - struct.bucketCols = new ArrayList(_list151.size); - for (int _i152 = 0; _i152 < _list151.size; ++_i152) + org.apache.thrift.protocol.TList _list159 = iprot.readListBegin(); + struct.bucketCols = new ArrayList(_list159.size); + for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - String _elem153; // optional - _elem153 = iprot.readString(); - struct.bucketCols.add(_elem153); + String _elem161; // optional + _elem161 = iprot.readString(); + struct.bucketCols.add(_elem161); } iprot.readListEnd(); } @@ -1386,14 +1386,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s case 9: // SORT_COLS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); - struct.sortCols = new ArrayList(_list154.size); - for (int _i155 = 0; _i155 < _list154.size; ++_i155) + org.apache.thrift.protocol.TList _list162 = iprot.readListBegin(); + struct.sortCols = new ArrayList(_list162.size); + for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - Order _elem156; // optional - _elem156 = new Order(); - _elem156.read(iprot); - struct.sortCols.add(_elem156); + Order _elem164; // optional + _elem164 = new Order(); + _elem164.read(iprot); + struct.sortCols.add(_elem164); } iprot.readListEnd(); } @@ -1405,15 +1405,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s case 10: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map157 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map157.size); - for (int _i158 = 0; _i158 < _map157.size; ++_i158) + org.apache.thrift.protocol.TMap _map165 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map165.size); + for (int _i166 = 0; _i166 < _map165.size; ++_i166) { - String _key159; // required - String _val160; // required - _key159 = iprot.readString(); - _val160 = iprot.readString(); - struct.parameters.put(_key159, _val160); + String _key167; // required + String _val168; // required + _key167 = iprot.readString(); + _val168 = iprot.readString(); + struct.parameters.put(_key167, _val168); } iprot.readMapEnd(); } @@ -1456,9 +1456,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, StorageDescriptor oprot.writeFieldBegin(COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.cols.size())); - for (FieldSchema _iter161 : struct.cols) + for (FieldSchema _iter169 : struct.cols) { - _iter161.write(oprot); + _iter169.write(oprot); } oprot.writeListEnd(); } @@ -1494,9 +1494,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, StorageDescriptor oprot.writeFieldBegin(BUCKET_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.bucketCols.size())); - for (String _iter162 : struct.bucketCols) + for (String _iter170 : struct.bucketCols) { - oprot.writeString(_iter162); + oprot.writeString(_iter170); } oprot.writeListEnd(); } @@ -1506,9 +1506,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, StorageDescriptor oprot.writeFieldBegin(SORT_COLS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.sortCols.size())); - for (Order _iter163 : struct.sortCols) + for (Order _iter171 : struct.sortCols) { - _iter163.write(oprot); + _iter171.write(oprot); } oprot.writeListEnd(); } @@ -1518,10 +1518,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, StorageDescriptor oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter164 : struct.parameters.entrySet()) + for (Map.Entry _iter172 : struct.parameters.entrySet()) { - oprot.writeString(_iter164.getKey()); - oprot.writeString(_iter164.getValue()); + oprot.writeString(_iter172.getKey()); + oprot.writeString(_iter172.getValue()); } oprot.writeMapEnd(); } @@ -1597,9 +1597,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor s if (struct.isSetCols()) { { oprot.writeI32(struct.cols.size()); - for (FieldSchema _iter165 : struct.cols) + for (FieldSchema _iter173 : struct.cols) { - _iter165.write(oprot); + _iter173.write(oprot); } } } @@ -1624,28 +1624,28 @@ public void write(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor s if (struct.isSetBucketCols()) { { oprot.writeI32(struct.bucketCols.size()); - for (String _iter166 : struct.bucketCols) + for (String _iter174 : struct.bucketCols) { - oprot.writeString(_iter166); + oprot.writeString(_iter174); } } } if (struct.isSetSortCols()) { { oprot.writeI32(struct.sortCols.size()); - for (Order _iter167 : struct.sortCols) + for (Order _iter175 : struct.sortCols) { - _iter167.write(oprot); + _iter175.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter168 : struct.parameters.entrySet()) + for (Map.Entry _iter176 : struct.parameters.entrySet()) { - oprot.writeString(_iter168.getKey()); - oprot.writeString(_iter168.getValue()); + oprot.writeString(_iter176.getKey()); + oprot.writeString(_iter176.getValue()); } } } @@ -1663,14 +1663,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st BitSet incoming = iprot.readBitSet(12); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list169 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list169.size); - for (int _i170 = 0; _i170 < _list169.size; ++_i170) + org.apache.thrift.protocol.TList _list177 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.cols = new ArrayList(_list177.size); + for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - FieldSchema _elem171; // optional - _elem171 = new FieldSchema(); - _elem171.read(iprot); - struct.cols.add(_elem171); + FieldSchema _elem179; // optional + _elem179 = new FieldSchema(); + _elem179.read(iprot); + struct.cols.add(_elem179); } } struct.setColsIsSet(true); @@ -1702,42 +1702,42 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list172 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.bucketCols = new ArrayList(_list172.size); - for (int _i173 = 0; _i173 < _list172.size; ++_i173) + org.apache.thrift.protocol.TList _list180 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.bucketCols = new ArrayList(_list180.size); + for (int _i181 = 0; _i181 < _list180.size; ++_i181) { - String _elem174; // optional - _elem174 = iprot.readString(); - struct.bucketCols.add(_elem174); + String _elem182; // optional + _elem182 = iprot.readString(); + struct.bucketCols.add(_elem182); } } struct.setBucketColsIsSet(true); } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list175 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.sortCols = new ArrayList(_list175.size); - for (int _i176 = 0; _i176 < _list175.size; ++_i176) + org.apache.thrift.protocol.TList _list183 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.sortCols = new ArrayList(_list183.size); + for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - Order _elem177; // optional - _elem177 = new Order(); - _elem177.read(iprot); - struct.sortCols.add(_elem177); + Order _elem185; // optional + _elem185 = new Order(); + _elem185.read(iprot); + struct.sortCols.add(_elem185); } } struct.setSortColsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TMap _map178 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map178.size); - for (int _i179 = 0; _i179 < _map178.size; ++_i179) + org.apache.thrift.protocol.TMap _map186 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map186.size); + for (int _i187 = 0; _i187 < _map186.size; ++_i187) { - String _key180; // required - String _val181; // required - _key180 = iprot.readString(); - _val181 = iprot.readString(); - struct.parameters.put(_key180, _val181); + String _key188; // required + String _val189; // required + _key188 = iprot.readString(); + _val189 = iprot.readString(); + struct.parameters.put(_key188, _val189); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 97c2724..1ce4c57 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -1399,14 +1399,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw case 8: // PARTITION_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list182.size); - for (int _i183 = 0; _i183 < _list182.size; ++_i183) + org.apache.thrift.protocol.TList _list190 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list190.size); + for (int _i191 = 0; _i191 < _list190.size; ++_i191) { - FieldSchema _elem184; // optional - _elem184 = new FieldSchema(); - _elem184.read(iprot); - struct.partitionKeys.add(_elem184); + FieldSchema _elem192; // optional + _elem192 = new FieldSchema(); + _elem192.read(iprot); + struct.partitionKeys.add(_elem192); } iprot.readListEnd(); } @@ -1418,15 +1418,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw case 9: // PARAMETERS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map185 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map185.size); - for (int _i186 = 0; _i186 < _map185.size; ++_i186) + org.apache.thrift.protocol.TMap _map193 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map193.size); + for (int _i194 = 0; _i194 < _map193.size; ++_i194) { - String _key187; // required - String _val188; // required - _key187 = iprot.readString(); - _val188 = iprot.readString(); - struct.parameters.put(_key187, _val188); + String _key195; // required + String _val196; // required + _key195 = iprot.readString(); + _val196 = iprot.readString(); + struct.parameters.put(_key195, _val196); } iprot.readMapEnd(); } @@ -1514,9 +1514,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARTITION_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.partitionKeys.size())); - for (FieldSchema _iter189 : struct.partitionKeys) + for (FieldSchema _iter197 : struct.partitionKeys) { - _iter189.write(oprot); + _iter197.write(oprot); } oprot.writeListEnd(); } @@ -1526,10 +1526,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, Table struct) thro oprot.writeFieldBegin(PARAMETERS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.parameters.size())); - for (Map.Entry _iter190 : struct.parameters.entrySet()) + for (Map.Entry _iter198 : struct.parameters.entrySet()) { - oprot.writeString(_iter190.getKey()); - oprot.writeString(_iter190.getValue()); + oprot.writeString(_iter198.getKey()); + oprot.writeString(_iter198.getValue()); } oprot.writeMapEnd(); } @@ -1639,19 +1639,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Table struct) throw if (struct.isSetPartitionKeys()) { { oprot.writeI32(struct.partitionKeys.size()); - for (FieldSchema _iter191 : struct.partitionKeys) + for (FieldSchema _iter199 : struct.partitionKeys) { - _iter191.write(oprot); + _iter199.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter192 : struct.parameters.entrySet()) + for (Map.Entry _iter200 : struct.parameters.entrySet()) { - oprot.writeString(_iter192.getKey()); - oprot.writeString(_iter192.getValue()); + oprot.writeString(_iter200.getKey()); + oprot.writeString(_iter200.getValue()); } } } @@ -1704,29 +1704,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list193 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list193.size); - for (int _i194 = 0; _i194 < _list193.size; ++_i194) + org.apache.thrift.protocol.TList _list201 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitionKeys = new ArrayList(_list201.size); + for (int _i202 = 0; _i202 < _list201.size; ++_i202) { - FieldSchema _elem195; // optional - _elem195 = new FieldSchema(); - _elem195.read(iprot); - struct.partitionKeys.add(_elem195); + FieldSchema _elem203; // optional + _elem203 = new FieldSchema(); + _elem203.read(iprot); + struct.partitionKeys.add(_elem203); } } struct.setPartitionKeysIsSet(true); } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map196 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.parameters = new HashMap(2*_map196.size); - for (int _i197 = 0; _i197 < _map196.size; ++_i197) + org.apache.thrift.protocol.TMap _map204 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.parameters = new HashMap(2*_map204.size); + for (int _i205 = 0; _i205 < _map204.size; ++_i205) { - String _key198; // required - String _val199; // required - _key198 = iprot.readString(); - _val199 = iprot.readString(); - struct.parameters.put(_key198, _val199); + String _key206; // required + String _val207; // required + _key206 = iprot.readString(); + _val207 = iprot.readString(); + struct.parameters.put(_key206, _val207); } } struct.setParametersIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index 0276c19..ddfcccc 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -536,13 +536,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsRequest s case 3: // COL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list298.size); - for (int _i299 = 0; _i299 < _list298.size; ++_i299) + org.apache.thrift.protocol.TList _list306 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list306.size); + for (int _i307 = 0; _i307 < _list306.size; ++_i307) { - String _elem300; // optional - _elem300 = iprot.readString(); - struct.colNames.add(_elem300); + String _elem308; // optional + _elem308 = iprot.readString(); + struct.colNames.add(_elem308); } iprot.readListEnd(); } @@ -578,9 +578,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsRequest oprot.writeFieldBegin(COL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.colNames.size())); - for (String _iter301 : struct.colNames) + for (String _iter309 : struct.colNames) { - oprot.writeString(_iter301); + oprot.writeString(_iter309); } oprot.writeListEnd(); } @@ -607,9 +607,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter302 : struct.colNames) + for (String _iter310 : struct.colNames) { - oprot.writeString(_iter302); + oprot.writeString(_iter310); } } } @@ -622,13 +622,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list303.size); - for (int _i304 = 0; _i304 < _list303.size; ++_i304) + org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list311.size); + for (int _i312 = 0; _i312 < _list311.size; ++_i312) { - String _elem305; // optional - _elem305 = iprot.readString(); - struct.colNames.add(_elem305); + String _elem313; // optional + _elem313 = iprot.readString(); + struct.colNames.add(_elem313); } } struct.setColNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index b27a979..e37b75c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -350,14 +350,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, TableStatsResult st case 1: // TABLE_STATS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list272.size); - for (int _i273 = 0; _i273 < _list272.size; ++_i273) + org.apache.thrift.protocol.TList _list280 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list280.size); + for (int _i281 = 0; _i281 < _list280.size; ++_i281) { - ColumnStatisticsObj _elem274; // optional - _elem274 = new ColumnStatisticsObj(); - _elem274.read(iprot); - struct.tableStats.add(_elem274); + ColumnStatisticsObj _elem282; // optional + _elem282 = new ColumnStatisticsObj(); + _elem282.read(iprot); + struct.tableStats.add(_elem282); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, TableStatsResult s oprot.writeFieldBegin(TABLE_STATS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.tableStats.size())); - for (ColumnStatisticsObj _iter275 : struct.tableStats) + for (ColumnStatisticsObj _iter283 : struct.tableStats) { - _iter275.write(oprot); + _iter283.write(oprot); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tableStats.size()); - for (ColumnStatisticsObj _iter276 : struct.tableStats) + for (ColumnStatisticsObj _iter284 : struct.tableStats) { - _iter276.write(oprot); + _iter284.write(oprot); } } } @@ -421,14 +421,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list277.size); - for (int _i278 = 0; _i278 < _list277.size; ++_i278) + org.apache.thrift.protocol.TList _list285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list285.size); + for (int _i286 = 0; _i286 < _list285.size; ++_i286) { - ColumnStatisticsObj _elem279; // optional - _elem279 = new ColumnStatisticsObj(); - _elem279.read(iprot); - struct.tableStats.add(_elem279); + ColumnStatisticsObj _elem287; // optional + _elem287 = new ColumnStatisticsObj(); + _elem287.read(iprot); + struct.tableStats.add(_elem287); } } struct.setTableStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index ad2d1b7..23da1c2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -208,6 +208,8 @@ public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) throws MetaException, org.apache.thrift.TException; + public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws MetaException, org.apache.thrift.TException; + public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, org.apache.thrift.TException; public List list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject) throws MetaException, org.apache.thrift.TException; @@ -422,6 +424,8 @@ public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void list_privileges(String principal_name, PrincipalType principal_type, HiveObjectRef hiveObject, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -3104,6 +3108,32 @@ public GetPrincipalsInRoleResponse recv_get_principals_in_role() throws MetaExce throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result"); } + public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws MetaException, org.apache.thrift.TException + { + send_get_role_grants_for_principal(request); + return recv_get_role_grants_for_principal(); + } + + public void send_get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request) throws org.apache.thrift.TException + { + get_role_grants_for_principal_args args = new get_role_grants_for_principal_args(); + args.setRequest(request); + sendBase("get_role_grants_for_principal", args); + } + + public GetRoleGrantsForPrincipalResponse recv_get_role_grants_for_principal() throws MetaException, org.apache.thrift.TException + { + get_role_grants_for_principal_result result = new get_role_grants_for_principal_result(); + receiveBase(result, "get_role_grants_for_principal"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); + } + public PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names) throws MetaException, org.apache.thrift.TException { send_get_privilege_set(hiveObject, user_name, group_names); @@ -6753,6 +6783,38 @@ public GetPrincipalsInRoleResponse getResult() throws MetaException, org.apache. } } + public void get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_role_grants_for_principal_call method_call = new get_role_grants_for_principal_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_role_grants_for_principal_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetRoleGrantsForPrincipalRequest request; + public get_role_grants_for_principal_call(GetRoleGrantsForPrincipalRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException { + super(client, protocolFactory, transport, resultHandler, false); + this.request = request; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_role_grants_for_principal", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_role_grants_for_principal_args args = new get_role_grants_for_principal_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetRoleGrantsForPrincipalResponse getResult() throws MetaException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_role_grants_for_principal(); + } + } + public void get_privilege_set(HiveObjectRef hiveObject, String user_name, List group_names, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); get_privilege_set_call method_call = new get_privilege_set_call(hiveObject, user_name, group_names, resultHandler, this, ___protocolFactory, ___transport); @@ -7503,6 +7565,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_role_grants_for_principal() { + super("get_role_grants_for_principal"); + } + + public get_role_grants_for_principal_args getEmptyArgsInstance() { + return new get_role_grants_for_principal_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_role_grants_for_principal_result getResult(I iface, get_role_grants_for_principal_args args) throws org.apache.thrift.TException { + get_role_grants_for_principal_result result = new get_role_grants_for_principal_result(); + try { + result.success = iface.get_role_grants_for_principal(args.request); + } catch (MetaException o1) { + result.o1 = o1; + } + return result; + } + } + public static class get_privilege_set extends org.apache.thrift.ProcessFunction { public get_privilege_set() { super("get_privilege_set"); @@ -14031,13 +14118,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_databases_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list418 = iprot.readListBegin(); - struct.success = new ArrayList(_list418.size); - for (int _i419 = 0; _i419 < _list418.size; ++_i419) + org.apache.thrift.protocol.TList _list426 = iprot.readListBegin(); + struct.success = new ArrayList(_list426.size); + for (int _i427 = 0; _i427 < _list426.size; ++_i427) { - String _elem420; // optional - _elem420 = iprot.readString(); - struct.success.add(_elem420); + String _elem428; // optional + _elem428 = iprot.readString(); + struct.success.add(_elem428); } iprot.readListEnd(); } @@ -14072,9 +14159,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_databases_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter421 : struct.success) + for (String _iter429 : struct.success) { - oprot.writeString(_iter421); + oprot.writeString(_iter429); } oprot.writeListEnd(); } @@ -14113,9 +14200,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter422 : struct.success) + for (String _iter430 : struct.success) { - oprot.writeString(_iter422); + oprot.writeString(_iter430); } } } @@ -14130,13 +14217,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_databases_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list423.size); - for (int _i424 = 0; _i424 < _list423.size; ++_i424) + org.apache.thrift.protocol.TList _list431 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list431.size); + for (int _i432 = 0; _i432 < _list431.size; ++_i432) { - String _elem425; // optional - _elem425 = iprot.readString(); - struct.success.add(_elem425); + String _elem433; // optional + _elem433 = iprot.readString(); + struct.success.add(_elem433); } } struct.setSuccessIsSet(true); @@ -14793,13 +14880,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_databases_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list426 = iprot.readListBegin(); - struct.success = new ArrayList(_list426.size); - for (int _i427 = 0; _i427 < _list426.size; ++_i427) + org.apache.thrift.protocol.TList _list434 = iprot.readListBegin(); + struct.success = new ArrayList(_list434.size); + for (int _i435 = 0; _i435 < _list434.size; ++_i435) { - String _elem428; // optional - _elem428 = iprot.readString(); - struct.success.add(_elem428); + String _elem436; // optional + _elem436 = iprot.readString(); + struct.success.add(_elem436); } iprot.readListEnd(); } @@ -14834,9 +14921,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_databases_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter429 : struct.success) + for (String _iter437 : struct.success) { - oprot.writeString(_iter429); + oprot.writeString(_iter437); } oprot.writeListEnd(); } @@ -14875,9 +14962,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter430 : struct.success) + for (String _iter438 : struct.success) { - oprot.writeString(_iter430); + oprot.writeString(_iter438); } } } @@ -14892,13 +14979,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_databases_re BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list431 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list431.size); - for (int _i432 = 0; _i432 < _list431.size; ++_i432) + org.apache.thrift.protocol.TList _list439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list439.size); + for (int _i440 = 0; _i440 < _list439.size; ++_i440) { - String _elem433; // optional - _elem433 = iprot.readString(); - struct.success.add(_elem433); + String _elem441; // optional + _elem441 = iprot.readString(); + struct.success.add(_elem441); } } struct.setSuccessIsSet(true); @@ -19505,16 +19592,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_type_all_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map434 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map434.size); - for (int _i435 = 0; _i435 < _map434.size; ++_i435) + org.apache.thrift.protocol.TMap _map442 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map442.size); + for (int _i443 = 0; _i443 < _map442.size; ++_i443) { - String _key436; // required - Type _val437; // required - _key436 = iprot.readString(); - _val437 = new Type(); - _val437.read(iprot); - struct.success.put(_key436, _val437); + String _key444; // required + Type _val445; // required + _key444 = iprot.readString(); + _val445 = new Type(); + _val445.read(iprot); + struct.success.put(_key444, _val445); } iprot.readMapEnd(); } @@ -19549,10 +19636,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_type_all_resul oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Map.Entry _iter438 : struct.success.entrySet()) + for (Map.Entry _iter446 : struct.success.entrySet()) { - oprot.writeString(_iter438.getKey()); - _iter438.getValue().write(oprot); + oprot.writeString(_iter446.getKey()); + _iter446.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -19591,10 +19678,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_type_all_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter439 : struct.success.entrySet()) + for (Map.Entry _iter447 : struct.success.entrySet()) { - oprot.writeString(_iter439.getKey()); - _iter439.getValue().write(oprot); + oprot.writeString(_iter447.getKey()); + _iter447.getValue().write(oprot); } } } @@ -19609,16 +19696,16 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_type_all_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map440 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new HashMap(2*_map440.size); - for (int _i441 = 0; _i441 < _map440.size; ++_i441) + org.apache.thrift.protocol.TMap _map448 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new HashMap(2*_map448.size); + for (int _i449 = 0; _i449 < _map448.size; ++_i449) { - String _key442; // required - Type _val443; // required - _key442 = iprot.readString(); - _val443 = new Type(); - _val443.read(iprot); - struct.success.put(_key442, _val443); + String _key450; // required + Type _val451; // required + _key450 = iprot.readString(); + _val451 = new Type(); + _val451.read(iprot); + struct.success.put(_key450, _val451); } } struct.setSuccessIsSet(true); @@ -20653,14 +20740,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); - struct.success = new ArrayList(_list444.size); - for (int _i445 = 0; _i445 < _list444.size; ++_i445) + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.success = new ArrayList(_list452.size); + for (int _i453 = 0; _i453 < _list452.size; ++_i453) { - FieldSchema _elem446; // optional - _elem446 = new FieldSchema(); - _elem446.read(iprot); - struct.success.add(_elem446); + FieldSchema _elem454; // optional + _elem454 = new FieldSchema(); + _elem454.read(iprot); + struct.success.add(_elem454); } iprot.readListEnd(); } @@ -20713,9 +20800,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter447 : struct.success) + for (FieldSchema _iter455 : struct.success) { - _iter447.write(oprot); + _iter455.write(oprot); } oprot.writeListEnd(); } @@ -20770,9 +20857,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter448 : struct.success) + for (FieldSchema _iter456 : struct.success) { - _iter448.write(oprot); + _iter456.write(oprot); } } } @@ -20793,14 +20880,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list449.size); - for (int _i450 = 0; _i450 < _list449.size; ++_i450) + org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list457.size); + for (int _i458 = 0; _i458 < _list457.size; ++_i458) { - FieldSchema _elem451; // optional - _elem451 = new FieldSchema(); - _elem451.read(iprot); - struct.success.add(_elem451); + FieldSchema _elem459; // optional + _elem459 = new FieldSchema(); + _elem459.read(iprot); + struct.success.add(_elem459); } } struct.setSuccessIsSet(true); @@ -21845,14 +21932,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); - struct.success = new ArrayList(_list452.size); - for (int _i453 = 0; _i453 < _list452.size; ++_i453) + org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); + struct.success = new ArrayList(_list460.size); + for (int _i461 = 0; _i461 < _list460.size; ++_i461) { - FieldSchema _elem454; // optional - _elem454 = new FieldSchema(); - _elem454.read(iprot); - struct.success.add(_elem454); + FieldSchema _elem462; // optional + _elem462 = new FieldSchema(); + _elem462.read(iprot); + struct.success.add(_elem462); } iprot.readListEnd(); } @@ -21905,9 +21992,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter455 : struct.success) + for (FieldSchema _iter463 : struct.success) { - _iter455.write(oprot); + _iter463.write(oprot); } oprot.writeListEnd(); } @@ -21962,9 +22049,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter456 : struct.success) + for (FieldSchema _iter464 : struct.success) { - _iter456.write(oprot); + _iter464.write(oprot); } } } @@ -21985,14 +22072,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_result st BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list457.size); - for (int _i458 = 0; _i458 < _list457.size; ++_i458) + org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list465.size); + for (int _i466 = 0; _i466 < _list465.size; ++_i466) { - FieldSchema _elem459; // optional - _elem459 = new FieldSchema(); - _elem459.read(iprot); - struct.success.add(_elem459); + FieldSchema _elem467; // optional + _elem467 = new FieldSchema(); + _elem467.read(iprot); + struct.success.add(_elem467); } } struct.setSuccessIsSet(true); @@ -27235,13 +27322,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_tables_result s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); - struct.success = new ArrayList(_list460.size); - for (int _i461 = 0; _i461 < _list460.size; ++_i461) + org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); + struct.success = new ArrayList(_list468.size); + for (int _i469 = 0; _i469 < _list468.size; ++_i469) { - String _elem462; // optional - _elem462 = iprot.readString(); - struct.success.add(_elem462); + String _elem470; // optional + _elem470 = iprot.readString(); + struct.success.add(_elem470); } iprot.readListEnd(); } @@ -27276,9 +27363,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_tables_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter463 : struct.success) + for (String _iter471 : struct.success) { - oprot.writeString(_iter463); + oprot.writeString(_iter471); } oprot.writeListEnd(); } @@ -27317,9 +27404,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter464 : struct.success) + for (String _iter472 : struct.success) { - oprot.writeString(_iter464); + oprot.writeString(_iter472); } } } @@ -27334,13 +27421,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_tables_result st BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list465.size); - for (int _i466 = 0; _i466 < _list465.size; ++_i466) + org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list473.size); + for (int _i474 = 0; _i474 < _list473.size; ++_i474) { - String _elem467; // optional - _elem467 = iprot.readString(); - struct.success.add(_elem467); + String _elem475; // optional + _elem475 = iprot.readString(); + struct.success.add(_elem475); } } struct.setSuccessIsSet(true); @@ -28109,13 +28196,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_tables_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); - struct.success = new ArrayList(_list468.size); - for (int _i469 = 0; _i469 < _list468.size; ++_i469) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.success = new ArrayList(_list476.size); + for (int _i477 = 0; _i477 < _list476.size; ++_i477) { - String _elem470; // optional - _elem470 = iprot.readString(); - struct.success.add(_elem470); + String _elem478; // optional + _elem478 = iprot.readString(); + struct.success.add(_elem478); } iprot.readListEnd(); } @@ -28150,9 +28237,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_tables_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter471 : struct.success) + for (String _iter479 : struct.success) { - oprot.writeString(_iter471); + oprot.writeString(_iter479); } oprot.writeListEnd(); } @@ -28191,9 +28278,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter472 : struct.success) + for (String _iter480 : struct.success) { - oprot.writeString(_iter472); + oprot.writeString(_iter480); } } } @@ -28208,13 +28295,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list473.size); - for (int _i474 = 0; _i474 < _list473.size; ++_i474) + org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list481.size); + for (int _i482 = 0; _i482 < _list481.size; ++_i482) { - String _elem475; // optional - _elem475 = iprot.readString(); - struct.success.add(_elem475); + String _elem483; // optional + _elem483 = iprot.readString(); + struct.success.add(_elem483); } } struct.setSuccessIsSet(true); @@ -29670,13 +29757,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 2: // TBL_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list476.size); - for (int _i477 = 0; _i477 < _list476.size; ++_i477) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list484.size); + for (int _i485 = 0; _i485 < _list484.size; ++_i485) { - String _elem478; // optional - _elem478 = iprot.readString(); - struct.tbl_names.add(_elem478); + String _elem486; // optional + _elem486 = iprot.readString(); + struct.tbl_names.add(_elem486); } iprot.readListEnd(); } @@ -29707,9 +29794,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(TBL_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_names.size())); - for (String _iter479 : struct.tbl_names) + for (String _iter487 : struct.tbl_names) { - oprot.writeString(_iter479); + oprot.writeString(_iter487); } oprot.writeListEnd(); } @@ -29746,9 +29833,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetTbl_names()) { { oprot.writeI32(struct.tbl_names.size()); - for (String _iter480 : struct.tbl_names) + for (String _iter488 : struct.tbl_names) { - oprot.writeString(_iter480); + oprot.writeString(_iter488); } } } @@ -29764,13 +29851,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list481.size); - for (int _i482 = 0; _i482 < _list481.size; ++_i482) + org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list489.size); + for (int _i490 = 0; _i490 < _list489.size; ++_i490) { - String _elem483; // optional - _elem483 = iprot.readString(); - struct.tbl_names.add(_elem483); + String _elem491; // optional + _elem491 = iprot.readString(); + struct.tbl_names.add(_elem491); } } struct.setTbl_namesIsSet(true); @@ -30338,14 +30425,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_objects_b case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); - struct.success = new ArrayList
(_list484.size); - for (int _i485 = 0; _i485 < _list484.size; ++_i485) + org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); + struct.success = new ArrayList
(_list492.size); + for (int _i493 = 0; _i493 < _list492.size; ++_i493) { - Table _elem486; // optional - _elem486 = new Table(); - _elem486.read(iprot); - struct.success.add(_elem486); + Table _elem494; // optional + _elem494 = new Table(); + _elem494.read(iprot); + struct.success.add(_elem494); } iprot.readListEnd(); } @@ -30398,9 +30485,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_objects_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Table _iter487 : struct.success) + for (Table _iter495 : struct.success) { - _iter487.write(oprot); + _iter495.write(oprot); } oprot.writeListEnd(); } @@ -30455,9 +30542,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter488 : struct.success) + for (Table _iter496 : struct.success) { - _iter488.write(oprot); + _iter496.write(oprot); } } } @@ -30478,14 +30565,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list489.size); - for (int _i490 = 0; _i490 < _list489.size; ++_i490) + org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list497.size); + for (int _i498 = 0; _i498 < _list497.size; ++_i498) { - Table _elem491; // optional - _elem491 = new Table(); - _elem491.read(iprot); - struct.success.add(_elem491); + Table _elem499; // optional + _elem499 = new Table(); + _elem499.read(iprot); + struct.success.add(_elem499); } } struct.setSuccessIsSet(true); @@ -31634,13 +31721,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_names_by_ case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); - struct.success = new ArrayList(_list492.size); - for (int _i493 = 0; _i493 < _list492.size; ++_i493) + org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); + struct.success = new ArrayList(_list500.size); + for (int _i501 = 0; _i501 < _list500.size; ++_i501) { - String _elem494; // optional - _elem494 = iprot.readString(); - struct.success.add(_elem494); + String _elem502; // optional + _elem502 = iprot.readString(); + struct.success.add(_elem502); } iprot.readListEnd(); } @@ -31693,9 +31780,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_names_by oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter495 : struct.success) + for (String _iter503 : struct.success) { - oprot.writeString(_iter495); + oprot.writeString(_iter503); } oprot.writeListEnd(); } @@ -31750,9 +31837,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter496 : struct.success) + for (String _iter504 : struct.success) { - oprot.writeString(_iter496); + oprot.writeString(_iter504); } } } @@ -31773,13 +31860,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_f BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list497.size); - for (int _i498 = 0; _i498 < _list497.size; ++_i498) + org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list505.size); + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - String _elem499; // optional - _elem499 = iprot.readString(); - struct.success.add(_elem499); + String _elem507; // optional + _elem507 = iprot.readString(); + struct.success.add(_elem507); } } struct.setSuccessIsSet(true); @@ -36499,14 +36586,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_args case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list500.size); - for (int _i501 = 0; _i501 < _list500.size; ++_i501) + org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list508.size); + for (int _i509 = 0; _i509 < _list508.size; ++_i509) { - Partition _elem502; // optional - _elem502 = new Partition(); - _elem502.read(iprot); - struct.new_parts.add(_elem502); + Partition _elem510; // optional + _elem510 = new Partition(); + _elem510.read(iprot); + struct.new_parts.add(_elem510); } iprot.readListEnd(); } @@ -36532,9 +36619,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_arg oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter503 : struct.new_parts) + for (Partition _iter511 : struct.new_parts) { - _iter503.write(oprot); + _iter511.write(oprot); } oprot.writeListEnd(); } @@ -36565,9 +36652,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_args if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter504 : struct.new_parts) + for (Partition _iter512 : struct.new_parts) { - _iter504.write(oprot); + _iter512.write(oprot); } } } @@ -36579,14 +36666,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_args BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list505.size); - for (int _i506 = 0; _i506 < _list505.size; ++_i506) + org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list513.size); + for (int _i514 = 0; _i514 < _list513.size; ++_i514) { - Partition _elem507; // optional - _elem507 = new Partition(); - _elem507.read(iprot); - struct.new_parts.add(_elem507); + Partition _elem515; // optional + _elem515 = new Partition(); + _elem515.read(iprot); + struct.new_parts.add(_elem515); } } struct.setNew_partsIsSet(true); @@ -37765,13 +37852,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list508.size); - for (int _i509 = 0; _i509 < _list508.size; ++_i509) + org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list516.size); + for (int _i517 = 0; _i517 < _list516.size; ++_i517) { - String _elem510; // optional - _elem510 = iprot.readString(); - struct.part_vals.add(_elem510); + String _elem518; // optional + _elem518 = iprot.readString(); + struct.part_vals.add(_elem518); } iprot.readListEnd(); } @@ -37807,9 +37894,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter511 : struct.part_vals) + for (String _iter519 : struct.part_vals) { - oprot.writeString(_iter511); + oprot.writeString(_iter519); } oprot.writeListEnd(); } @@ -37852,9 +37939,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter512 : struct.part_vals) + for (String _iter520 : struct.part_vals) { - oprot.writeString(_iter512); + oprot.writeString(_iter520); } } } @@ -37874,13 +37961,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list513.size); - for (int _i514 = 0; _i514 < _list513.size; ++_i514) + org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list521.size); + for (int _i522 = 0; _i522 < _list521.size; ++_i522) { - String _elem515; // optional - _elem515 = iprot.readString(); - struct.part_vals.add(_elem515); + String _elem523; // optional + _elem523 = iprot.readString(); + struct.part_vals.add(_elem523); } } struct.setPart_valsIsSet(true); @@ -40192,13 +40279,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, append_partition_wi case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list516.size); - for (int _i517 = 0; _i517 < _list516.size; ++_i517) + org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list524.size); + for (int _i525 = 0; _i525 < _list524.size; ++_i525) { - String _elem518; // optional - _elem518 = iprot.readString(); - struct.part_vals.add(_elem518); + String _elem526; // optional + _elem526 = iprot.readString(); + struct.part_vals.add(_elem526); } iprot.readListEnd(); } @@ -40243,9 +40330,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, append_partition_w oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter519 : struct.part_vals) + for (String _iter527 : struct.part_vals) { - oprot.writeString(_iter519); + oprot.writeString(_iter527); } oprot.writeListEnd(); } @@ -40296,9 +40383,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, append_partition_wi if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter520 : struct.part_vals) + for (String _iter528 : struct.part_vals) { - oprot.writeString(_iter520); + oprot.writeString(_iter528); } } } @@ -40321,13 +40408,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list521.size); - for (int _i522 = 0; _i522 < _list521.size; ++_i522) + org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list529.size); + for (int _i530 = 0; _i530 < _list529.size; ++_i530) { - String _elem523; // optional - _elem523 = iprot.readString(); - struct.part_vals.add(_elem523); + String _elem531; // optional + _elem531 = iprot.readString(); + struct.part_vals.add(_elem531); } } struct.setPart_valsIsSet(true); @@ -44200,13 +44287,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list524.size); - for (int _i525 = 0; _i525 < _list524.size; ++_i525) + org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list532.size); + for (int _i533 = 0; _i533 < _list532.size; ++_i533) { - String _elem526; // optional - _elem526 = iprot.readString(); - struct.part_vals.add(_elem526); + String _elem534; // optional + _elem534 = iprot.readString(); + struct.part_vals.add(_elem534); } iprot.readListEnd(); } @@ -44250,9 +44337,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_arg oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter527 : struct.part_vals) + for (String _iter535 : struct.part_vals) { - oprot.writeString(_iter527); + oprot.writeString(_iter535); } oprot.writeListEnd(); } @@ -44301,9 +44388,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter528 : struct.part_vals) + for (String _iter536 : struct.part_vals) { - oprot.writeString(_iter528); + oprot.writeString(_iter536); } } } @@ -44326,13 +44413,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list529.size); - for (int _i530 = 0; _i530 < _list529.size; ++_i530) + org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list537.size); + for (int _i538 = 0; _i538 < _list537.size; ++_i538) { - String _elem531; // optional - _elem531 = iprot.readString(); - struct.part_vals.add(_elem531); + String _elem539; // optional + _elem539 = iprot.readString(); + struct.part_vals.add(_elem539); } } struct.setPart_valsIsSet(true); @@ -45574,13 +45661,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_partition_with case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list532.size); - for (int _i533 = 0; _i533 < _list532.size; ++_i533) + org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list540.size); + for (int _i541 = 0; _i541 < _list540.size; ++_i541) { - String _elem534; // optional - _elem534 = iprot.readString(); - struct.part_vals.add(_elem534); + String _elem542; // optional + _elem542 = iprot.readString(); + struct.part_vals.add(_elem542); } iprot.readListEnd(); } @@ -45633,9 +45720,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_partition_wit oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter535 : struct.part_vals) + for (String _iter543 : struct.part_vals) { - oprot.writeString(_iter535); + oprot.writeString(_iter543); } oprot.writeListEnd(); } @@ -45692,9 +45779,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_partition_with if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter536 : struct.part_vals) + for (String _iter544 : struct.part_vals) { - oprot.writeString(_iter536); + oprot.writeString(_iter544); } } } @@ -45720,13 +45807,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list537.size); - for (int _i538 = 0; _i538 < _list537.size; ++_i538) + org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list545.size); + for (int _i546 = 0; _i546 < _list545.size; ++_i546) { - String _elem539; // optional - _elem539 = iprot.readString(); - struct.part_vals.add(_elem539); + String _elem547; // optional + _elem547 = iprot.readString(); + struct.part_vals.add(_elem547); } } struct.setPart_valsIsSet(true); @@ -50331,13 +50418,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_args case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list540.size); - for (int _i541 = 0; _i541 < _list540.size; ++_i541) + org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list548.size); + for (int _i549 = 0; _i549 < _list548.size; ++_i549) { - String _elem542; // optional - _elem542 = iprot.readString(); - struct.part_vals.add(_elem542); + String _elem550; // optional + _elem550 = iprot.readString(); + struct.part_vals.add(_elem550); } iprot.readListEnd(); } @@ -50373,9 +50460,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_args oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter543 : struct.part_vals) + for (String _iter551 : struct.part_vals) { - oprot.writeString(_iter543); + oprot.writeString(_iter551); } oprot.writeListEnd(); } @@ -50418,9 +50505,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_args if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter544 : struct.part_vals) + for (String _iter552 : struct.part_vals) { - oprot.writeString(_iter544); + oprot.writeString(_iter552); } } } @@ -50440,13 +50527,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list545.size); - for (int _i546 = 0; _i546 < _list545.size; ++_i546) + org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list553.size); + for (int _i554 = 0; _i554 < _list553.size; ++_i554) { - String _elem547; // optional - _elem547 = iprot.readString(); - struct.part_vals.add(_elem547); + String _elem555; // optional + _elem555 = iprot.readString(); + struct.part_vals.add(_elem555); } } struct.setPart_valsIsSet(true); @@ -51675,15 +51762,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partition_ case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map548.size); - for (int _i549 = 0; _i549 < _map548.size; ++_i549) + org.apache.thrift.protocol.TMap _map556 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map556.size); + for (int _i557 = 0; _i557 < _map556.size; ++_i557) { - String _key550; // required - String _val551; // required - _key550 = iprot.readString(); - _val551 = iprot.readString(); - struct.partitionSpecs.put(_key550, _val551); + String _key558; // required + String _val559; // required + _key558 = iprot.readString(); + _val559 = iprot.readString(); + struct.partitionSpecs.put(_key558, _val559); } iprot.readMapEnd(); } @@ -51741,10 +51828,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(PARTITION_SPECS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.partitionSpecs.size())); - for (Map.Entry _iter552 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter560 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter552.getKey()); - oprot.writeString(_iter552.getValue()); + oprot.writeString(_iter560.getKey()); + oprot.writeString(_iter560.getValue()); } oprot.writeMapEnd(); } @@ -51807,10 +51894,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter553 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter561 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter553.getKey()); - oprot.writeString(_iter553.getValue()); + oprot.writeString(_iter561.getKey()); + oprot.writeString(_iter561.getValue()); } } } @@ -51834,15 +51921,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partition_a BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionSpecs = new HashMap(2*_map554.size); - for (int _i555 = 0; _i555 < _map554.size; ++_i555) + org.apache.thrift.protocol.TMap _map562 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionSpecs = new HashMap(2*_map562.size); + for (int _i563 = 0; _i563 < _map562.size; ++_i563) { - String _key556; // required - String _val557; // required - _key556 = iprot.readString(); - _val557 = iprot.readString(); - struct.partitionSpecs.put(_key556, _val557); + String _key564; // required + String _val565; // required + _key564 = iprot.readString(); + _val565 = iprot.readString(); + struct.partitionSpecs.put(_key564, _val565); } } struct.setPartitionSpecsIsSet(true); @@ -53330,13 +53417,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list558.size); - for (int _i559 = 0; _i559 < _list558.size; ++_i559) + org.apache.thrift.protocol.TList _list566 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list566.size); + for (int _i567 = 0; _i567 < _list566.size; ++_i567) { - String _elem560; // optional - _elem560 = iprot.readString(); - struct.part_vals.add(_elem560); + String _elem568; // optional + _elem568 = iprot.readString(); + struct.part_vals.add(_elem568); } iprot.readListEnd(); } @@ -53356,13 +53443,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_with_ case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list561 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list561.size); - for (int _i562 = 0; _i562 < _list561.size; ++_i562) + org.apache.thrift.protocol.TList _list569 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list569.size); + for (int _i570 = 0; _i570 < _list569.size; ++_i570) { - String _elem563; // optional - _elem563 = iprot.readString(); - struct.group_names.add(_elem563); + String _elem571; // optional + _elem571 = iprot.readString(); + struct.group_names.add(_elem571); } iprot.readListEnd(); } @@ -53398,9 +53485,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter564 : struct.part_vals) + for (String _iter572 : struct.part_vals) { - oprot.writeString(_iter564); + oprot.writeString(_iter572); } oprot.writeListEnd(); } @@ -53415,9 +53502,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_with oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter565 : struct.group_names) + for (String _iter573 : struct.group_names) { - oprot.writeString(_iter565); + oprot.writeString(_iter573); } oprot.writeListEnd(); } @@ -53466,9 +53553,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter566 : struct.part_vals) + for (String _iter574 : struct.part_vals) { - oprot.writeString(_iter566); + oprot.writeString(_iter574); } } } @@ -53478,9 +53565,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_with_ if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter567 : struct.group_names) + for (String _iter575 : struct.group_names) { - oprot.writeString(_iter567); + oprot.writeString(_iter575); } } } @@ -53500,13 +53587,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list568 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list568.size); - for (int _i569 = 0; _i569 < _list568.size; ++_i569) + org.apache.thrift.protocol.TList _list576 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list576.size); + for (int _i577 = 0; _i577 < _list576.size; ++_i577) { - String _elem570; // optional - _elem570 = iprot.readString(); - struct.part_vals.add(_elem570); + String _elem578; // optional + _elem578 = iprot.readString(); + struct.part_vals.add(_elem578); } } struct.setPart_valsIsSet(true); @@ -53517,13 +53604,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list571.size); - for (int _i572 = 0; _i572 < _list571.size; ++_i572) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list579.size); + for (int _i580 = 0; _i580 < _list579.size; ++_i580) { - String _elem573; // optional - _elem573 = iprot.readString(); - struct.group_names.add(_elem573); + String _elem581; // optional + _elem581 = iprot.readString(); + struct.group_names.add(_elem581); } } struct.setGroup_namesIsSet(true); @@ -56292,14 +56379,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); - struct.success = new ArrayList(_list574.size); - for (int _i575 = 0; _i575 < _list574.size; ++_i575) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.success = new ArrayList(_list582.size); + for (int _i583 = 0; _i583 < _list582.size; ++_i583) { - Partition _elem576; // optional - _elem576 = new Partition(); - _elem576.read(iprot); - struct.success.add(_elem576); + Partition _elem584; // optional + _elem584 = new Partition(); + _elem584.read(iprot); + struct.success.add(_elem584); } iprot.readListEnd(); } @@ -56343,9 +56430,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter577 : struct.success) + for (Partition _iter585 : struct.success) { - _iter577.write(oprot); + _iter585.write(oprot); } oprot.writeListEnd(); } @@ -56392,9 +56479,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter578 : struct.success) + for (Partition _iter586 : struct.success) { - _iter578.write(oprot); + _iter586.write(oprot); } } } @@ -56412,14 +56499,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_resul BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list579.size); - for (int _i580 = 0; _i580 < _list579.size; ++_i580) + org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list587.size); + for (int _i588 = 0; _i588 < _list587.size; ++_i588) { - Partition _elem581; // optional - _elem581 = new Partition(); - _elem581.read(iprot); - struct.success.add(_elem581); + Partition _elem589; // optional + _elem589 = new Partition(); + _elem589.read(iprot); + struct.success.add(_elem589); } } struct.setSuccessIsSet(true); @@ -57112,13 +57199,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 5: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) { - String _elem584; // optional - _elem584 = iprot.readString(); - struct.group_names.add(_elem584); + String _elem592; // optional + _elem592 = iprot.readString(); + struct.group_names.add(_elem592); } iprot.readListEnd(); } @@ -57162,9 +57249,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter585 : struct.group_names) + for (String _iter593 : struct.group_names) { - oprot.writeString(_iter585); + oprot.writeString(_iter593); } oprot.writeListEnd(); } @@ -57219,9 +57306,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter586 : struct.group_names) + for (String _iter594 : struct.group_names) { - oprot.writeString(_iter586); + oprot.writeString(_iter594); } } } @@ -57249,13 +57336,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list587 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list587.size); - for (int _i588 = 0; _i588 < _list587.size; ++_i588) + org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list595.size); + for (int _i596 = 0; _i596 < _list595.size; ++_i596) { - String _elem589; // optional - _elem589 = iprot.readString(); - struct.group_names.add(_elem589); + String _elem597; // optional + _elem597 = iprot.readString(); + struct.group_names.add(_elem597); } } struct.setGroup_namesIsSet(true); @@ -57742,14 +57829,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_with case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); - struct.success = new ArrayList(_list590.size); - for (int _i591 = 0; _i591 < _list590.size; ++_i591) + org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); + struct.success = new ArrayList(_list598.size); + for (int _i599 = 0; _i599 < _list598.size; ++_i599) { - Partition _elem592; // optional - _elem592 = new Partition(); - _elem592.read(iprot); - struct.success.add(_elem592); + Partition _elem600; // optional + _elem600 = new Partition(); + _elem600.read(iprot); + struct.success.add(_elem600); } iprot.readListEnd(); } @@ -57793,9 +57880,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_wit oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter593 : struct.success) + for (Partition _iter601 : struct.success) { - _iter593.write(oprot); + _iter601.write(oprot); } oprot.writeListEnd(); } @@ -57842,9 +57929,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter594 : struct.success) + for (Partition _iter602 : struct.success) { - _iter594.write(oprot); + _iter602.write(oprot); } } } @@ -57862,14 +57949,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list595.size); - for (int _i596 = 0; _i596 < _list595.size; ++_i596) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - Partition _elem597; // optional - _elem597 = new Partition(); - _elem597.read(iprot); - struct.success.add(_elem597); + Partition _elem605; // optional + _elem605 = new Partition(); + _elem605.read(iprot); + struct.success.add(_elem605); } } struct.setSuccessIsSet(true); @@ -58851,13 +58938,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list598 = iprot.readListBegin(); - struct.success = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.success = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) { - String _elem600; // optional - _elem600 = iprot.readString(); - struct.success.add(_elem600); + String _elem608; // optional + _elem608 = iprot.readString(); + struct.success.add(_elem608); } iprot.readListEnd(); } @@ -58892,9 +58979,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter601 : struct.success) + for (String _iter609 : struct.success) { - oprot.writeString(_iter601); + oprot.writeString(_iter609); } oprot.writeListEnd(); } @@ -58933,9 +59020,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter602 : struct.success) + for (String _iter610 : struct.success) { - oprot.writeString(_iter602); + oprot.writeString(_iter610); } } } @@ -58950,13 +59037,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list603.size); - for (int _i604 = 0; _i604 < _list603.size; ++_i604) + org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) { - String _elem605; // optional - _elem605 = iprot.readString(); - struct.success.add(_elem605); + String _elem613; // optional + _elem613 = iprot.readString(); + struct.success.add(_elem613); } } struct.setSuccessIsSet(true); @@ -59547,13 +59634,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_a case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - String _elem608; // optional - _elem608 = iprot.readString(); - struct.part_vals.add(_elem608); + String _elem616; // optional + _elem616 = iprot.readString(); + struct.part_vals.add(_elem616); } iprot.readListEnd(); } @@ -59597,9 +59684,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter609 : struct.part_vals) + for (String _iter617 : struct.part_vals) { - oprot.writeString(_iter609); + oprot.writeString(_iter617); } oprot.writeListEnd(); } @@ -59648,9 +59735,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_a if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter610 : struct.part_vals) + for (String _iter618 : struct.part_vals) { - oprot.writeString(_iter610); + oprot.writeString(_iter618); } } } @@ -59673,13 +59760,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list611.size); - for (int _i612 = 0; _i612 < _list611.size; ++_i612) + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - String _elem613; // optional - _elem613 = iprot.readString(); - struct.part_vals.add(_elem613); + String _elem621; // optional + _elem621 = iprot.readString(); + struct.part_vals.add(_elem621); } } struct.setPart_valsIsSet(true); @@ -60170,14 +60257,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_r case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); - struct.success = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.success = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - Partition _elem616; // optional - _elem616 = new Partition(); - _elem616.read(iprot); - struct.success.add(_elem616); + Partition _elem624; // optional + _elem624 = new Partition(); + _elem624.read(iprot); + struct.success.add(_elem624); } iprot.readListEnd(); } @@ -60221,9 +60308,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter617 : struct.success) + for (Partition _iter625 : struct.success) { - _iter617.write(oprot); + _iter625.write(oprot); } oprot.writeListEnd(); } @@ -60270,9 +60357,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter618 : struct.success) + for (Partition _iter626 : struct.success) { - _iter618.write(oprot); + _iter626.write(oprot); } } } @@ -60290,14 +60377,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_re BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list619.size); - for (int _i620 = 0; _i620 < _list619.size; ++_i620) + org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - Partition _elem621; // optional - _elem621 = new Partition(); - _elem621.read(iprot); - struct.success.add(_elem621); + Partition _elem629; // optional + _elem629 = new Partition(); + _elem629.read(iprot); + struct.success.add(_elem629); } } struct.setSuccessIsSet(true); @@ -61075,13 +61162,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) { - String _elem624; // optional - _elem624 = iprot.readString(); - struct.part_vals.add(_elem624); + String _elem632; // optional + _elem632 = iprot.readString(); + struct.part_vals.add(_elem632); } iprot.readListEnd(); } @@ -61109,13 +61196,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 6: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list625 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list625.size); - for (int _i626 = 0; _i626 < _list625.size; ++_i626) + org.apache.thrift.protocol.TList _list633 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list633.size); + for (int _i634 = 0; _i634 < _list633.size; ++_i634) { - String _elem627; // optional - _elem627 = iprot.readString(); - struct.group_names.add(_elem627); + String _elem635; // optional + _elem635 = iprot.readString(); + struct.group_names.add(_elem635); } iprot.readListEnd(); } @@ -61151,9 +61238,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter628 : struct.part_vals) + for (String _iter636 : struct.part_vals) { - oprot.writeString(_iter628); + oprot.writeString(_iter636); } oprot.writeListEnd(); } @@ -61171,9 +61258,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter629 : struct.group_names) + for (String _iter637 : struct.group_names) { - oprot.writeString(_iter629); + oprot.writeString(_iter637); } oprot.writeListEnd(); } @@ -61225,9 +61312,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter630 : struct.part_vals) + for (String _iter638 : struct.part_vals) { - oprot.writeString(_iter630); + oprot.writeString(_iter638); } } } @@ -61240,9 +61327,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter631 : struct.group_names) + for (String _iter639 : struct.group_names) { - oprot.writeString(_iter631); + oprot.writeString(_iter639); } } } @@ -61262,13 +61349,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list632 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list632.size); - for (int _i633 = 0; _i633 < _list632.size; ++_i633) + org.apache.thrift.protocol.TList _list640 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list640.size); + for (int _i641 = 0; _i641 < _list640.size; ++_i641) { - String _elem634; // optional - _elem634 = iprot.readString(); - struct.part_vals.add(_elem634); + String _elem642; // optional + _elem642 = iprot.readString(); + struct.part_vals.add(_elem642); } } struct.setPart_valsIsSet(true); @@ -61283,13 +61370,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem637; // optional - _elem637 = iprot.readString(); - struct.group_names.add(_elem637); + String _elem645; // optional + _elem645 = iprot.readString(); + struct.group_names.add(_elem645); } } struct.setGroup_namesIsSet(true); @@ -61776,14 +61863,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_ps_w case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); - struct.success = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.success = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - Partition _elem640; // optional - _elem640 = new Partition(); - _elem640.read(iprot); - struct.success.add(_elem640); + Partition _elem648; // optional + _elem648 = new Partition(); + _elem648.read(iprot); + struct.success.add(_elem648); } iprot.readListEnd(); } @@ -61827,9 +61914,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter641 : struct.success) + for (Partition _iter649 : struct.success) { - _iter641.write(oprot); + _iter649.write(oprot); } oprot.writeListEnd(); } @@ -61876,9 +61963,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter642 : struct.success) + for (Partition _iter650 : struct.success) { - _iter642.write(oprot); + _iter650.write(oprot); } } } @@ -61896,14 +61983,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - Partition _elem645; // optional - _elem645 = new Partition(); - _elem645.read(iprot); - struct.success.add(_elem645); + Partition _elem653; // optional + _elem653 = new Partition(); + _elem653.read(iprot); + struct.success.add(_elem653); } } struct.setSuccessIsSet(true); @@ -62499,13 +62586,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem648; // optional - _elem648 = iprot.readString(); - struct.part_vals.add(_elem648); + String _elem656; // optional + _elem656 = iprot.readString(); + struct.part_vals.add(_elem656); } iprot.readListEnd(); } @@ -62549,9 +62636,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter649 : struct.part_vals) + for (String _iter657 : struct.part_vals) { - oprot.writeString(_iter649); + oprot.writeString(_iter657); } oprot.writeListEnd(); } @@ -62600,9 +62687,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter650 : struct.part_vals) + for (String _iter658 : struct.part_vals) { - oprot.writeString(_iter650); + oprot.writeString(_iter658); } } } @@ -62625,13 +62712,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list651.size); - for (int _i652 = 0; _i652 < _list651.size; ++_i652) + org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - String _elem653; // optional - _elem653 = iprot.readString(); - struct.part_vals.add(_elem653); + String _elem661; // optional + _elem661 = iprot.readString(); + struct.part_vals.add(_elem661); } } struct.setPart_valsIsSet(true); @@ -63122,13 +63209,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_names case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); - struct.success = new ArrayList(_list654.size); - for (int _i655 = 0; _i655 < _list654.size; ++_i655) + org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); + struct.success = new ArrayList(_list662.size); + for (int _i663 = 0; _i663 < _list662.size; ++_i663) { - String _elem656; // optional - _elem656 = iprot.readString(); - struct.success.add(_elem656); + String _elem664; // optional + _elem664 = iprot.readString(); + struct.success.add(_elem664); } iprot.readListEnd(); } @@ -63172,9 +63259,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_name oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter657 : struct.success) + for (String _iter665 : struct.success) { - oprot.writeString(_iter657); + oprot.writeString(_iter665); } oprot.writeListEnd(); } @@ -63221,9 +63308,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter658 : struct.success) + for (String _iter666 : struct.success) { - oprot.writeString(_iter658); + oprot.writeString(_iter666); } } } @@ -63241,13 +63328,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list659.size); - for (int _i660 = 0; _i660 < _list659.size; ++_i660) + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) { - String _elem661; // optional - _elem661 = iprot.readString(); - struct.success.add(_elem661); + String _elem669; // optional + _elem669 = iprot.readString(); + struct.success.add(_elem669); } } struct.setSuccessIsSet(true); @@ -64414,14 +64501,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list662 = iprot.readListBegin(); - struct.success = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.success = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - Partition _elem664; // optional - _elem664 = new Partition(); - _elem664.read(iprot); - struct.success.add(_elem664); + Partition _elem672; // optional + _elem672 = new Partition(); + _elem672.read(iprot); + struct.success.add(_elem672); } iprot.readListEnd(); } @@ -64465,9 +64552,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter665 : struct.success) + for (Partition _iter673 : struct.success) { - _iter665.write(oprot); + _iter673.write(oprot); } oprot.writeListEnd(); } @@ -64514,9 +64601,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter666 : struct.success) + for (Partition _iter674 : struct.success) { - _iter666.write(oprot); + _iter674.write(oprot); } } } @@ -64534,14 +64621,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list667.size); - for (int _i668 = 0; _i668 < _list667.size; ++_i668) + org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - Partition _elem669; // optional - _elem669 = new Partition(); - _elem669.read(iprot); - struct.success.add(_elem669); + Partition _elem677; // optional + _elem677 = new Partition(); + _elem677.read(iprot); + struct.success.add(_elem677); } } struct.setSuccessIsSet(true); @@ -65992,13 +66079,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 3: // NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); - struct.names = new ArrayList(_list670.size); - for (int _i671 = 0; _i671 < _list670.size; ++_i671) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.names = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - String _elem672; // optional - _elem672 = iprot.readString(); - struct.names.add(_elem672); + String _elem680; // optional + _elem680 = iprot.readString(); + struct.names.add(_elem680); } iprot.readListEnd(); } @@ -66034,9 +66121,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.names.size())); - for (String _iter673 : struct.names) + for (String _iter681 : struct.names) { - oprot.writeString(_iter673); + oprot.writeString(_iter681); } oprot.writeListEnd(); } @@ -66079,9 +66166,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter674 : struct.names) + for (String _iter682 : struct.names) { - oprot.writeString(_iter674); + oprot.writeString(_iter682); } } } @@ -66101,13 +66188,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list675.size); - for (int _i676 = 0; _i676 < _list675.size; ++_i676) + org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list683.size); + for (int _i684 = 0; _i684 < _list683.size; ++_i684) { - String _elem677; // optional - _elem677 = iprot.readString(); - struct.names.add(_elem677); + String _elem685; // optional + _elem685 = iprot.readString(); + struct.names.add(_elem685); } } struct.setNamesIsSet(true); @@ -66594,14 +66681,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_by_n case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); - struct.success = new ArrayList(_list678.size); - for (int _i679 = 0; _i679 < _list678.size; ++_i679) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.success = new ArrayList(_list686.size); + for (int _i687 = 0; _i687 < _list686.size; ++_i687) { - Partition _elem680; // optional - _elem680 = new Partition(); - _elem680.read(iprot); - struct.success.add(_elem680); + Partition _elem688; // optional + _elem688 = new Partition(); + _elem688.read(iprot); + struct.success.add(_elem688); } iprot.readListEnd(); } @@ -66645,9 +66732,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter681 : struct.success) + for (Partition _iter689 : struct.success) { - _iter681.write(oprot); + _iter689.write(oprot); } oprot.writeListEnd(); } @@ -66694,9 +66781,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter682 : struct.success) + for (Partition _iter690 : struct.success) { - _iter682.write(oprot); + _iter690.write(oprot); } } } @@ -66714,14 +66801,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list683.size); - for (int _i684 = 0; _i684 < _list683.size; ++_i684) + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - Partition _elem685; // optional - _elem685 = new Partition(); - _elem685.read(iprot); - struct.success.add(_elem685); + Partition _elem693; // optional + _elem693 = new Partition(); + _elem693.read(iprot); + struct.success.add(_elem693); } } struct.setSuccessIsSet(true); @@ -68271,14 +68358,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_ar case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list694.size); + for (int _i695 = 0; _i695 < _list694.size; ++_i695) { - Partition _elem688; // optional - _elem688 = new Partition(); - _elem688.read(iprot); - struct.new_parts.add(_elem688); + Partition _elem696; // optional + _elem696 = new Partition(); + _elem696.read(iprot); + struct.new_parts.add(_elem696); } iprot.readListEnd(); } @@ -68314,9 +68401,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_a oprot.writeFieldBegin(NEW_PARTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.new_parts.size())); - for (Partition _iter689 : struct.new_parts) + for (Partition _iter697 : struct.new_parts) { - _iter689.write(oprot); + _iter697.write(oprot); } oprot.writeListEnd(); } @@ -68359,9 +68446,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_ar if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter690 : struct.new_parts) + for (Partition _iter698 : struct.new_parts) { - _iter690.write(oprot); + _iter698.write(oprot); } } } @@ -68381,14 +68468,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list691.size); - for (int _i692 = 0; _i692 < _list691.size; ++_i692) + org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - Partition _elem693; // optional - _elem693 = new Partition(); - _elem693.read(iprot); - struct.new_parts.add(_elem693); + Partition _elem701; // optional + _elem701 = new Partition(); + _elem701.read(iprot); + struct.new_parts.add(_elem701); } } struct.setNew_partsIsSet(true); @@ -70587,13 +70674,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, rename_partition_ar case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list694.size); - for (int _i695 = 0; _i695 < _list694.size; ++_i695) + org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list702.size); + for (int _i703 = 0; _i703 < _list702.size; ++_i703) { - String _elem696; // optional - _elem696 = iprot.readString(); - struct.part_vals.add(_elem696); + String _elem704; // optional + _elem704 = iprot.readString(); + struct.part_vals.add(_elem704); } iprot.readListEnd(); } @@ -70638,9 +70725,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, rename_partition_a oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter697 : struct.part_vals) + for (String _iter705 : struct.part_vals) { - oprot.writeString(_iter697); + oprot.writeString(_iter705); } oprot.writeListEnd(); } @@ -70691,9 +70778,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, rename_partition_ar if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter698 : struct.part_vals) + for (String _iter706 : struct.part_vals) { - oprot.writeString(_iter698); + oprot.writeString(_iter706); } } } @@ -70716,13 +70803,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list699.size); - for (int _i700 = 0; _i700 < _list699.size; ++_i700) + org.apache.thrift.protocol.TList _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list707.size); + for (int _i708 = 0; _i708 < _list707.size; ++_i708) { - String _elem701; // optional - _elem701 = iprot.readString(); - struct.part_vals.add(_elem701); + String _elem709; // optional + _elem709 = iprot.readString(); + struct.part_vals.add(_elem709); } } struct.setPart_valsIsSet(true); @@ -71599,13 +71686,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_has_ case 1: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list702.size); - for (int _i703 = 0; _i703 < _list702.size; ++_i703) + org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list710.size); + for (int _i711 = 0; _i711 < _list710.size; ++_i711) { - String _elem704; // optional - _elem704 = iprot.readString(); - struct.part_vals.add(_elem704); + String _elem712; // optional + _elem712 = iprot.readString(); + struct.part_vals.add(_elem712); } iprot.readListEnd(); } @@ -71639,9 +71726,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_has oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (String _iter705 : struct.part_vals) + for (String _iter713 : struct.part_vals) { - oprot.writeString(_iter705); + oprot.writeString(_iter713); } oprot.writeListEnd(); } @@ -71678,9 +71765,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_has_ if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (String _iter706 : struct.part_vals) + for (String _iter714 : struct.part_vals) { - oprot.writeString(_iter706); + oprot.writeString(_iter714); } } } @@ -71695,13 +71782,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_has_v BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list707.size); - for (int _i708 = 0; _i708 < _list707.size; ++_i708) + org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - String _elem709; // optional - _elem709 = iprot.readString(); - struct.part_vals.add(_elem709); + String _elem717; // optional + _elem717 = iprot.readString(); + struct.part_vals.add(_elem717); } } struct.setPart_valsIsSet(true); @@ -73859,13 +73946,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_v case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); - struct.success = new ArrayList(_list710.size); - for (int _i711 = 0; _i711 < _list710.size; ++_i711) + org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); + struct.success = new ArrayList(_list718.size); + for (int _i719 = 0; _i719 < _list718.size; ++_i719) { - String _elem712; // optional - _elem712 = iprot.readString(); - struct.success.add(_elem712); + String _elem720; // optional + _elem720 = iprot.readString(); + struct.success.add(_elem720); } iprot.readListEnd(); } @@ -73900,9 +73987,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter713 : struct.success) + for (String _iter721 : struct.success) { - oprot.writeString(_iter713); + oprot.writeString(_iter721); } oprot.writeListEnd(); } @@ -73941,9 +74028,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter714 : struct.success) + for (String _iter722 : struct.success) { - oprot.writeString(_iter714); + oprot.writeString(_iter722); } } } @@ -73958,13 +74045,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_va BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) + org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list723.size); + for (int _i724 = 0; _i724 < _list723.size; ++_i724) { - String _elem717; // optional - _elem717 = iprot.readString(); - struct.success.add(_elem717); + String _elem725; // optional + _elem725 = iprot.readString(); + struct.success.add(_elem725); } } struct.setSuccessIsSet(true); @@ -74738,15 +74825,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, partition_name_to_s case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map718 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map718.size); - for (int _i719 = 0; _i719 < _map718.size; ++_i719) + org.apache.thrift.protocol.TMap _map726 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map726.size); + for (int _i727 = 0; _i727 < _map726.size; ++_i727) { - String _key720; // required - String _val721; // required - _key720 = iprot.readString(); - _val721 = iprot.readString(); - struct.success.put(_key720, _val721); + String _key728; // required + String _val729; // required + _key728 = iprot.readString(); + _val729 = iprot.readString(); + struct.success.put(_key728, _val729); } iprot.readMapEnd(); } @@ -74781,10 +74868,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, partition_name_to_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (Map.Entry _iter722 : struct.success.entrySet()) + for (Map.Entry _iter730 : struct.success.entrySet()) { - oprot.writeString(_iter722.getKey()); - oprot.writeString(_iter722.getValue()); + oprot.writeString(_iter730.getKey()); + oprot.writeString(_iter730.getValue()); } oprot.writeMapEnd(); } @@ -74823,10 +74910,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Map.Entry _iter723 : struct.success.entrySet()) + for (Map.Entry _iter731 : struct.success.entrySet()) { - oprot.writeString(_iter723.getKey()); - oprot.writeString(_iter723.getValue()); + oprot.writeString(_iter731.getKey()); + oprot.writeString(_iter731.getValue()); } } } @@ -74841,15 +74928,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, partition_name_to_sp BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map724 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new HashMap(2*_map724.size); - for (int _i725 = 0; _i725 < _map724.size; ++_i725) + org.apache.thrift.protocol.TMap _map732 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new HashMap(2*_map732.size); + for (int _i733 = 0; _i733 < _map732.size; ++_i733) { - String _key726; // required - String _val727; // required - _key726 = iprot.readString(); - _val727 = iprot.readString(); - struct.success.put(_key726, _val727); + String _key734; // required + String _val735; // required + _key734 = iprot.readString(); + _val735 = iprot.readString(); + struct.success.put(_key734, _val735); } } struct.setSuccessIsSet(true); @@ -75455,15 +75542,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, markPartitionForEve case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map728 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map728.size); - for (int _i729 = 0; _i729 < _map728.size; ++_i729) + org.apache.thrift.protocol.TMap _map736 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map736.size); + for (int _i737 = 0; _i737 < _map736.size; ++_i737) { - String _key730; // required - String _val731; // required - _key730 = iprot.readString(); - _val731 = iprot.readString(); - struct.part_vals.put(_key730, _val731); + String _key738; // required + String _val739; // required + _key738 = iprot.readString(); + _val739 = iprot.readString(); + struct.part_vals.put(_key738, _val739); } iprot.readMapEnd(); } @@ -75507,10 +75594,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, markPartitionForEv oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter732 : struct.part_vals.entrySet()) + for (Map.Entry _iter740 : struct.part_vals.entrySet()) { - oprot.writeString(_iter732.getKey()); - oprot.writeString(_iter732.getValue()); + oprot.writeString(_iter740.getKey()); + oprot.writeString(_iter740.getValue()); } oprot.writeMapEnd(); } @@ -75561,10 +75648,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter733 : struct.part_vals.entrySet()) + for (Map.Entry _iter741 : struct.part_vals.entrySet()) { - oprot.writeString(_iter733.getKey()); - oprot.writeString(_iter733.getValue()); + oprot.writeString(_iter741.getKey()); + oprot.writeString(_iter741.getValue()); } } } @@ -75587,15 +75674,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map734 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map734.size); - for (int _i735 = 0; _i735 < _map734.size; ++_i735) + org.apache.thrift.protocol.TMap _map742 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map742.size); + for (int _i743 = 0; _i743 < _map742.size; ++_i743) { - String _key736; // required - String _val737; // required - _key736 = iprot.readString(); - _val737 = iprot.readString(); - struct.part_vals.put(_key736, _val737); + String _key744; // required + String _val745; // required + _key744 = iprot.readString(); + _val745 = iprot.readString(); + struct.part_vals.put(_key744, _val745); } } struct.setPart_valsIsSet(true); @@ -77090,15 +77177,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, isPartitionMarkedFo case 3: // PART_VALS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map738 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map738.size); - for (int _i739 = 0; _i739 < _map738.size; ++_i739) + org.apache.thrift.protocol.TMap _map746 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map746.size); + for (int _i747 = 0; _i747 < _map746.size; ++_i747) { - String _key740; // required - String _val741; // required - _key740 = iprot.readString(); - _val741 = iprot.readString(); - struct.part_vals.put(_key740, _val741); + String _key748; // required + String _val749; // required + _key748 = iprot.readString(); + _val749 = iprot.readString(); + struct.part_vals.put(_key748, _val749); } iprot.readMapEnd(); } @@ -77142,10 +77229,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, isPartitionMarkedF oprot.writeFieldBegin(PART_VALS_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, struct.part_vals.size())); - for (Map.Entry _iter742 : struct.part_vals.entrySet()) + for (Map.Entry _iter750 : struct.part_vals.entrySet()) { - oprot.writeString(_iter742.getKey()); - oprot.writeString(_iter742.getValue()); + oprot.writeString(_iter750.getKey()); + oprot.writeString(_iter750.getValue()); } oprot.writeMapEnd(); } @@ -77196,10 +77283,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter743 : struct.part_vals.entrySet()) + for (Map.Entry _iter751 : struct.part_vals.entrySet()) { - oprot.writeString(_iter743.getKey()); - oprot.writeString(_iter743.getValue()); + oprot.writeString(_iter751.getKey()); + oprot.writeString(_iter751.getValue()); } } } @@ -77222,15 +77309,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map744 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new HashMap(2*_map744.size); - for (int _i745 = 0; _i745 < _map744.size; ++_i745) + org.apache.thrift.protocol.TMap _map752 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new HashMap(2*_map752.size); + for (int _i753 = 0; _i753 < _map752.size; ++_i753) { - String _key746; // required - String _val747; // required - _key746 = iprot.readString(); - _val747 = iprot.readString(); - struct.part_vals.put(_key746, _val747); + String _key754; // required + String _val755; // required + _key754 = iprot.readString(); + _val755 = iprot.readString(); + struct.part_vals.put(_key754, _val755); } } struct.setPart_valsIsSet(true); @@ -83954,14 +84041,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); - struct.success = new ArrayList(_list748.size); - for (int _i749 = 0; _i749 < _list748.size; ++_i749) + org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); + struct.success = new ArrayList(_list756.size); + for (int _i757 = 0; _i757 < _list756.size; ++_i757) { - Index _elem750; // optional - _elem750 = new Index(); - _elem750.read(iprot); - struct.success.add(_elem750); + Index _elem758; // optional + _elem758 = new Index(); + _elem758.read(iprot); + struct.success.add(_elem758); } iprot.readListEnd(); } @@ -84005,9 +84092,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Index _iter751 : struct.success) + for (Index _iter759 : struct.success) { - _iter751.write(oprot); + _iter759.write(oprot); } oprot.writeListEnd(); } @@ -84054,9 +84141,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter752 : struct.success) + for (Index _iter760 : struct.success) { - _iter752.write(oprot); + _iter760.write(oprot); } } } @@ -84074,14 +84161,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list753.size); - for (int _i754 = 0; _i754 < _list753.size; ++_i754) + org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + for (int _i762 = 0; _i762 < _list761.size; ++_i762) { - Index _elem755; // optional - _elem755 = new Index(); - _elem755.read(iprot); - struct.success.add(_elem755); + Index _elem763; // optional + _elem763 = new Index(); + _elem763.read(iprot); + struct.success.add(_elem763); } } struct.setSuccessIsSet(true); @@ -85063,13 +85150,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list756 = iprot.readListBegin(); - struct.success = new ArrayList(_list756.size); - for (int _i757 = 0; _i757 < _list756.size; ++_i757) + org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); + struct.success = new ArrayList(_list764.size); + for (int _i765 = 0; _i765 < _list764.size; ++_i765) { - String _elem758; // optional - _elem758 = iprot.readString(); - struct.success.add(_elem758); + String _elem766; // optional + _elem766 = iprot.readString(); + struct.success.add(_elem766); } iprot.readListEnd(); } @@ -85104,9 +85191,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter759 : struct.success) + for (String _iter767 : struct.success) { - oprot.writeString(_iter759); + oprot.writeString(_iter767); } oprot.writeListEnd(); } @@ -85145,9 +85232,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter760 : struct.success) + for (String _iter768 : struct.success) { - oprot.writeString(_iter760); + oprot.writeString(_iter768); } } } @@ -85162,13 +85249,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list761 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list761.size); - for (int _i762 = 0; _i762 < _list761.size; ++_i762) + org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list769.size); + for (int _i770 = 0; _i770 < _list769.size; ++_i770) { - String _elem763; // optional - _elem763 = iprot.readString(); - struct.success.add(_elem763); + String _elem771; // optional + _elem771 = iprot.readString(); + struct.success.add(_elem771); } } struct.setSuccessIsSet(true); @@ -98823,13 +98910,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_functions_resul case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list764 = iprot.readListBegin(); - struct.success = new ArrayList(_list764.size); - for (int _i765 = 0; _i765 < _list764.size; ++_i765) + org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); + struct.success = new ArrayList(_list772.size); + for (int _i773 = 0; _i773 < _list772.size; ++_i773) { - String _elem766; // optional - _elem766 = iprot.readString(); - struct.success.add(_elem766); + String _elem774; // optional + _elem774 = iprot.readString(); + struct.success.add(_elem774); } iprot.readListEnd(); } @@ -98864,9 +98951,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_functions_resu oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter767 : struct.success) + for (String _iter775 : struct.success) { - oprot.writeString(_iter767); + oprot.writeString(_iter775); } oprot.writeListEnd(); } @@ -98905,9 +98992,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter768 : struct.success) + for (String _iter776 : struct.success) { - oprot.writeString(_iter768); + oprot.writeString(_iter776); } } } @@ -98922,13 +99009,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_functions_result BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list769 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list769.size); - for (int _i770 = 0; _i770 < _list769.size; ++_i770) + org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list777.size); + for (int _i778 = 0; _i778 < _list777.size; ++_i778) { - String _elem771; // optional - _elem771 = iprot.readString(); - struct.success.add(_elem771); + String _elem779; // optional + _elem779 = iprot.readString(); + struct.success.add(_elem779); } } struct.setSuccessIsSet(true); @@ -102271,13 +102358,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_names_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - for (int _i773 = 0; _i773 < _list772.size; ++_i773) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.success = new ArrayList(_list780.size); + for (int _i781 = 0; _i781 < _list780.size; ++_i781) { - String _elem774; // optional - _elem774 = iprot.readString(); - struct.success.add(_elem774); + String _elem782; // optional + _elem782 = iprot.readString(); + struct.success.add(_elem782); } iprot.readListEnd(); } @@ -102312,9 +102399,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_names_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter775 : struct.success) + for (String _iter783 : struct.success) { - oprot.writeString(_iter775); + oprot.writeString(_iter783); } oprot.writeListEnd(); } @@ -102353,9 +102440,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter776 : struct.success) + for (String _iter784 : struct.success) { - oprot.writeString(_iter776); + oprot.writeString(_iter784); } } } @@ -102370,13 +102457,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_role_names_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - for (int _i778 = 0; _i778 < _list777.size; ++_i778) + org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list785.size); + for (int _i786 = 0; _i786 < _list785.size; ++_i786) { - String _elem779; // optional - _elem779 = iprot.readString(); - struct.success.add(_elem779); + String _elem787; // optional + _elem787 = iprot.readString(); + struct.success.add(_elem787); } } struct.setSuccessIsSet(true); @@ -103136,30 +103223,1115 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 4: // GRANTOR - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.grantor = iprot.readString(); - struct.setGrantorIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 5: // GRANTOR_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.grantorType = PrincipalType.findByValue(iprot.readI32()); - struct.setGrantorTypeIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 6: // GRANT_OPTION - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.grant_option = iprot.readBool(); - struct.setGrant_optionIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; + case 4: // GRANTOR + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.grantor = iprot.readString(); + struct.setGrantorIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // GRANTOR_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); + struct.setGrantorTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // GRANT_OPTION + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.grant_option = iprot.readBool(); + struct.setGrant_optionIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.role_name != null) { + oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); + oprot.writeString(struct.role_name); + oprot.writeFieldEnd(); + } + if (struct.principal_name != null) { + oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); + oprot.writeString(struct.principal_name); + oprot.writeFieldEnd(); + } + if (struct.principal_type != null) { + oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC); + oprot.writeI32(struct.principal_type.getValue()); + oprot.writeFieldEnd(); + } + if (struct.grantor != null) { + oprot.writeFieldBegin(GRANTOR_FIELD_DESC); + oprot.writeString(struct.grantor); + oprot.writeFieldEnd(); + } + if (struct.grantorType != null) { + oprot.writeFieldBegin(GRANTOR_TYPE_FIELD_DESC); + oprot.writeI32(struct.grantorType.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); + oprot.writeBool(struct.grant_option); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class grant_role_argsTupleSchemeFactory implements SchemeFactory { + public grant_role_argsTupleScheme getScheme() { + return new grant_role_argsTupleScheme(); + } + } + + private static class grant_role_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRole_name()) { + optionals.set(0); + } + if (struct.isSetPrincipal_name()) { + optionals.set(1); + } + if (struct.isSetPrincipal_type()) { + optionals.set(2); + } + if (struct.isSetGrantor()) { + optionals.set(3); + } + if (struct.isSetGrantorType()) { + optionals.set(4); + } + if (struct.isSetGrant_option()) { + optionals.set(5); + } + oprot.writeBitSet(optionals, 6); + if (struct.isSetRole_name()) { + oprot.writeString(struct.role_name); + } + if (struct.isSetPrincipal_name()) { + oprot.writeString(struct.principal_name); + } + if (struct.isSetPrincipal_type()) { + oprot.writeI32(struct.principal_type.getValue()); + } + if (struct.isSetGrantor()) { + oprot.writeString(struct.grantor); + } + if (struct.isSetGrantorType()) { + oprot.writeI32(struct.grantorType.getValue()); + } + if (struct.isSetGrant_option()) { + oprot.writeBool(struct.grant_option); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(6); + if (incoming.get(0)) { + struct.role_name = iprot.readString(); + struct.setRole_nameIsSet(true); + } + if (incoming.get(1)) { + struct.principal_name = iprot.readString(); + struct.setPrincipal_nameIsSet(true); + } + if (incoming.get(2)) { + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipal_typeIsSet(true); + } + if (incoming.get(3)) { + struct.grantor = iprot.readString(); + struct.setGrantorIsSet(true); + } + if (incoming.get(4)) { + struct.grantorType = PrincipalType.findByValue(iprot.readI32()); + struct.setGrantorTypeIsSet(true); + } + if (incoming.get(5)) { + struct.grant_option = iprot.readBool(); + struct.setGrant_optionIsSet(true); + } + } + } + + } + + public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new grant_role_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new grant_role_resultTupleSchemeFactory()); + } + + private boolean success; // required + private MetaException o1; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_role_result.class, metaDataMap); + } + + public grant_role_result() { + } + + public grant_role_result( + boolean success, + MetaException o1) + { + this(); + this.success = success; + setSuccessIsSet(true); + this.o1 = o1; + } + + /** + * Performs a deep copy on other. + */ + public grant_role_result(grant_role_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + } + + public grant_role_result deepCopy() { + return new grant_role_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + this.o1 = null; + } + + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return Boolean.valueOf(isSuccess()); + + case O1: + return getO1(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case SUCCESS: + return isSetSuccess(); + case O1: + return isSetO1(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof grant_role_result) + return this.equals((grant_role_result)that); + return false; + } + + public boolean equals(grant_role_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true; + builder.append(present_success); + if (present_success) + builder.append(success); + + boolean present_o1 = true && (isSetO1()); + builder.append(present_o1); + if (present_o1) + builder.append(o1); + + return builder.toHashCode(); + } + + public int compareTo(grant_role_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + grant_role_result typedOther = (grant_role_result)other; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO1()).compareTo(typedOther.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, typedOther.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("grant_role_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class grant_role_resultStandardSchemeFactory implements SchemeFactory { + public grant_role_resultStandardScheme getScheme() { + return new grant_role_resultStandardScheme(); + } + } + + private static class grant_role_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class grant_role_resultTupleSchemeFactory implements SchemeFactory { + public grant_role_resultTupleScheme getScheme() { + return new grant_role_resultTupleScheme(); + } + } + + private static class grant_role_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + } + } + + } + + public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_args"); + + private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new revoke_role_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new revoke_role_argsTupleSchemeFactory()); + } + + private String role_name; // required + private String principal_name; // required + private PrincipalType principal_type; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + ROLE_NAME((short)1, "role_name"), + PRINCIPAL_NAME((short)2, "principal_name"), + /** + * + * @see PrincipalType + */ + PRINCIPAL_TYPE((short)3, "principal_type"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 1: // ROLE_NAME + return ROLE_NAME; + case 2: // PRINCIPAL_NAME + return PRINCIPAL_NAME; + case 3: // PRINCIPAL_TYPE + return PRINCIPAL_TYPE; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("role_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_args.class, metaDataMap); + } + + public revoke_role_args() { + } + + public revoke_role_args( + String role_name, + String principal_name, + PrincipalType principal_type) + { + this(); + this.role_name = role_name; + this.principal_name = principal_name; + this.principal_type = principal_type; + } + + /** + * Performs a deep copy on other. + */ + public revoke_role_args(revoke_role_args other) { + if (other.isSetRole_name()) { + this.role_name = other.role_name; + } + if (other.isSetPrincipal_name()) { + this.principal_name = other.principal_name; + } + if (other.isSetPrincipal_type()) { + this.principal_type = other.principal_type; + } + } + + public revoke_role_args deepCopy() { + return new revoke_role_args(this); + } + + @Override + public void clear() { + this.role_name = null; + this.principal_name = null; + this.principal_type = null; + } + + public String getRole_name() { + return this.role_name; + } + + public void setRole_name(String role_name) { + this.role_name = role_name; + } + + public void unsetRole_name() { + this.role_name = null; + } + + /** Returns true if field role_name is set (has been assigned a value) and false otherwise */ + public boolean isSetRole_name() { + return this.role_name != null; + } + + public void setRole_nameIsSet(boolean value) { + if (!value) { + this.role_name = null; + } + } + + public String getPrincipal_name() { + return this.principal_name; + } + + public void setPrincipal_name(String principal_name) { + this.principal_name = principal_name; + } + + public void unsetPrincipal_name() { + this.principal_name = null; + } + + /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPrincipal_name() { + return this.principal_name != null; + } + + public void setPrincipal_nameIsSet(boolean value) { + if (!value) { + this.principal_name = null; + } + } + + /** + * + * @see PrincipalType + */ + public PrincipalType getPrincipal_type() { + return this.principal_type; + } + + /** + * + * @see PrincipalType + */ + public void setPrincipal_type(PrincipalType principal_type) { + this.principal_type = principal_type; + } + + public void unsetPrincipal_type() { + this.principal_type = null; + } + + /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ + public boolean isSetPrincipal_type() { + return this.principal_type != null; + } + + public void setPrincipal_typeIsSet(boolean value) { + if (!value) { + this.principal_type = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ROLE_NAME: + if (value == null) { + unsetRole_name(); + } else { + setRole_name((String)value); + } + break; + + case PRINCIPAL_NAME: + if (value == null) { + unsetPrincipal_name(); + } else { + setPrincipal_name((String)value); + } + break; + + case PRINCIPAL_TYPE: + if (value == null) { + unsetPrincipal_type(); + } else { + setPrincipal_type((PrincipalType)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ROLE_NAME: + return getRole_name(); + + case PRINCIPAL_NAME: + return getPrincipal_name(); + + case PRINCIPAL_TYPE: + return getPrincipal_type(); + + } + throw new IllegalStateException(); + } + + /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ + public boolean isSet(_Fields field) { + if (field == null) { + throw new IllegalArgumentException(); + } + + switch (field) { + case ROLE_NAME: + return isSetRole_name(); + case PRINCIPAL_NAME: + return isSetPrincipal_name(); + case PRINCIPAL_TYPE: + return isSetPrincipal_type(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof revoke_role_args) + return this.equals((revoke_role_args)that); + return false; + } + + public boolean equals(revoke_role_args that) { + if (that == null) + return false; + + boolean this_present_role_name = true && this.isSetRole_name(); + boolean that_present_role_name = true && that.isSetRole_name(); + if (this_present_role_name || that_present_role_name) { + if (!(this_present_role_name && that_present_role_name)) + return false; + if (!this.role_name.equals(that.role_name)) + return false; + } + + boolean this_present_principal_name = true && this.isSetPrincipal_name(); + boolean that_present_principal_name = true && that.isSetPrincipal_name(); + if (this_present_principal_name || that_present_principal_name) { + if (!(this_present_principal_name && that_present_principal_name)) + return false; + if (!this.principal_name.equals(that.principal_name)) + return false; + } + + boolean this_present_principal_type = true && this.isSetPrincipal_type(); + boolean that_present_principal_type = true && that.isSetPrincipal_type(); + if (this_present_principal_type || that_present_principal_type) { + if (!(this_present_principal_type && that_present_principal_type)) + return false; + if (!this.principal_type.equals(that.principal_type)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_role_name = true && (isSetRole_name()); + builder.append(present_role_name); + if (present_role_name) + builder.append(role_name); + + boolean present_principal_name = true && (isSetPrincipal_name()); + builder.append(present_principal_name); + if (present_principal_name) + builder.append(principal_name); + + boolean present_principal_type = true && (isSetPrincipal_type()); + builder.append(present_principal_type); + if (present_principal_type) + builder.append(principal_type.getValue()); + + return builder.toHashCode(); + } + + public int compareTo(revoke_role_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + revoke_role_args typedOther = (revoke_role_args)other; + + lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRole_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrincipal_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrincipal_type()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("revoke_role_args("); + boolean first = true; + + sb.append("role_name:"); + if (this.role_name == null) { + sb.append("null"); + } else { + sb.append(this.role_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("principal_name:"); + if (this.principal_name == null) { + sb.append("null"); + } else { + sb.append(this.principal_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("principal_type:"); + if (this.principal_type == null) { + sb.append("null"); + } else { + sb.append(this.principal_type); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class revoke_role_argsStandardSchemeFactory implements SchemeFactory { + public revoke_role_argsStandardScheme getScheme() { + return new revoke_role_argsStandardScheme(); + } + } + + private static class revoke_role_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 1: // ROLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.role_name = iprot.readString(); + struct.setRole_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PRINCIPAL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.principal_name = iprot.readString(); + struct.setPrincipal_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PRINCIPAL_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.principal_type = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipal_typeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -103169,7 +104341,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -103188,35 +104360,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_args st oprot.writeI32(struct.principal_type.getValue()); oprot.writeFieldEnd(); } - if (struct.grantor != null) { - oprot.writeFieldBegin(GRANTOR_FIELD_DESC); - oprot.writeString(struct.grantor); - oprot.writeFieldEnd(); - } - if (struct.grantorType != null) { - oprot.writeFieldBegin(GRANTOR_TYPE_FIELD_DESC); - oprot.writeI32(struct.grantorType.getValue()); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); - oprot.writeBool(struct.grant_option); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class grant_role_argsTupleSchemeFactory implements SchemeFactory { - public grant_role_argsTupleScheme getScheme() { - return new grant_role_argsTupleScheme(); + private static class revoke_role_argsTupleSchemeFactory implements SchemeFactory { + public revoke_role_argsTupleScheme getScheme() { + return new revoke_role_argsTupleScheme(); } } - private static class grant_role_argsTupleScheme extends TupleScheme { + private static class revoke_role_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRole_name()) { @@ -103228,16 +104387,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_args str if (struct.isSetPrincipal_type()) { optionals.set(2); } - if (struct.isSetGrantor()) { - optionals.set(3); - } - if (struct.isSetGrantorType()) { - optionals.set(4); - } - if (struct.isSetGrant_option()) { - optionals.set(5); - } - oprot.writeBitSet(optionals, 6); + oprot.writeBitSet(optionals, 3); if (struct.isSetRole_name()) { oprot.writeString(struct.role_name); } @@ -103247,21 +104397,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_args str if (struct.isSetPrincipal_type()) { oprot.writeI32(struct.principal_type.getValue()); } - if (struct.isSetGrantor()) { - oprot.writeString(struct.grantor); - } - if (struct.isSetGrantorType()) { - oprot.writeI32(struct.grantorType.getValue()); - } - if (struct.isSetGrant_option()) { - oprot.writeBool(struct.grant_option); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(6); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.role_name = iprot.readString(); struct.setRole_nameIsSet(true); @@ -103274,33 +104415,21 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_args stru struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } - if (incoming.get(3)) { - struct.grantor = iprot.readString(); - struct.setGrantorIsSet(true); - } - if (incoming.get(4)) { - struct.grantorType = PrincipalType.findByValue(iprot.readI32()); - struct.setGrantorTypeIsSet(true); - } - if (incoming.get(5)) { - struct.grant_option = iprot.readBool(); - struct.setGrant_optionIsSet(true); - } } } } - public static class grant_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("grant_role_result"); + public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new grant_role_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new grant_role_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new revoke_role_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new revoke_role_resultTupleSchemeFactory()); } private boolean success; // required @@ -103378,13 +104507,13 @@ public String getFieldName() { tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(grant_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_result.class, metaDataMap); } - public grant_role_result() { + public revoke_role_result() { } - public grant_role_result( + public revoke_role_result( boolean success, MetaException o1) { @@ -103397,7 +104526,7 @@ public grant_role_result( /** * Performs a deep copy on other. */ - public grant_role_result(grant_role_result other) { + public revoke_role_result(revoke_role_result other) { __isset_bitfield = other.__isset_bitfield; this.success = other.success; if (other.isSetO1()) { @@ -103405,8 +104534,8 @@ public grant_role_result(grant_role_result other) { } } - public grant_role_result deepCopy() { - return new grant_role_result(this); + public revoke_role_result deepCopy() { + return new revoke_role_result(this); } @Override @@ -103513,12 +104642,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof grant_role_result) - return this.equals((grant_role_result)that); + if (that instanceof revoke_role_result) + return this.equals((revoke_role_result)that); return false; } - public boolean equals(grant_role_result that) { + public boolean equals(revoke_role_result that) { if (that == null) return false; @@ -103560,13 +104689,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(grant_role_result other) { + public int compareTo(revoke_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - grant_role_result typedOther = (grant_role_result)other; + revoke_role_result typedOther = (revoke_role_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -103605,7 +104734,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("grant_role_result("); + StringBuilder sb = new StringBuilder("revoke_role_result("); boolean first = true; sb.append("success:"); @@ -103646,15 +104775,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class grant_role_resultStandardSchemeFactory implements SchemeFactory { - public grant_role_resultStandardScheme getScheme() { - return new grant_role_resultStandardScheme(); + private static class revoke_role_resultStandardSchemeFactory implements SchemeFactory { + public revoke_role_resultStandardScheme getScheme() { + return new revoke_role_resultStandardScheme(); } } - private static class grant_role_resultStandardScheme extends StandardScheme { + private static class revoke_role_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -103690,7 +104819,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -103710,16 +104839,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, grant_role_result } - private static class grant_role_resultTupleSchemeFactory implements SchemeFactory { - public grant_role_resultTupleScheme getScheme() { - return new grant_role_resultTupleScheme(); + private static class revoke_role_resultTupleSchemeFactory implements SchemeFactory { + public revoke_role_resultTupleScheme getScheme() { + return new revoke_role_resultTupleScheme(); } } - private static class grant_role_resultTupleScheme extends TupleScheme { + private static class revoke_role_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -103738,7 +104867,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, grant_role_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -103755,32 +104884,29 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result st } - public static class revoke_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_args"); + public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_args"); - private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("role_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)3); + private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new revoke_role_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new revoke_role_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new list_roles_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new list_roles_argsTupleSchemeFactory()); } - private String role_name; // required private String principal_name; // required private PrincipalType principal_type; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - ROLE_NAME((short)1, "role_name"), - PRINCIPAL_NAME((short)2, "principal_name"), + PRINCIPAL_NAME((short)1, "principal_name"), /** * * @see PrincipalType */ - PRINCIPAL_TYPE((short)3, "principal_type"); + PRINCIPAL_TYPE((short)2, "principal_type"); private static final Map byName = new HashMap(); @@ -103795,11 +104921,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, grant_role_result st */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // ROLE_NAME - return ROLE_NAME; - case 2: // PRINCIPAL_NAME + case 1: // PRINCIPAL_NAME return PRINCIPAL_NAME; - case 3: // PRINCIPAL_TYPE + case 2: // PRINCIPAL_TYPE return PRINCIPAL_TYPE; default: return null; @@ -103844,26 +104968,22 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("role_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_args.class, metaDataMap); } - public revoke_role_args() { + public list_roles_args() { } - public revoke_role_args( - String role_name, + public list_roles_args( String principal_name, PrincipalType principal_type) { this(); - this.role_name = role_name; this.principal_name = principal_name; this.principal_type = principal_type; } @@ -103871,10 +104991,7 @@ public revoke_role_args( /** * Performs a deep copy on other. */ - public revoke_role_args(revoke_role_args other) { - if (other.isSetRole_name()) { - this.role_name = other.role_name; - } + public list_roles_args(list_roles_args other) { if (other.isSetPrincipal_name()) { this.principal_name = other.principal_name; } @@ -103883,40 +105000,16 @@ public revoke_role_args(revoke_role_args other) { } } - public revoke_role_args deepCopy() { - return new revoke_role_args(this); + public list_roles_args deepCopy() { + return new list_roles_args(this); } @Override public void clear() { - this.role_name = null; this.principal_name = null; this.principal_type = null; } - public String getRole_name() { - return this.role_name; - } - - public void setRole_name(String role_name) { - this.role_name = role_name; - } - - public void unsetRole_name() { - this.role_name = null; - } - - /** Returns true if field role_name is set (has been assigned a value) and false otherwise */ - public boolean isSetRole_name() { - return this.role_name != null; - } - - public void setRole_nameIsSet(boolean value) { - if (!value) { - this.role_name = null; - } - } - public String getPrincipal_name() { return this.principal_name; } @@ -103973,14 +105066,6 @@ public void setPrincipal_typeIsSet(boolean value) { public void setFieldValue(_Fields field, Object value) { switch (field) { - case ROLE_NAME: - if (value == null) { - unsetRole_name(); - } else { - setRole_name((String)value); - } - break; - case PRINCIPAL_NAME: if (value == null) { unsetPrincipal_name(); @@ -104002,9 +105087,6 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case ROLE_NAME: - return getRole_name(); - case PRINCIPAL_NAME: return getPrincipal_name(); @@ -104022,8 +105104,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case ROLE_NAME: - return isSetRole_name(); case PRINCIPAL_NAME: return isSetPrincipal_name(); case PRINCIPAL_TYPE: @@ -104036,24 +105116,15 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof revoke_role_args) - return this.equals((revoke_role_args)that); + if (that instanceof list_roles_args) + return this.equals((list_roles_args)that); return false; } - public boolean equals(revoke_role_args that) { + public boolean equals(list_roles_args that) { if (that == null) return false; - boolean this_present_role_name = true && this.isSetRole_name(); - boolean that_present_role_name = true && that.isSetRole_name(); - if (this_present_role_name || that_present_role_name) { - if (!(this_present_role_name && that_present_role_name)) - return false; - if (!this.role_name.equals(that.role_name)) - return false; - } - boolean this_present_principal_name = true && this.isSetPrincipal_name(); boolean that_present_principal_name = true && that.isSetPrincipal_name(); if (this_present_principal_name || that_present_principal_name) { @@ -104079,11 +105150,6 @@ public boolean equals(revoke_role_args that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_role_name = true && (isSetRole_name()); - builder.append(present_role_name); - if (present_role_name) - builder.append(role_name); - boolean present_principal_name = true && (isSetPrincipal_name()); builder.append(present_principal_name); if (present_principal_name) @@ -104097,24 +105163,14 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(revoke_role_args other) { + public int compareTo(list_roles_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - revoke_role_args typedOther = (revoke_role_args)other; + list_roles_args typedOther = (list_roles_args)other; - lastComparison = Boolean.valueOf(isSetRole_name()).compareTo(typedOther.isSetRole_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetRole_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.role_name, typedOther.role_name); - if (lastComparison != 0) { - return lastComparison; - } - } lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); if (lastComparison != 0) { return lastComparison; @@ -104152,17 +105208,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("revoke_role_args("); + StringBuilder sb = new StringBuilder("list_roles_args("); boolean first = true; - sb.append("role_name:"); - if (this.role_name == null) { - sb.append("null"); - } else { - sb.append(this.role_name); - } - first = false; - if (!first) sb.append(", "); sb.append("principal_name:"); if (this.principal_name == null) { sb.append("null"); @@ -104203,15 +105251,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class revoke_role_argsStandardSchemeFactory implements SchemeFactory { - public revoke_role_argsStandardScheme getScheme() { - return new revoke_role_argsStandardScheme(); + private static class list_roles_argsStandardSchemeFactory implements SchemeFactory { + public list_roles_argsStandardScheme getScheme() { + return new list_roles_argsStandardScheme(); } } - private static class revoke_role_argsStandardScheme extends StandardScheme { + private static class list_roles_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -104221,15 +105269,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args st break; } switch (schemeField.id) { - case 1: // ROLE_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.role_name = iprot.readString(); - struct.setRole_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL_NAME + case 1: // PRINCIPAL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { struct.principal_name = iprot.readString(); struct.setPrincipal_nameIsSet(true); @@ -104237,7 +105277,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // PRINCIPAL_TYPE + case 2: // PRINCIPAL_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); @@ -104254,15 +105294,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.role_name != null) { - oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); - oprot.writeString(struct.role_name); - oprot.writeFieldEnd(); - } if (struct.principal_name != null) { oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); oprot.writeString(struct.principal_name); @@ -104279,31 +105314,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_args s } - private static class revoke_role_argsTupleSchemeFactory implements SchemeFactory { - public revoke_role_argsTupleScheme getScheme() { - return new revoke_role_argsTupleScheme(); + private static class list_roles_argsTupleSchemeFactory implements SchemeFactory { + public list_roles_argsTupleScheme getScheme() { + return new list_roles_argsTupleScheme(); } } - private static class revoke_role_argsTupleScheme extends TupleScheme { + private static class list_roles_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetRole_name()) { - optionals.set(0); - } if (struct.isSetPrincipal_name()) { - optionals.set(1); + optionals.set(0); } if (struct.isSetPrincipal_type()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); - if (struct.isSetRole_name()) { - oprot.writeString(struct.role_name); + optionals.set(1); } + oprot.writeBitSet(optionals, 2); if (struct.isSetPrincipal_name()) { oprot.writeString(struct.principal_name); } @@ -104313,18 +105342,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_args st } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.role_name = iprot.readString(); - struct.setRole_nameIsSet(true); - } - if (incoming.get(1)) { struct.principal_name = iprot.readString(); struct.setPrincipal_nameIsSet(true); } - if (incoming.get(2)) { + if (incoming.get(1)) { struct.principal_type = PrincipalType.findByValue(iprot.readI32()); struct.setPrincipal_typeIsSet(true); } @@ -104333,19 +105358,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_args str } - public static class revoke_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("revoke_role_result"); + public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new revoke_role_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new revoke_role_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new list_roles_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new list_roles_resultTupleSchemeFactory()); } - private boolean success; // required + private List success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -104410,74 +105435,92 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Role.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(revoke_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_result.class, metaDataMap); } - public revoke_role_result() { + public list_roles_result() { } - public revoke_role_result( - boolean success, + public list_roles_result( + List success, MetaException o1) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; } /** * Performs a deep copy on other. */ - public revoke_role_result(revoke_role_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public list_roles_result(list_roles_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(); + for (Role other_element : other.success) { + __this__success.add(new Role(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public revoke_role_result deepCopy() { - return new revoke_role_result(this); + public list_roles_result deepCopy() { + return new list_roles_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Role elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public MetaException getO1() { @@ -104509,7 +105552,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -104527,7 +105570,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return Boolean.valueOf(isSuccess()); + return getSuccess(); case O1: return getO1(); @@ -104555,21 +105598,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof revoke_role_result) - return this.equals((revoke_role_result)that); + if (that instanceof list_roles_result) + return this.equals((list_roles_result)that); return false; } - public boolean equals(revoke_role_result that) { + public boolean equals(list_roles_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -104589,7 +105632,7 @@ public boolean equals(revoke_role_result that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); builder.append(present_success); if (present_success) builder.append(success); @@ -104602,13 +105645,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(revoke_role_result other) { + public int compareTo(list_roles_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - revoke_role_result typedOther = (revoke_role_result)other; + list_roles_result typedOther = (list_roles_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -104647,11 +105690,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("revoke_role_result("); + StringBuilder sb = new StringBuilder("list_roles_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -104680,23 +105727,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class revoke_role_resultStandardSchemeFactory implements SchemeFactory { - public revoke_role_resultStandardScheme getScheme() { - return new revoke_role_resultStandardScheme(); + private static class list_roles_resultStandardSchemeFactory implements SchemeFactory { + public list_roles_resultStandardScheme getScheme() { + return new list_roles_resultStandardScheme(); } } - private static class revoke_role_resultStandardScheme extends StandardScheme { + private static class list_roles_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -104707,8 +105752,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_result } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + for (int _i789 = 0; _i789 < _list788.size; ++_i789) + { + Role _elem790; // optional + _elem790 = new Role(); + _elem790.read(iprot); + struct.success.add(_elem790); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -104732,13 +105788,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, revoke_role_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Role _iter791 : struct.success) + { + _iter791.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -104752,16 +105815,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, revoke_role_result } - private static class revoke_role_resultTupleSchemeFactory implements SchemeFactory { - public revoke_role_resultTupleScheme getScheme() { - return new revoke_role_resultTupleScheme(); + private static class list_roles_resultTupleSchemeFactory implements SchemeFactory { + public list_roles_resultTupleScheme getScheme() { + return new list_roles_resultTupleScheme(); } } - private static class revoke_role_resultTupleScheme extends TupleScheme { + private static class list_roles_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -104772,7 +105835,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_result } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Role _iter792 : struct.success) + { + _iter792.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -104780,11 +105849,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, revoke_role_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list793.size); + for (int _i794 = 0; _i794 < _list793.size; ++_i794) + { + Role _elem795; // optional + _elem795 = new Role(); + _elem795.read(iprot); + struct.success.add(_elem795); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -104797,29 +105876,22 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result s } - public static class list_roles_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_args"); + public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_args"); - private static final org.apache.thrift.protocol.TField PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("principal_type", org.apache.thrift.protocol.TType.I32, (short)2); + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new list_roles_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new list_roles_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_principals_in_role_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_principals_in_role_argsTupleSchemeFactory()); } - private String principal_name; // required - private PrincipalType principal_type; // required + private GetPrincipalsInRoleRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { - PRINCIPAL_NAME((short)1, "principal_name"), - /** - * - * @see PrincipalType - */ - PRINCIPAL_TYPE((short)2, "principal_type"); + REQUEST((short)1, "request"); private static final Map byName = new HashMap(); @@ -104834,10 +105906,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, revoke_role_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // PRINCIPAL_NAME - return PRINCIPAL_NAME; - case 2: // PRINCIPAL_TYPE - return PRINCIPAL_TYPE; + case 1: // REQUEST + return REQUEST; default: return null; } @@ -104881,117 +105951,70 @@ public String getFieldName() { public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.PRINCIPAL_NAME, new org.apache.thrift.meta_data.FieldMetaData("principal_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("principal_type", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPrincipalsInRoleRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_principals_in_role_args.class, metaDataMap); } - public list_roles_args() { + public get_principals_in_role_args() { } - public list_roles_args( - String principal_name, - PrincipalType principal_type) + public get_principals_in_role_args( + GetPrincipalsInRoleRequest request) { this(); - this.principal_name = principal_name; - this.principal_type = principal_type; + this.request = request; } /** * Performs a deep copy on other. */ - public list_roles_args(list_roles_args other) { - if (other.isSetPrincipal_name()) { - this.principal_name = other.principal_name; - } - if (other.isSetPrincipal_type()) { - this.principal_type = other.principal_type; + public get_principals_in_role_args(get_principals_in_role_args other) { + if (other.isSetRequest()) { + this.request = new GetPrincipalsInRoleRequest(other.request); } } - public list_roles_args deepCopy() { - return new list_roles_args(this); + public get_principals_in_role_args deepCopy() { + return new get_principals_in_role_args(this); } @Override public void clear() { - this.principal_name = null; - this.principal_type = null; - } - - public String getPrincipal_name() { - return this.principal_name; - } - - public void setPrincipal_name(String principal_name) { - this.principal_name = principal_name; - } - - public void unsetPrincipal_name() { - this.principal_name = null; - } - - /** Returns true if field principal_name is set (has been assigned a value) and false otherwise */ - public boolean isSetPrincipal_name() { - return this.principal_name != null; - } - - public void setPrincipal_nameIsSet(boolean value) { - if (!value) { - this.principal_name = null; - } + this.request = null; } - /** - * - * @see PrincipalType - */ - public PrincipalType getPrincipal_type() { - return this.principal_type; + public GetPrincipalsInRoleRequest getRequest() { + return this.request; } - /** - * - * @see PrincipalType - */ - public void setPrincipal_type(PrincipalType principal_type) { - this.principal_type = principal_type; + public void setRequest(GetPrincipalsInRoleRequest request) { + this.request = request; } - public void unsetPrincipal_type() { - this.principal_type = null; + public void unsetRequest() { + this.request = null; } - /** Returns true if field principal_type is set (has been assigned a value) and false otherwise */ - public boolean isSetPrincipal_type() { - return this.principal_type != null; + /** Returns true if field request is set (has been assigned a value) and false otherwise */ + public boolean isSetRequest() { + return this.request != null; } - public void setPrincipal_typeIsSet(boolean value) { + public void setRequestIsSet(boolean value) { if (!value) { - this.principal_type = null; + this.request = null; } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case PRINCIPAL_NAME: - if (value == null) { - unsetPrincipal_name(); - } else { - setPrincipal_name((String)value); - } - break; - - case PRINCIPAL_TYPE: + case REQUEST: if (value == null) { - unsetPrincipal_type(); + unsetRequest(); } else { - setPrincipal_type((PrincipalType)value); + setRequest((GetPrincipalsInRoleRequest)value); } break; @@ -105000,11 +106023,8 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case PRINCIPAL_NAME: - return getPrincipal_name(); - - case PRINCIPAL_TYPE: - return getPrincipal_type(); + case REQUEST: + return getRequest(); } throw new IllegalStateException(); @@ -105017,10 +106037,8 @@ public boolean isSet(_Fields field) { } switch (field) { - case PRINCIPAL_NAME: - return isSetPrincipal_name(); - case PRINCIPAL_TYPE: - return isSetPrincipal_type(); + case REQUEST: + return isSetRequest(); } throw new IllegalStateException(); } @@ -105029,30 +106047,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof list_roles_args) - return this.equals((list_roles_args)that); + if (that instanceof get_principals_in_role_args) + return this.equals((get_principals_in_role_args)that); return false; } - public boolean equals(list_roles_args that) { + public boolean equals(get_principals_in_role_args that) { if (that == null) return false; - boolean this_present_principal_name = true && this.isSetPrincipal_name(); - boolean that_present_principal_name = true && that.isSetPrincipal_name(); - if (this_present_principal_name || that_present_principal_name) { - if (!(this_present_principal_name && that_present_principal_name)) - return false; - if (!this.principal_name.equals(that.principal_name)) - return false; - } - - boolean this_present_principal_type = true && this.isSetPrincipal_type(); - boolean that_present_principal_type = true && that.isSetPrincipal_type(); - if (this_present_principal_type || that_present_principal_type) { - if (!(this_present_principal_type && that_present_principal_type)) + boolean this_present_request = true && this.isSetRequest(); + boolean that_present_request = true && that.isSetRequest(); + if (this_present_request || that_present_request) { + if (!(this_present_request && that_present_request)) return false; - if (!this.principal_type.equals(that.principal_type)) + if (!this.request.equals(that.request)) return false; } @@ -105063,43 +106072,28 @@ public boolean equals(list_roles_args that) { public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); - boolean present_principal_name = true && (isSetPrincipal_name()); - builder.append(present_principal_name); - if (present_principal_name) - builder.append(principal_name); - - boolean present_principal_type = true && (isSetPrincipal_type()); - builder.append(present_principal_type); - if (present_principal_type) - builder.append(principal_type.getValue()); + boolean present_request = true && (isSetRequest()); + builder.append(present_request); + if (present_request) + builder.append(request); return builder.toHashCode(); } - public int compareTo(list_roles_args other) { + public int compareTo(get_principals_in_role_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - list_roles_args typedOther = (list_roles_args)other; + get_principals_in_role_args typedOther = (get_principals_in_role_args)other; - lastComparison = Boolean.valueOf(isSetPrincipal_name()).compareTo(typedOther.isSetPrincipal_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetPrincipal_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_name, typedOther.principal_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetPrincipal_type()).compareTo(typedOther.isSetPrincipal_type()); + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { return lastComparison; } - if (isSetPrincipal_type()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.principal_type, typedOther.principal_type); + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); if (lastComparison != 0) { return lastComparison; } @@ -105121,22 +106115,14 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("list_roles_args("); + StringBuilder sb = new StringBuilder("get_principals_in_role_args("); boolean first = true; - sb.append("principal_name:"); - if (this.principal_name == null) { - sb.append("null"); - } else { - sb.append(this.principal_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("principal_type:"); - if (this.principal_type == null) { + sb.append("request:"); + if (this.request == null) { sb.append("null"); } else { - sb.append(this.principal_type); + sb.append(this.request); } first = false; sb.append(")"); @@ -105146,6 +106132,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (request != null) { + request.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -105164,15 +106153,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class list_roles_argsStandardSchemeFactory implements SchemeFactory { - public list_roles_argsStandardScheme getScheme() { - return new list_roles_argsStandardScheme(); + private static class get_principals_in_role_argsStandardSchemeFactory implements SchemeFactory { + public get_principals_in_role_argsStandardScheme getScheme() { + return new get_principals_in_role_argsStandardScheme(); } } - private static class list_roles_argsStandardScheme extends StandardScheme { + private static class get_principals_in_role_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_role_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105182,18 +106171,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args str break; } switch (schemeField.id) { - case 1: // PRINCIPAL_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.principal_name = iprot.readString(); - struct.setPrincipal_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // PRINCIPAL_TYPE - if (schemeField.type == org.apache.thrift.protocol.TType.I32) { - struct.principal_type = PrincipalType.findByValue(iprot.readI32()); - struct.setPrincipal_typeIsSet(true); + case 1: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new GetPrincipalsInRoleRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -105207,18 +106189,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_args str struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_role_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.principal_name != null) { - oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); - oprot.writeString(struct.principal_name); - oprot.writeFieldEnd(); - } - if (struct.principal_type != null) { - oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC); - oprot.writeI32(struct.principal_type.getValue()); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -105227,63 +106204,54 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_args st } - private static class list_roles_argsTupleSchemeFactory implements SchemeFactory { - public list_roles_argsTupleScheme getScheme() { - return new list_roles_argsTupleScheme(); + private static class get_principals_in_role_argsTupleSchemeFactory implements SchemeFactory { + public get_principals_in_role_argsTupleScheme getScheme() { + return new get_principals_in_role_argsTupleScheme(); } } - private static class list_roles_argsTupleScheme extends TupleScheme { + private static class get_principals_in_role_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetPrincipal_name()) { + if (struct.isSetRequest()) { optionals.set(0); } - if (struct.isSetPrincipal_type()) { - optionals.set(1); - } - oprot.writeBitSet(optionals, 2); - if (struct.isSetPrincipal_name()) { - oprot.writeString(struct.principal_name); - } - if (struct.isSetPrincipal_type()) { - oprot.writeI32(struct.principal_type.getValue()); + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.principal_name = iprot.readString(); - struct.setPrincipal_nameIsSet(true); - } - if (incoming.get(1)) { - struct.principal_type = PrincipalType.findByValue(iprot.readI32()); - struct.setPrincipal_typeIsSet(true); + struct.request = new GetPrincipalsInRoleRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); } } } } - public static class list_roles_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("list_roles_result"); + public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new list_roles_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new list_roles_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_principals_in_role_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_principals_in_role_resultTupleSchemeFactory()); } - private List success; // required + private GetPrincipalsInRoleResponse success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -105352,19 +106320,18 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Role.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPrincipalsInRoleResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(list_roles_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_principals_in_role_result.class, metaDataMap); } - public list_roles_result() { + public get_principals_in_role_result() { } - public list_roles_result( - List success, + public get_principals_in_role_result( + GetPrincipalsInRoleResponse success, MetaException o1) { this(); @@ -105375,21 +106342,17 @@ public list_roles_result( /** * Performs a deep copy on other. */ - public list_roles_result(list_roles_result other) { + public get_principals_in_role_result(get_principals_in_role_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(); - for (Role other_element : other.success) { - __this__success.add(new Role(other_element)); - } - this.success = __this__success; + this.success = new GetPrincipalsInRoleResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public list_roles_result deepCopy() { - return new list_roles_result(this); + public get_principals_in_role_result deepCopy() { + return new get_principals_in_role_result(this); } @Override @@ -105398,26 +106361,11 @@ public void clear() { this.o1 = null; } - public int getSuccessSize() { - return (this.success == null) ? 0 : this.success.size(); - } - - public java.util.Iterator getSuccessIterator() { - return (this.success == null) ? null : this.success.iterator(); - } - - public void addToSuccess(Role elem) { - if (this.success == null) { - this.success = new ArrayList(); - } - this.success.add(elem); - } - - public List getSuccess() { + public GetPrincipalsInRoleResponse getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(GetPrincipalsInRoleResponse success) { this.success = success; } @@ -105465,7 +106413,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetPrincipalsInRoleResponse)value); } break; @@ -105511,12 +106459,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof list_roles_result) - return this.equals((list_roles_result)that); + if (that instanceof get_principals_in_role_result) + return this.equals((get_principals_in_role_result)that); return false; } - public boolean equals(list_roles_result that) { + public boolean equals(get_principals_in_role_result that) { if (that == null) return false; @@ -105558,13 +106506,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(list_roles_result other) { + public int compareTo(get_principals_in_role_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - list_roles_result typedOther = (list_roles_result)other; + get_principals_in_role_result typedOther = (get_principals_in_role_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -105603,7 +106551,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("list_roles_result("); + StringBuilder sb = new StringBuilder("get_principals_in_role_result("); boolean first = true; sb.append("success:"); @@ -105628,6 +106576,9 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity + if (success != null) { + success.validate(); + } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -105646,15 +106597,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class list_roles_resultStandardSchemeFactory implements SchemeFactory { - public list_roles_resultStandardScheme getScheme() { - return new list_roles_resultStandardScheme(); + private static class get_principals_in_role_resultStandardSchemeFactory implements SchemeFactory { + public get_principals_in_role_resultStandardScheme getScheme() { + return new get_principals_in_role_resultStandardScheme(); } } - private static class list_roles_resultStandardScheme extends StandardScheme { + private static class get_principals_in_role_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_role_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105665,19 +106616,9 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { - { - org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - for (int _i781 = 0; _i781 < _list780.size; ++_i781) - { - Role _elem782; // optional - _elem782 = new Role(); - _elem782.read(iprot); - struct.success.add(_elem782); - } - iprot.readListEnd(); - } + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new GetPrincipalsInRoleResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -105701,20 +106642,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_role_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter783 : struct.success) - { - _iter783.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -105728,16 +106662,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result } - private static class list_roles_resultTupleSchemeFactory implements SchemeFactory { - public list_roles_resultTupleScheme getScheme() { - return new list_roles_resultTupleScheme(); + private static class get_principals_in_role_resultTupleSchemeFactory implements SchemeFactory { + public get_principals_in_role_resultTupleScheme getScheme() { + return new get_principals_in_role_resultTupleScheme(); } } - private static class list_roles_resultTupleScheme extends TupleScheme { + private static class get_principals_in_role_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -105748,13 +106682,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s } oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - { - oprot.writeI32(struct.success.size()); - for (Role _iter784 : struct.success) - { - _iter784.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -105762,21 +106690,12 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - { - org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - for (int _i786 = 0; _i786 < _list785.size; ++_i786) - { - Role _elem787; // optional - _elem787 = new Role(); - _elem787.read(iprot); - struct.success.add(_elem787); - } - } + struct.success = new GetPrincipalsInRoleResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -105789,18 +106708,18 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st } - public static class get_principals_in_role_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_args"); + public static class get_role_grants_for_principal_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_principals_in_role_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_principals_in_role_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_role_grants_for_principal_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_role_grants_for_principal_argsTupleSchemeFactory()); } - private GetPrincipalsInRoleRequest request; // required + private GetRoleGrantsForPrincipalRequest request; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { @@ -105865,16 +106784,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPrincipalsInRoleRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetRoleGrantsForPrincipalRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_principals_in_role_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_role_grants_for_principal_args.class, metaDataMap); } - public get_principals_in_role_args() { + public get_role_grants_for_principal_args() { } - public get_principals_in_role_args( - GetPrincipalsInRoleRequest request) + public get_role_grants_for_principal_args( + GetRoleGrantsForPrincipalRequest request) { this(); this.request = request; @@ -105883,14 +106802,14 @@ public get_principals_in_role_args( /** * Performs a deep copy on other. */ - public get_principals_in_role_args(get_principals_in_role_args other) { + public get_role_grants_for_principal_args(get_role_grants_for_principal_args other) { if (other.isSetRequest()) { - this.request = new GetPrincipalsInRoleRequest(other.request); + this.request = new GetRoleGrantsForPrincipalRequest(other.request); } } - public get_principals_in_role_args deepCopy() { - return new get_principals_in_role_args(this); + public get_role_grants_for_principal_args deepCopy() { + return new get_role_grants_for_principal_args(this); } @Override @@ -105898,11 +106817,11 @@ public void clear() { this.request = null; } - public GetPrincipalsInRoleRequest getRequest() { + public GetRoleGrantsForPrincipalRequest getRequest() { return this.request; } - public void setRequest(GetPrincipalsInRoleRequest request) { + public void setRequest(GetRoleGrantsForPrincipalRequest request) { this.request = request; } @@ -105927,7 +106846,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((GetPrincipalsInRoleRequest)value); + setRequest((GetRoleGrantsForPrincipalRequest)value); } break; @@ -105960,12 +106879,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_principals_in_role_args) - return this.equals((get_principals_in_role_args)that); + if (that instanceof get_role_grants_for_principal_args) + return this.equals((get_role_grants_for_principal_args)that); return false; } - public boolean equals(get_principals_in_role_args that) { + public boolean equals(get_role_grants_for_principal_args that) { if (that == null) return false; @@ -105993,13 +106912,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_principals_in_role_args other) { + public int compareTo(get_role_grants_for_principal_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_principals_in_role_args typedOther = (get_principals_in_role_args)other; + get_role_grants_for_principal_args typedOther = (get_role_grants_for_principal_args)other; lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { @@ -106028,7 +106947,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_principals_in_role_args("); + StringBuilder sb = new StringBuilder("get_role_grants_for_principal_args("); boolean first = true; sb.append("request:"); @@ -106066,15 +106985,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_principals_in_role_argsStandardSchemeFactory implements SchemeFactory { - public get_principals_in_role_argsStandardScheme getScheme() { - return new get_principals_in_role_argsStandardScheme(); + private static class get_role_grants_for_principal_argsStandardSchemeFactory implements SchemeFactory { + public get_role_grants_for_principal_argsStandardScheme getScheme() { + return new get_role_grants_for_principal_argsStandardScheme(); } } - private static class get_principals_in_role_argsStandardScheme extends StandardScheme { + private static class get_role_grants_for_principal_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_role_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_grants_for_principal_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106086,7 +107005,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_r switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new GetPrincipalsInRoleRequest(); + struct.request = new GetRoleGrantsForPrincipalRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -106102,7 +107021,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_grants_for_principal_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -106117,16 +107036,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_ } - private static class get_principals_in_role_argsTupleSchemeFactory implements SchemeFactory { - public get_principals_in_role_argsTupleScheme getScheme() { - return new get_principals_in_role_argsTupleScheme(); + private static class get_role_grants_for_principal_argsTupleSchemeFactory implements SchemeFactory { + public get_role_grants_for_principal_argsTupleScheme getScheme() { + return new get_role_grants_for_principal_argsTupleScheme(); } } - private static class get_principals_in_role_argsTupleScheme extends TupleScheme { + private static class get_role_grants_for_principal_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_principal_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -106139,11 +107058,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_principal_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new GetPrincipalsInRoleRequest(); + struct.request = new GetRoleGrantsForPrincipalRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -106152,19 +107071,19 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_ro } - public static class get_principals_in_role_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_principals_in_role_result"); + public static class get_role_grants_for_principal_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("get_role_grants_for_principal_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_principals_in_role_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_principals_in_role_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_role_grants_for_principal_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_role_grants_for_principal_resultTupleSchemeFactory()); } - private GetPrincipalsInRoleResponse success; // required + private GetRoleGrantsForPrincipalResponse success; // required private MetaException o1; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ @@ -106233,18 +107152,18 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetPrincipalsInRoleResponse.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, GetRoleGrantsForPrincipalResponse.class))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_principals_in_role_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_role_grants_for_principal_result.class, metaDataMap); } - public get_principals_in_role_result() { + public get_role_grants_for_principal_result() { } - public get_principals_in_role_result( - GetPrincipalsInRoleResponse success, + public get_role_grants_for_principal_result( + GetRoleGrantsForPrincipalResponse success, MetaException o1) { this(); @@ -106255,17 +107174,17 @@ public get_principals_in_role_result( /** * Performs a deep copy on other. */ - public get_principals_in_role_result(get_principals_in_role_result other) { + public get_role_grants_for_principal_result(get_role_grants_for_principal_result other) { if (other.isSetSuccess()) { - this.success = new GetPrincipalsInRoleResponse(other.success); + this.success = new GetRoleGrantsForPrincipalResponse(other.success); } if (other.isSetO1()) { this.o1 = new MetaException(other.o1); } } - public get_principals_in_role_result deepCopy() { - return new get_principals_in_role_result(this); + public get_role_grants_for_principal_result deepCopy() { + return new get_role_grants_for_principal_result(this); } @Override @@ -106274,11 +107193,11 @@ public void clear() { this.o1 = null; } - public GetPrincipalsInRoleResponse getSuccess() { + public GetRoleGrantsForPrincipalResponse getSuccess() { return this.success; } - public void setSuccess(GetPrincipalsInRoleResponse success) { + public void setSuccess(GetRoleGrantsForPrincipalResponse success) { this.success = success; } @@ -106326,7 +107245,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((GetPrincipalsInRoleResponse)value); + setSuccess((GetRoleGrantsForPrincipalResponse)value); } break; @@ -106372,12 +107291,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_principals_in_role_result) - return this.equals((get_principals_in_role_result)that); + if (that instanceof get_role_grants_for_principal_result) + return this.equals((get_role_grants_for_principal_result)that); return false; } - public boolean equals(get_principals_in_role_result that) { + public boolean equals(get_role_grants_for_principal_result that) { if (that == null) return false; @@ -106419,13 +107338,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_principals_in_role_result other) { + public int compareTo(get_role_grants_for_principal_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_principals_in_role_result typedOther = (get_principals_in_role_result)other; + get_role_grants_for_principal_result typedOther = (get_role_grants_for_principal_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -106464,7 +107383,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_principals_in_role_result("); + StringBuilder sb = new StringBuilder("get_role_grants_for_principal_result("); boolean first = true; sb.append("success:"); @@ -106510,15 +107429,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_principals_in_role_resultStandardSchemeFactory implements SchemeFactory { - public get_principals_in_role_resultStandardScheme getScheme() { - return new get_principals_in_role_resultStandardScheme(); + private static class get_role_grants_for_principal_resultStandardSchemeFactory implements SchemeFactory { + public get_role_grants_for_principal_resultStandardScheme getScheme() { + return new get_role_grants_for_principal_resultStandardScheme(); } } - private static class get_principals_in_role_resultStandardScheme extends StandardScheme { + private static class get_role_grants_for_principal_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_role_grants_for_principal_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106530,7 +107449,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_r switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new GetPrincipalsInRoleResponse(); + struct.success = new GetRoleGrantsForPrincipalResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -106555,7 +107474,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_principals_in_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_role_grants_for_principal_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -106575,16 +107494,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_principals_in_ } - private static class get_principals_in_role_resultTupleSchemeFactory implements SchemeFactory { - public get_principals_in_role_resultTupleScheme getScheme() { - return new get_principals_in_role_resultTupleScheme(); + private static class get_role_grants_for_principal_resultTupleSchemeFactory implements SchemeFactory { + public get_role_grants_for_principal_resultTupleScheme getScheme() { + return new get_role_grants_for_principal_resultTupleScheme(); } } - private static class get_principals_in_role_resultTupleScheme extends TupleScheme { + private static class get_role_grants_for_principal_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_principal_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -106603,11 +107522,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_principals_in_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_principals_in_role_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_role_grants_for_principal_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new GetPrincipalsInRoleResponse(); + struct.success = new GetRoleGrantsForPrincipalResponse(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -107118,13 +108037,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_privilege_set_a case 3: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list788.size); - for (int _i789 = 0; _i789 < _list788.size; ++_i789) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list796.size); + for (int _i797 = 0; _i797 < _list796.size; ++_i797) { - String _elem790; // optional - _elem790 = iprot.readString(); - struct.group_names.add(_elem790); + String _elem798; // optional + _elem798 = iprot.readString(); + struct.group_names.add(_elem798); } iprot.readListEnd(); } @@ -107160,9 +108079,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_privilege_set_ oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter791 : struct.group_names) + for (String _iter799 : struct.group_names) { - oprot.writeString(_iter791); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -107205,9 +108124,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_a if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter792 : struct.group_names) + for (String _iter800 : struct.group_names) { - oprot.writeString(_iter792); + oprot.writeString(_iter800); } } } @@ -107228,13 +108147,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list793.size); - for (int _i794 = 0; _i794 < _list793.size; ++_i794) + org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list801.size); + for (int _i802 = 0; _i802 < _list801.size; ++_i802) { - String _elem795; // optional - _elem795 = iprot.readString(); - struct.group_names.add(_elem795); + String _elem803; // optional + _elem803 = iprot.readString(); + struct.group_names.add(_elem803); } } struct.setGroup_namesIsSet(true); @@ -108692,14 +109611,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_privileges_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); - struct.success = new ArrayList(_list796.size); - for (int _i797 = 0; _i797 < _list796.size; ++_i797) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + for (int _i805 = 0; _i805 < _list804.size; ++_i805) { - HiveObjectPrivilege _elem798; // optional - _elem798 = new HiveObjectPrivilege(); - _elem798.read(iprot); - struct.success.add(_elem798); + HiveObjectPrivilege _elem806; // optional + _elem806 = new HiveObjectPrivilege(); + _elem806.read(iprot); + struct.success.add(_elem806); } iprot.readListEnd(); } @@ -108734,9 +109653,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_privileges_re oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (HiveObjectPrivilege _iter799 : struct.success) + for (HiveObjectPrivilege _iter807 : struct.success) { - _iter799.write(oprot); + _iter807.write(oprot); } oprot.writeListEnd(); } @@ -108775,9 +109694,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter800 : struct.success) + for (HiveObjectPrivilege _iter808 : struct.success) { - _iter800.write(oprot); + _iter808.write(oprot); } } } @@ -108792,14 +109711,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_privileges_resu BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list801.size); - for (int _i802 = 0; _i802 < _list801.size; ++_i802) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + for (int _i810 = 0; _i810 < _list809.size; ++_i810) { - HiveObjectPrivilege _elem803; // optional - _elem803 = new HiveObjectPrivilege(); - _elem803.read(iprot); - struct.success.add(_elem803); + HiveObjectPrivilege _elem811; // optional + _elem811 = new HiveObjectPrivilege(); + _elem811.read(iprot); + struct.success.add(_elem811); } } struct.setSuccessIsSet(true); @@ -110872,13 +111791,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_args struct case 2: // GROUP_NAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list804.size); - for (int _i805 = 0; _i805 < _list804.size; ++_i805) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list812.size); + for (int _i813 = 0; _i813 < _list812.size; ++_i813) { - String _elem806; // optional - _elem806 = iprot.readString(); - struct.group_names.add(_elem806); + String _elem814; // optional + _elem814 = iprot.readString(); + struct.group_names.add(_elem814); } iprot.readListEnd(); } @@ -110909,9 +111828,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_args struc oprot.writeFieldBegin(GROUP_NAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.group_names.size())); - for (String _iter807 : struct.group_names) + for (String _iter815 : struct.group_names) { - oprot.writeString(_iter807); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -110948,9 +111867,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct if (struct.isSetGroup_names()) { { oprot.writeI32(struct.group_names.size()); - for (String _iter808 : struct.group_names) + for (String _iter816 : struct.group_names) { - oprot.writeString(_iter808); + oprot.writeString(_iter816); } } } @@ -110966,13 +111885,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list809.size); - for (int _i810 = 0; _i810 < _list809.size; ++_i810) + org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list817.size); + for (int _i818 = 0; _i818 < _list817.size; ++_i818) { - String _elem811; // optional - _elem811 = iprot.readString(); - struct.group_names.add(_elem811); + String _elem819; // optional + _elem819 = iprot.readString(); + struct.group_names.add(_elem819); } } struct.setGroup_namesIsSet(true); @@ -111378,13 +112297,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, set_ugi_result stru case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); - struct.success = new ArrayList(_list812.size); - for (int _i813 = 0; _i813 < _list812.size; ++_i813) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.success = new ArrayList(_list820.size); + for (int _i821 = 0; _i821 < _list820.size; ++_i821) { - String _elem814; // optional - _elem814 = iprot.readString(); - struct.success.add(_elem814); + String _elem822; // optional + _elem822 = iprot.readString(); + struct.success.add(_elem822); } iprot.readListEnd(); } @@ -111419,9 +112338,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, set_ugi_result str oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter815 : struct.success) + for (String _iter823 : struct.success) { - oprot.writeString(_iter815); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -111460,9 +112379,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter816 : struct.success) + for (String _iter824 : struct.success) { - oprot.writeString(_iter816); + oprot.writeString(_iter824); } } } @@ -111477,13 +112396,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_result struc BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list817.size); - for (int _i818 = 0; _i818 < _list817.size; ++_i818) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list825.size); + for (int _i826 = 0; _i826 < _list825.size; ++_i826) { - String _elem819; // optional - _elem819 = iprot.readString(); - struct.success.add(_elem819); + String _elem827; // optional + _elem827 = iprot.readString(); + struct.success.add(_elem827); } } struct.setSuccessIsSet(true); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 32ce246..b01805e 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -101,6 +101,7 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function revoke_role($role_name, $principal_name, $principal_type); public function list_roles($principal_name, $principal_type); public function get_principals_in_role(\metastore\GetPrincipalsInRoleRequest $request); + public function get_role_grants_for_principal(\metastore\GetRoleGrantsForPrincipalRequest $request); public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names); public function list_privileges($principal_name, $principal_type, \metastore\HiveObjectRef $hiveObject); public function grant_privileges(\metastore\PrivilegeBag $privileges); @@ -5128,6 +5129,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_principals_in_role failed: unknown result"); } + public function get_role_grants_for_principal(\metastore\GetRoleGrantsForPrincipalRequest $request) + { + $this->send_get_role_grants_for_principal($request); + return $this->recv_get_role_grants_for_principal(); + } + + public function send_get_role_grants_for_principal(\metastore\GetRoleGrantsForPrincipalRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_role_grants_for_principal_args(); + $args->request = $request; + $bin_accel = ($this->output_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_role_grants_for_principal', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_role_grants_for_principal', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_role_grants_for_principal() + { + $bin_accel = ($this->input_ instanceof TProtocol::$TBINARYPROTOCOLACCELERATED) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_role_grants_for_principal_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_role_grants_for_principal_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + throw new \Exception("get_role_grants_for_principal failed: unknown result"); + } + public function get_privilege_set(\metastore\HiveObjectRef $hiveObject, $user_name, $group_names) { $this->send_get_privilege_set($hiveObject, $user_name, $group_names); @@ -6947,14 +7002,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size370 = 0; - $_etype373 = 0; - $xfer += $input->readListBegin($_etype373, $_size370); - for ($_i374 = 0; $_i374 < $_size370; ++$_i374) + $_size377 = 0; + $_etype380 = 0; + $xfer += $input->readListBegin($_etype380, $_size377); + for ($_i381 = 0; $_i381 < $_size377; ++$_i381) { - $elem375 = null; - $xfer += $input->readString($elem375); - $this->success []= $elem375; + $elem382 = null; + $xfer += $input->readString($elem382); + $this->success []= $elem382; } $xfer += $input->readListEnd(); } else { @@ -6990,9 +7045,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter376) + foreach ($this->success as $iter383) { - $xfer += $output->writeString($iter376); + $xfer += $output->writeString($iter383); } } $output->writeListEnd(); @@ -7117,14 +7172,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size377 = 0; - $_etype380 = 0; - $xfer += $input->readListBegin($_etype380, $_size377); - for ($_i381 = 0; $_i381 < $_size377; ++$_i381) + $_size384 = 0; + $_etype387 = 0; + $xfer += $input->readListBegin($_etype387, $_size384); + for ($_i388 = 0; $_i388 < $_size384; ++$_i388) { - $elem382 = null; - $xfer += $input->readString($elem382); - $this->success []= $elem382; + $elem389 = null; + $xfer += $input->readString($elem389); + $this->success []= $elem389; } $xfer += $input->readListEnd(); } else { @@ -7160,9 +7215,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter383) + foreach ($this->success as $iter390) { - $xfer += $output->writeString($iter383); + $xfer += $output->writeString($iter390); } } $output->writeListEnd(); @@ -8103,18 +8158,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size384 = 0; - $_ktype385 = 0; - $_vtype386 = 0; - $xfer += $input->readMapBegin($_ktype385, $_vtype386, $_size384); - for ($_i388 = 0; $_i388 < $_size384; ++$_i388) + $_size391 = 0; + $_ktype392 = 0; + $_vtype393 = 0; + $xfer += $input->readMapBegin($_ktype392, $_vtype393, $_size391); + for ($_i395 = 0; $_i395 < $_size391; ++$_i395) { - $key389 = ''; - $val390 = new \metastore\Type(); - $xfer += $input->readString($key389); - $val390 = new \metastore\Type(); - $xfer += $val390->read($input); - $this->success[$key389] = $val390; + $key396 = ''; + $val397 = new \metastore\Type(); + $xfer += $input->readString($key396); + $val397 = new \metastore\Type(); + $xfer += $val397->read($input); + $this->success[$key396] = $val397; } $xfer += $input->readMapEnd(); } else { @@ -8150,10 +8205,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter391 => $viter392) + foreach ($this->success as $kiter398 => $viter399) { - $xfer += $output->writeString($kiter391); - $xfer += $viter392->write($output); + $xfer += $output->writeString($kiter398); + $xfer += $viter399->write($output); } } $output->writeMapEnd(); @@ -8339,15 +8394,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size393 = 0; - $_etype396 = 0; - $xfer += $input->readListBegin($_etype396, $_size393); - for ($_i397 = 0; $_i397 < $_size393; ++$_i397) + $_size400 = 0; + $_etype403 = 0; + $xfer += $input->readListBegin($_etype403, $_size400); + for ($_i404 = 0; $_i404 < $_size400; ++$_i404) { - $elem398 = null; - $elem398 = new \metastore\FieldSchema(); - $xfer += $elem398->read($input); - $this->success []= $elem398; + $elem405 = null; + $elem405 = new \metastore\FieldSchema(); + $xfer += $elem405->read($input); + $this->success []= $elem405; } $xfer += $input->readListEnd(); } else { @@ -8399,9 +8454,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter399) + foreach ($this->success as $iter406) { - $xfer += $iter399->write($output); + $xfer += $iter406->write($output); } } $output->writeListEnd(); @@ -8597,15 +8652,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size400 = 0; - $_etype403 = 0; - $xfer += $input->readListBegin($_etype403, $_size400); - for ($_i404 = 0; $_i404 < $_size400; ++$_i404) + $_size407 = 0; + $_etype410 = 0; + $xfer += $input->readListBegin($_etype410, $_size407); + for ($_i411 = 0; $_i411 < $_size407; ++$_i411) { - $elem405 = null; - $elem405 = new \metastore\FieldSchema(); - $xfer += $elem405->read($input); - $this->success []= $elem405; + $elem412 = null; + $elem412 = new \metastore\FieldSchema(); + $xfer += $elem412->read($input); + $this->success []= $elem412; } $xfer += $input->readListEnd(); } else { @@ -8657,9 +8712,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter406) + foreach ($this->success as $iter413) { - $xfer += $iter406->write($output); + $xfer += $iter413->write($output); } } $output->writeListEnd(); @@ -9736,14 +9791,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size407 = 0; - $_etype410 = 0; - $xfer += $input->readListBegin($_etype410, $_size407); - for ($_i411 = 0; $_i411 < $_size407; ++$_i411) + $_size414 = 0; + $_etype417 = 0; + $xfer += $input->readListBegin($_etype417, $_size414); + for ($_i418 = 0; $_i418 < $_size414; ++$_i418) { - $elem412 = null; - $xfer += $input->readString($elem412); - $this->success []= $elem412; + $elem419 = null; + $xfer += $input->readString($elem419); + $this->success []= $elem419; } $xfer += $input->readListEnd(); } else { @@ -9779,9 +9834,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter413) + foreach ($this->success as $iter420) { - $xfer += $output->writeString($iter413); + $xfer += $output->writeString($iter420); } } $output->writeListEnd(); @@ -9928,14 +9983,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size414 = 0; - $_etype417 = 0; - $xfer += $input->readListBegin($_etype417, $_size414); - for ($_i418 = 0; $_i418 < $_size414; ++$_i418) + $_size421 = 0; + $_etype424 = 0; + $xfer += $input->readListBegin($_etype424, $_size421); + for ($_i425 = 0; $_i425 < $_size421; ++$_i425) { - $elem419 = null; - $xfer += $input->readString($elem419); - $this->success []= $elem419; + $elem426 = null; + $xfer += $input->readString($elem426); + $this->success []= $elem426; } $xfer += $input->readListEnd(); } else { @@ -9971,9 +10026,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter420) + foreach ($this->success as $iter427) { - $xfer += $output->writeString($iter420); + $xfer += $output->writeString($iter427); } } $output->writeListEnd(); @@ -10267,14 +10322,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size421 = 0; - $_etype424 = 0; - $xfer += $input->readListBegin($_etype424, $_size421); - for ($_i425 = 0; $_i425 < $_size421; ++$_i425) + $_size428 = 0; + $_etype431 = 0; + $xfer += $input->readListBegin($_etype431, $_size428); + for ($_i432 = 0; $_i432 < $_size428; ++$_i432) { - $elem426 = null; - $xfer += $input->readString($elem426); - $this->tbl_names []= $elem426; + $elem433 = null; + $xfer += $input->readString($elem433); + $this->tbl_names []= $elem433; } $xfer += $input->readListEnd(); } else { @@ -10307,9 +10362,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter427) + foreach ($this->tbl_names as $iter434) { - $xfer += $output->writeString($iter427); + $xfer += $output->writeString($iter434); } } $output->writeListEnd(); @@ -10398,15 +10453,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size428 = 0; - $_etype431 = 0; - $xfer += $input->readListBegin($_etype431, $_size428); - for ($_i432 = 0; $_i432 < $_size428; ++$_i432) + $_size435 = 0; + $_etype438 = 0; + $xfer += $input->readListBegin($_etype438, $_size435); + for ($_i439 = 0; $_i439 < $_size435; ++$_i439) { - $elem433 = null; - $elem433 = new \metastore\Table(); - $xfer += $elem433->read($input); - $this->success []= $elem433; + $elem440 = null; + $elem440 = new \metastore\Table(); + $xfer += $elem440->read($input); + $this->success []= $elem440; } $xfer += $input->readListEnd(); } else { @@ -10458,9 +10513,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter434) + foreach ($this->success as $iter441) { - $xfer += $iter434->write($output); + $xfer += $iter441->write($output); } } $output->writeListEnd(); @@ -10675,14 +10730,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size435 = 0; - $_etype438 = 0; - $xfer += $input->readListBegin($_etype438, $_size435); - for ($_i439 = 0; $_i439 < $_size435; ++$_i439) + $_size442 = 0; + $_etype445 = 0; + $xfer += $input->readListBegin($_etype445, $_size442); + for ($_i446 = 0; $_i446 < $_size442; ++$_i446) { - $elem440 = null; - $xfer += $input->readString($elem440); - $this->success []= $elem440; + $elem447 = null; + $xfer += $input->readString($elem447); + $this->success []= $elem447; } $xfer += $input->readListEnd(); } else { @@ -10734,9 +10789,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter441) + foreach ($this->success as $iter448) { - $xfer += $output->writeString($iter441); + $xfer += $output->writeString($iter448); } } $output->writeListEnd(); @@ -11729,15 +11784,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size442 = 0; - $_etype445 = 0; - $xfer += $input->readListBegin($_etype445, $_size442); - for ($_i446 = 0; $_i446 < $_size442; ++$_i446) + $_size449 = 0; + $_etype452 = 0; + $xfer += $input->readListBegin($_etype452, $_size449); + for ($_i453 = 0; $_i453 < $_size449; ++$_i453) { - $elem447 = null; - $elem447 = new \metastore\Partition(); - $xfer += $elem447->read($input); - $this->new_parts []= $elem447; + $elem454 = null; + $elem454 = new \metastore\Partition(); + $xfer += $elem454->read($input); + $this->new_parts []= $elem454; } $xfer += $input->readListEnd(); } else { @@ -11765,9 +11820,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter448) + foreach ($this->new_parts as $iter455) { - $xfer += $iter448->write($output); + $xfer += $iter455->write($output); } } $output->writeListEnd(); @@ -11996,14 +12051,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size449 = 0; - $_etype452 = 0; - $xfer += $input->readListBegin($_etype452, $_size449); - for ($_i453 = 0; $_i453 < $_size449; ++$_i453) + $_size456 = 0; + $_etype459 = 0; + $xfer += $input->readListBegin($_etype459, $_size456); + for ($_i460 = 0; $_i460 < $_size456; ++$_i460) { - $elem454 = null; - $xfer += $input->readString($elem454); - $this->part_vals []= $elem454; + $elem461 = null; + $xfer += $input->readString($elem461); + $this->part_vals []= $elem461; } $xfer += $input->readListEnd(); } else { @@ -12041,9 +12096,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter455) + foreach ($this->part_vals as $iter462) { - $xfer += $output->writeString($iter455); + $xfer += $output->writeString($iter462); } } $output->writeListEnd(); @@ -12506,14 +12561,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size456 = 0; - $_etype459 = 0; - $xfer += $input->readListBegin($_etype459, $_size456); - for ($_i460 = 0; $_i460 < $_size456; ++$_i460) + $_size463 = 0; + $_etype466 = 0; + $xfer += $input->readListBegin($_etype466, $_size463); + for ($_i467 = 0; $_i467 < $_size463; ++$_i467) { - $elem461 = null; - $xfer += $input->readString($elem461); - $this->part_vals []= $elem461; + $elem468 = null; + $xfer += $input->readString($elem468); + $this->part_vals []= $elem468; } $xfer += $input->readListEnd(); } else { @@ -12559,9 +12614,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter462) + foreach ($this->part_vals as $iter469) { - $xfer += $output->writeString($iter462); + $xfer += $output->writeString($iter469); } } $output->writeListEnd(); @@ -13346,14 +13401,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size463 = 0; - $_etype466 = 0; - $xfer += $input->readListBegin($_etype466, $_size463); - for ($_i467 = 0; $_i467 < $_size463; ++$_i467) + $_size470 = 0; + $_etype473 = 0; + $xfer += $input->readListBegin($_etype473, $_size470); + for ($_i474 = 0; $_i474 < $_size470; ++$_i474) { - $elem468 = null; - $xfer += $input->readString($elem468); - $this->part_vals []= $elem468; + $elem475 = null; + $xfer += $input->readString($elem475); + $this->part_vals []= $elem475; } $xfer += $input->readListEnd(); } else { @@ -13398,9 +13453,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter469) + foreach ($this->part_vals as $iter476) { - $xfer += $output->writeString($iter469); + $xfer += $output->writeString($iter476); } } $output->writeListEnd(); @@ -13629,14 +13684,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size470 = 0; - $_etype473 = 0; - $xfer += $input->readListBegin($_etype473, $_size470); - for ($_i474 = 0; $_i474 < $_size470; ++$_i474) + $_size477 = 0; + $_etype480 = 0; + $xfer += $input->readListBegin($_etype480, $_size477); + for ($_i481 = 0; $_i481 < $_size477; ++$_i481) { - $elem475 = null; - $xfer += $input->readString($elem475); - $this->part_vals []= $elem475; + $elem482 = null; + $xfer += $input->readString($elem482); + $this->part_vals []= $elem482; } $xfer += $input->readListEnd(); } else { @@ -13689,9 +13744,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter476) + foreach ($this->part_vals as $iter483) { - $xfer += $output->writeString($iter476); + $xfer += $output->writeString($iter483); } } $output->writeListEnd(); @@ -14630,14 +14685,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size477 = 0; - $_etype480 = 0; - $xfer += $input->readListBegin($_etype480, $_size477); - for ($_i481 = 0; $_i481 < $_size477; ++$_i481) + $_size484 = 0; + $_etype487 = 0; + $xfer += $input->readListBegin($_etype487, $_size484); + for ($_i488 = 0; $_i488 < $_size484; ++$_i488) { - $elem482 = null; - $xfer += $input->readString($elem482); - $this->part_vals []= $elem482; + $elem489 = null; + $xfer += $input->readString($elem489); + $this->part_vals []= $elem489; } $xfer += $input->readListEnd(); } else { @@ -14675,9 +14730,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter483) + foreach ($this->part_vals as $iter490) { - $xfer += $output->writeString($iter483); + $xfer += $output->writeString($iter490); } } $output->writeListEnd(); @@ -14895,17 +14950,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size484 = 0; - $_ktype485 = 0; - $_vtype486 = 0; - $xfer += $input->readMapBegin($_ktype485, $_vtype486, $_size484); - for ($_i488 = 0; $_i488 < $_size484; ++$_i488) + $_size491 = 0; + $_ktype492 = 0; + $_vtype493 = 0; + $xfer += $input->readMapBegin($_ktype492, $_vtype493, $_size491); + for ($_i495 = 0; $_i495 < $_size491; ++$_i495) { - $key489 = ''; - $val490 = ''; - $xfer += $input->readString($key489); - $xfer += $input->readString($val490); - $this->partitionSpecs[$key489] = $val490; + $key496 = ''; + $val497 = ''; + $xfer += $input->readString($key496); + $xfer += $input->readString($val497); + $this->partitionSpecs[$key496] = $val497; } $xfer += $input->readMapEnd(); } else { @@ -14961,10 +15016,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter491 => $viter492) + foreach ($this->partitionSpecs as $kiter498 => $viter499) { - $xfer += $output->writeString($kiter491); - $xfer += $output->writeString($viter492); + $xfer += $output->writeString($kiter498); + $xfer += $output->writeString($viter499); } } $output->writeMapEnd(); @@ -15260,14 +15315,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size493 = 0; - $_etype496 = 0; - $xfer += $input->readListBegin($_etype496, $_size493); - for ($_i497 = 0; $_i497 < $_size493; ++$_i497) + $_size500 = 0; + $_etype503 = 0; + $xfer += $input->readListBegin($_etype503, $_size500); + for ($_i504 = 0; $_i504 < $_size500; ++$_i504) { - $elem498 = null; - $xfer += $input->readString($elem498); - $this->part_vals []= $elem498; + $elem505 = null; + $xfer += $input->readString($elem505); + $this->part_vals []= $elem505; } $xfer += $input->readListEnd(); } else { @@ -15284,14 +15339,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size499 = 0; - $_etype502 = 0; - $xfer += $input->readListBegin($_etype502, $_size499); - for ($_i503 = 0; $_i503 < $_size499; ++$_i503) + $_size506 = 0; + $_etype509 = 0; + $xfer += $input->readListBegin($_etype509, $_size506); + for ($_i510 = 0; $_i510 < $_size506; ++$_i510) { - $elem504 = null; - $xfer += $input->readString($elem504); - $this->group_names []= $elem504; + $elem511 = null; + $xfer += $input->readString($elem511); + $this->group_names []= $elem511; } $xfer += $input->readListEnd(); } else { @@ -15329,9 +15384,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter505) + foreach ($this->part_vals as $iter512) { - $xfer += $output->writeString($iter505); + $xfer += $output->writeString($iter512); } } $output->writeListEnd(); @@ -15351,9 +15406,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter506) + foreach ($this->group_names as $iter513) { - $xfer += $output->writeString($iter506); + $xfer += $output->writeString($iter513); } } $output->writeListEnd(); @@ -15899,15 +15954,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size507 = 0; - $_etype510 = 0; - $xfer += $input->readListBegin($_etype510, $_size507); - for ($_i511 = 0; $_i511 < $_size507; ++$_i511) + $_size514 = 0; + $_etype517 = 0; + $xfer += $input->readListBegin($_etype517, $_size514); + for ($_i518 = 0; $_i518 < $_size514; ++$_i518) { - $elem512 = null; - $elem512 = new \metastore\Partition(); - $xfer += $elem512->read($input); - $this->success []= $elem512; + $elem519 = null; + $elem519 = new \metastore\Partition(); + $xfer += $elem519->read($input); + $this->success []= $elem519; } $xfer += $input->readListEnd(); } else { @@ -15951,9 +16006,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter513) + foreach ($this->success as $iter520) { - $xfer += $iter513->write($output); + $xfer += $iter520->write($output); } } $output->writeListEnd(); @@ -16084,14 +16139,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size514 = 0; - $_etype517 = 0; - $xfer += $input->readListBegin($_etype517, $_size514); - for ($_i518 = 0; $_i518 < $_size514; ++$_i518) + $_size521 = 0; + $_etype524 = 0; + $xfer += $input->readListBegin($_etype524, $_size521); + for ($_i525 = 0; $_i525 < $_size521; ++$_i525) { - $elem519 = null; - $xfer += $input->readString($elem519); - $this->group_names []= $elem519; + $elem526 = null; + $xfer += $input->readString($elem526); + $this->group_names []= $elem526; } $xfer += $input->readListEnd(); } else { @@ -16139,9 +16194,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter520) + foreach ($this->group_names as $iter527) { - $xfer += $output->writeString($iter520); + $xfer += $output->writeString($iter527); } } $output->writeListEnd(); @@ -16221,15 +16276,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size521 = 0; - $_etype524 = 0; - $xfer += $input->readListBegin($_etype524, $_size521); - for ($_i525 = 0; $_i525 < $_size521; ++$_i525) + $_size528 = 0; + $_etype531 = 0; + $xfer += $input->readListBegin($_etype531, $_size528); + for ($_i532 = 0; $_i532 < $_size528; ++$_i532) { - $elem526 = null; - $elem526 = new \metastore\Partition(); - $xfer += $elem526->read($input); - $this->success []= $elem526; + $elem533 = null; + $elem533 = new \metastore\Partition(); + $xfer += $elem533->read($input); + $this->success []= $elem533; } $xfer += $input->readListEnd(); } else { @@ -16273,9 +16328,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter527) + foreach ($this->success as $iter534) { - $xfer += $iter527->write($output); + $xfer += $iter534->write($output); } } $output->writeListEnd(); @@ -16467,14 +16522,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size528 = 0; - $_etype531 = 0; - $xfer += $input->readListBegin($_etype531, $_size528); - for ($_i532 = 0; $_i532 < $_size528; ++$_i532) + $_size535 = 0; + $_etype538 = 0; + $xfer += $input->readListBegin($_etype538, $_size535); + for ($_i539 = 0; $_i539 < $_size535; ++$_i539) { - $elem533 = null; - $xfer += $input->readString($elem533); - $this->success []= $elem533; + $elem540 = null; + $xfer += $input->readString($elem540); + $this->success []= $elem540; } $xfer += $input->readListEnd(); } else { @@ -16510,9 +16565,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter534) + foreach ($this->success as $iter541) { - $xfer += $output->writeString($iter534); + $xfer += $output->writeString($iter541); } } $output->writeListEnd(); @@ -16616,14 +16671,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size535 = 0; - $_etype538 = 0; - $xfer += $input->readListBegin($_etype538, $_size535); - for ($_i539 = 0; $_i539 < $_size535; ++$_i539) + $_size542 = 0; + $_etype545 = 0; + $xfer += $input->readListBegin($_etype545, $_size542); + for ($_i546 = 0; $_i546 < $_size542; ++$_i546) { - $elem540 = null; - $xfer += $input->readString($elem540); - $this->part_vals []= $elem540; + $elem547 = null; + $xfer += $input->readString($elem547); + $this->part_vals []= $elem547; } $xfer += $input->readListEnd(); } else { @@ -16668,9 +16723,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter541) + foreach ($this->part_vals as $iter548) { - $xfer += $output->writeString($iter541); + $xfer += $output->writeString($iter548); } } $output->writeListEnd(); @@ -16755,15 +16810,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size542 = 0; - $_etype545 = 0; - $xfer += $input->readListBegin($_etype545, $_size542); - for ($_i546 = 0; $_i546 < $_size542; ++$_i546) + $_size549 = 0; + $_etype552 = 0; + $xfer += $input->readListBegin($_etype552, $_size549); + for ($_i553 = 0; $_i553 < $_size549; ++$_i553) { - $elem547 = null; - $elem547 = new \metastore\Partition(); - $xfer += $elem547->read($input); - $this->success []= $elem547; + $elem554 = null; + $elem554 = new \metastore\Partition(); + $xfer += $elem554->read($input); + $this->success []= $elem554; } $xfer += $input->readListEnd(); } else { @@ -16807,9 +16862,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter548) + foreach ($this->success as $iter555) { - $xfer += $iter548->write($output); + $xfer += $iter555->write($output); } } $output->writeListEnd(); @@ -16938,14 +16993,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size549 = 0; - $_etype552 = 0; - $xfer += $input->readListBegin($_etype552, $_size549); - for ($_i553 = 0; $_i553 < $_size549; ++$_i553) + $_size556 = 0; + $_etype559 = 0; + $xfer += $input->readListBegin($_etype559, $_size556); + for ($_i560 = 0; $_i560 < $_size556; ++$_i560) { - $elem554 = null; - $xfer += $input->readString($elem554); - $this->part_vals []= $elem554; + $elem561 = null; + $xfer += $input->readString($elem561); + $this->part_vals []= $elem561; } $xfer += $input->readListEnd(); } else { @@ -16969,14 +17024,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size555 = 0; - $_etype558 = 0; - $xfer += $input->readListBegin($_etype558, $_size555); - for ($_i559 = 0; $_i559 < $_size555; ++$_i559) + $_size562 = 0; + $_etype565 = 0; + $xfer += $input->readListBegin($_etype565, $_size562); + for ($_i566 = 0; $_i566 < $_size562; ++$_i566) { - $elem560 = null; - $xfer += $input->readString($elem560); - $this->group_names []= $elem560; + $elem567 = null; + $xfer += $input->readString($elem567); + $this->group_names []= $elem567; } $xfer += $input->readListEnd(); } else { @@ -17014,9 +17069,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter561) + foreach ($this->part_vals as $iter568) { - $xfer += $output->writeString($iter561); + $xfer += $output->writeString($iter568); } } $output->writeListEnd(); @@ -17041,9 +17096,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter562) + foreach ($this->group_names as $iter569) { - $xfer += $output->writeString($iter562); + $xfer += $output->writeString($iter569); } } $output->writeListEnd(); @@ -17123,15 +17178,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size563 = 0; - $_etype566 = 0; - $xfer += $input->readListBegin($_etype566, $_size563); - for ($_i567 = 0; $_i567 < $_size563; ++$_i567) + $_size570 = 0; + $_etype573 = 0; + $xfer += $input->readListBegin($_etype573, $_size570); + for ($_i574 = 0; $_i574 < $_size570; ++$_i574) { - $elem568 = null; - $elem568 = new \metastore\Partition(); - $xfer += $elem568->read($input); - $this->success []= $elem568; + $elem575 = null; + $elem575 = new \metastore\Partition(); + $xfer += $elem575->read($input); + $this->success []= $elem575; } $xfer += $input->readListEnd(); } else { @@ -17175,9 +17230,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter569) + foreach ($this->success as $iter576) { - $xfer += $iter569->write($output); + $xfer += $iter576->write($output); } } $output->writeListEnd(); @@ -17286,14 +17341,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size570 = 0; - $_etype573 = 0; - $xfer += $input->readListBegin($_etype573, $_size570); - for ($_i574 = 0; $_i574 < $_size570; ++$_i574) + $_size577 = 0; + $_etype580 = 0; + $xfer += $input->readListBegin($_etype580, $_size577); + for ($_i581 = 0; $_i581 < $_size577; ++$_i581) { - $elem575 = null; - $xfer += $input->readString($elem575); - $this->part_vals []= $elem575; + $elem582 = null; + $xfer += $input->readString($elem582); + $this->part_vals []= $elem582; } $xfer += $input->readListEnd(); } else { @@ -17338,9 +17393,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter576) + foreach ($this->part_vals as $iter583) { - $xfer += $output->writeString($iter576); + $xfer += $output->writeString($iter583); } } $output->writeListEnd(); @@ -17424,14 +17479,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size577 = 0; - $_etype580 = 0; - $xfer += $input->readListBegin($_etype580, $_size577); - for ($_i581 = 0; $_i581 < $_size577; ++$_i581) + $_size584 = 0; + $_etype587 = 0; + $xfer += $input->readListBegin($_etype587, $_size584); + for ($_i588 = 0; $_i588 < $_size584; ++$_i588) { - $elem582 = null; - $xfer += $input->readString($elem582); - $this->success []= $elem582; + $elem589 = null; + $xfer += $input->readString($elem589); + $this->success []= $elem589; } $xfer += $input->readListEnd(); } else { @@ -17475,9 +17530,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter583) + foreach ($this->success as $iter590) { - $xfer += $output->writeString($iter583); + $xfer += $output->writeString($iter590); } } $output->writeListEnd(); @@ -17699,15 +17754,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size584 = 0; - $_etype587 = 0; - $xfer += $input->readListBegin($_etype587, $_size584); - for ($_i588 = 0; $_i588 < $_size584; ++$_i588) + $_size591 = 0; + $_etype594 = 0; + $xfer += $input->readListBegin($_etype594, $_size591); + for ($_i595 = 0; $_i595 < $_size591; ++$_i595) { - $elem589 = null; - $elem589 = new \metastore\Partition(); - $xfer += $elem589->read($input); - $this->success []= $elem589; + $elem596 = null; + $elem596 = new \metastore\Partition(); + $xfer += $elem596->read($input); + $this->success []= $elem596; } $xfer += $input->readListEnd(); } else { @@ -17751,9 +17806,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter590) + foreach ($this->success as $iter597) { - $xfer += $iter590->write($output); + $xfer += $iter597->write($output); } } $output->writeListEnd(); @@ -18052,14 +18107,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size591 = 0; - $_etype594 = 0; - $xfer += $input->readListBegin($_etype594, $_size591); - for ($_i595 = 0; $_i595 < $_size591; ++$_i595) + $_size598 = 0; + $_etype601 = 0; + $xfer += $input->readListBegin($_etype601, $_size598); + for ($_i602 = 0; $_i602 < $_size598; ++$_i602) { - $elem596 = null; - $xfer += $input->readString($elem596); - $this->names []= $elem596; + $elem603 = null; + $xfer += $input->readString($elem603); + $this->names []= $elem603; } $xfer += $input->readListEnd(); } else { @@ -18097,9 +18152,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter597) + foreach ($this->names as $iter604) { - $xfer += $output->writeString($iter597); + $xfer += $output->writeString($iter604); } } $output->writeListEnd(); @@ -18179,15 +18234,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size598 = 0; - $_etype601 = 0; - $xfer += $input->readListBegin($_etype601, $_size598); - for ($_i602 = 0; $_i602 < $_size598; ++$_i602) + $_size605 = 0; + $_etype608 = 0; + $xfer += $input->readListBegin($_etype608, $_size605); + for ($_i609 = 0; $_i609 < $_size605; ++$_i609) { - $elem603 = null; - $elem603 = new \metastore\Partition(); - $xfer += $elem603->read($input); - $this->success []= $elem603; + $elem610 = null; + $elem610 = new \metastore\Partition(); + $xfer += $elem610->read($input); + $this->success []= $elem610; } $xfer += $input->readListEnd(); } else { @@ -18231,9 +18286,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter604) + foreach ($this->success as $iter611) { - $xfer += $iter604->write($output); + $xfer += $iter611->write($output); } } $output->writeListEnd(); @@ -18548,15 +18603,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size605 = 0; - $_etype608 = 0; - $xfer += $input->readListBegin($_etype608, $_size605); - for ($_i609 = 0; $_i609 < $_size605; ++$_i609) + $_size612 = 0; + $_etype615 = 0; + $xfer += $input->readListBegin($_etype615, $_size612); + for ($_i616 = 0; $_i616 < $_size612; ++$_i616) { - $elem610 = null; - $elem610 = new \metastore\Partition(); - $xfer += $elem610->read($input); - $this->new_parts []= $elem610; + $elem617 = null; + $elem617 = new \metastore\Partition(); + $xfer += $elem617->read($input); + $this->new_parts []= $elem617; } $xfer += $input->readListEnd(); } else { @@ -18594,9 +18649,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter611) + foreach ($this->new_parts as $iter618) { - $xfer += $iter611->write($output); + $xfer += $iter618->write($output); } } $output->writeListEnd(); @@ -19030,14 +19085,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size612 = 0; - $_etype615 = 0; - $xfer += $input->readListBegin($_etype615, $_size612); - for ($_i616 = 0; $_i616 < $_size612; ++$_i616) + $_size619 = 0; + $_etype622 = 0; + $xfer += $input->readListBegin($_etype622, $_size619); + for ($_i623 = 0; $_i623 < $_size619; ++$_i623) { - $elem617 = null; - $xfer += $input->readString($elem617); - $this->part_vals []= $elem617; + $elem624 = null; + $xfer += $input->readString($elem624); + $this->part_vals []= $elem624; } $xfer += $input->readListEnd(); } else { @@ -19083,9 +19138,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter618) + foreach ($this->part_vals as $iter625) { - $xfer += $output->writeString($iter618); + $xfer += $output->writeString($iter625); } } $output->writeListEnd(); @@ -19258,14 +19313,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size619 = 0; - $_etype622 = 0; - $xfer += $input->readListBegin($_etype622, $_size619); - for ($_i623 = 0; $_i623 < $_size619; ++$_i623) + $_size626 = 0; + $_etype629 = 0; + $xfer += $input->readListBegin($_etype629, $_size626); + for ($_i630 = 0; $_i630 < $_size626; ++$_i630) { - $elem624 = null; - $xfer += $input->readString($elem624); - $this->part_vals []= $elem624; + $elem631 = null; + $xfer += $input->readString($elem631); + $this->part_vals []= $elem631; } $xfer += $input->readListEnd(); } else { @@ -19300,9 +19355,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter625) + foreach ($this->part_vals as $iter632) { - $xfer += $output->writeString($iter625); + $xfer += $output->writeString($iter632); } } $output->writeListEnd(); @@ -19729,14 +19784,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size626 = 0; - $_etype629 = 0; - $xfer += $input->readListBegin($_etype629, $_size626); - for ($_i630 = 0; $_i630 < $_size626; ++$_i630) + $_size633 = 0; + $_etype636 = 0; + $xfer += $input->readListBegin($_etype636, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $elem631 = null; - $xfer += $input->readString($elem631); - $this->success []= $elem631; + $elem638 = null; + $xfer += $input->readString($elem638); + $this->success []= $elem638; } $xfer += $input->readListEnd(); } else { @@ -19772,9 +19827,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter632) + foreach ($this->success as $iter639) { - $xfer += $output->writeString($iter632); + $xfer += $output->writeString($iter639); } } $output->writeListEnd(); @@ -19925,17 +19980,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size633 = 0; - $_ktype634 = 0; - $_vtype635 = 0; - $xfer += $input->readMapBegin($_ktype634, $_vtype635, $_size633); - for ($_i637 = 0; $_i637 < $_size633; ++$_i637) + $_size640 = 0; + $_ktype641 = 0; + $_vtype642 = 0; + $xfer += $input->readMapBegin($_ktype641, $_vtype642, $_size640); + for ($_i644 = 0; $_i644 < $_size640; ++$_i644) { - $key638 = ''; - $val639 = ''; - $xfer += $input->readString($key638); - $xfer += $input->readString($val639); - $this->success[$key638] = $val639; + $key645 = ''; + $val646 = ''; + $xfer += $input->readString($key645); + $xfer += $input->readString($val646); + $this->success[$key645] = $val646; } $xfer += $input->readMapEnd(); } else { @@ -19971,10 +20026,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter640 => $viter641) + foreach ($this->success as $kiter647 => $viter648) { - $xfer += $output->writeString($kiter640); - $xfer += $output->writeString($viter641); + $xfer += $output->writeString($kiter647); + $xfer += $output->writeString($viter648); } } $output->writeMapEnd(); @@ -20082,17 +20137,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size642 = 0; - $_ktype643 = 0; - $_vtype644 = 0; - $xfer += $input->readMapBegin($_ktype643, $_vtype644, $_size642); - for ($_i646 = 0; $_i646 < $_size642; ++$_i646) + $_size649 = 0; + $_ktype650 = 0; + $_vtype651 = 0; + $xfer += $input->readMapBegin($_ktype650, $_vtype651, $_size649); + for ($_i653 = 0; $_i653 < $_size649; ++$_i653) { - $key647 = ''; - $val648 = ''; - $xfer += $input->readString($key647); - $xfer += $input->readString($val648); - $this->part_vals[$key647] = $val648; + $key654 = ''; + $val655 = ''; + $xfer += $input->readString($key654); + $xfer += $input->readString($val655); + $this->part_vals[$key654] = $val655; } $xfer += $input->readMapEnd(); } else { @@ -20137,10 +20192,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter649 => $viter650) + foreach ($this->part_vals as $kiter656 => $viter657) { - $xfer += $output->writeString($kiter649); - $xfer += $output->writeString($viter650); + $xfer += $output->writeString($kiter656); + $xfer += $output->writeString($viter657); } } $output->writeMapEnd(); @@ -20432,17 +20487,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size651 = 0; - $_ktype652 = 0; - $_vtype653 = 0; - $xfer += $input->readMapBegin($_ktype652, $_vtype653, $_size651); - for ($_i655 = 0; $_i655 < $_size651; ++$_i655) + $_size658 = 0; + $_ktype659 = 0; + $_vtype660 = 0; + $xfer += $input->readMapBegin($_ktype659, $_vtype660, $_size658); + for ($_i662 = 0; $_i662 < $_size658; ++$_i662) { - $key656 = ''; - $val657 = ''; - $xfer += $input->readString($key656); - $xfer += $input->readString($val657); - $this->part_vals[$key656] = $val657; + $key663 = ''; + $val664 = ''; + $xfer += $input->readString($key663); + $xfer += $input->readString($val664); + $this->part_vals[$key663] = $val664; } $xfer += $input->readMapEnd(); } else { @@ -20487,10 +20542,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter658 => $viter659) + foreach ($this->part_vals as $kiter665 => $viter666) { - $xfer += $output->writeString($kiter658); - $xfer += $output->writeString($viter659); + $xfer += $output->writeString($kiter665); + $xfer += $output->writeString($viter666); } } $output->writeMapEnd(); @@ -21850,15 +21905,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readListBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size667 = 0; + $_etype670 = 0; + $xfer += $input->readListBegin($_etype670, $_size667); + for ($_i671 = 0; $_i671 < $_size667; ++$_i671) { - $elem665 = null; - $elem665 = new \metastore\Index(); - $xfer += $elem665->read($input); - $this->success []= $elem665; + $elem672 = null; + $elem672 = new \metastore\Index(); + $xfer += $elem672->read($input); + $this->success []= $elem672; } $xfer += $input->readListEnd(); } else { @@ -21902,9 +21957,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter666) + foreach ($this->success as $iter673) { - $xfer += $iter666->write($output); + $xfer += $iter673->write($output); } } $output->writeListEnd(); @@ -22096,14 +22151,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size667 = 0; - $_etype670 = 0; - $xfer += $input->readListBegin($_etype670, $_size667); - for ($_i671 = 0; $_i671 < $_size667; ++$_i671) + $_size674 = 0; + $_etype677 = 0; + $xfer += $input->readListBegin($_etype677, $_size674); + for ($_i678 = 0; $_i678 < $_size674; ++$_i678) { - $elem672 = null; - $xfer += $input->readString($elem672); - $this->success []= $elem672; + $elem679 = null; + $xfer += $input->readString($elem679); + $this->success []= $elem679; } $xfer += $input->readListEnd(); } else { @@ -22139,9 +22194,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter673) + foreach ($this->success as $iter680) { - $xfer += $output->writeString($iter673); + $xfer += $output->writeString($iter680); } } $output->writeListEnd(); @@ -24934,14 +24989,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size674 = 0; - $_etype677 = 0; - $xfer += $input->readListBegin($_etype677, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size681 = 0; + $_etype684 = 0; + $xfer += $input->readListBegin($_etype684, $_size681); + for ($_i685 = 0; $_i685 < $_size681; ++$_i685) { - $elem679 = null; - $xfer += $input->readString($elem679); - $this->success []= $elem679; + $elem686 = null; + $xfer += $input->readString($elem686); + $this->success []= $elem686; } $xfer += $input->readListEnd(); } else { @@ -24977,9 +25032,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter680) + foreach ($this->success as $iter687) { - $xfer += $output->writeString($iter680); + $xfer += $output->writeString($iter687); } } $output->writeListEnd(); @@ -25654,14 +25709,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size681 = 0; - $_etype684 = 0; - $xfer += $input->readListBegin($_etype684, $_size681); - for ($_i685 = 0; $_i685 < $_size681; ++$_i685) + $_size688 = 0; + $_etype691 = 0; + $xfer += $input->readListBegin($_etype691, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $elem686 = null; - $xfer += $input->readString($elem686); - $this->success []= $elem686; + $elem693 = null; + $xfer += $input->readString($elem693); + $this->success []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -25697,9 +25752,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter687) + foreach ($this->success as $iter694) { - $xfer += $output->writeString($iter687); + $xfer += $output->writeString($iter694); } } $output->writeListEnd(); @@ -26339,15 +26394,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size688 = 0; - $_etype691 = 0; - $xfer += $input->readListBegin($_etype691, $_size688); - for ($_i692 = 0; $_i692 < $_size688; ++$_i692) + $_size695 = 0; + $_etype698 = 0; + $xfer += $input->readListBegin($_etype698, $_size695); + for ($_i699 = 0; $_i699 < $_size695; ++$_i699) { - $elem693 = null; - $elem693 = new \metastore\Role(); - $xfer += $elem693->read($input); - $this->success []= $elem693; + $elem700 = null; + $elem700 = new \metastore\Role(); + $xfer += $elem700->read($input); + $this->success []= $elem700; } $xfer += $input->readListEnd(); } else { @@ -26383,9 +26438,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter694) + foreach ($this->success as $iter701) { - $xfer += $iter694->write($output); + $xfer += $iter701->write($output); } } $output->writeListEnd(); @@ -26580,6 +26635,182 @@ class ThriftHiveMetastore_get_principals_in_role_result { } +class ThriftHiveMetastore_get_role_grants_for_principal_args { + static $_TSPEC; + + public $request = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'request', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetRoleGrantsForPrincipalRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_role_grants_for_principal_args'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRUCT) { + $this->request = new \metastore\GetRoleGrantsForPrincipalRequest(); + $xfer += $this->request->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_role_grants_for_principal_args'); + if ($this->request !== null) { + if (!is_object($this->request)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('request', TType::STRUCT, 1); + $xfer += $this->request->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_role_grants_for_principal_result { + static $_TSPEC; + + public $success = null; + public $o1 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\GetRoleGrantsForPrincipalResponse', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_role_grants_for_principal_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::STRUCT) { + $this->success = new \metastore\GetRoleGrantsForPrincipalResponse(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_role_grants_for_principal_result'); + if ($this->success !== null) { + if (!is_object($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::STRUCT, 0); + $xfer += $this->success->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_get_privilege_set_args { static $_TSPEC; @@ -26659,14 +26890,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size695 = 0; - $_etype698 = 0; - $xfer += $input->readListBegin($_etype698, $_size695); - for ($_i699 = 0; $_i699 < $_size695; ++$_i699) + $_size702 = 0; + $_etype705 = 0; + $xfer += $input->readListBegin($_etype705, $_size702); + for ($_i706 = 0; $_i706 < $_size702; ++$_i706) { - $elem700 = null; - $xfer += $input->readString($elem700); - $this->group_names []= $elem700; + $elem707 = null; + $xfer += $input->readString($elem707); + $this->group_names []= $elem707; } $xfer += $input->readListEnd(); } else { @@ -26707,9 +26938,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter701) + foreach ($this->group_names as $iter708) { - $xfer += $output->writeString($iter701); + $xfer += $output->writeString($iter708); } } $output->writeListEnd(); @@ -26996,15 +27227,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size702 = 0; - $_etype705 = 0; - $xfer += $input->readListBegin($_etype705, $_size702); - for ($_i706 = 0; $_i706 < $_size702; ++$_i706) + $_size709 = 0; + $_etype712 = 0; + $xfer += $input->readListBegin($_etype712, $_size709); + for ($_i713 = 0; $_i713 < $_size709; ++$_i713) { - $elem707 = null; - $elem707 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem707->read($input); - $this->success []= $elem707; + $elem714 = null; + $elem714 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem714->read($input); + $this->success []= $elem714; } $xfer += $input->readListEnd(); } else { @@ -27040,9 +27271,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter708) + foreach ($this->success as $iter715) { - $xfer += $iter708->write($output); + $xfer += $iter715->write($output); } } $output->writeListEnd(); @@ -27465,14 +27696,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size709 = 0; - $_etype712 = 0; - $xfer += $input->readListBegin($_etype712, $_size709); - for ($_i713 = 0; $_i713 < $_size709; ++$_i713) + $_size716 = 0; + $_etype719 = 0; + $xfer += $input->readListBegin($_etype719, $_size716); + for ($_i720 = 0; $_i720 < $_size716; ++$_i720) { - $elem714 = null; - $xfer += $input->readString($elem714); - $this->group_names []= $elem714; + $elem721 = null; + $xfer += $input->readString($elem721); + $this->group_names []= $elem721; } $xfer += $input->readListEnd(); } else { @@ -27505,9 +27736,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter715) + foreach ($this->group_names as $iter722) { - $xfer += $output->writeString($iter715); + $xfer += $output->writeString($iter722); } } $output->writeListEnd(); @@ -27577,14 +27808,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size716 = 0; - $_etype719 = 0; - $xfer += $input->readListBegin($_etype719, $_size716); - for ($_i720 = 0; $_i720 < $_size716; ++$_i720) + $_size723 = 0; + $_etype726 = 0; + $xfer += $input->readListBegin($_etype726, $_size723); + for ($_i727 = 0; $_i727 < $_size723; ++$_i727) { - $elem721 = null; - $xfer += $input->readString($elem721); - $this->success []= $elem721; + $elem728 = null; + $xfer += $input->readString($elem728); + $this->success []= $elem728; } $xfer += $input->readListEnd(); } else { @@ -27620,9 +27851,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter722) + foreach ($this->success as $iter729) { - $xfer += $output->writeString($iter722); + $xfer += $output->writeString($iter729); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index 39062f9..54d9994 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -1353,11 +1353,6 @@ class Role { public $roleName = null; public $createTime = null; public $ownerName = null; - public $principalName = null; - public $principalType = null; - public $grantOption = null; - public $grantTime = null; - public $grantor = null; public function __construct($vals=null) { if (!isset(self::$_TSPEC)) { @@ -1374,26 +1369,6 @@ class Role { 'var' => 'ownerName', 'type' => TType::STRING, ), - 4 => array( - 'var' => 'principalName', - 'type' => TType::STRING, - ), - 5 => array( - 'var' => 'principalType', - 'type' => TType::STRING, - ), - 6 => array( - 'var' => 'grantOption', - 'type' => TType::BOOL, - ), - 7 => array( - 'var' => 'grantTime', - 'type' => TType::I32, - ), - 8 => array( - 'var' => 'grantor', - 'type' => TType::STRING, - ), ); } if (is_array($vals)) { @@ -1406,21 +1381,6 @@ class Role { if (isset($vals['ownerName'])) { $this->ownerName = $vals['ownerName']; } - if (isset($vals['principalName'])) { - $this->principalName = $vals['principalName']; - } - if (isset($vals['principalType'])) { - $this->principalType = $vals['principalType']; - } - if (isset($vals['grantOption'])) { - $this->grantOption = $vals['grantOption']; - } - if (isset($vals['grantTime'])) { - $this->grantTime = $vals['grantTime']; - } - if (isset($vals['grantor'])) { - $this->grantor = $vals['grantor']; - } } } @@ -1464,41 +1424,6 @@ class Role { $xfer += $input->skip($ftype); } break; - case 4: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->principalName); - } else { - $xfer += $input->skip($ftype); - } - break; - case 5: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->principalType); - } else { - $xfer += $input->skip($ftype); - } - break; - case 6: - if ($ftype == TType::BOOL) { - $xfer += $input->readBool($this->grantOption); - } else { - $xfer += $input->skip($ftype); - } - break; - case 7: - if ($ftype == TType::I32) { - $xfer += $input->readI32($this->grantTime); - } else { - $xfer += $input->skip($ftype); - } - break; - case 8: - if ($ftype == TType::STRING) { - $xfer += $input->readString($this->grantor); - } else { - $xfer += $input->skip($ftype); - } - break; default: $xfer += $input->skip($ftype); break; @@ -1527,31 +1452,6 @@ class Role { $xfer += $output->writeString($this->ownerName); $xfer += $output->writeFieldEnd(); } - if ($this->principalName !== null) { - $xfer += $output->writeFieldBegin('principalName', TType::STRING, 4); - $xfer += $output->writeString($this->principalName); - $xfer += $output->writeFieldEnd(); - } - if ($this->principalType !== null) { - $xfer += $output->writeFieldBegin('principalType', TType::STRING, 5); - $xfer += $output->writeString($this->principalType); - $xfer += $output->writeFieldEnd(); - } - if ($this->grantOption !== null) { - $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 6); - $xfer += $output->writeBool($this->grantOption); - $xfer += $output->writeFieldEnd(); - } - if ($this->grantTime !== null) { - $xfer += $output->writeFieldBegin('grantTime', TType::I32, 7); - $xfer += $output->writeI32($this->grantTime); - $xfer += $output->writeFieldEnd(); - } - if ($this->grantor !== null) { - $xfer += $output->writeFieldBegin('grantor', TType::STRING, 8); - $xfer += $output->writeString($this->grantor); - $xfer += $output->writeFieldEnd(); - } $xfer += $output->writeFieldStop(); $xfer += $output->writeStructEnd(); return $xfer; @@ -1751,6 +1651,198 @@ class RolePrincipalGrant { } +class GetRoleGrantsForPrincipalRequest { + static $_TSPEC; + + public $principal_name = null; + public $principal_type = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'principal_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'principal_type', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['principal_name'])) { + $this->principal_name = $vals['principal_name']; + } + if (isset($vals['principal_type'])) { + $this->principal_type = $vals['principal_type']; + } + } + } + + public function getName() { + return 'GetRoleGrantsForPrincipalRequest'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->principal_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->principal_type); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetRoleGrantsForPrincipalRequest'); + if ($this->principal_name !== null) { + $xfer += $output->writeFieldBegin('principal_name', TType::STRING, 1); + $xfer += $output->writeString($this->principal_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->principal_type !== null) { + $xfer += $output->writeFieldBegin('principal_type', TType::I32, 2); + $xfer += $output->writeI32($this->principal_type); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetRoleGrantsForPrincipalResponse { + static $_TSPEC; + + public $principalGrants = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'principalGrants', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\RolePrincipalGrant', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['principalGrants'])) { + $this->principalGrants = $vals['principalGrants']; + } + } + } + + public function getName() { + return 'GetRoleGrantsForPrincipalResponse'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::LST) { + $this->principalGrants = array(); + $_size69 = 0; + $_etype72 = 0; + $xfer += $input->readListBegin($_etype72, $_size69); + for ($_i73 = 0; $_i73 < $_size69; ++$_i73) + { + $elem74 = null; + $elem74 = new \metastore\RolePrincipalGrant(); + $xfer += $elem74->read($input); + $this->principalGrants []= $elem74; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('GetRoleGrantsForPrincipalResponse'); + if ($this->principalGrants !== null) { + if (!is_array($this->principalGrants)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('principalGrants', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->principalGrants)); + { + foreach ($this->principalGrants as $iter75) + { + $xfer += $iter75->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class GetPrincipalsInRoleRequest { static $_TSPEC; @@ -1871,15 +1963,15 @@ class GetPrincipalsInRoleResponse { case 1: if ($ftype == TType::LST) { $this->principalGrants = array(); - $_size69 = 0; - $_etype72 = 0; - $xfer += $input->readListBegin($_etype72, $_size69); - for ($_i73 = 0; $_i73 < $_size69; ++$_i73) + $_size76 = 0; + $_etype79 = 0; + $xfer += $input->readListBegin($_etype79, $_size76); + for ($_i80 = 0; $_i80 < $_size76; ++$_i80) { - $elem74 = null; - $elem74 = new \metastore\RolePrincipalGrant(); - $xfer += $elem74->read($input); - $this->principalGrants []= $elem74; + $elem81 = null; + $elem81 = new \metastore\RolePrincipalGrant(); + $xfer += $elem81->read($input); + $this->principalGrants []= $elem81; } $xfer += $input->readListEnd(); } else { @@ -1907,9 +1999,9 @@ class GetPrincipalsInRoleResponse { { $output->writeListBegin(TType::STRUCT, count($this->principalGrants)); { - foreach ($this->principalGrants as $iter75) + foreach ($this->principalGrants as $iter82) { - $xfer += $iter75->write($output); + $xfer += $iter82->write($output); } } $output->writeListEnd(); @@ -2044,17 +2136,17 @@ class Database { case 4: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size76 = 0; - $_ktype77 = 0; - $_vtype78 = 0; - $xfer += $input->readMapBegin($_ktype77, $_vtype78, $_size76); - for ($_i80 = 0; $_i80 < $_size76; ++$_i80) + $_size83 = 0; + $_ktype84 = 0; + $_vtype85 = 0; + $xfer += $input->readMapBegin($_ktype84, $_vtype85, $_size83); + for ($_i87 = 0; $_i87 < $_size83; ++$_i87) { - $key81 = ''; - $val82 = ''; - $xfer += $input->readString($key81); - $xfer += $input->readString($val82); - $this->parameters[$key81] = $val82; + $key88 = ''; + $val89 = ''; + $xfer += $input->readString($key88); + $xfer += $input->readString($val89); + $this->parameters[$key88] = $val89; } $xfer += $input->readMapEnd(); } else { @@ -2119,10 +2211,10 @@ class Database { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter83 => $viter84) + foreach ($this->parameters as $kiter90 => $viter91) { - $xfer += $output->writeString($kiter83); - $xfer += $output->writeString($viter84); + $xfer += $output->writeString($kiter90); + $xfer += $output->writeString($viter91); } } $output->writeMapEnd(); @@ -2235,17 +2327,17 @@ class SerDeInfo { case 3: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size85 = 0; - $_ktype86 = 0; - $_vtype87 = 0; - $xfer += $input->readMapBegin($_ktype86, $_vtype87, $_size85); - for ($_i89 = 0; $_i89 < $_size85; ++$_i89) + $_size92 = 0; + $_ktype93 = 0; + $_vtype94 = 0; + $xfer += $input->readMapBegin($_ktype93, $_vtype94, $_size92); + for ($_i96 = 0; $_i96 < $_size92; ++$_i96) { - $key90 = ''; - $val91 = ''; - $xfer += $input->readString($key90); - $xfer += $input->readString($val91); - $this->parameters[$key90] = $val91; + $key97 = ''; + $val98 = ''; + $xfer += $input->readString($key97); + $xfer += $input->readString($val98); + $this->parameters[$key97] = $val98; } $xfer += $input->readMapEnd(); } else { @@ -2283,10 +2375,10 @@ class SerDeInfo { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter92 => $viter93) + foreach ($this->parameters as $kiter99 => $viter100) { - $xfer += $output->writeString($kiter92); - $xfer += $output->writeString($viter93); + $xfer += $output->writeString($kiter99); + $xfer += $output->writeString($viter100); } } $output->writeMapEnd(); @@ -2475,14 +2567,14 @@ class SkewedInfo { case 1: if ($ftype == TType::LST) { $this->skewedColNames = array(); - $_size94 = 0; - $_etype97 = 0; - $xfer += $input->readListBegin($_etype97, $_size94); - for ($_i98 = 0; $_i98 < $_size94; ++$_i98) + $_size101 = 0; + $_etype104 = 0; + $xfer += $input->readListBegin($_etype104, $_size101); + for ($_i105 = 0; $_i105 < $_size101; ++$_i105) { - $elem99 = null; - $xfer += $input->readString($elem99); - $this->skewedColNames []= $elem99; + $elem106 = null; + $xfer += $input->readString($elem106); + $this->skewedColNames []= $elem106; } $xfer += $input->readListEnd(); } else { @@ -2492,24 +2584,24 @@ class SkewedInfo { case 2: if ($ftype == TType::LST) { $this->skewedColValues = array(); - $_size100 = 0; - $_etype103 = 0; - $xfer += $input->readListBegin($_etype103, $_size100); - for ($_i104 = 0; $_i104 < $_size100; ++$_i104) + $_size107 = 0; + $_etype110 = 0; + $xfer += $input->readListBegin($_etype110, $_size107); + for ($_i111 = 0; $_i111 < $_size107; ++$_i111) { - $elem105 = null; - $elem105 = array(); - $_size106 = 0; - $_etype109 = 0; - $xfer += $input->readListBegin($_etype109, $_size106); - for ($_i110 = 0; $_i110 < $_size106; ++$_i110) + $elem112 = null; + $elem112 = array(); + $_size113 = 0; + $_etype116 = 0; + $xfer += $input->readListBegin($_etype116, $_size113); + for ($_i117 = 0; $_i117 < $_size113; ++$_i117) { - $elem111 = null; - $xfer += $input->readString($elem111); - $elem105 []= $elem111; + $elem118 = null; + $xfer += $input->readString($elem118); + $elem112 []= $elem118; } $xfer += $input->readListEnd(); - $this->skewedColValues []= $elem105; + $this->skewedColValues []= $elem112; } $xfer += $input->readListEnd(); } else { @@ -2519,27 +2611,27 @@ class SkewedInfo { case 3: if ($ftype == TType::MAP) { $this->skewedColValueLocationMaps = array(); - $_size112 = 0; - $_ktype113 = 0; - $_vtype114 = 0; - $xfer += $input->readMapBegin($_ktype113, $_vtype114, $_size112); - for ($_i116 = 0; $_i116 < $_size112; ++$_i116) + $_size119 = 0; + $_ktype120 = 0; + $_vtype121 = 0; + $xfer += $input->readMapBegin($_ktype120, $_vtype121, $_size119); + for ($_i123 = 0; $_i123 < $_size119; ++$_i123) { - $key117 = array(); - $val118 = ''; - $key117 = array(); - $_size119 = 0; - $_etype122 = 0; - $xfer += $input->readListBegin($_etype122, $_size119); - for ($_i123 = 0; $_i123 < $_size119; ++$_i123) + $key124 = array(); + $val125 = ''; + $key124 = array(); + $_size126 = 0; + $_etype129 = 0; + $xfer += $input->readListBegin($_etype129, $_size126); + for ($_i130 = 0; $_i130 < $_size126; ++$_i130) { - $elem124 = null; - $xfer += $input->readString($elem124); - $key117 []= $elem124; + $elem131 = null; + $xfer += $input->readString($elem131); + $key124 []= $elem131; } $xfer += $input->readListEnd(); - $xfer += $input->readString($val118); - $this->skewedColValueLocationMaps[$key117] = $val118; + $xfer += $input->readString($val125); + $this->skewedColValueLocationMaps[$key124] = $val125; } $xfer += $input->readMapEnd(); } else { @@ -2567,9 +2659,9 @@ class SkewedInfo { { $output->writeListBegin(TType::STRING, count($this->skewedColNames)); { - foreach ($this->skewedColNames as $iter125) + foreach ($this->skewedColNames as $iter132) { - $xfer += $output->writeString($iter125); + $xfer += $output->writeString($iter132); } } $output->writeListEnd(); @@ -2584,14 +2676,14 @@ class SkewedInfo { { $output->writeListBegin(TType::LST, count($this->skewedColValues)); { - foreach ($this->skewedColValues as $iter126) + foreach ($this->skewedColValues as $iter133) { { - $output->writeListBegin(TType::STRING, count($iter126)); + $output->writeListBegin(TType::STRING, count($iter133)); { - foreach ($iter126 as $iter127) + foreach ($iter133 as $iter134) { - $xfer += $output->writeString($iter127); + $xfer += $output->writeString($iter134); } } $output->writeListEnd(); @@ -2610,19 +2702,19 @@ class SkewedInfo { { $output->writeMapBegin(TType::LST, TType::STRING, count($this->skewedColValueLocationMaps)); { - foreach ($this->skewedColValueLocationMaps as $kiter128 => $viter129) + foreach ($this->skewedColValueLocationMaps as $kiter135 => $viter136) { { - $output->writeListBegin(TType::STRING, count($kiter128)); + $output->writeListBegin(TType::STRING, count($kiter135)); { - foreach ($kiter128 as $iter130) + foreach ($kiter135 as $iter137) { - $xfer += $output->writeString($iter130); + $xfer += $output->writeString($iter137); } } $output->writeListEnd(); } - $xfer += $output->writeString($viter129); + $xfer += $output->writeString($viter136); } } $output->writeMapEnd(); @@ -2791,15 +2883,15 @@ class StorageDescriptor { case 1: if ($ftype == TType::LST) { $this->cols = array(); - $_size131 = 0; - $_etype134 = 0; - $xfer += $input->readListBegin($_etype134, $_size131); - for ($_i135 = 0; $_i135 < $_size131; ++$_i135) + $_size138 = 0; + $_etype141 = 0; + $xfer += $input->readListBegin($_etype141, $_size138); + for ($_i142 = 0; $_i142 < $_size138; ++$_i142) { - $elem136 = null; - $elem136 = new \metastore\FieldSchema(); - $xfer += $elem136->read($input); - $this->cols []= $elem136; + $elem143 = null; + $elem143 = new \metastore\FieldSchema(); + $xfer += $elem143->read($input); + $this->cols []= $elem143; } $xfer += $input->readListEnd(); } else { @@ -2852,14 +2944,14 @@ class StorageDescriptor { case 8: if ($ftype == TType::LST) { $this->bucketCols = array(); - $_size137 = 0; - $_etype140 = 0; - $xfer += $input->readListBegin($_etype140, $_size137); - for ($_i141 = 0; $_i141 < $_size137; ++$_i141) + $_size144 = 0; + $_etype147 = 0; + $xfer += $input->readListBegin($_etype147, $_size144); + for ($_i148 = 0; $_i148 < $_size144; ++$_i148) { - $elem142 = null; - $xfer += $input->readString($elem142); - $this->bucketCols []= $elem142; + $elem149 = null; + $xfer += $input->readString($elem149); + $this->bucketCols []= $elem149; } $xfer += $input->readListEnd(); } else { @@ -2869,15 +2961,15 @@ class StorageDescriptor { case 9: if ($ftype == TType::LST) { $this->sortCols = array(); - $_size143 = 0; - $_etype146 = 0; - $xfer += $input->readListBegin($_etype146, $_size143); - for ($_i147 = 0; $_i147 < $_size143; ++$_i147) + $_size150 = 0; + $_etype153 = 0; + $xfer += $input->readListBegin($_etype153, $_size150); + for ($_i154 = 0; $_i154 < $_size150; ++$_i154) { - $elem148 = null; - $elem148 = new \metastore\Order(); - $xfer += $elem148->read($input); - $this->sortCols []= $elem148; + $elem155 = null; + $elem155 = new \metastore\Order(); + $xfer += $elem155->read($input); + $this->sortCols []= $elem155; } $xfer += $input->readListEnd(); } else { @@ -2887,17 +2979,17 @@ class StorageDescriptor { case 10: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size149 = 0; - $_ktype150 = 0; - $_vtype151 = 0; - $xfer += $input->readMapBegin($_ktype150, $_vtype151, $_size149); - for ($_i153 = 0; $_i153 < $_size149; ++$_i153) + $_size156 = 0; + $_ktype157 = 0; + $_vtype158 = 0; + $xfer += $input->readMapBegin($_ktype157, $_vtype158, $_size156); + for ($_i160 = 0; $_i160 < $_size156; ++$_i160) { - $key154 = ''; - $val155 = ''; - $xfer += $input->readString($key154); - $xfer += $input->readString($val155); - $this->parameters[$key154] = $val155; + $key161 = ''; + $val162 = ''; + $xfer += $input->readString($key161); + $xfer += $input->readString($val162); + $this->parameters[$key161] = $val162; } $xfer += $input->readMapEnd(); } else { @@ -2940,9 +3032,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter156) + foreach ($this->cols as $iter163) { - $xfer += $iter156->write($output); + $xfer += $iter163->write($output); } } $output->writeListEnd(); @@ -2990,9 +3082,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRING, count($this->bucketCols)); { - foreach ($this->bucketCols as $iter157) + foreach ($this->bucketCols as $iter164) { - $xfer += $output->writeString($iter157); + $xfer += $output->writeString($iter164); } } $output->writeListEnd(); @@ -3007,9 +3099,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRUCT, count($this->sortCols)); { - foreach ($this->sortCols as $iter158) + foreach ($this->sortCols as $iter165) { - $xfer += $iter158->write($output); + $xfer += $iter165->write($output); } } $output->writeListEnd(); @@ -3024,10 +3116,10 @@ class StorageDescriptor { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter159 => $viter160) + foreach ($this->parameters as $kiter166 => $viter167) { - $xfer += $output->writeString($kiter159); - $xfer += $output->writeString($viter160); + $xfer += $output->writeString($kiter166); + $xfer += $output->writeString($viter167); } } $output->writeMapEnd(); @@ -3258,15 +3350,15 @@ class Table { case 8: if ($ftype == TType::LST) { $this->partitionKeys = array(); - $_size161 = 0; - $_etype164 = 0; - $xfer += $input->readListBegin($_etype164, $_size161); - for ($_i165 = 0; $_i165 < $_size161; ++$_i165) + $_size168 = 0; + $_etype171 = 0; + $xfer += $input->readListBegin($_etype171, $_size168); + for ($_i172 = 0; $_i172 < $_size168; ++$_i172) { - $elem166 = null; - $elem166 = new \metastore\FieldSchema(); - $xfer += $elem166->read($input); - $this->partitionKeys []= $elem166; + $elem173 = null; + $elem173 = new \metastore\FieldSchema(); + $xfer += $elem173->read($input); + $this->partitionKeys []= $elem173; } $xfer += $input->readListEnd(); } else { @@ -3276,17 +3368,17 @@ class Table { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size167 = 0; - $_ktype168 = 0; - $_vtype169 = 0; - $xfer += $input->readMapBegin($_ktype168, $_vtype169, $_size167); - for ($_i171 = 0; $_i171 < $_size167; ++$_i171) + $_size174 = 0; + $_ktype175 = 0; + $_vtype176 = 0; + $xfer += $input->readMapBegin($_ktype175, $_vtype176, $_size174); + for ($_i178 = 0; $_i178 < $_size174; ++$_i178) { - $key172 = ''; - $val173 = ''; - $xfer += $input->readString($key172); - $xfer += $input->readString($val173); - $this->parameters[$key172] = $val173; + $key179 = ''; + $val180 = ''; + $xfer += $input->readString($key179); + $xfer += $input->readString($val180); + $this->parameters[$key179] = $val180; } $xfer += $input->readMapEnd(); } else { @@ -3381,9 +3473,9 @@ class Table { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter174) + foreach ($this->partitionKeys as $iter181) { - $xfer += $iter174->write($output); + $xfer += $iter181->write($output); } } $output->writeListEnd(); @@ -3398,10 +3490,10 @@ class Table { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter175 => $viter176) + foreach ($this->parameters as $kiter182 => $viter183) { - $xfer += $output->writeString($kiter175); - $xfer += $output->writeString($viter176); + $xfer += $output->writeString($kiter182); + $xfer += $output->writeString($viter183); } } $output->writeMapEnd(); @@ -3551,14 +3643,14 @@ class Partition { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size177 = 0; - $_etype180 = 0; - $xfer += $input->readListBegin($_etype180, $_size177); - for ($_i181 = 0; $_i181 < $_size177; ++$_i181) + $_size184 = 0; + $_etype187 = 0; + $xfer += $input->readListBegin($_etype187, $_size184); + for ($_i188 = 0; $_i188 < $_size184; ++$_i188) { - $elem182 = null; - $xfer += $input->readString($elem182); - $this->values []= $elem182; + $elem189 = null; + $xfer += $input->readString($elem189); + $this->values []= $elem189; } $xfer += $input->readListEnd(); } else { @@ -3604,17 +3696,17 @@ class Partition { case 7: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size183 = 0; - $_ktype184 = 0; - $_vtype185 = 0; - $xfer += $input->readMapBegin($_ktype184, $_vtype185, $_size183); - for ($_i187 = 0; $_i187 < $_size183; ++$_i187) + $_size190 = 0; + $_ktype191 = 0; + $_vtype192 = 0; + $xfer += $input->readMapBegin($_ktype191, $_vtype192, $_size190); + for ($_i194 = 0; $_i194 < $_size190; ++$_i194) { - $key188 = ''; - $val189 = ''; - $xfer += $input->readString($key188); - $xfer += $input->readString($val189); - $this->parameters[$key188] = $val189; + $key195 = ''; + $val196 = ''; + $xfer += $input->readString($key195); + $xfer += $input->readString($val196); + $this->parameters[$key195] = $val196; } $xfer += $input->readMapEnd(); } else { @@ -3650,9 +3742,9 @@ class Partition { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter190) + foreach ($this->values as $iter197) { - $xfer += $output->writeString($iter190); + $xfer += $output->writeString($iter197); } } $output->writeListEnd(); @@ -3695,10 +3787,10 @@ class Partition { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter191 => $viter192) + foreach ($this->parameters as $kiter198 => $viter199) { - $xfer += $output->writeString($kiter191); - $xfer += $output->writeString($viter192); + $xfer += $output->writeString($kiter198); + $xfer += $output->writeString($viter199); } } $output->writeMapEnd(); @@ -3901,17 +3993,17 @@ class Index { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size193 = 0; - $_ktype194 = 0; - $_vtype195 = 0; - $xfer += $input->readMapBegin($_ktype194, $_vtype195, $_size193); - for ($_i197 = 0; $_i197 < $_size193; ++$_i197) + $_size200 = 0; + $_ktype201 = 0; + $_vtype202 = 0; + $xfer += $input->readMapBegin($_ktype201, $_vtype202, $_size200); + for ($_i204 = 0; $_i204 < $_size200; ++$_i204) { - $key198 = ''; - $val199 = ''; - $xfer += $input->readString($key198); - $xfer += $input->readString($val199); - $this->parameters[$key198] = $val199; + $key205 = ''; + $val206 = ''; + $xfer += $input->readString($key205); + $xfer += $input->readString($val206); + $this->parameters[$key205] = $val206; } $xfer += $input->readMapEnd(); } else { @@ -3989,10 +4081,10 @@ class Index { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter200 => $viter201) + foreach ($this->parameters as $kiter207 => $viter208) { - $xfer += $output->writeString($kiter200); - $xfer += $output->writeString($viter201); + $xfer += $output->writeString($kiter207); + $xfer += $output->writeString($viter208); } } $output->writeMapEnd(); @@ -5142,15 +5234,15 @@ class ColumnStatistics { case 2: if ($ftype == TType::LST) { $this->statsObj = array(); - $_size202 = 0; - $_etype205 = 0; - $xfer += $input->readListBegin($_etype205, $_size202); - for ($_i206 = 0; $_i206 < $_size202; ++$_i206) + $_size209 = 0; + $_etype212 = 0; + $xfer += $input->readListBegin($_etype212, $_size209); + for ($_i213 = 0; $_i213 < $_size209; ++$_i213) { - $elem207 = null; - $elem207 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem207->read($input); - $this->statsObj []= $elem207; + $elem214 = null; + $elem214 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem214->read($input); + $this->statsObj []= $elem214; } $xfer += $input->readListEnd(); } else { @@ -5186,9 +5278,9 @@ class ColumnStatistics { { $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { - foreach ($this->statsObj as $iter208) + foreach ($this->statsObj as $iter215) { - $xfer += $iter208->write($output); + $xfer += $iter215->write($output); } } $output->writeListEnd(); @@ -5266,15 +5358,15 @@ class Schema { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = array(); - $_size209 = 0; - $_etype212 = 0; - $xfer += $input->readListBegin($_etype212, $_size209); - for ($_i213 = 0; $_i213 < $_size209; ++$_i213) + $_size216 = 0; + $_etype219 = 0; + $xfer += $input->readListBegin($_etype219, $_size216); + for ($_i220 = 0; $_i220 < $_size216; ++$_i220) { - $elem214 = null; - $elem214 = new \metastore\FieldSchema(); - $xfer += $elem214->read($input); - $this->fieldSchemas []= $elem214; + $elem221 = null; + $elem221 = new \metastore\FieldSchema(); + $xfer += $elem221->read($input); + $this->fieldSchemas []= $elem221; } $xfer += $input->readListEnd(); } else { @@ -5284,17 +5376,17 @@ class Schema { case 2: if ($ftype == TType::MAP) { $this->properties = array(); - $_size215 = 0; - $_ktype216 = 0; - $_vtype217 = 0; - $xfer += $input->readMapBegin($_ktype216, $_vtype217, $_size215); - for ($_i219 = 0; $_i219 < $_size215; ++$_i219) + $_size222 = 0; + $_ktype223 = 0; + $_vtype224 = 0; + $xfer += $input->readMapBegin($_ktype223, $_vtype224, $_size222); + for ($_i226 = 0; $_i226 < $_size222; ++$_i226) { - $key220 = ''; - $val221 = ''; - $xfer += $input->readString($key220); - $xfer += $input->readString($val221); - $this->properties[$key220] = $val221; + $key227 = ''; + $val228 = ''; + $xfer += $input->readString($key227); + $xfer += $input->readString($val228); + $this->properties[$key227] = $val228; } $xfer += $input->readMapEnd(); } else { @@ -5322,9 +5414,9 @@ class Schema { { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { - foreach ($this->fieldSchemas as $iter222) + foreach ($this->fieldSchemas as $iter229) { - $xfer += $iter222->write($output); + $xfer += $iter229->write($output); } } $output->writeListEnd(); @@ -5339,10 +5431,10 @@ class Schema { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter223 => $viter224) + foreach ($this->properties as $kiter230 => $viter231) { - $xfer += $output->writeString($kiter223); - $xfer += $output->writeString($viter224); + $xfer += $output->writeString($kiter230); + $xfer += $output->writeString($viter231); } } $output->writeMapEnd(); @@ -5407,17 +5499,17 @@ class EnvironmentContext { case 1: if ($ftype == TType::MAP) { $this->properties = array(); - $_size225 = 0; - $_ktype226 = 0; - $_vtype227 = 0; - $xfer += $input->readMapBegin($_ktype226, $_vtype227, $_size225); - for ($_i229 = 0; $_i229 < $_size225; ++$_i229) + $_size232 = 0; + $_ktype233 = 0; + $_vtype234 = 0; + $xfer += $input->readMapBegin($_ktype233, $_vtype234, $_size232); + for ($_i236 = 0; $_i236 < $_size232; ++$_i236) { - $key230 = ''; - $val231 = ''; - $xfer += $input->readString($key230); - $xfer += $input->readString($val231); - $this->properties[$key230] = $val231; + $key237 = ''; + $val238 = ''; + $xfer += $input->readString($key237); + $xfer += $input->readString($val238); + $this->properties[$key237] = $val238; } $xfer += $input->readMapEnd(); } else { @@ -5445,10 +5537,10 @@ class EnvironmentContext { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter232 => $viter233) + foreach ($this->properties as $kiter239 => $viter240) { - $xfer += $output->writeString($kiter232); - $xfer += $output->writeString($viter233); + $xfer += $output->writeString($kiter239); + $xfer += $output->writeString($viter240); } } $output->writeMapEnd(); @@ -5518,15 +5610,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size234 = 0; - $_etype237 = 0; - $xfer += $input->readListBegin($_etype237, $_size234); - for ($_i238 = 0; $_i238 < $_size234; ++$_i238) + $_size241 = 0; + $_etype244 = 0; + $xfer += $input->readListBegin($_etype244, $_size241); + for ($_i245 = 0; $_i245 < $_size241; ++$_i245) { - $elem239 = null; - $elem239 = new \metastore\Partition(); - $xfer += $elem239->read($input); - $this->partitions []= $elem239; + $elem246 = null; + $elem246 = new \metastore\Partition(); + $xfer += $elem246->read($input); + $this->partitions []= $elem246; } $xfer += $input->readListEnd(); } else { @@ -5561,9 +5653,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter240) + foreach ($this->partitions as $iter247) { - $xfer += $iter240->write($output); + $xfer += $iter247->write($output); } } $output->writeListEnd(); @@ -5782,15 +5874,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size241 = 0; - $_etype244 = 0; - $xfer += $input->readListBegin($_etype244, $_size241); - for ($_i245 = 0; $_i245 < $_size241; ++$_i245) + $_size248 = 0; + $_etype251 = 0; + $xfer += $input->readListBegin($_etype251, $_size248); + for ($_i252 = 0; $_i252 < $_size248; ++$_i252) { - $elem246 = null; - $elem246 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem246->read($input); - $this->tableStats []= $elem246; + $elem253 = null; + $elem253 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem253->read($input); + $this->tableStats []= $elem253; } $xfer += $input->readListEnd(); } else { @@ -5818,9 +5910,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter247) + foreach ($this->tableStats as $iter254) { - $xfer += $iter247->write($output); + $xfer += $iter254->write($output); } } $output->writeListEnd(); @@ -5890,28 +5982,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size248 = 0; - $_ktype249 = 0; - $_vtype250 = 0; - $xfer += $input->readMapBegin($_ktype249, $_vtype250, $_size248); - for ($_i252 = 0; $_i252 < $_size248; ++$_i252) + $_size255 = 0; + $_ktype256 = 0; + $_vtype257 = 0; + $xfer += $input->readMapBegin($_ktype256, $_vtype257, $_size255); + for ($_i259 = 0; $_i259 < $_size255; ++$_i259) { - $key253 = ''; - $val254 = array(); - $xfer += $input->readString($key253); - $val254 = array(); - $_size255 = 0; - $_etype258 = 0; - $xfer += $input->readListBegin($_etype258, $_size255); - for ($_i259 = 0; $_i259 < $_size255; ++$_i259) + $key260 = ''; + $val261 = array(); + $xfer += $input->readString($key260); + $val261 = array(); + $_size262 = 0; + $_etype265 = 0; + $xfer += $input->readListBegin($_etype265, $_size262); + for ($_i266 = 0; $_i266 < $_size262; ++$_i266) { - $elem260 = null; - $elem260 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem260->read($input); - $val254 []= $elem260; + $elem267 = null; + $elem267 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem267->read($input); + $val261 []= $elem267; } $xfer += $input->readListEnd(); - $this->partStats[$key253] = $val254; + $this->partStats[$key260] = $val261; } $xfer += $input->readMapEnd(); } else { @@ -5939,15 +6031,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter261 => $viter262) + foreach ($this->partStats as $kiter268 => $viter269) { - $xfer += $output->writeString($kiter261); + $xfer += $output->writeString($kiter268); { - $output->writeListBegin(TType::STRUCT, count($viter262)); + $output->writeListBegin(TType::STRUCT, count($viter269)); { - foreach ($viter262 as $iter263) + foreach ($viter269 as $iter270) { - $xfer += $iter263->write($output); + $xfer += $iter270->write($output); } } $output->writeListEnd(); @@ -6042,14 +6134,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size264 = 0; - $_etype267 = 0; - $xfer += $input->readListBegin($_etype267, $_size264); - for ($_i268 = 0; $_i268 < $_size264; ++$_i268) + $_size271 = 0; + $_etype274 = 0; + $xfer += $input->readListBegin($_etype274, $_size271); + for ($_i275 = 0; $_i275 < $_size271; ++$_i275) { - $elem269 = null; - $xfer += $input->readString($elem269); - $this->colNames []= $elem269; + $elem276 = null; + $xfer += $input->readString($elem276); + $this->colNames []= $elem276; } $xfer += $input->readListEnd(); } else { @@ -6087,9 +6179,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter270) + foreach ($this->colNames as $iter277) { - $xfer += $output->writeString($iter270); + $xfer += $output->writeString($iter277); } } $output->writeListEnd(); @@ -6192,14 +6284,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size271 = 0; - $_etype274 = 0; - $xfer += $input->readListBegin($_etype274, $_size271); - for ($_i275 = 0; $_i275 < $_size271; ++$_i275) + $_size278 = 0; + $_etype281 = 0; + $xfer += $input->readListBegin($_etype281, $_size278); + for ($_i282 = 0; $_i282 < $_size278; ++$_i282) { - $elem276 = null; - $xfer += $input->readString($elem276); - $this->colNames []= $elem276; + $elem283 = null; + $xfer += $input->readString($elem283); + $this->colNames []= $elem283; } $xfer += $input->readListEnd(); } else { @@ -6209,14 +6301,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size277 = 0; - $_etype280 = 0; - $xfer += $input->readListBegin($_etype280, $_size277); - for ($_i281 = 0; $_i281 < $_size277; ++$_i281) + $_size284 = 0; + $_etype287 = 0; + $xfer += $input->readListBegin($_etype287, $_size284); + for ($_i288 = 0; $_i288 < $_size284; ++$_i288) { - $elem282 = null; - $xfer += $input->readString($elem282); - $this->partNames []= $elem282; + $elem289 = null; + $xfer += $input->readString($elem289); + $this->partNames []= $elem289; } $xfer += $input->readListEnd(); } else { @@ -6254,9 +6346,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter283) + foreach ($this->colNames as $iter290) { - $xfer += $output->writeString($iter283); + $xfer += $output->writeString($iter290); } } $output->writeListEnd(); @@ -6271,9 +6363,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter284) + foreach ($this->partNames as $iter291) { - $xfer += $output->writeString($iter284); + $xfer += $output->writeString($iter291); } } $output->writeListEnd(); @@ -6335,15 +6427,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size285 = 0; - $_etype288 = 0; - $xfer += $input->readListBegin($_etype288, $_size285); - for ($_i289 = 0; $_i289 < $_size285; ++$_i289) + $_size292 = 0; + $_etype295 = 0; + $xfer += $input->readListBegin($_etype295, $_size292); + for ($_i296 = 0; $_i296 < $_size292; ++$_i296) { - $elem290 = null; - $elem290 = new \metastore\Partition(); - $xfer += $elem290->read($input); - $this->partitions []= $elem290; + $elem297 = null; + $elem297 = new \metastore\Partition(); + $xfer += $elem297->read($input); + $this->partitions []= $elem297; } $xfer += $input->readListEnd(); } else { @@ -6371,9 +6463,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter291) + foreach ($this->partitions as $iter298) { - $xfer += $iter291->write($output); + $xfer += $iter298->write($output); } } $output->writeListEnd(); @@ -6481,15 +6573,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size292 = 0; - $_etype295 = 0; - $xfer += $input->readListBegin($_etype295, $_size292); - for ($_i296 = 0; $_i296 < $_size292; ++$_i296) + $_size299 = 0; + $_etype302 = 0; + $xfer += $input->readListBegin($_etype302, $_size299); + for ($_i303 = 0; $_i303 < $_size299; ++$_i303) { - $elem297 = null; - $elem297 = new \metastore\Partition(); - $xfer += $elem297->read($input); - $this->parts []= $elem297; + $elem304 = null; + $elem304 = new \metastore\Partition(); + $xfer += $elem304->read($input); + $this->parts []= $elem304; } $xfer += $input->readListEnd(); } else { @@ -6541,9 +6633,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter298) + foreach ($this->parts as $iter305) { - $xfer += $iter298->write($output); + $xfer += $iter305->write($output); } } $output->writeListEnd(); @@ -6615,15 +6707,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size299 = 0; - $_etype302 = 0; - $xfer += $input->readListBegin($_etype302, $_size299); - for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + $_size306 = 0; + $_etype309 = 0; + $xfer += $input->readListBegin($_etype309, $_size306); + for ($_i310 = 0; $_i310 < $_size306; ++$_i310) { - $elem304 = null; - $elem304 = new \metastore\Partition(); - $xfer += $elem304->read($input); - $this->partitions []= $elem304; + $elem311 = null; + $elem311 = new \metastore\Partition(); + $xfer += $elem311->read($input); + $this->partitions []= $elem311; } $xfer += $input->readListEnd(); } else { @@ -6651,9 +6743,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter305) + foreach ($this->partitions as $iter312) { - $xfer += $iter305->write($output); + $xfer += $iter312->write($output); } } $output->writeListEnd(); @@ -6819,14 +6911,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size306 = 0; - $_etype309 = 0; - $xfer += $input->readListBegin($_etype309, $_size306); - for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) { - $elem311 = null; - $xfer += $input->readString($elem311); - $this->names []= $elem311; + $elem318 = null; + $xfer += $input->readString($elem318); + $this->names []= $elem318; } $xfer += $input->readListEnd(); } else { @@ -6836,15 +6928,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size312 = 0; - $_etype315 = 0; - $xfer += $input->readListBegin($_etype315, $_size312); - for ($_i316 = 0; $_i316 < $_size312; ++$_i316) + $_size319 = 0; + $_etype322 = 0; + $xfer += $input->readListBegin($_etype322, $_size319); + for ($_i323 = 0; $_i323 < $_size319; ++$_i323) { - $elem317 = null; - $elem317 = new \metastore\DropPartitionsExpr(); - $xfer += $elem317->read($input); - $this->exprs []= $elem317; + $elem324 = null; + $elem324 = new \metastore\DropPartitionsExpr(); + $xfer += $elem324->read($input); + $this->exprs []= $elem324; } $xfer += $input->readListEnd(); } else { @@ -6872,9 +6964,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter318) + foreach ($this->names as $iter325) { - $xfer += $output->writeString($iter318); + $xfer += $output->writeString($iter325); } } $output->writeListEnd(); @@ -6889,9 +6981,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter319) + foreach ($this->exprs as $iter326) { - $xfer += $iter319->write($output); + $xfer += $iter326->write($output); } } $output->writeListEnd(); @@ -7372,15 +7464,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size320 = 0; - $_etype323 = 0; - $xfer += $input->readListBegin($_etype323, $_size320); - for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + $_size327 = 0; + $_etype330 = 0; + $xfer += $input->readListBegin($_etype330, $_size327); + for ($_i331 = 0; $_i331 < $_size327; ++$_i331) { - $elem325 = null; - $elem325 = new \metastore\ResourceUri(); - $xfer += $elem325->read($input); - $this->resourceUris []= $elem325; + $elem332 = null; + $elem332 = new \metastore\ResourceUri(); + $xfer += $elem332->read($input); + $this->resourceUris []= $elem332; } $xfer += $input->readListEnd(); } else { @@ -7443,9 +7535,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter326) + foreach ($this->resourceUris as $iter333) { - $xfer += $iter326->write($output); + $xfer += $iter333->write($output); } } $output->writeListEnd(); @@ -7654,15 +7746,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size327 = 0; - $_etype330 = 0; - $xfer += $input->readListBegin($_etype330, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readListBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem332 = null; - $elem332 = new \metastore\TxnInfo(); - $xfer += $elem332->read($input); - $this->open_txns []= $elem332; + $elem339 = null; + $elem339 = new \metastore\TxnInfo(); + $xfer += $elem339->read($input); + $this->open_txns []= $elem339; } $xfer += $input->readListEnd(); } else { @@ -7695,9 +7787,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter333) + foreach ($this->open_txns as $iter340) { - $xfer += $iter333->write($output); + $xfer += $iter340->write($output); } } $output->writeListEnd(); @@ -7773,17 +7865,17 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::SET) { $this->open_txns = array(); - $_size334 = 0; - $_etype337 = 0; - $xfer += $input->readSetBegin($_etype337, $_size334); - for ($_i338 = 0; $_i338 < $_size334; ++$_i338) + $_size341 = 0; + $_etype344 = 0; + $xfer += $input->readSetBegin($_etype344, $_size341); + for ($_i345 = 0; $_i345 < $_size341; ++$_i345) { - $elem339 = null; - $xfer += $input->readI64($elem339); - if (is_scalar($elem339)) { - $this->open_txns[$elem339] = true; + $elem346 = null; + $xfer += $input->readI64($elem346); + if (is_scalar($elem346)) { + $this->open_txns[$elem346] = true; } else { - $this->open_txns []= $elem339; + $this->open_txns []= $elem346; } } $xfer += $input->readSetEnd(); @@ -7817,12 +7909,12 @@ class GetOpenTxnsResponse { { $output->writeSetBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter340 => $iter341) + foreach ($this->open_txns as $iter347 => $iter348) { - if (is_scalar($iter341)) { - $xfer += $output->writeI64($iter340); + if (is_scalar($iter348)) { + $xfer += $output->writeI64($iter347); } else { - $xfer += $output->writeI64($iter341); + $xfer += $output->writeI64($iter348); } } } @@ -7996,14 +8088,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size342 = 0; - $_etype345 = 0; - $xfer += $input->readListBegin($_etype345, $_size342); - for ($_i346 = 0; $_i346 < $_size342; ++$_i346) + $_size349 = 0; + $_etype352 = 0; + $xfer += $input->readListBegin($_etype352, $_size349); + for ($_i353 = 0; $_i353 < $_size349; ++$_i353) { - $elem347 = null; - $xfer += $input->readI64($elem347); - $this->txn_ids []= $elem347; + $elem354 = null; + $xfer += $input->readI64($elem354); + $this->txn_ids []= $elem354; } $xfer += $input->readListEnd(); } else { @@ -8031,9 +8123,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter348) + foreach ($this->txn_ids as $iter355) { - $xfer += $output->writeI64($iter348); + $xfer += $output->writeI64($iter355); } } $output->writeListEnd(); @@ -8415,15 +8507,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size349 = 0; - $_etype352 = 0; - $xfer += $input->readListBegin($_etype352, $_size349); - for ($_i353 = 0; $_i353 < $_size349; ++$_i353) + $_size356 = 0; + $_etype359 = 0; + $xfer += $input->readListBegin($_etype359, $_size356); + for ($_i360 = 0; $_i360 < $_size356; ++$_i360) { - $elem354 = null; - $elem354 = new \metastore\LockComponent(); - $xfer += $elem354->read($input); - $this->component []= $elem354; + $elem361 = null; + $elem361 = new \metastore\LockComponent(); + $xfer += $elem361->read($input); + $this->component []= $elem361; } $xfer += $input->readListEnd(); } else { @@ -8472,9 +8564,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter355) + foreach ($this->component as $iter362) { - $xfer += $iter355->write($output); + $xfer += $iter362->write($output); } } $output->writeListEnd(); @@ -9109,15 +9201,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size356 = 0; - $_etype359 = 0; - $xfer += $input->readListBegin($_etype359, $_size356); - for ($_i360 = 0; $_i360 < $_size356; ++$_i360) + $_size363 = 0; + $_etype366 = 0; + $xfer += $input->readListBegin($_etype366, $_size363); + for ($_i367 = 0; $_i367 < $_size363; ++$_i367) { - $elem361 = null; - $elem361 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem361->read($input); - $this->locks []= $elem361; + $elem368 = null; + $elem368 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem368->read($input); + $this->locks []= $elem368; } $xfer += $input->readListEnd(); } else { @@ -9145,9 +9237,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter362) + foreach ($this->locks as $iter369) { - $xfer += $iter362->write($output); + $xfer += $iter369->write($output); } } $output->writeListEnd(); @@ -9715,15 +9807,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size363 = 0; - $_etype366 = 0; - $xfer += $input->readListBegin($_etype366, $_size363); - for ($_i367 = 0; $_i367 < $_size363; ++$_i367) + $_size370 = 0; + $_etype373 = 0; + $xfer += $input->readListBegin($_etype373, $_size370); + for ($_i374 = 0; $_i374 < $_size370; ++$_i374) { - $elem368 = null; - $elem368 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem368->read($input); - $this->compacts []= $elem368; + $elem375 = null; + $elem375 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem375->read($input); + $this->compacts []= $elem375; } $xfer += $input->readListEnd(); } else { @@ -9751,9 +9843,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter369) + foreach ($this->compacts as $iter376) { - $xfer += $iter369->write($output); + $xfer += $iter376->write($output); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index f7dca4a..1693a80 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -108,6 +108,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' bool revoke_role(string role_name, string principal_name, PrincipalType principal_type)' print ' list_roles(string principal_name, PrincipalType principal_type)' print ' GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request)' + print ' GetRoleGrantsForPrincipalResponse get_role_grants_for_principal(GetRoleGrantsForPrincipalRequest request)' print ' PrincipalPrivilegeSet get_privilege_set(HiveObjectRef hiveObject, string user_name, group_names)' print ' list_privileges(string principal_name, PrincipalType principal_type, HiveObjectRef hiveObject)' print ' bool grant_privileges(PrivilegeBag privileges)' @@ -689,6 +690,12 @@ elif cmd == 'get_principals_in_role': sys.exit(1) pp.pprint(client.get_principals_in_role(eval(args[0]),)) +elif cmd == 'get_role_grants_for_principal': + if len(args) != 1: + print 'get_role_grants_for_principal requires 1 args' + sys.exit(1) + pp.pprint(client.get_role_grants_for_principal(eval(args[0]),)) + elif cmd == 'get_privilege_set': if len(args) != 3: print 'get_privilege_set requires 3 args' diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 3f28df0..0d0be0b 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -745,6 +745,13 @@ def get_principals_in_role(self, request): """ pass + def get_role_grants_for_principal(self, request): + """ + Parameters: + - request + """ + pass + def get_privilege_set(self, hiveObject, user_name, group_names): """ Parameters: @@ -4057,6 +4064,38 @@ def recv_get_principals_in_role(self, ): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_principals_in_role failed: unknown result"); + def get_role_grants_for_principal(self, request): + """ + Parameters: + - request + """ + self.send_get_role_grants_for_principal(request) + return self.recv_get_role_grants_for_principal() + + def send_get_role_grants_for_principal(self, request): + self._oprot.writeMessageBegin('get_role_grants_for_principal', TMessageType.CALL, self._seqid) + args = get_role_grants_for_principal_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_role_grants_for_principal(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = get_role_grants_for_principal_result() + result.read(self._iprot) + self._iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_role_grants_for_principal failed: unknown result"); + def get_privilege_set(self, hiveObject, user_name, group_names): """ Parameters: @@ -4778,6 +4817,7 @@ def __init__(self, handler): self._processMap["revoke_role"] = Processor.process_revoke_role self._processMap["list_roles"] = Processor.process_list_roles self._processMap["get_principals_in_role"] = Processor.process_get_principals_in_role + self._processMap["get_role_grants_for_principal"] = Processor.process_get_role_grants_for_principal self._processMap["get_privilege_set"] = Processor.process_get_privilege_set self._processMap["list_privileges"] = Processor.process_list_privileges self._processMap["grant_privileges"] = Processor.process_grant_privileges @@ -6224,6 +6264,20 @@ def process_get_principals_in_role(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_role_grants_for_principal(self, seqid, iprot, oprot): + args = get_role_grants_for_principal_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_role_grants_for_principal_result() + try: + result.success = self._handler.get_role_grants_for_principal(args.request) + except MetaException as o1: + result.o1 = o1 + oprot.writeMessageBegin("get_role_grants_for_principal", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_get_privilege_set(self, seqid, iprot, oprot): args = get_privilege_set_args() args.read(iprot) @@ -7056,10 +7110,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype372, _size369) = iprot.readListBegin() - for _i373 in xrange(_size369): - _elem374 = iprot.readString(); - self.success.append(_elem374) + (_etype379, _size376) = iprot.readListBegin() + for _i380 in xrange(_size376): + _elem381 = iprot.readString(); + self.success.append(_elem381) iprot.readListEnd() else: iprot.skip(ftype) @@ -7082,8 +7136,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter375 in self.success: - oprot.writeString(iter375) + for iter382 in self.success: + oprot.writeString(iter382) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7178,10 +7232,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype379, _size376) = iprot.readListBegin() - for _i380 in xrange(_size376): - _elem381 = iprot.readString(); - self.success.append(_elem381) + (_etype386, _size383) = iprot.readListBegin() + for _i387 in xrange(_size383): + _elem388 = iprot.readString(); + self.success.append(_elem388) iprot.readListEnd() else: iprot.skip(ftype) @@ -7204,8 +7258,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter382 in self.success: - oprot.writeString(iter382) + for iter389 in self.success: + oprot.writeString(iter389) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7915,12 +7969,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype384, _vtype385, _size383 ) = iprot.readMapBegin() - for _i387 in xrange(_size383): - _key388 = iprot.readString(); - _val389 = Type() - _val389.read(iprot) - self.success[_key388] = _val389 + (_ktype391, _vtype392, _size390 ) = iprot.readMapBegin() + for _i394 in xrange(_size390): + _key395 = iprot.readString(); + _val396 = Type() + _val396.read(iprot) + self.success[_key395] = _val396 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7943,9 +7997,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRUCT, len(self.success)) - for kiter390,viter391 in self.success.items(): - oprot.writeString(kiter390) - viter391.write(oprot) + for kiter397,viter398 in self.success.items(): + oprot.writeString(kiter397) + viter398.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -8076,11 +8130,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype395, _size392) = iprot.readListBegin() - for _i396 in xrange(_size392): - _elem397 = FieldSchema() - _elem397.read(iprot) - self.success.append(_elem397) + (_etype402, _size399) = iprot.readListBegin() + for _i403 in xrange(_size399): + _elem404 = FieldSchema() + _elem404.read(iprot) + self.success.append(_elem404) iprot.readListEnd() else: iprot.skip(ftype) @@ -8115,8 +8169,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter398 in self.success: - iter398.write(oprot) + for iter405 in self.success: + iter405.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8255,11 +8309,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = FieldSchema() - _elem404.read(iprot) - self.success.append(_elem404) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = FieldSchema() + _elem411.read(iprot) + self.success.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -8294,8 +8348,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter405 in self.success: - iter405.write(oprot) + for iter412 in self.success: + iter412.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9092,10 +9146,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = iprot.readString(); - self.success.append(_elem411) + (_etype416, _size413) = iprot.readListBegin() + for _i417 in xrange(_size413): + _elem418 = iprot.readString(); + self.success.append(_elem418) iprot.readListEnd() else: iprot.skip(ftype) @@ -9118,8 +9172,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter412 in self.success: - oprot.writeString(iter412) + for iter419 in self.success: + oprot.writeString(iter419) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9232,10 +9286,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readString(); - self.success.append(_elem418) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = iprot.readString(); + self.success.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -9258,8 +9312,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter419 in self.success: - oprot.writeString(iter419) + for iter426 in self.success: + oprot.writeString(iter426) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9476,10 +9530,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = iprot.readString(); - self.tbl_names.append(_elem425) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = iprot.readString(); + self.tbl_names.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -9500,8 +9554,8 @@ def write(self, oprot): if self.tbl_names is not None: oprot.writeFieldBegin('tbl_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.tbl_names)) - for iter426 in self.tbl_names: - oprot.writeString(iter426) + for iter433 in self.tbl_names: + oprot.writeString(iter433) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9556,11 +9610,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = Table() - _elem432.read(iprot) - self.success.append(_elem432) + (_etype437, _size434) = iprot.readListBegin() + for _i438 in xrange(_size434): + _elem439 = Table() + _elem439.read(iprot) + self.success.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) @@ -9595,8 +9649,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter433 in self.success: - iter433.write(oprot) + for iter440 in self.success: + iter440.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9747,10 +9801,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype437, _size434) = iprot.readListBegin() - for _i438 in xrange(_size434): - _elem439 = iprot.readString(); - self.success.append(_elem439) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = iprot.readString(); + self.success.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -9785,8 +9839,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter440 in self.success: - oprot.writeString(iter440) + for iter447 in self.success: + oprot.writeString(iter447) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10509,11 +10563,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = Partition() - _elem446.read(iprot) - self.new_parts.append(_elem446) + (_etype451, _size448) = iprot.readListBegin() + for _i452 in xrange(_size448): + _elem453 = Partition() + _elem453.read(iprot) + self.new_parts.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -10530,8 +10584,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter447 in self.new_parts: - iter447.write(oprot) + for iter454 in self.new_parts: + iter454.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10692,10 +10746,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype451, _size448) = iprot.readListBegin() - for _i452 in xrange(_size448): - _elem453 = iprot.readString(); - self.part_vals.append(_elem453) + (_etype458, _size455) = iprot.readListBegin() + for _i459 in xrange(_size455): + _elem460 = iprot.readString(); + self.part_vals.append(_elem460) iprot.readListEnd() else: iprot.skip(ftype) @@ -10720,8 +10774,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter454 in self.part_vals: - oprot.writeString(iter454) + for iter461 in self.part_vals: + oprot.writeString(iter461) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11046,10 +11100,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype458, _size455) = iprot.readListBegin() - for _i459 in xrange(_size455): - _elem460 = iprot.readString(); - self.part_vals.append(_elem460) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = iprot.readString(); + self.part_vals.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -11080,8 +11134,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter461 in self.part_vals: - oprot.writeString(iter461) + for iter468 in self.part_vals: + oprot.writeString(iter468) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -11629,10 +11683,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype465, _size462) = iprot.readListBegin() - for _i466 in xrange(_size462): - _elem467 = iprot.readString(); - self.part_vals.append(_elem467) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = iprot.readString(); + self.part_vals.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -11662,8 +11716,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter468 in self.part_vals: - oprot.writeString(iter468) + for iter475 in self.part_vals: + oprot.writeString(iter475) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -11821,10 +11875,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype472, _size469) = iprot.readListBegin() - for _i473 in xrange(_size469): - _elem474 = iprot.readString(); - self.part_vals.append(_elem474) + (_etype479, _size476) = iprot.readListBegin() + for _i480 in xrange(_size476): + _elem481 = iprot.readString(); + self.part_vals.append(_elem481) iprot.readListEnd() else: iprot.skip(ftype) @@ -11860,8 +11914,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter475 in self.part_vals: - oprot.writeString(iter475) + for iter482 in self.part_vals: + oprot.writeString(iter482) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -12539,10 +12593,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype479, _size476) = iprot.readListBegin() - for _i480 in xrange(_size476): - _elem481 = iprot.readString(); - self.part_vals.append(_elem481) + (_etype486, _size483) = iprot.readListBegin() + for _i487 in xrange(_size483): + _elem488 = iprot.readString(); + self.part_vals.append(_elem488) iprot.readListEnd() else: iprot.skip(ftype) @@ -12567,8 +12621,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter482 in self.part_vals: - oprot.writeString(iter482) + for iter489 in self.part_vals: + oprot.writeString(iter489) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12713,11 +12767,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype484, _vtype485, _size483 ) = iprot.readMapBegin() - for _i487 in xrange(_size483): - _key488 = iprot.readString(); - _val489 = iprot.readString(); - self.partitionSpecs[_key488] = _val489 + (_ktype491, _vtype492, _size490 ) = iprot.readMapBegin() + for _i494 in xrange(_size490): + _key495 = iprot.readString(); + _val496 = iprot.readString(); + self.partitionSpecs[_key495] = _val496 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12754,9 +12808,9 @@ def write(self, oprot): if self.partitionSpecs is not None: oprot.writeFieldBegin('partitionSpecs', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.partitionSpecs)) - for kiter490,viter491 in self.partitionSpecs.items(): - oprot.writeString(kiter490) - oprot.writeString(viter491) + for kiter497,viter498 in self.partitionSpecs.items(): + oprot.writeString(kiter497) + oprot.writeString(viter498) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -12953,10 +13007,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = iprot.readString(); - self.part_vals.append(_elem497) + (_etype502, _size499) = iprot.readListBegin() + for _i503 in xrange(_size499): + _elem504 = iprot.readString(); + self.part_vals.append(_elem504) iprot.readListEnd() else: iprot.skip(ftype) @@ -12968,10 +13022,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype501, _size498) = iprot.readListBegin() - for _i502 in xrange(_size498): - _elem503 = iprot.readString(); - self.group_names.append(_elem503) + (_etype508, _size505) = iprot.readListBegin() + for _i509 in xrange(_size505): + _elem510 = iprot.readString(); + self.group_names.append(_elem510) iprot.readListEnd() else: iprot.skip(ftype) @@ -12996,8 +13050,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter504 in self.part_vals: - oprot.writeString(iter504) + for iter511 in self.part_vals: + oprot.writeString(iter511) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -13007,8 +13061,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter505 in self.group_names: - oprot.writeString(iter505) + for iter512 in self.group_names: + oprot.writeString(iter512) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13400,11 +13454,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = Partition() - _elem511.read(iprot) - self.success.append(_elem511) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = Partition() + _elem518.read(iprot) + self.success.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -13433,8 +13487,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter512 in self.success: - iter512.write(oprot) + for iter519 in self.success: + iter519.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13521,10 +13575,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = iprot.readString(); - self.group_names.append(_elem518) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = iprot.readString(); + self.group_names.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) @@ -13557,8 +13611,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter519 in self.group_names: - oprot.writeString(iter519) + for iter526 in self.group_names: + oprot.writeString(iter526) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13610,11 +13664,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype523, _size520) = iprot.readListBegin() - for _i524 in xrange(_size520): - _elem525 = Partition() - _elem525.read(iprot) - self.success.append(_elem525) + (_etype530, _size527) = iprot.readListBegin() + for _i531 in xrange(_size527): + _elem532 = Partition() + _elem532.read(iprot) + self.success.append(_elem532) iprot.readListEnd() else: iprot.skip(ftype) @@ -13643,8 +13697,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter526 in self.success: - iter526.write(oprot) + for iter533 in self.success: + iter533.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13785,10 +13839,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = iprot.readString(); - self.success.append(_elem532) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = iprot.readString(); + self.success.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -13811,8 +13865,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter533 in self.success: - oprot.writeString(iter533) + for iter540 in self.success: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -13882,10 +13936,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString(); - self.part_vals.append(_elem539) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = iprot.readString(); + self.part_vals.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -13915,8 +13969,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter540 in self.part_vals: - oprot.writeString(iter540) + for iter547 in self.part_vals: + oprot.writeString(iter547) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -13972,11 +14026,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = Partition() - _elem546.read(iprot) - self.success.append(_elem546) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = Partition() + _elem553.read(iprot) + self.success.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -14005,8 +14059,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter547 in self.success: - iter547.write(oprot) + for iter554 in self.success: + iter554.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14086,10 +14140,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString(); - self.part_vals.append(_elem553) + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = iprot.readString(); + self.part_vals.append(_elem560) iprot.readListEnd() else: iprot.skip(ftype) @@ -14106,10 +14160,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype557, _size554) = iprot.readListBegin() - for _i558 in xrange(_size554): - _elem559 = iprot.readString(); - self.group_names.append(_elem559) + (_etype564, _size561) = iprot.readListBegin() + for _i565 in xrange(_size561): + _elem566 = iprot.readString(); + self.group_names.append(_elem566) iprot.readListEnd() else: iprot.skip(ftype) @@ -14134,8 +14188,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter560 in self.part_vals: - oprot.writeString(iter560) + for iter567 in self.part_vals: + oprot.writeString(iter567) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14149,8 +14203,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 6) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter561 in self.group_names: - oprot.writeString(iter561) + for iter568 in self.group_names: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14202,11 +14256,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = Partition() - _elem567.read(iprot) - self.success.append(_elem567) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = Partition() + _elem574.read(iprot) + self.success.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14235,8 +14289,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter568 in self.success: - iter568.write(oprot) + for iter575 in self.success: + iter575.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14310,10 +14364,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.part_vals.append(_elem574) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.part_vals.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14343,8 +14397,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter575 in self.part_vals: - oprot.writeString(iter575) + for iter582 in self.part_vals: + oprot.writeString(iter582) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14400,10 +14454,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype579, _size576) = iprot.readListBegin() - for _i580 in xrange(_size576): - _elem581 = iprot.readString(); - self.success.append(_elem581) + (_etype586, _size583) = iprot.readListBegin() + for _i587 in xrange(_size583): + _elem588 = iprot.readString(); + self.success.append(_elem588) iprot.readListEnd() else: iprot.skip(ftype) @@ -14432,8 +14486,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter582 in self.success: - oprot.writeString(iter582) + for iter589 in self.success: + oprot.writeString(iter589) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14589,11 +14643,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = Partition() - _elem588.read(iprot) - self.success.append(_elem588) + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = Partition() + _elem595.read(iprot) + self.success.append(_elem595) iprot.readListEnd() else: iprot.skip(ftype) @@ -14622,8 +14676,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter589 in self.success: - iter589.write(oprot) + for iter596 in self.success: + iter596.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14841,10 +14895,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype593, _size590) = iprot.readListBegin() - for _i594 in xrange(_size590): - _elem595 = iprot.readString(); - self.names.append(_elem595) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = iprot.readString(); + self.names.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14869,8 +14923,8 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter596 in self.names: - oprot.writeString(iter596) + for iter603 in self.names: + oprot.writeString(iter603) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14922,11 +14976,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = Partition() - _elem602.read(iprot) - self.success.append(_elem602) + (_etype607, _size604) = iprot.readListBegin() + for _i608 in xrange(_size604): + _elem609 = Partition() + _elem609.read(iprot) + self.success.append(_elem609) iprot.readListEnd() else: iprot.skip(ftype) @@ -14955,8 +15009,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter603 in self.success: - iter603.write(oprot) + for iter610 in self.success: + iter610.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15186,11 +15240,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = Partition() - _elem609.read(iprot) - self.new_parts.append(_elem609) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = Partition() + _elem616.read(iprot) + self.new_parts.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -15215,8 +15269,8 @@ def write(self, oprot): if self.new_parts is not None: oprot.writeFieldBegin('new_parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.new_parts)) - for iter610 in self.new_parts: - iter610.write(oprot) + for iter617 in self.new_parts: + iter617.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15528,10 +15582,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype614, _size611) = iprot.readListBegin() - for _i615 in xrange(_size611): - _elem616 = iprot.readString(); - self.part_vals.append(_elem616) + (_etype621, _size618) = iprot.readListBegin() + for _i622 in xrange(_size618): + _elem623 = iprot.readString(); + self.part_vals.append(_elem623) iprot.readListEnd() else: iprot.skip(ftype) @@ -15562,8 +15616,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter617 in self.part_vals: - oprot.writeString(iter617) + for iter624 in self.part_vals: + oprot.writeString(iter624) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15691,10 +15745,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in xrange(_size618): - _elem623 = iprot.readString(); - self.part_vals.append(_elem623) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = iprot.readString(); + self.part_vals.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -15716,8 +15770,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter624 in self.part_vals: - oprot.writeString(iter624) + for iter631 in self.part_vals: + oprot.writeString(iter631) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -16046,10 +16100,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = iprot.readString(); - self.success.append(_elem630) + (_etype635, _size632) = iprot.readListBegin() + for _i636 in xrange(_size632): + _elem637 = iprot.readString(); + self.success.append(_elem637) iprot.readListEnd() else: iprot.skip(ftype) @@ -16072,8 +16126,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter631 in self.success: - oprot.writeString(iter631) + for iter638 in self.success: + oprot.writeString(iter638) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16186,11 +16240,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype633, _vtype634, _size632 ) = iprot.readMapBegin() - for _i636 in xrange(_size632): - _key637 = iprot.readString(); - _val638 = iprot.readString(); - self.success[_key637] = _val638 + (_ktype640, _vtype641, _size639 ) = iprot.readMapBegin() + for _i643 in xrange(_size639): + _key644 = iprot.readString(); + _val645 = iprot.readString(); + self.success[_key644] = _val645 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16213,9 +16267,9 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.MAP, 0) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success)) - for kiter639,viter640 in self.success.items(): - oprot.writeString(kiter639) - oprot.writeString(viter640) + for kiter646,viter647 in self.success.items(): + oprot.writeString(kiter646) + oprot.writeString(viter647) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16285,11 +16339,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype642, _vtype643, _size641 ) = iprot.readMapBegin() - for _i645 in xrange(_size641): - _key646 = iprot.readString(); - _val647 = iprot.readString(); - self.part_vals[_key646] = _val647 + (_ktype649, _vtype650, _size648 ) = iprot.readMapBegin() + for _i652 in xrange(_size648): + _key653 = iprot.readString(); + _val654 = iprot.readString(); + self.part_vals[_key653] = _val654 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16319,9 +16373,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter648,viter649 in self.part_vals.items(): - oprot.writeString(kiter648) - oprot.writeString(viter649) + for kiter655,viter656 in self.part_vals.items(): + oprot.writeString(kiter655) + oprot.writeString(viter656) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16517,11 +16571,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype651, _vtype652, _size650 ) = iprot.readMapBegin() - for _i654 in xrange(_size650): - _key655 = iprot.readString(); - _val656 = iprot.readString(); - self.part_vals[_key655] = _val656 + (_ktype658, _vtype659, _size657 ) = iprot.readMapBegin() + for _i661 in xrange(_size657): + _key662 = iprot.readString(); + _val663 = iprot.readString(); + self.part_vals[_key662] = _val663 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16551,9 +16605,9 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.part_vals)) - for kiter657,viter658 in self.part_vals.items(): - oprot.writeString(kiter657) - oprot.writeString(viter658) + for kiter664,viter665 in self.part_vals.items(): + oprot.writeString(kiter664) + oprot.writeString(viter665) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17525,11 +17579,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype662, _size659) = iprot.readListBegin() - for _i663 in xrange(_size659): - _elem664 = Index() - _elem664.read(iprot) - self.success.append(_elem664) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = Index() + _elem671.read(iprot) + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -17558,8 +17612,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter665 in self.success: - iter665.write(oprot) + for iter672 in self.success: + iter672.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17700,10 +17754,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype669, _size666) = iprot.readListBegin() - for _i670 in xrange(_size666): - _elem671 = iprot.readString(); - self.success.append(_elem671) + (_etype676, _size673) = iprot.readListBegin() + for _i677 in xrange(_size673): + _elem678 = iprot.readString(); + self.success.append(_elem678) iprot.readListEnd() else: iprot.skip(ftype) @@ -17726,8 +17780,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter672 in self.success: - oprot.writeString(iter672) + for iter679 in self.success: + oprot.writeString(iter679) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19762,10 +19816,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype676, _size673) = iprot.readListBegin() - for _i677 in xrange(_size673): - _elem678 = iprot.readString(); - self.success.append(_elem678) + (_etype683, _size680) = iprot.readListBegin() + for _i684 in xrange(_size680): + _elem685 = iprot.readString(); + self.success.append(_elem685) iprot.readListEnd() else: iprot.skip(ftype) @@ -19788,8 +19842,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter679 in self.success: - oprot.writeString(iter679) + for iter686 in self.success: + oprot.writeString(iter686) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20307,10 +20361,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = iprot.readString(); - self.success.append(_elem685) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = iprot.readString(); + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -20333,8 +20387,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter686 in self.success: - oprot.writeString(iter686) + for iter693 in self.success: + oprot.writeString(iter693) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20807,11 +20861,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = Role() - _elem692.read(iprot) - self.success.append(_elem692) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = Role() + _elem699.read(iprot) + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -20834,8 +20888,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter693 in self.success: - iter693.write(oprot) + for iter700 in self.success: + iter700.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20994,6 +21048,140 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_role_grants_for_principal_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GetRoleGrantsForPrincipalRequest, GetRoleGrantsForPrincipalRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, request=None,): + self.request = request + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRUCT: + self.request = GetRoleGrantsForPrincipalRequest() + self.request.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_role_grants_for_principal_args') + if self.request is not None: + oprot.writeFieldBegin('request', TType.STRUCT, 1) + self.request.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class get_role_grants_for_principal_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GetRoleGrantsForPrincipalResponse, GetRoleGrantsForPrincipalResponse.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + ) + + def __init__(self, success=None, o1=None,): + self.success = success + self.o1 = o1 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.STRUCT: + self.success = GetRoleGrantsForPrincipalResponse() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_role_grants_for_principal_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.STRUCT, 0) + self.success.write(oprot) + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class get_privilege_set_args: """ Attributes: @@ -21037,10 +21225,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString(); - self.group_names.append(_elem699) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString(); + self.group_names.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -21065,8 +21253,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter700 in self.group_names: - oprot.writeString(iter700) + for iter707 in self.group_names: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21273,11 +21461,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = HiveObjectPrivilege() - _elem706.read(iprot) - self.success.append(_elem706) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = HiveObjectPrivilege() + _elem713.read(iprot) + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -21300,8 +21488,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter707 in self.success: - iter707.write(oprot) + for iter714 in self.success: + iter714.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21626,10 +21814,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = iprot.readString(); - self.group_names.append(_elem713) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString(); + self.group_names.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -21650,8 +21838,8 @@ def write(self, oprot): if self.group_names is not None: oprot.writeFieldBegin('group_names', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.group_names)) - for iter714 in self.group_names: - oprot.writeString(iter714) + for iter721 in self.group_names: + oprot.writeString(iter721) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21700,10 +21888,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString(); - self.success.append(_elem720) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString(); + self.success.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -21726,8 +21914,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter721 in self.success: - oprot.writeString(iter721) + for iter728 in self.success: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 2e9f238..e58272b 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -982,11 +982,6 @@ class Role: - roleName - createTime - ownerName - - principalName - - principalType - - grantOption - - grantTime - - grantor """ thrift_spec = ( @@ -994,22 +989,12 @@ class Role: (1, TType.STRING, 'roleName', None, None, ), # 1 (2, TType.I32, 'createTime', None, None, ), # 2 (3, TType.STRING, 'ownerName', None, None, ), # 3 - (4, TType.STRING, 'principalName', None, None, ), # 4 - (5, TType.STRING, 'principalType', None, None, ), # 5 - (6, TType.BOOL, 'grantOption', None, None, ), # 6 - (7, TType.I32, 'grantTime', None, None, ), # 7 - (8, TType.STRING, 'grantor', None, None, ), # 8 ) - def __init__(self, roleName=None, createTime=None, ownerName=None, principalName=None, principalType=None, grantOption=None, grantTime=None, grantor=None,): + def __init__(self, roleName=None, createTime=None, ownerName=None,): self.roleName = roleName self.createTime = createTime self.ownerName = ownerName - self.principalName = principalName - self.principalType = principalType - self.grantOption = grantOption - self.grantTime = grantTime - self.grantor = grantor def read(self, iprot): if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: @@ -1035,31 +1020,6 @@ def read(self, iprot): self.ownerName = iprot.readString(); else: iprot.skip(ftype) - elif fid == 4: - if ftype == TType.STRING: - self.principalName = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 5: - if ftype == TType.STRING: - self.principalType = iprot.readString(); - else: - iprot.skip(ftype) - elif fid == 6: - if ftype == TType.BOOL: - self.grantOption = iprot.readBool(); - else: - iprot.skip(ftype) - elif fid == 7: - if ftype == TType.I32: - self.grantTime = iprot.readI32(); - else: - iprot.skip(ftype) - elif fid == 8: - if ftype == TType.STRING: - self.grantor = iprot.readString(); - else: - iprot.skip(ftype) else: iprot.skip(ftype) iprot.readFieldEnd() @@ -1082,26 +1042,6 @@ def write(self, oprot): oprot.writeFieldBegin('ownerName', TType.STRING, 3) oprot.writeString(self.ownerName) oprot.writeFieldEnd() - if self.principalName is not None: - oprot.writeFieldBegin('principalName', TType.STRING, 4) - oprot.writeString(self.principalName) - oprot.writeFieldEnd() - if self.principalType is not None: - oprot.writeFieldBegin('principalType', TType.STRING, 5) - oprot.writeString(self.principalType) - oprot.writeFieldEnd() - if self.grantOption is not None: - oprot.writeFieldBegin('grantOption', TType.BOOL, 6) - oprot.writeBool(self.grantOption) - oprot.writeFieldEnd() - if self.grantTime is not None: - oprot.writeFieldBegin('grantTime', TType.I32, 7) - oprot.writeI32(self.grantTime) - oprot.writeFieldEnd() - if self.grantor is not None: - oprot.writeFieldBegin('grantor', TType.STRING, 8) - oprot.writeString(self.grantor) - oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() @@ -1252,6 +1192,153 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class GetRoleGrantsForPrincipalRequest: + """ + Attributes: + - principal_name + - principal_type + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'principal_name', None, None, ), # 1 + (2, TType.I32, 'principal_type', None, None, ), # 2 + ) + + def __init__(self, principal_name=None, principal_type=None,): + self.principal_name = principal_name + self.principal_type = principal_type + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.principal_name = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I32: + self.principal_type = iprot.readI32(); + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetRoleGrantsForPrincipalRequest') + if self.principal_name is not None: + oprot.writeFieldBegin('principal_name', TType.STRING, 1) + oprot.writeString(self.principal_name) + oprot.writeFieldEnd() + if self.principal_type is not None: + oprot.writeFieldBegin('principal_type', TType.I32, 2) + oprot.writeI32(self.principal_type) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.principal_name is None: + raise TProtocol.TProtocolException(message='Required field principal_name is unset!') + if self.principal_type is None: + raise TProtocol.TProtocolException(message='Required field principal_type is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + +class GetRoleGrantsForPrincipalResponse: + """ + Attributes: + - principalGrants + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'principalGrants', (TType.STRUCT,(RolePrincipalGrant, RolePrincipalGrant.thrift_spec)), None, ), # 1 + ) + + def __init__(self, principalGrants=None,): + self.principalGrants = principalGrants + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.LIST: + self.principalGrants = [] + (_etype72, _size69) = iprot.readListBegin() + for _i73 in xrange(_size69): + _elem74 = RolePrincipalGrant() + _elem74.read(iprot) + self.principalGrants.append(_elem74) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('GetRoleGrantsForPrincipalResponse') + if self.principalGrants is not None: + oprot.writeFieldBegin('principalGrants', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.principalGrants)) + for iter75 in self.principalGrants: + iter75.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.principalGrants is None: + raise TProtocol.TProtocolException(message='Required field principalGrants is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class GetPrincipalsInRoleRequest: """ Attributes: @@ -1298,6 +1385,8 @@ def write(self, oprot): oprot.writeStructEnd() def validate(self): + if self.roleName is None: + raise TProtocol.TProtocolException(message='Required field roleName is unset!') return @@ -1338,11 +1427,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.principalGrants = [] - (_etype72, _size69) = iprot.readListBegin() - for _i73 in xrange(_size69): - _elem74 = RolePrincipalGrant() - _elem74.read(iprot) - self.principalGrants.append(_elem74) + (_etype79, _size76) = iprot.readListBegin() + for _i80 in xrange(_size76): + _elem81 = RolePrincipalGrant() + _elem81.read(iprot) + self.principalGrants.append(_elem81) iprot.readListEnd() else: iprot.skip(ftype) @@ -1359,14 +1448,16 @@ def write(self, oprot): if self.principalGrants is not None: oprot.writeFieldBegin('principalGrants', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.principalGrants)) - for iter75 in self.principalGrants: - iter75.write(oprot) + for iter82 in self.principalGrants: + iter82.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() oprot.writeStructEnd() def validate(self): + if self.principalGrants is None: + raise TProtocol.TProtocolException(message='Required field principalGrants is unset!') return @@ -1440,11 +1531,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype77, _vtype78, _size76 ) = iprot.readMapBegin() - for _i80 in xrange(_size76): - _key81 = iprot.readString(); - _val82 = iprot.readString(); - self.parameters[_key81] = _val82 + (_ktype84, _vtype85, _size83 ) = iprot.readMapBegin() + for _i87 in xrange(_size83): + _key88 = iprot.readString(); + _val89 = iprot.readString(); + self.parameters[_key88] = _val89 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1489,9 +1580,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 4) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter83,viter84 in self.parameters.items(): - oprot.writeString(kiter83) - oprot.writeString(viter84) + for kiter90,viter91 in self.parameters.items(): + oprot.writeString(kiter90) + oprot.writeString(viter91) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -1566,11 +1657,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.parameters = {} - (_ktype86, _vtype87, _size85 ) = iprot.readMapBegin() - for _i89 in xrange(_size85): - _key90 = iprot.readString(); - _val91 = iprot.readString(); - self.parameters[_key90] = _val91 + (_ktype93, _vtype94, _size92 ) = iprot.readMapBegin() + for _i96 in xrange(_size92): + _key97 = iprot.readString(); + _val98 = iprot.readString(); + self.parameters[_key97] = _val98 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1595,9 +1686,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 3) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter92,viter93 in self.parameters.items(): - oprot.writeString(kiter92) - oprot.writeString(viter93) + for kiter99,viter100 in self.parameters.items(): + oprot.writeString(kiter99) + oprot.writeString(viter100) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1722,41 +1813,41 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.skewedColNames = [] - (_etype97, _size94) = iprot.readListBegin() - for _i98 in xrange(_size94): - _elem99 = iprot.readString(); - self.skewedColNames.append(_elem99) + (_etype104, _size101) = iprot.readListBegin() + for _i105 in xrange(_size101): + _elem106 = iprot.readString(); + self.skewedColNames.append(_elem106) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.skewedColValues = [] - (_etype103, _size100) = iprot.readListBegin() - for _i104 in xrange(_size100): - _elem105 = [] - (_etype109, _size106) = iprot.readListBegin() - for _i110 in xrange(_size106): - _elem111 = iprot.readString(); - _elem105.append(_elem111) + (_etype110, _size107) = iprot.readListBegin() + for _i111 in xrange(_size107): + _elem112 = [] + (_etype116, _size113) = iprot.readListBegin() + for _i117 in xrange(_size113): + _elem118 = iprot.readString(); + _elem112.append(_elem118) iprot.readListEnd() - self.skewedColValues.append(_elem105) + self.skewedColValues.append(_elem112) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.skewedColValueLocationMaps = {} - (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() - for _i116 in xrange(_size112): - _key117 = [] - (_etype122, _size119) = iprot.readListBegin() - for _i123 in xrange(_size119): - _elem124 = iprot.readString(); - _key117.append(_elem124) + (_ktype120, _vtype121, _size119 ) = iprot.readMapBegin() + for _i123 in xrange(_size119): + _key124 = [] + (_etype129, _size126) = iprot.readListBegin() + for _i130 in xrange(_size126): + _elem131 = iprot.readString(); + _key124.append(_elem131) iprot.readListEnd() - _val118 = iprot.readString(); - self.skewedColValueLocationMaps[_key117] = _val118 + _val125 = iprot.readString(); + self.skewedColValueLocationMaps[_key124] = _val125 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1773,29 +1864,29 @@ def write(self, oprot): if self.skewedColNames is not None: oprot.writeFieldBegin('skewedColNames', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.skewedColNames)) - for iter125 in self.skewedColNames: - oprot.writeString(iter125) + for iter132 in self.skewedColNames: + oprot.writeString(iter132) oprot.writeListEnd() oprot.writeFieldEnd() if self.skewedColValues is not None: oprot.writeFieldBegin('skewedColValues', TType.LIST, 2) oprot.writeListBegin(TType.LIST, len(self.skewedColValues)) - for iter126 in self.skewedColValues: - oprot.writeListBegin(TType.STRING, len(iter126)) - for iter127 in iter126: - oprot.writeString(iter127) + for iter133 in self.skewedColValues: + oprot.writeListBegin(TType.STRING, len(iter133)) + for iter134 in iter133: + oprot.writeString(iter134) oprot.writeListEnd() oprot.writeListEnd() oprot.writeFieldEnd() if self.skewedColValueLocationMaps is not None: oprot.writeFieldBegin('skewedColValueLocationMaps', TType.MAP, 3) oprot.writeMapBegin(TType.LIST, TType.STRING, len(self.skewedColValueLocationMaps)) - for kiter128,viter129 in self.skewedColValueLocationMaps.items(): - oprot.writeListBegin(TType.STRING, len(kiter128)) - for iter130 in kiter128: - oprot.writeString(iter130) + for kiter135,viter136 in self.skewedColValueLocationMaps.items(): + oprot.writeListBegin(TType.STRING, len(kiter135)) + for iter137 in kiter135: + oprot.writeString(iter137) oprot.writeListEnd() - oprot.writeString(viter129) + oprot.writeString(viter136) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1875,11 +1966,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.cols = [] - (_etype134, _size131) = iprot.readListBegin() - for _i135 in xrange(_size131): - _elem136 = FieldSchema() - _elem136.read(iprot) - self.cols.append(_elem136) + (_etype141, _size138) = iprot.readListBegin() + for _i142 in xrange(_size138): + _elem143 = FieldSchema() + _elem143.read(iprot) + self.cols.append(_elem143) iprot.readListEnd() else: iprot.skip(ftype) @@ -1917,32 +2008,32 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.bucketCols = [] - (_etype140, _size137) = iprot.readListBegin() - for _i141 in xrange(_size137): - _elem142 = iprot.readString(); - self.bucketCols.append(_elem142) + (_etype147, _size144) = iprot.readListBegin() + for _i148 in xrange(_size144): + _elem149 = iprot.readString(); + self.bucketCols.append(_elem149) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.sortCols = [] - (_etype146, _size143) = iprot.readListBegin() - for _i147 in xrange(_size143): - _elem148 = Order() - _elem148.read(iprot) - self.sortCols.append(_elem148) + (_etype153, _size150) = iprot.readListBegin() + for _i154 in xrange(_size150): + _elem155 = Order() + _elem155.read(iprot) + self.sortCols.append(_elem155) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.MAP: self.parameters = {} - (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() - for _i153 in xrange(_size149): - _key154 = iprot.readString(); - _val155 = iprot.readString(); - self.parameters[_key154] = _val155 + (_ktype157, _vtype158, _size156 ) = iprot.readMapBegin() + for _i160 in xrange(_size156): + _key161 = iprot.readString(); + _val162 = iprot.readString(); + self.parameters[_key161] = _val162 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1970,8 +2061,8 @@ def write(self, oprot): if self.cols is not None: oprot.writeFieldBegin('cols', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.cols)) - for iter156 in self.cols: - iter156.write(oprot) + for iter163 in self.cols: + iter163.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.location is not None: @@ -2001,23 +2092,23 @@ def write(self, oprot): if self.bucketCols is not None: oprot.writeFieldBegin('bucketCols', TType.LIST, 8) oprot.writeListBegin(TType.STRING, len(self.bucketCols)) - for iter157 in self.bucketCols: - oprot.writeString(iter157) + for iter164 in self.bucketCols: + oprot.writeString(iter164) oprot.writeListEnd() oprot.writeFieldEnd() if self.sortCols is not None: oprot.writeFieldBegin('sortCols', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.sortCols)) - for iter158 in self.sortCols: - iter158.write(oprot) + for iter165 in self.sortCols: + iter165.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 10) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter159,viter160 in self.parameters.items(): - oprot.writeString(kiter159) - oprot.writeString(viter160) + for kiter166,viter167 in self.parameters.items(): + oprot.writeString(kiter166) + oprot.writeString(viter167) oprot.writeMapEnd() oprot.writeFieldEnd() if self.skewedInfo is not None: @@ -2144,22 +2235,22 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.partitionKeys = [] - (_etype164, _size161) = iprot.readListBegin() - for _i165 in xrange(_size161): - _elem166 = FieldSchema() - _elem166.read(iprot) - self.partitionKeys.append(_elem166) + (_etype171, _size168) = iprot.readListBegin() + for _i172 in xrange(_size168): + _elem173 = FieldSchema() + _elem173.read(iprot) + self.partitionKeys.append(_elem173) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype168, _vtype169, _size167 ) = iprot.readMapBegin() - for _i171 in xrange(_size167): - _key172 = iprot.readString(); - _val173 = iprot.readString(); - self.parameters[_key172] = _val173 + (_ktype175, _vtype176, _size174 ) = iprot.readMapBegin() + for _i178 in xrange(_size174): + _key179 = iprot.readString(); + _val180 = iprot.readString(); + self.parameters[_key179] = _val180 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2225,16 +2316,16 @@ def write(self, oprot): if self.partitionKeys is not None: oprot.writeFieldBegin('partitionKeys', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.partitionKeys)) - for iter174 in self.partitionKeys: - iter174.write(oprot) + for iter181 in self.partitionKeys: + iter181.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter175,viter176 in self.parameters.items(): - oprot.writeString(kiter175) - oprot.writeString(viter176) + for kiter182,viter183 in self.parameters.items(): + oprot.writeString(kiter182) + oprot.writeString(viter183) oprot.writeMapEnd() oprot.writeFieldEnd() if self.viewOriginalText is not None: @@ -2318,10 +2409,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype180, _size177) = iprot.readListBegin() - for _i181 in xrange(_size177): - _elem182 = iprot.readString(); - self.values.append(_elem182) + (_etype187, _size184) = iprot.readListBegin() + for _i188 in xrange(_size184): + _elem189 = iprot.readString(); + self.values.append(_elem189) iprot.readListEnd() else: iprot.skip(ftype) @@ -2354,11 +2445,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype184, _vtype185, _size183 ) = iprot.readMapBegin() - for _i187 in xrange(_size183): - _key188 = iprot.readString(); - _val189 = iprot.readString(); - self.parameters[_key188] = _val189 + (_ktype191, _vtype192, _size190 ) = iprot.readMapBegin() + for _i194 in xrange(_size190): + _key195 = iprot.readString(); + _val196 = iprot.readString(); + self.parameters[_key195] = _val196 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2381,8 +2472,8 @@ def write(self, oprot): if self.values is not None: oprot.writeFieldBegin('values', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.values)) - for iter190 in self.values: - oprot.writeString(iter190) + for iter197 in self.values: + oprot.writeString(iter197) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: @@ -2408,9 +2499,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 7) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter191,viter192 in self.parameters.items(): - oprot.writeString(kiter191) - oprot.writeString(viter192) + for kiter198,viter199 in self.parameters.items(): + oprot.writeString(kiter198) + oprot.writeString(viter199) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -2529,11 +2620,11 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() - for _i197 in xrange(_size193): - _key198 = iprot.readString(); - _val199 = iprot.readString(); - self.parameters[_key198] = _val199 + (_ktype201, _vtype202, _size200 ) = iprot.readMapBegin() + for _i204 in xrange(_size200): + _key205 = iprot.readString(); + _val206 = iprot.readString(); + self.parameters[_key205] = _val206 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2587,9 +2678,9 @@ def write(self, oprot): if self.parameters is not None: oprot.writeFieldBegin('parameters', TType.MAP, 9) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.parameters)) - for kiter200,viter201 in self.parameters.items(): - oprot.writeString(kiter200) - oprot.writeString(viter201) + for kiter207,viter208 in self.parameters.items(): + oprot.writeString(kiter207) + oprot.writeString(viter208) oprot.writeMapEnd() oprot.writeFieldEnd() if self.deferredRebuild is not None: @@ -3459,11 +3550,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.statsObj = [] - (_etype205, _size202) = iprot.readListBegin() - for _i206 in xrange(_size202): - _elem207 = ColumnStatisticsObj() - _elem207.read(iprot) - self.statsObj.append(_elem207) + (_etype212, _size209) = iprot.readListBegin() + for _i213 in xrange(_size209): + _elem214 = ColumnStatisticsObj() + _elem214.read(iprot) + self.statsObj.append(_elem214) iprot.readListEnd() else: iprot.skip(ftype) @@ -3484,8 +3575,8 @@ def write(self, oprot): if self.statsObj is not None: oprot.writeFieldBegin('statsObj', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.statsObj)) - for iter208 in self.statsObj: - iter208.write(oprot) + for iter215 in self.statsObj: + iter215.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3539,22 +3630,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype212, _size209) = iprot.readListBegin() - for _i213 in xrange(_size209): - _elem214 = FieldSchema() - _elem214.read(iprot) - self.fieldSchemas.append(_elem214) + (_etype219, _size216) = iprot.readListBegin() + for _i220 in xrange(_size216): + _elem221 = FieldSchema() + _elem221.read(iprot) + self.fieldSchemas.append(_elem221) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype216, _vtype217, _size215 ) = iprot.readMapBegin() - for _i219 in xrange(_size215): - _key220 = iprot.readString(); - _val221 = iprot.readString(); - self.properties[_key220] = _val221 + (_ktype223, _vtype224, _size222 ) = iprot.readMapBegin() + for _i226 in xrange(_size222): + _key227 = iprot.readString(); + _val228 = iprot.readString(); + self.properties[_key227] = _val228 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3571,16 +3662,16 @@ def write(self, oprot): if self.fieldSchemas is not None: oprot.writeFieldBegin('fieldSchemas', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.fieldSchemas)) - for iter222 in self.fieldSchemas: - iter222.write(oprot) + for iter229 in self.fieldSchemas: + iter229.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 2) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter223,viter224 in self.properties.items(): - oprot.writeString(kiter223) - oprot.writeString(viter224) + for kiter230,viter231 in self.properties.items(): + oprot.writeString(kiter230) + oprot.writeString(viter231) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3627,11 +3718,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype226, _vtype227, _size225 ) = iprot.readMapBegin() - for _i229 in xrange(_size225): - _key230 = iprot.readString(); - _val231 = iprot.readString(); - self.properties[_key230] = _val231 + (_ktype233, _vtype234, _size232 ) = iprot.readMapBegin() + for _i236 in xrange(_size232): + _key237 = iprot.readString(); + _val238 = iprot.readString(); + self.properties[_key237] = _val238 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3648,9 +3739,9 @@ def write(self, oprot): if self.properties is not None: oprot.writeFieldBegin('properties', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.properties)) - for kiter232,viter233 in self.properties.items(): - oprot.writeString(kiter232) - oprot.writeString(viter233) + for kiter239,viter240 in self.properties.items(): + oprot.writeString(kiter239) + oprot.writeString(viter240) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3700,11 +3791,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype237, _size234) = iprot.readListBegin() - for _i238 in xrange(_size234): - _elem239 = Partition() - _elem239.read(iprot) - self.partitions.append(_elem239) + (_etype244, _size241) = iprot.readListBegin() + for _i245 in xrange(_size241): + _elem246 = Partition() + _elem246.read(iprot) + self.partitions.append(_elem246) iprot.readListEnd() else: iprot.skip(ftype) @@ -3726,8 +3817,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter240 in self.partitions: - iter240.write(oprot) + for iter247 in self.partitions: + iter247.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -3896,11 +3987,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype244, _size241) = iprot.readListBegin() - for _i245 in xrange(_size241): - _elem246 = ColumnStatisticsObj() - _elem246.read(iprot) - self.tableStats.append(_elem246) + (_etype251, _size248) = iprot.readListBegin() + for _i252 in xrange(_size248): + _elem253 = ColumnStatisticsObj() + _elem253.read(iprot) + self.tableStats.append(_elem253) iprot.readListEnd() else: iprot.skip(ftype) @@ -3917,8 +4008,8 @@ def write(self, oprot): if self.tableStats is not None: oprot.writeFieldBegin('tableStats', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.tableStats)) - for iter247 in self.tableStats: - iter247.write(oprot) + for iter254 in self.tableStats: + iter254.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3967,17 +4058,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype249, _vtype250, _size248 ) = iprot.readMapBegin() - for _i252 in xrange(_size248): - _key253 = iprot.readString(); - _val254 = [] - (_etype258, _size255) = iprot.readListBegin() - for _i259 in xrange(_size255): - _elem260 = ColumnStatisticsObj() - _elem260.read(iprot) - _val254.append(_elem260) + (_ktype256, _vtype257, _size255 ) = iprot.readMapBegin() + for _i259 in xrange(_size255): + _key260 = iprot.readString(); + _val261 = [] + (_etype265, _size262) = iprot.readListBegin() + for _i266 in xrange(_size262): + _elem267 = ColumnStatisticsObj() + _elem267.read(iprot) + _val261.append(_elem267) iprot.readListEnd() - self.partStats[_key253] = _val254 + self.partStats[_key260] = _val261 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3994,11 +4085,11 @@ def write(self, oprot): if self.partStats is not None: oprot.writeFieldBegin('partStats', TType.MAP, 1) oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.partStats)) - for kiter261,viter262 in self.partStats.items(): - oprot.writeString(kiter261) - oprot.writeListBegin(TType.STRUCT, len(viter262)) - for iter263 in viter262: - iter263.write(oprot) + for kiter268,viter269 in self.partStats.items(): + oprot.writeString(kiter268) + oprot.writeListBegin(TType.STRUCT, len(viter269)) + for iter270 in viter269: + iter270.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -4064,10 +4155,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype267, _size264) = iprot.readListBegin() - for _i268 in xrange(_size264): - _elem269 = iprot.readString(); - self.colNames.append(_elem269) + (_etype274, _size271) = iprot.readListBegin() + for _i275 in xrange(_size271): + _elem276 = iprot.readString(); + self.colNames.append(_elem276) iprot.readListEnd() else: iprot.skip(ftype) @@ -4092,8 +4183,8 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter270 in self.colNames: - oprot.writeString(iter270) + for iter277 in self.colNames: + oprot.writeString(iter277) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4165,20 +4256,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype274, _size271) = iprot.readListBegin() - for _i275 in xrange(_size271): - _elem276 = iprot.readString(); - self.colNames.append(_elem276) + (_etype281, _size278) = iprot.readListBegin() + for _i282 in xrange(_size278): + _elem283 = iprot.readString(); + self.colNames.append(_elem283) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype280, _size277) = iprot.readListBegin() - for _i281 in xrange(_size277): - _elem282 = iprot.readString(); - self.partNames.append(_elem282) + (_etype287, _size284) = iprot.readListBegin() + for _i288 in xrange(_size284): + _elem289 = iprot.readString(); + self.partNames.append(_elem289) iprot.readListEnd() else: iprot.skip(ftype) @@ -4203,15 +4294,15 @@ def write(self, oprot): if self.colNames is not None: oprot.writeFieldBegin('colNames', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.colNames)) - for iter283 in self.colNames: - oprot.writeString(iter283) + for iter290 in self.colNames: + oprot.writeString(iter290) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter284 in self.partNames: - oprot.writeString(iter284) + for iter291 in self.partNames: + oprot.writeString(iter291) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4266,11 +4357,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype288, _size285) = iprot.readListBegin() - for _i289 in xrange(_size285): - _elem290 = Partition() - _elem290.read(iprot) - self.partitions.append(_elem290) + (_etype295, _size292) = iprot.readListBegin() + for _i296 in xrange(_size292): + _elem297 = Partition() + _elem297.read(iprot) + self.partitions.append(_elem297) iprot.readListEnd() else: iprot.skip(ftype) @@ -4287,8 +4378,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter291 in self.partitions: - iter291.write(oprot) + for iter298 in self.partitions: + iter298.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4357,11 +4448,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype295, _size292) = iprot.readListBegin() - for _i296 in xrange(_size292): - _elem297 = Partition() - _elem297.read(iprot) - self.parts.append(_elem297) + (_etype302, _size299) = iprot.readListBegin() + for _i303 in xrange(_size299): + _elem304 = Partition() + _elem304.read(iprot) + self.parts.append(_elem304) iprot.readListEnd() else: iprot.skip(ftype) @@ -4396,8 +4487,8 @@ def write(self, oprot): if self.parts is not None: oprot.writeFieldBegin('parts', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.parts)) - for iter298 in self.parts: - iter298.write(oprot) + for iter305 in self.parts: + iter305.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -4460,11 +4551,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = Partition() - _elem304.read(iprot) - self.partitions.append(_elem304) + (_etype309, _size306) = iprot.readListBegin() + for _i310 in xrange(_size306): + _elem311 = Partition() + _elem311.read(iprot) + self.partitions.append(_elem311) iprot.readListEnd() else: iprot.skip(ftype) @@ -4481,8 +4572,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter305 in self.partitions: - iter305.write(oprot) + for iter312 in self.partitions: + iter312.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4606,21 +4697,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype309, _size306) = iprot.readListBegin() - for _i310 in xrange(_size306): - _elem311 = iprot.readString(); - self.names.append(_elem311) + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = iprot.readString(); + self.names.append(_elem318) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype315, _size312) = iprot.readListBegin() - for _i316 in xrange(_size312): - _elem317 = DropPartitionsExpr() - _elem317.read(iprot) - self.exprs.append(_elem317) + (_etype322, _size319) = iprot.readListBegin() + for _i323 in xrange(_size319): + _elem324 = DropPartitionsExpr() + _elem324.read(iprot) + self.exprs.append(_elem324) iprot.readListEnd() else: iprot.skip(ftype) @@ -4637,15 +4728,15 @@ def write(self, oprot): if self.names is not None: oprot.writeFieldBegin('names', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.names)) - for iter318 in self.names: - oprot.writeString(iter318) + for iter325 in self.names: + oprot.writeString(iter325) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter319 in self.exprs: - iter319.write(oprot) + for iter326 in self.exprs: + iter326.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4972,11 +5063,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = ResourceUri() - _elem325.read(iprot) - self.resourceUris.append(_elem325) + (_etype330, _size327) = iprot.readListBegin() + for _i331 in xrange(_size327): + _elem332 = ResourceUri() + _elem332.read(iprot) + self.resourceUris.append(_elem332) iprot.readListEnd() else: iprot.skip(ftype) @@ -5021,8 +5112,8 @@ def write(self, oprot): if self.resourceUris is not None: oprot.writeFieldBegin('resourceUris', TType.LIST, 8) oprot.writeListBegin(TType.STRUCT, len(self.resourceUris)) - for iter326 in self.resourceUris: - iter326.write(oprot) + for iter333 in self.resourceUris: + iter333.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5181,11 +5272,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype330, _size327) = iprot.readListBegin() - for _i331 in xrange(_size327): - _elem332 = TxnInfo() - _elem332.read(iprot) - self.open_txns.append(_elem332) + (_etype337, _size334) = iprot.readListBegin() + for _i338 in xrange(_size334): + _elem339 = TxnInfo() + _elem339.read(iprot) + self.open_txns.append(_elem339) iprot.readListEnd() else: iprot.skip(ftype) @@ -5206,8 +5297,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.open_txns)) - for iter333 in self.open_txns: - iter333.write(oprot) + for iter340 in self.open_txns: + iter340.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5266,10 +5357,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.SET: self.open_txns = set() - (_etype337, _size334) = iprot.readSetBegin() - for _i338 in xrange(_size334): - _elem339 = iprot.readI64(); - self.open_txns.add(_elem339) + (_etype344, _size341) = iprot.readSetBegin() + for _i345 in xrange(_size341): + _elem346 = iprot.readI64(); + self.open_txns.add(_elem346) iprot.readSetEnd() else: iprot.skip(ftype) @@ -5290,8 +5381,8 @@ def write(self, oprot): if self.open_txns is not None: oprot.writeFieldBegin('open_txns', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.open_txns)) - for iter340 in self.open_txns: - oprot.writeI64(iter340) + for iter347 in self.open_txns: + oprot.writeI64(iter347) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5432,10 +5523,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype344, _size341) = iprot.readListBegin() - for _i345 in xrange(_size341): - _elem346 = iprot.readI64(); - self.txn_ids.append(_elem346) + (_etype351, _size348) = iprot.readListBegin() + for _i352 in xrange(_size348): + _elem353 = iprot.readI64(); + self.txn_ids.append(_elem353) iprot.readListEnd() else: iprot.skip(ftype) @@ -5452,8 +5543,8 @@ def write(self, oprot): if self.txn_ids is not None: oprot.writeFieldBegin('txn_ids', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.txn_ids)) - for iter347 in self.txn_ids: - oprot.writeI64(iter347) + for iter354 in self.txn_ids: + oprot.writeI64(iter354) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5749,11 +5840,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype351, _size348) = iprot.readListBegin() - for _i352 in xrange(_size348): - _elem353 = LockComponent() - _elem353.read(iprot) - self.component.append(_elem353) + (_etype358, _size355) = iprot.readListBegin() + for _i359 in xrange(_size355): + _elem360 = LockComponent() + _elem360.read(iprot) + self.component.append(_elem360) iprot.readListEnd() else: iprot.skip(ftype) @@ -5785,8 +5876,8 @@ def write(self, oprot): if self.component is not None: oprot.writeFieldBegin('component', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.component)) - for iter354 in self.component: - iter354.write(oprot) + for iter361 in self.component: + iter361.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -6287,11 +6378,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype358, _size355) = iprot.readListBegin() - for _i359 in xrange(_size355): - _elem360 = ShowLocksResponseElement() - _elem360.read(iprot) - self.locks.append(_elem360) + (_etype365, _size362) = iprot.readListBegin() + for _i366 in xrange(_size362): + _elem367 = ShowLocksResponseElement() + _elem367.read(iprot) + self.locks.append(_elem367) iprot.readListEnd() else: iprot.skip(ftype) @@ -6308,8 +6399,8 @@ def write(self, oprot): if self.locks is not None: oprot.writeFieldBegin('locks', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.locks)) - for iter361 in self.locks: - iter361.write(oprot) + for iter368 in self.locks: + iter368.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6744,11 +6835,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype365, _size362) = iprot.readListBegin() - for _i366 in xrange(_size362): - _elem367 = ShowCompactResponseElement() - _elem367.read(iprot) - self.compacts.append(_elem367) + (_etype372, _size369) = iprot.readListBegin() + for _i373 in xrange(_size369): + _elem374 = ShowCompactResponseElement() + _elem374.read(iprot) + self.compacts.append(_elem374) iprot.readListEnd() else: iprot.skip(ftype) @@ -6765,8 +6856,8 @@ def write(self, oprot): if self.compacts is not None: oprot.writeFieldBegin('compacts', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.compacts)) - for iter368 in self.compacts: - iter368.write(oprot) + for iter375 in self.compacts: + iter375.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index b768b7f..ea75b20 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -266,21 +266,11 @@ class Role ROLENAME = 1 CREATETIME = 2 OWNERNAME = 3 - PRINCIPALNAME = 4 - PRINCIPALTYPE = 5 - GRANTOPTION = 6 - GRANTTIME = 7 - GRANTOR = 8 FIELDS = { ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'}, CREATETIME => {:type => ::Thrift::Types::I32, :name => 'createTime'}, - OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'}, - PRINCIPALNAME => {:type => ::Thrift::Types::STRING, :name => 'principalName', :optional => true}, - PRINCIPALTYPE => {:type => ::Thrift::Types::STRING, :name => 'principalType', :optional => true}, - GRANTOPTION => {:type => ::Thrift::Types::BOOL, :name => 'grantOption', :optional => true}, - GRANTTIME => {:type => ::Thrift::Types::I32, :name => 'grantTime', :optional => true}, - GRANTOR => {:type => ::Thrift::Types::STRING, :name => 'grantor', :optional => true} + OWNERNAME => {:type => ::Thrift::Types::STRING, :name => 'ownerName'} } def struct_fields; FIELDS; end @@ -325,6 +315,46 @@ class RolePrincipalGrant ::Thrift::Struct.generate_accessors self end +class GetRoleGrantsForPrincipalRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + PRINCIPAL_NAME = 1 + PRINCIPAL_TYPE = 2 + + FIELDS = { + PRINCIPAL_NAME => {:type => ::Thrift::Types::STRING, :name => 'principal_name'}, + PRINCIPAL_TYPE => {:type => ::Thrift::Types::I32, :name => 'principal_type', :enum_class => ::PrincipalType} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field principal_name is unset!') unless @principal_name + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field principal_type is unset!') unless @principal_type + unless @principal_type.nil? || ::PrincipalType::VALID_VALUES.include?(@principal_type) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principal_type!') + end + end + + ::Thrift::Struct.generate_accessors self +end + +class GetRoleGrantsForPrincipalResponse + include ::Thrift::Struct, ::Thrift::Struct_Union + PRINCIPALGRANTS = 1 + + FIELDS = { + PRINCIPALGRANTS => {:type => ::Thrift::Types::LIST, :name => 'principalGrants', :element => {:type => ::Thrift::Types::STRUCT, :class => ::RolePrincipalGrant}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field principalGrants is unset!') unless @principalGrants + end + + ::Thrift::Struct.generate_accessors self +end + class GetPrincipalsInRoleRequest include ::Thrift::Struct, ::Thrift::Struct_Union ROLENAME = 1 @@ -336,6 +366,7 @@ class GetPrincipalsInRoleRequest def struct_fields; FIELDS; end def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field roleName is unset!') unless @roleName end ::Thrift::Struct.generate_accessors self @@ -352,6 +383,7 @@ class GetPrincipalsInRoleResponse def struct_fields; FIELDS; end def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field principalGrants is unset!') unless @principalGrants end ::Thrift::Struct.generate_accessors self diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 745c1f5..4d8e38d 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1464,6 +1464,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_principals_in_role failed: unknown result') end + def get_role_grants_for_principal(request) + send_get_role_grants_for_principal(request) + return recv_get_role_grants_for_principal() + end + + def send_get_role_grants_for_principal(request) + send_message('get_role_grants_for_principal', Get_role_grants_for_principal_args, :request => request) + end + + def recv_get_role_grants_for_principal() + result = receive_message(Get_role_grants_for_principal_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_role_grants_for_principal failed: unknown result') + end + def get_privilege_set(hiveObject, user_name, group_names) send_get_privilege_set(hiveObject, user_name, group_names) return recv_get_privilege_set() @@ -2939,6 +2955,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_principals_in_role', seqid) end + def process_get_role_grants_for_principal(seqid, iprot, oprot) + args = read_args(iprot, Get_role_grants_for_principal_args) + result = Get_role_grants_for_principal_result.new() + begin + result.success = @handler.get_role_grants_for_principal(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'get_role_grants_for_principal', seqid) + end + def process_get_privilege_set(seqid, iprot, oprot) args = read_args(iprot, Get_privilege_set_args) result = Get_privilege_set_result.new() @@ -6515,6 +6542,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_role_grants_for_principal_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::GetRoleGrantsForPrincipalRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_role_grants_for_principal_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetRoleGrantsForPrincipalResponse}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Get_privilege_set_args include ::Thrift::Struct, ::Thrift::Struct_Union HIVEOBJECT = 1 diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index d5c7ba7..6c67996 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -80,6 +80,8 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; import org.apache.hadoop.hive.metastore.api.HeartbeatRequest; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -4013,11 +4015,6 @@ private boolean isNewRoleAParent(String newRole, String curRole) throws MetaExce for (MRoleMap roleMap : roleMaps) { MRole mrole = roleMap.getRole(); Role role = new Role(mrole.getRoleName(), mrole.getCreateTime(), mrole.getOwnerName()); - role.setPrincipalName(roleMap.getPrincipalName()); - role.setPrincipalType(roleMap.getPrincipalType()); - role.setGrantOption(roleMap.getGrantOption()); - role.setGrantTime(roleMap.getAddTime()); - role.setGrantor(roleMap.getGrantor()); result.add(role); } } @@ -4887,33 +4884,10 @@ public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleReq throws MetaException, TException { incrementCounter("get_principals_in_role"); - String role_name = request.getRoleName(); - List rolePrinGrantList = new ArrayList(); Exception ex = null; + List roleMaps = null; try { - List roleMaps = getMS().listRoleMembers(role_name); - if (roleMaps != null) { - //convert each MRoleMap object into a thrift RolePrincipalGrant object - for (MRoleMap roleMap : roleMaps) { - String mapRoleName = roleMap.getRole().getRoleName(); - if (!role_name.equals(mapRoleName)) { - // should not happen - throw new AssertionError("Role name " + mapRoleName + " does not match role name arg " - + role_name); - } - RolePrincipalGrant rolePrinGrant = new RolePrincipalGrant( - role_name, - roleMap.getPrincipalName(), - PrincipalType.valueOf(roleMap.getPrincipalType()), - roleMap.getGrantOption(), - roleMap.getAddTime(), - roleMap.getGrantor(), - PrincipalType.valueOf(roleMap.getGrantorType()) - ); - rolePrinGrantList.add(rolePrinGrant); - } - } - + roleMaps = getMS().listRoleMembers(request.getRoleName()); } catch (MetaException e) { throw e; } catch (Exception e) { @@ -4922,10 +4896,59 @@ public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleReq } finally { endFunction("get_principals_in_role", ex == null, ex); } - return new GetPrincipalsInRoleResponse(rolePrinGrantList); + return new GetPrincipalsInRoleResponse(getRolePrincipalGrants(roleMaps)); } - } + @Override + public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( + GetRoleGrantsForPrincipalRequest request) throws MetaException, TException { + + incrementCounter("get_role_grants_for_principal"); + Exception ex = null; + List roleMaps = null; + try { + roleMaps = getMS().listRoles(request.getPrincipal_name(), request.getPrincipal_type()); + } catch (MetaException e) { + throw e; + } catch (Exception e) { + ex = e; + rethrowException(e); + } finally { + endFunction("get_role_grants_for_principal", ex == null, ex); + } + + List roleGrantsList = getRolePrincipalGrants(roleMaps); + // all users by default belongs to public role + roleGrantsList.add(new RolePrincipalGrant(PUBLIC, request.getPrincipal_name(), request + .getPrincipal_type(), false, 0, null, null)); + return new GetRoleGrantsForPrincipalResponse(roleGrantsList); + } + + /** + * Convert each MRoleMap object into a thrift RolePrincipalGrant object + * @param roleMaps + * @return + */ + private List getRolePrincipalGrants(List roleMaps) { + List rolePrinGrantList = new ArrayList(); + if (roleMaps != null) { + for (MRoleMap roleMap : roleMaps) { + RolePrincipalGrant rolePrinGrant = new RolePrincipalGrant( + roleMap.getRole().getRoleName(), + roleMap.getPrincipalName(), + PrincipalType.valueOf(roleMap.getPrincipalType()), + roleMap.getGrantOption(), + roleMap.getAddTime(), + roleMap.getGrantor(), + PrincipalType.valueOf(roleMap.getGrantorType()) + ); + rolePrinGrantList.add(rolePrinGrant); + } + } + return rolePrinGrantList; + } + + } public static IHMSHandler newHMSHandler(String name, HiveConf hiveConf) throws MetaException { return RetryingHMSHandler.getProxy(hiveConf, name); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 0550589..6c53e05 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -71,6 +71,8 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; import org.apache.hadoop.hive.metastore.api.HeartbeatRequest; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -1462,6 +1464,12 @@ public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleReq } @Override + public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( + GetRoleGrantsForPrincipalRequest getRolePrincReq) throws MetaException, TException { + return client.get_role_grants_for_principal(getRolePrincReq); + } + + @Override public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException { return client.grant_privileges(privileges); @@ -1709,4 +1717,5 @@ public Function getFunction(String dbName, String funcName) throws MetaException, TException { return client.get_functions(dbName, pattern); } + } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 47c49aa..93544d2 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -49,6 +49,8 @@ import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.Index; @@ -1268,6 +1270,18 @@ public IncompatibleMetastoreException(String message) { * @throws MetaException * @throws TException */ - GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest getPrincRoleReq) throws MetaException, - TException; + GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest getPrincRoleReq) + throws MetaException, TException; + + /** + * get all role-grants for roles that have been granted to given principal + * Note that in the returned list of RolePrincipalGrants, the principal information + * redundant as it would match the principal information in request + * @param getRolePrincReq + * @return + * @throws MetaException + * @throws TException + */ + GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( + GetRoleGrantsForPrincipalRequest getRolePrincReq) throws MetaException, TException; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index e185f12..aab7081 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -74,7 +74,7 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo; -import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.SerDeInfo; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowCompactResponseElement; @@ -172,7 +172,6 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeInfo; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject.HivePrivilegeObjectType; -import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRole; import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRoleGrant; import org.apache.hadoop.hive.ql.session.SessionState; import org.apache.hadoop.hive.serde.serdeConstants; @@ -933,8 +932,8 @@ private int roleDDL(RoleDDLDesc roleDDLDesc) throws HiveException, IOException { db.dropRole(roleDDLDesc.getName()); } else if (operation.equals(RoleDDLDesc.RoleOperation.SHOW_ROLE_GRANT)) { boolean testMode = conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST); - List roles = db.showRoleGrant(roleDDLDesc.getName(), roleDDLDesc.getPrincipalType()); - writeToFile(writeRoleInfo(roles, testMode), roleDDLDesc.getResFile()); + List roleGrants = db.getRoleGrantInfoForPrincipal(roleDDLDesc.getName(), roleDDLDesc.getPrincipalType()); + writeToFile(writeRoleGrantsInfo(roleGrants, testMode), roleDDLDesc.getResFile()); } else if (operation.equals(RoleDDLDesc.RoleOperation.SHOW_ROLES)) { List roleNames = db.getAllRoleNames(); //sort the list to get sorted (deterministic) output (for ease of testing) @@ -984,20 +983,16 @@ private int roleDDLV2(RoleDDLDesc roleDDLDesc) throws HiveException, IOException break; case SHOW_ROLE_GRANT: boolean testMode = conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST); - List roles = authorizer.getRoles(new HivePrincipal(roleDDLDesc.getName(), - getHivePrincipalType(roleDDLDesc.getPrincipalType()))); - writeToFile(writeHiveRoleInfo(roles, testMode), roleDDLDesc.getResFile()); + List roles = authorizer.getRoleGrantInfoForPrincipal( + new HivePrincipal(roleDDLDesc.getName(), getHivePrincipalType(roleDDLDesc.getPrincipalType()))); + writeToFile(writeRolesGrantedInfo(roles, testMode), roleDDLDesc.getResFile()); break; case SHOW_ROLES: List allRoles = authorizer.getAllRoles(); writeListToFileAfterSort(allRoles, roleDDLDesc.getResFile()); break; case SHOW_CURRENT_ROLE: - List currentRoles = authorizer.getCurrentRoles(); - List roleNames = new ArrayList(currentRoles.size()); - for (HiveRole role : currentRoles) { - roleNames.add(role.getRoleName()); - } + List roleNames = authorizer.getCurrentRoleNames(); writeListToFileAfterSort(roleNames, roleDDLDesc.getResFile()); break; case SET_ROLE: @@ -1005,7 +1000,7 @@ private int roleDDLV2(RoleDDLDesc roleDDLDesc) throws HiveException, IOException break; case SHOW_ROLE_PRINCIPALS: testMode = conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST); - List roleGrants = authorizer.getPrincipalsInRoleInfo(roleDDLDesc.getName()); + List roleGrants = authorizer.getPrincipalGrantInfoForRole(roleDDLDesc.getName()); writeToFile(writeHiveRoleGrantInfo(roleGrants, testMode), roleDDLDesc.getResFile()); break; default: @@ -2814,7 +2809,7 @@ private int showCompactions(ShowCompactionsDesc desc) throws HiveException { LOG.warn("show compactions: " + stringifyException(e)); return 1; } finally { - IOUtils.closeStream((FSDataOutputStream)os); + IOUtils.closeStream(os); } return 0; } @@ -2855,7 +2850,7 @@ private int showTxns(ShowTxnsDesc desc) throws HiveException { LOG.warn("show transactions: " + stringifyException(e)); return 1; } finally { - IOUtils.closeStream((FSDataOutputStream)os); + IOUtils.closeStream(os); } return 0; } @@ -3412,37 +3407,31 @@ static String writeGrantInfo(List privileges, boolean testM return builder.toString(); } - static String writeRoleInfo(List roles, boolean testMode) { - if (roles == null || roles.isEmpty()) { + static String writeRoleGrantsInfo(List roleGrants, boolean testMode) { + if (roleGrants == null || roleGrants.isEmpty()) { return ""; } StringBuilder builder = new StringBuilder(); //sort the list to get sorted (deterministic) output (for ease of testing) - Collections.sort(roles); - for (Role role : roles) { - appendNonNull(builder, role.getRoleName(), true); - appendNonNull(builder, testMode ? -1 : role.getCreateTime() * 1000L); - appendNonNull(builder, role.getPrincipalName()); - appendNonNull(builder, role.getPrincipalType()); - appendNonNull(builder, role.isGrantOption()); - appendNonNull(builder, testMode ? -1 : role.getGrantTime() * 1000L); - appendNonNull(builder, role.getGrantor()); + Collections.sort(roleGrants); + for (RolePrincipalGrant roleGrant : roleGrants) { + appendNonNull(builder, roleGrant.getRoleName(), true); + appendNonNull(builder, roleGrant.isGrantOption()); + appendNonNull(builder, testMode ? -1 : roleGrant.getGrantTime() * 1000L); + appendNonNull(builder, roleGrant.getGrantorName()); } return builder.toString(); } - static String writeHiveRoleInfo(List roles, boolean testMode) { + static String writeRolesGrantedInfo(List roles, boolean testMode) { if (roles == null || roles.isEmpty()) { return ""; } StringBuilder builder = new StringBuilder(); //sort the list to get sorted (deterministic) output (for ease of testing) Collections.sort(roles); - for (HiveRole role : roles) { + for (HiveRoleGrant role : roles) { appendNonNull(builder, role.getRoleName(), true); - appendNonNull(builder, testMode ? -1 : role.getCreateTime() * 1000L); - appendNonNull(builder, role.getPrincipalName()); - appendNonNull(builder, role.getPrincipalType()); appendNonNull(builder, role.isGrantOption()); appendNonNull(builder, testMode ? -1 : role.getGrantTime() * 1000L); appendNonNull(builder, role.getGrantor()); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index ace6cb5..5d5fa78 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -73,6 +73,8 @@ import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.HiveObjectType; @@ -85,6 +87,7 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.SerDeInfo; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.SkewedInfo; @@ -2013,14 +2016,17 @@ public void dropRole(String roleName) throws HiveException { } } - public List showRoleGrant(String principalName, PrincipalType principalType) throws HiveException { + public List getRoleGrantInfoForPrincipal(String principalName, PrincipalType principalType) throws HiveException { try { - return getMSC().list_roles(principalName, principalType); + GetRoleGrantsForPrincipalRequest req = new GetRoleGrantsForPrincipalRequest(principalName, principalType); + GetRoleGrantsForPrincipalResponse resp = getMSC().get_role_grants_for_principal(req); + return resp.getPrincipalGrants(); } catch (Exception e) { throw new HiveException(e); } } + public boolean grantRole(String roleName, String userName, PrincipalType principalType, String grantor, PrincipalType grantorType, boolean grantOption) throws HiveException { diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/RoleDDLDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/RoleDDLDesc.java index bc9d47e..b4da3d1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/RoleDDLDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/RoleDDLDesc.java @@ -48,8 +48,8 @@ * thrift ddl for the result of show role grant principalName */ private static final String roleShowGrantSchema = - "role,create_time,principal_name,principal_type,grant_option,grant_time,grantor#" + - "string:bigint:string:string:boolean:bigint:string"; + "role,grant_option,grant_time,grantor#" + + "string:boolean:bigint:string"; /** * thrift ddl for the result of describe role roleName diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAccessController.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAccessController.java index 50bd592..0e65fa2 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAccessController.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAccessController.java @@ -45,9 +45,6 @@ void createRole(String roleName, HivePrincipal adminGrantor) void dropRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; - List getRoles(HivePrincipal hivePrincipal) - throws HiveAuthzPluginException, HiveAccessControlException; - void grantRole(List hivePrincipals, List roles, boolean grantOption, HivePrincipal grantorPrinc) throws HiveAuthzPluginException, HiveAccessControlException; @@ -64,7 +61,11 @@ void revokeRole(List hivePrincipals, List roles, boolean void setCurrentRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; - List getCurrentRoles() throws HiveAuthzPluginException; + List getCurrentRoleNames() throws HiveAuthzPluginException; + + List getPrincipalGrantInfoForRole(String roleName) throws HiveAuthzPluginException, + HiveAccessControlException; - List getPrincipalsInRoleInfo(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; + List getRoleGrantInfoForPrincipal(HivePrincipal principal) throws HiveAuthzPluginException, + HiveAccessControlException; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizer.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizer.java index 48064c4..3a2825d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizer.java @@ -93,27 +93,26 @@ void dropRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; /** - * Get roles that this user/role belongs to - * @param hivePrincipal - user or role - * @return list of roles + * Get the grant information for principals granted the given role + * @param roleName + * @return * @throws HiveAuthzPluginException * @throws HiveAccessControlException */ - List getRoles(HivePrincipal hivePrincipal) + List getPrincipalGrantInfoForRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; /** - * Get the grant information for principals granted the given role - * @param roleName + * Get the grant information of roles the given principal belongs to + * @param principal * @return * @throws HiveAuthzPluginException * @throws HiveAccessControlException */ - List getPrincipalsInRoleInfo(String roleName) + List getRoleGrantInfoForPrincipal(HivePrincipal principal) throws HiveAuthzPluginException, HiveAccessControlException; - /** * Grant roles in given roles list to principals in given hivePrincipals list * @param hivePrincipals @@ -174,9 +173,7 @@ void checkPrivileges(HiveOperationType hiveOpType, List inp void setCurrentRole(String roleName) throws HiveAccessControlException, HiveAuthzPluginException; - List getCurrentRoles() throws HiveAuthzPluginException; + List getCurrentRoleNames() throws HiveAuthzPluginException; - //other functions to be added - - //showUsersInRole(rolename) } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizerImpl.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizerImpl.java index 2577ae5..b1bdb67 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizerImpl.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveAuthorizerImpl.java @@ -66,11 +66,6 @@ public void dropRole(String roleName) throws HiveAuthzPluginException, HiveAcces } @Override - public List getRoles(HivePrincipal hivePrincipal) throws HiveAuthzPluginException, HiveAccessControlException { - return accessController.getRoles(hivePrincipal); - } - - @Override public void grantRole(List hivePrincipals, List roles, boolean grantOption, HivePrincipal grantorPrinc) throws HiveAuthzPluginException, HiveAccessControlException { accessController.grantRole(hivePrincipals, roles, grantOption, grantorPrinc); @@ -110,13 +105,19 @@ public void setCurrentRole(String roleName) throws HiveAccessControlException, H } @Override - public List getCurrentRoles() throws HiveAuthzPluginException { - return accessController.getCurrentRoles(); + public List getCurrentRoleNames() throws HiveAuthzPluginException { + return accessController.getCurrentRoleNames(); + } + + @Override + public List getPrincipalGrantInfoForRole(String roleName) + throws HiveAuthzPluginException, HiveAccessControlException { + return accessController.getPrincipalGrantInfoForRole(roleName); } @Override - public List getPrincipalsInRoleInfo(String roleName) + public List getRoleGrantInfoForPrincipal(HivePrincipal principal) throws HiveAuthzPluginException, HiveAccessControlException { - return accessController.getPrincipalsInRoleInfo(roleName); + return accessController.getRoleGrantInfoForPrincipal(principal); } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRole.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRole.java deleted file mode 100644 index 7f3d78a..0000000 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRole.java +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.hadoop.hive.ql.security.authorization.plugin; - -import org.apache.hadoop.hive.common.classification.InterfaceAudience.LimitedPrivate; -import org.apache.hadoop.hive.common.classification.InterfaceStability.Evolving; -import org.apache.hadoop.hive.metastore.api.Role; - -import com.google.common.collect.ComparisonChain; - -// same with thrift.Role -@LimitedPrivate(value = { "" }) -@Evolving -public class HiveRole implements Comparable { - - private String roleName; - private int createTime; - private String ownerName; - private String principalName; - private String principalType; - private boolean grantOption; - private int grantTime; - private String grantor; - - public HiveRole() {} - - public HiveRole(Role role) { - roleName = role.getRoleName(); - createTime = role.getCreateTime(); - ownerName = role.getOwnerName(); - principalName = role.getPrincipalName(); - principalType = role.getPrincipalType(); - grantOption = role.isGrantOption(); - grantTime = role.getGrantTime(); - grantor = role.getGrantor(); - } - - public String getRoleName() { - return roleName; - } - - public void setRoleName(String roleName) { - this.roleName = roleName; - } - - public int getCreateTime() { - return createTime; - } - - public void setCreateTime(int createTime) { - this.createTime = createTime; - } - - public String getOwnerName() { - return ownerName; - } - - public void setOwnerName(String ownerName) { - this.ownerName = ownerName; - } - - public String getPrincipalName() { - return principalName; - } - - public void setPrincipalName(String principalName) { - this.principalName = principalName; - } - - public String getPrincipalType() { - return principalType; - } - - public void setPrincipalType(String principalType) { - this.principalType = principalType; - } - - public boolean isGrantOption() { - return grantOption; - } - - public void setGrantOption(boolean grantOption) { - this.grantOption = grantOption; - } - - public int getGrantTime() { - return grantTime; - } - - public void setGrantTime(int grantTime) { - this.grantTime = grantTime; - } - - public String getGrantor() { - return grantor; - } - - public void setGrantor(String grantor) { - this.grantor = grantor; - } - - @Override - public int compareTo(HiveRole other) { - if(other == null){ - return 1; - } - return ComparisonChain.start().compare(roleName, other.roleName) - .compare(createTime, other.createTime) - .compare(principalName, other.principalName) - .compare(principalType, other.principalType) - .compare(grantOption, other.grantOption) - .compare(grantTime, other.grantTime) - .compare(grantor, other.grantor) - .result(); - - } - - -} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRoleGrant.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRoleGrant.java index 03f129a..ce07f32 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRoleGrant.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRoleGrant.java @@ -47,7 +47,8 @@ public HiveRoleGrant(RolePrincipalGrant thriftRoleGrant) { this.grantOption = thriftRoleGrant.isGrantOption(); this.grantTime = thriftRoleGrant.getGrantTime(); this.grantor = thriftRoleGrant.getGrantorName(); - this.grantorType = thriftRoleGrant.getGrantorPrincipalType().name(); + this.grantorType = thriftRoleGrant.getGrantorPrincipalType() == null ? null : + thriftRoleGrant.getGrantorPrincipalType().name(); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/GrantPrivAuthUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/GrantPrivAuthUtils.java index fdbf3c3..f99109b 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/GrantPrivAuthUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/GrantPrivAuthUtils.java @@ -27,7 +27,6 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrincipal.HivePrincipalType; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilege; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject; -import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRole; /** * Utility class to authorize grant/revoke privileges @@ -36,7 +35,7 @@ static void authorize(List hivePrincipals, List hivePrivileges, HivePrivilegeObject hivePrivObject, boolean grantOption, IMetaStoreClient metastoreClient, - String userName, List curRoles, boolean isAdmin) + String userName, List curRoles, boolean isAdmin) throws HiveAuthzPluginException, HiveAccessControlException { // check if this user has grant privileges for this privileges on this @@ -51,7 +50,7 @@ static void authorize(List hivePrincipals, List hi private static void checkRequiredPrivileges( RequiredPrivileges reqPrivileges, HivePrivilegeObject hivePrivObject, - IMetaStoreClient metastoreClient, String userName, List curRoles, boolean isAdmin) + IMetaStoreClient metastoreClient, String userName, List curRoles, boolean isAdmin) throws HiveAuthzPluginException, HiveAccessControlException { // keep track of the principals on which privileges have been checked for diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLAuthorizationUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLAuthorizationUtils.java index 03d12ca..95da54a 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLAuthorizationUtils.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLAuthorizationUtils.java @@ -54,7 +54,6 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilege; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject.HivePrivilegeObjectType; -import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRole; import org.apache.thrift.TException; public class SQLAuthorizationUtils { @@ -176,7 +175,7 @@ public static void validatePrivileges(List hivePrivileges) throws * @throws HiveAuthzPluginException */ static RequiredPrivileges getPrivilegesFromMetaStore(IMetaStoreClient metastoreClient, - String userName, HivePrivilegeObject hivePrivObject, List curRoles, boolean isAdmin) + String userName, HivePrivilegeObject hivePrivObject, List curRoles, boolean isAdmin) throws HiveAuthzPluginException { // get privileges for this user and its role on this object @@ -215,7 +214,7 @@ static RequiredPrivileges getPrivilegesFromMetaStore(IMetaStoreClient metastoreC * @return */ private static void filterPrivsByCurrentRoles(PrincipalPrivilegeSet thriftPrivs, - List curRoles) { + List curRoles) { // check if there are privileges to be filtered if(thriftPrivs == null || thriftPrivs.getRolePrivileges() == null || thriftPrivs.getRolePrivilegesSize() == 0 @@ -226,11 +225,10 @@ private static void filterPrivsByCurrentRoles(PrincipalPrivilegeSet thriftPrivs, // add the privs for roles in curRoles to new role-to-priv map Map> filteredRolePrivs = new HashMap>(); - for(HiveRole role : curRoles){ - String roleName = role.getRoleName(); - List privs = thriftPrivs.getRolePrivileges().get(roleName); + for(String role : curRoles){ + List privs = thriftPrivs.getRolePrivileges().get(role); if(privs != null){ - filteredRolePrivs.put(roleName, privs); + filteredRolePrivs.put(role, privs); } } thriftPrivs.setRolePrivileges(filteredRolePrivs); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAccessController.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAccessController.java index 5b24578..22a2ec8 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAccessController.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAccessController.java @@ -30,6 +30,8 @@ import org.apache.hadoop.hive.metastore.IMetaStoreClient; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalRequest; +import org.apache.hadoop.hive.metastore.api.GetRoleGrantsForPrincipalResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.HiveObjectType; @@ -50,7 +52,6 @@ import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeInfo; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject; import org.apache.hadoop.hive.ql.security.authorization.plugin.HivePrivilegeObject.HivePrivilegeObjectType; -import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRole; import org.apache.hadoop.hive.ql.security.authorization.plugin.HiveRoleGrant; import org.apache.thrift.TException; @@ -69,8 +70,8 @@ private final HiveMetastoreClientFactory metastoreClientFactory; private final HiveAuthenticationProvider authenticator; private String currentUserName; - private List currentRoles; - private HiveRole adminRole; + private List currentRoles; + private HiveRoleGrant adminRole; private final String ADMIN_ONLY_MSG = "User has to belong to ADMIN role and " + "have it as current role, for this action."; private final String HAS_ADMIN_PRIV_MSG = "grantor need to have ADMIN privileges on role being" @@ -100,15 +101,13 @@ private void initUserRoles() throws HiveAuthzPluginException { this.currentRoles = getRolesFromMS(); } - private List getRolesFromMS() throws HiveAuthzPluginException { - List roles; + private List getRolesFromMS() throws HiveAuthzPluginException { try { - roles = metastoreClientFactory.getHiveMetastoreClient().list_roles(currentUserName, - PrincipalType.USER); - Map name2Rolesmap = new HashMap(); + List roles = getRoleGrants(currentUserName, PrincipalType.USER); + Map name2Rolesmap = new HashMap(); getAllRoleAncestors(name2Rolesmap, roles); - List currentRoles = new ArrayList(roles.size()); - for (HiveRole role : name2Rolesmap.values()) { + List currentRoles = new ArrayList(roles.size()); + for (HiveRoleGrant role : name2Rolesmap.values()) { if (!HiveMetaStore.ADMIN.equalsIgnoreCase(role.getRoleName())) { currentRoles.add(role); } else { @@ -122,25 +121,33 @@ private void initUserRoles() throws HiveAuthzPluginException { } } + private List getRoleGrants(String principalName, PrincipalType principalType) + throws MetaException, TException, HiveAuthzPluginException { + GetRoleGrantsForPrincipalRequest req = new GetRoleGrantsForPrincipalRequest(principalName, principalType); + IMetaStoreClient metastoreClient = metastoreClientFactory.getHiveMetastoreClient(); + GetRoleGrantsForPrincipalResponse resp = metastoreClient.get_role_grants_for_principal(req); + return resp.getPrincipalGrants(); + } + /** * Add role names of parentRoles and its parents to processedRolesMap * * @param processedRolesMap - * @param parentRoles + * @param roleGrants * @throws TException * @throws HiveAuthzPluginException * @throws MetaException */ - private void getAllRoleAncestors(Map processedRolesMap, List parentRoles) + private void getAllRoleAncestors(Map processedRolesMap, List roleGrants) throws MetaException, HiveAuthzPluginException, TException { - for (Role parentRole : parentRoles) { - String parentRoleName = parentRole.getRoleName(); + for (RolePrincipalGrant parentRoleGrant : roleGrants) { + String parentRoleName = parentRoleGrant.getRoleName(); if (processedRolesMap.get(parentRoleName) == null) { // unprocessed role: get its parents, add it to processed, and call this // function recursively - List nextParentRoles = metastoreClientFactory.getHiveMetastoreClient().list_roles( - parentRoleName, PrincipalType.ROLE); - processedRolesMap.put(parentRoleName, new HiveRole(parentRole)); + + List nextParentRoles = getRoleGrants(parentRoleName, PrincipalType.ROLE); + processedRolesMap.put(parentRoleName, new HiveRoleGrant(parentRoleGrant)); getAllRoleAncestors(processedRolesMap, nextParentRoles); } } @@ -157,7 +164,7 @@ public void grantPrivileges(List hivePrincipals, IMetaStoreClient metastoreClient = metastoreClientFactory.getHiveMetastoreClient(); // authorize the grant GrantPrivAuthUtils.authorize(hivePrincipals, hivePrivileges, hivePrivObject, grantOption, - metastoreClient, authenticator.getUserName(), getCurrentRoles(), isUserAdmin()); + metastoreClient, authenticator.getUserName(), getCurrentRoleNames(), isUserAdmin()); // grant PrivilegeBag privBag = SQLAuthorizationUtils.getThriftPrivilegesBag(hivePrincipals, hivePrivileges, hivePrivObject, @@ -169,6 +176,15 @@ public void grantPrivileges(List hivePrincipals, } } + @Override + public List getCurrentRoleNames() throws HiveAuthzPluginException { + List roleNames = new ArrayList(); + for(HiveRoleGrant role : getCurrentRoles()){ + roleNames.add(role.getRoleName()); + } + return roleNames; + } + private List expandAndValidatePrivileges(List hivePrivileges) throws HiveAuthzPluginException { // expand ALL privileges, if any @@ -256,22 +272,6 @@ public void dropRole(String roleName) throws HiveAuthzPluginException, HiveAcces } @Override - public List getRoles(HivePrincipal hivePrincipal) throws HiveAuthzPluginException { - try { - List roles = metastoreClientFactory.getHiveMetastoreClient().list_roles( - hivePrincipal.getName(), AuthorizationUtils.getThriftPrincipalType(hivePrincipal.getType())); - List hiveRoles = new ArrayList(roles.size()); - for (Role role : roles){ - hiveRoles.add(new HiveRole(role)); - } - return hiveRoles; - } catch (Exception e) { - throw new HiveAuthzPluginException("Error listing roles for user " - + hivePrincipal.getName() + ": " + e.getMessage(), e); - } - } - - @Override public void grantRole(List hivePrincipals, List roleNames, boolean grantOption, HivePrincipal grantorPrinc) throws HiveAuthzPluginException, HiveAccessControlException { @@ -342,7 +342,7 @@ public void revokeRole(List hivePrincipals, List roleName @Override - public List getPrincipalsInRoleInfo(String roleName) throws HiveAuthzPluginException, HiveAccessControlException { + public List getPrincipalGrantInfoForRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException { // only user belonging to admin role can list role if (!isUserAdmin()) { throw new HiveAccessControlException("Current user : " + currentUserName+ " is not" @@ -437,7 +437,7 @@ public void setCurrentRole(String roleName) throws HiveAccessControlException, currentRoles.addAll(getRolesFromMS()); return; } - for (HiveRole role : getRolesFromMS()) { + for (HiveRoleGrant role : getRolesFromMS()) { // set to one of the roles user belongs to. if (role.getRoleName().equalsIgnoreCase(roleName)) { currentRoles.clear(); @@ -456,8 +456,7 @@ public void setCurrentRole(String roleName) throws HiveAccessControlException, +roleName); } - @Override - public List getCurrentRoles() throws HiveAuthzPluginException { + public List getCurrentRoles() throws HiveAuthzPluginException { initUserRoles(); return currentRoles; } @@ -467,13 +466,13 @@ public void setCurrentRole(String roleName) throws HiveAccessControlException, * @throws HiveAuthzPluginException */ boolean isUserAdmin() throws HiveAuthzPluginException { - List roles; + List roles; try { roles = getCurrentRoles(); } catch (Exception e) { throw new HiveAuthzPluginException(e); } - for (HiveRole role : roles) { + for (HiveRoleGrant role : roles) { if (role.getRoleName().equalsIgnoreCase(HiveMetaStore.ADMIN)) { return true; } @@ -482,7 +481,7 @@ boolean isUserAdmin() throws HiveAuthzPluginException { } private boolean doesUserHasAdminOption(List roleNames) throws HiveAuthzPluginException { - List currentRoles; + List currentRoles; try { currentRoles = getCurrentRoles(); } catch (Exception e) { @@ -490,7 +489,7 @@ private boolean doesUserHasAdminOption(List roleNames) throws HiveAuthzP } for (String roleName : roleNames) { boolean roleFound = false; - for (HiveRole currentRole : currentRoles) { + for (HiveRoleGrant currentRole : currentRoles) { if (roleName.equalsIgnoreCase(currentRole.getRoleName())) { roleFound = true; if (!currentRole.isGrantOption()) { @@ -507,4 +506,21 @@ private boolean doesUserHasAdminOption(List roleNames) throws HiveAuthzP return true; } + @Override + public List getRoleGrantInfoForPrincipal(HivePrincipal principal) + throws HiveAuthzPluginException, HiveAccessControlException { + try { + List roleGrants = getRoleGrants(principal.getName(), + AuthorizationUtils.getThriftPrincipalType(principal.getType())); + List hiveRoleGrants = new ArrayList(roleGrants.size()); + for (RolePrincipalGrant roleGrant : roleGrants) { + hiveRoleGrants.add(new HiveRoleGrant(roleGrant)); + } + return hiveRoleGrants; + } catch (Exception e) { + throw new HiveAuthzPluginException("Error getting role grant information for user " + + principal.getName() + ": " + e.getMessage(), e); + } + } + } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidator.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidator.java index 7bb5a88..2496282 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidator.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/SQLStdHiveAuthorizationValidator.java @@ -100,7 +100,7 @@ private void checkPrivileges(SQLPrivTypeGrant[] reqPrivs, List missingPriv = requiredInpPrivs.findMissingPrivs(availPrivs); SQLAuthorizationUtils.assertNoMissingPrivilege(missingPriv, new HivePrincipal(userName, diff --git a/ql/src/test/queries/clientpositive/authorization_role_grant2.q b/ql/src/test/queries/clientpositive/authorization_role_grant2.q index 00a67a2..b3858c7 100644 --- a/ql/src/test/queries/clientpositive/authorization_role_grant2.q +++ b/ql/src/test/queries/clientpositive/authorization_role_grant2.q @@ -2,6 +2,7 @@ set hive.users.in.admin.role=hive_admin_user; set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory; set hive.security.authenticator.manager=org.apache.hadoop.hive.ql.security.SessionStateConfigUserAuthenticator; +set hive.cli.print.header=true; set user.name=hive_admin_user; set role ADMIN; diff --git a/ql/src/test/results/clientnegative/authorization_fail_7.q.out b/ql/src/test/results/clientnegative/authorization_fail_7.q.out index 00e457d..ffff69d 100644 --- a/ql/src/test/results/clientnegative/authorization_fail_7.q.out +++ b/ql/src/test/results/clientnegative/authorization_fail_7.q.out @@ -27,8 +27,8 @@ PREHOOK: query: show role grant user hive_test_user PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user hive_test_user POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -hive_test_role_fail -1 hive_test_user USER false -1 hive_test_user +PUBLIC false -1 +hive_test_role_fail false -1 hive_test_user PREHOOK: query: show grant role hive_test_role_fail on table authorization_fail PREHOOK: type: SHOW_GRANT POSTHOOK: query: show grant role hive_test_role_fail on table authorization_fail diff --git a/ql/src/test/results/clientnegative/authorization_role_grant.q.out b/ql/src/test/results/clientnegative/authorization_role_grant.q.out index de17ae9..0f88444 100644 --- a/ql/src/test/results/clientnegative/authorization_role_grant.q.out +++ b/ql/src/test/results/clientnegative/authorization_role_grant.q.out @@ -32,9 +32,9 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -role_noadmin -1 user2 USER false -1 hive_admin_user -src_role_wadmin -1 user2 USER true -1 hive_admin_user +PUBLIC false -1 +role_noadmin false -1 hive_admin_user +src_role_wadmin true -1 hive_admin_user PREHOOK: query: set role role_noadmin PREHOOK: type: SHOW_ROLES POSTHOOK: query: set role role_noadmin diff --git a/ql/src/test/results/clientpositive/authorization_1.q.out b/ql/src/test/results/clientpositive/authorization_1.q.out index 916125b..1c52151 100644 --- a/ql/src/test/results/clientpositive/authorization_1.q.out +++ b/ql/src/test/results/clientpositive/authorization_1.q.out @@ -267,8 +267,8 @@ PREHOOK: query: show role grant user hive_test_user PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user hive_test_user POSTHOOK: type: SHOW_ROLE_GRANT -src_role -1 hive_test_user USER false -1 hive_test_user -PUBLIC -1 false -1 +PUBLIC false -1 +src_role false -1 hive_test_user PREHOOK: query: --column grant to role grant select(key) on table src_autho_test to role src_role diff --git a/ql/src/test/results/clientpositive/authorization_1_sql_std.q.out b/ql/src/test/results/clientpositive/authorization_1_sql_std.q.out index 2302da0..3e39801 100644 --- a/ql/src/test/results/clientpositive/authorization_1_sql_std.q.out +++ b/ql/src/test/results/clientpositive/authorization_1_sql_std.q.out @@ -48,8 +48,8 @@ PREHOOK: query: show role grant user user_sauth PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user_sauth POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -src_role -1 user_sauth USER false -1 hive_admin_user +PUBLIC false -1 +src_role false -1 hive_admin_user PREHOOK: query: --table grant to role grant select on table src_autho_test to role src_role diff --git a/ql/src/test/results/clientpositive/authorization_5.q.out b/ql/src/test/results/clientpositive/authorization_5.q.out index f1c07d0..3353adf 100644 --- a/ql/src/test/results/clientpositive/authorization_5.q.out +++ b/ql/src/test/results/clientpositive/authorization_5.q.out @@ -38,8 +38,8 @@ PREHOOK: query: SHOW ROLE GRANT USER hive_test_user PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: SHOW ROLE GRANT USER hive_test_user POSTHOOK: type: SHOW_ROLE_GRANT -db_test_role -1 hive_test_user USER false -1 hive_test_user -PUBLIC -1 false -1 +PUBLIC false -1 +db_test_role false -1 hive_test_user PREHOOK: query: GRANT drop ON DATABASE test_db TO ROLE db_test_role PREHOOK: type: GRANT_PRIVILEGE POSTHOOK: query: GRANT drop ON DATABASE test_db TO ROLE db_test_role diff --git a/ql/src/test/results/clientpositive/authorization_role_grant1.q.out b/ql/src/test/results/clientpositive/authorization_role_grant1.q.out index 48e0f59..305dd9d 100644 --- a/ql/src/test/results/clientpositive/authorization_role_grant1.q.out +++ b/ql/src/test/results/clientpositive/authorization_role_grant1.q.out @@ -18,8 +18,8 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -src_role2 -1 user2 USER false -1 hive_admin_user +PUBLIC false -1 +src_role2 false -1 hive_admin_user PREHOOK: query: show roles PREHOOK: type: SHOW_ROLES POSTHOOK: query: show roles @@ -38,7 +38,7 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 +PUBLIC false -1 PREHOOK: query: show roles PREHOOK: type: SHOW_ROLES POSTHOOK: query: show roles @@ -67,8 +67,8 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -src_role_wadmin -1 user2 USER true -1 hive_admin_user +PUBLIC false -1 +src_role_wadmin true -1 hive_admin_user PREHOOK: query: -- revoke role without role keyword revoke src_role_wadmin from user user2 PREHOOK: type: REVOKE_ROLE @@ -79,7 +79,7 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 +PUBLIC false -1 PREHOOK: query: -- drop roles show roles PREHOOK: type: SHOW_ROLES diff --git a/ql/src/test/results/clientpositive/authorization_role_grant2.q.out b/ql/src/test/results/clientpositive/authorization_role_grant2.q.out index d08b906..f294311 100644 --- a/ql/src/test/results/clientpositive/authorization_role_grant2.q.out +++ b/ql/src/test/results/clientpositive/authorization_role_grant2.q.out @@ -22,12 +22,14 @@ PREHOOK: query: show role grant user user2 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user2 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -src_role_wadmin -1 user2 USER true -1 hive_admin_user +role grant_option grant_time grantor +PUBLIC false -1 +src_role_wadmin true -1 hive_admin_user PREHOOK: query: show principals src_role_wadmin PREHOOK: type: SHOW_ROLE_PRINCIPALS POSTHOOK: query: show principals src_role_wadmin POSTHOOK: type: SHOW_ROLE_PRINCIPALS +principal_name principal_type grant_option grantor grantor_type grant_time user2 USER true hive_admin_user USER -1 PREHOOK: query: set role src_role_wadmin PREHOOK: type: SHOW_ROLES @@ -41,8 +43,9 @@ PREHOOK: query: show role grant user user3 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user3 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -src_role_wadmin -1 user3 USER false -1 user2 +role grant_option grant_time grantor +PUBLIC false -1 +src_role_wadmin false -1 user2 PREHOOK: query: set role ADMIN PREHOOK: type: SHOW_ROLES POSTHOOK: query: set role ADMIN @@ -51,6 +54,7 @@ PREHOOK: query: show principals src_role_wadmin PREHOOK: type: SHOW_ROLE_PRINCIPALS POSTHOOK: query: show principals src_role_wadmin POSTHOOK: type: SHOW_ROLE_PRINCIPALS +principal_name principal_type grant_option grantor grantor_type grant_time user2 USER true hive_admin_user USER -1 user3 USER false user2 USER -1 PREHOOK: query: set role src_role_wadmin @@ -65,7 +69,8 @@ PREHOOK: query: show role grant user user3 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user3 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 +role grant_option grant_time grantor +PUBLIC false -1 PREHOOK: query: set role ADMIN PREHOOK: type: SHOW_ROLES POSTHOOK: query: set role ADMIN @@ -74,4 +79,5 @@ PREHOOK: query: show principals src_role_wadmin PREHOOK: type: SHOW_ROLE_PRINCIPALS POSTHOOK: query: show principals src_role_wadmin POSTHOOK: type: SHOW_ROLE_PRINCIPALS +principal_name principal_type grant_option grantor grantor_type grant_time user2 USER true hive_admin_user USER -1 diff --git a/ql/src/test/results/clientpositive/authorization_view_sqlstd.q.out b/ql/src/test/results/clientpositive/authorization_view_sqlstd.q.out index 0a986e6..b431c35 100644 --- a/ql/src/test/results/clientpositive/authorization_view_sqlstd.q.out +++ b/ql/src/test/results/clientpositive/authorization_view_sqlstd.q.out @@ -173,8 +173,8 @@ PREHOOK: query: show role grant user user4 PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user4 POSTHOOK: type: SHOW_ROLE_GRANT -PUBLIC -1 false -1 -role_v -1 user4 USER false -1 hive_admin_user +PUBLIC false -1 +role_v false -1 hive_admin_user PREHOOK: query: show roles PREHOOK: type: SHOW_ROLES POSTHOOK: query: show roles