diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index c400cdf..b3f01d6 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -138,6 +138,11 @@ 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, @@ -145,6 +150,25 @@ struct Role { 8: optional string grantor } +// Representation of a grant for a principal to a role +struct RolePrincipalGrant { + 1: string roleName, + 2: string principalName, + 3: PrincipalType principalType, + 4: bool grantOption, + 5: i32 grantTime, + 6: string grantorName, + 7: PrincipalType grantorPrincipalType +} + +struct GetPrincipalsInRoleRequest { + 1: string roleName; +} + +struct GetPrincipalsInRoleResponse { + 1: list principalGrants; +} + // namespace for tables struct Database { 1: string name, @@ -916,6 +940,11 @@ service ThriftHiveMetastore extends fb303.FacebookService throws(1:MetaException o1) list list_roles(1:string principal_name, 2:PrincipalType principal_type) throws(1:MetaException o1) + // get all role-grants for users/roles that have been granted the given role + // Note that in the returned list of RolePrincipalGrants, the roleName is + // redundant as it would match the role_name argument of this function + GetPrincipalsInRoleResponse get_principals_in_role(1: GetPrincipalsInRoleRequest 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 76a3f5d..712c2a2 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 _size330; - ::apache::thrift::protocol::TType _etype333; - xfer += iprot->readListBegin(_etype333, _size330); - this->success.resize(_size330); - uint32_t _i334; - for (_i334 = 0; _i334 < _size330; ++_i334) + 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) { - xfer += iprot->readString(this->success[_i334]); + xfer += iprot->readString(this->success[_i342]); } 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 _iter335; - for (_iter335 = this->success.begin(); _iter335 != this->success.end(); ++_iter335) + std::vector ::const_iterator _iter343; + for (_iter343 = this->success.begin(); _iter343 != this->success.end(); ++_iter343) { - xfer += oprot->writeString((*_iter335)); + xfer += oprot->writeString((*_iter343)); } 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 _size336; - ::apache::thrift::protocol::TType _etype339; - xfer += iprot->readListBegin(_etype339, _size336); - (*(this->success)).resize(_size336); - uint32_t _i340; - for (_i340 = 0; _i340 < _size336; ++_i340) + 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) { - xfer += iprot->readString((*(this->success))[_i340]); + xfer += iprot->readString((*(this->success))[_i348]); } 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 _size341; - ::apache::thrift::protocol::TType _etype344; - xfer += iprot->readListBegin(_etype344, _size341); - this->success.resize(_size341); - uint32_t _i345; - for (_i345 = 0; _i345 < _size341; ++_i345) + 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) { - xfer += iprot->readString(this->success[_i345]); + xfer += iprot->readString(this->success[_i353]); } 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 _iter346; - for (_iter346 = this->success.begin(); _iter346 != this->success.end(); ++_iter346) + std::vector ::const_iterator _iter354; + for (_iter354 = this->success.begin(); _iter354 != this->success.end(); ++_iter354) { - xfer += oprot->writeString((*_iter346)); + xfer += oprot->writeString((*_iter354)); } 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 _size347; - ::apache::thrift::protocol::TType _etype350; - xfer += iprot->readListBegin(_etype350, _size347); - (*(this->success)).resize(_size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) + 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) { - xfer += iprot->readString((*(this->success))[_i351]); + xfer += iprot->readString((*(this->success))[_i359]); } 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 _size352; - ::apache::thrift::protocol::TType _ktype353; - ::apache::thrift::protocol::TType _vtype354; - xfer += iprot->readMapBegin(_ktype353, _vtype354, _size352); - uint32_t _i356; - for (_i356 = 0; _i356 < _size352; ++_i356) + 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) { - std::string _key357; - xfer += iprot->readString(_key357); - Type& _val358 = this->success[_key357]; - xfer += _val358.read(iprot); + std::string _key365; + xfer += iprot->readString(_key365); + Type& _val366 = this->success[_key365]; + xfer += _val366.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 _iter359; - for (_iter359 = this->success.begin(); _iter359 != this->success.end(); ++_iter359) + std::map ::const_iterator _iter367; + for (_iter367 = this->success.begin(); _iter367 != this->success.end(); ++_iter367) { - xfer += oprot->writeString(_iter359->first); - xfer += _iter359->second.write(oprot); + xfer += oprot->writeString(_iter367->first); + xfer += _iter367->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 _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 _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) { - std::string _key365; - xfer += iprot->readString(_key365); - Type& _val366 = (*(this->success))[_key365]; - xfer += _val366.read(iprot); + std::string _key373; + xfer += iprot->readString(_key373); + Type& _val374 = (*(this->success))[_key373]; + xfer += _val374.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 _size367; - ::apache::thrift::protocol::TType _etype370; - xfer += iprot->readListBegin(_etype370, _size367); - this->success.resize(_size367); - uint32_t _i371; - for (_i371 = 0; _i371 < _size367; ++_i371) + 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) { - xfer += this->success[_i371].read(iprot); + xfer += this->success[_i379].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 _iter372; - for (_iter372 = this->success.begin(); _iter372 != this->success.end(); ++_iter372) + std::vector ::const_iterator _iter380; + for (_iter380 = this->success.begin(); _iter380 != this->success.end(); ++_iter380) { - xfer += (*_iter372).write(oprot); + xfer += (*_iter380).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 _size373; - ::apache::thrift::protocol::TType _etype376; - xfer += iprot->readListBegin(_etype376, _size373); - (*(this->success)).resize(_size373); - uint32_t _i377; - for (_i377 = 0; _i377 < _size373; ++_i377) + 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) { - xfer += (*(this->success))[_i377].read(iprot); + xfer += (*(this->success))[_i385].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 _size378; - ::apache::thrift::protocol::TType _etype381; - xfer += iprot->readListBegin(_etype381, _size378); - this->success.resize(_size378); - uint32_t _i382; - for (_i382 = 0; _i382 < _size378; ++_i382) + 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) { - xfer += this->success[_i382].read(iprot); + xfer += this->success[_i390].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 _iter383; - for (_iter383 = this->success.begin(); _iter383 != this->success.end(); ++_iter383) + std::vector ::const_iterator _iter391; + for (_iter391 = this->success.begin(); _iter391 != this->success.end(); ++_iter391) { - xfer += (*_iter383).write(oprot); + xfer += (*_iter391).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 _size384; - ::apache::thrift::protocol::TType _etype387; - xfer += iprot->readListBegin(_etype387, _size384); - (*(this->success)).resize(_size384); - uint32_t _i388; - for (_i388 = 0; _i388 < _size384; ++_i388) + 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) { - xfer += (*(this->success))[_i388].read(iprot); + xfer += (*(this->success))[_i396].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 _size389; - ::apache::thrift::protocol::TType _etype392; - xfer += iprot->readListBegin(_etype392, _size389); - this->success.resize(_size389); - uint32_t _i393; - for (_i393 = 0; _i393 < _size389; ++_i393) + 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) { - xfer += iprot->readString(this->success[_i393]); + xfer += iprot->readString(this->success[_i401]); } 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 _iter394; - for (_iter394 = this->success.begin(); _iter394 != this->success.end(); ++_iter394) + std::vector ::const_iterator _iter402; + for (_iter402 = this->success.begin(); _iter402 != this->success.end(); ++_iter402) { - xfer += oprot->writeString((*_iter394)); + xfer += oprot->writeString((*_iter402)); } 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 _size395; - ::apache::thrift::protocol::TType _etype398; - xfer += iprot->readListBegin(_etype398, _size395); - (*(this->success)).resize(_size395); - uint32_t _i399; - for (_i399 = 0; _i399 < _size395; ++_i399) + 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) { - xfer += iprot->readString((*(this->success))[_i399]); + xfer += iprot->readString((*(this->success))[_i407]); } 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 _size400; - ::apache::thrift::protocol::TType _etype403; - xfer += iprot->readListBegin(_etype403, _size400); - this->success.resize(_size400); - uint32_t _i404; - for (_i404 = 0; _i404 < _size400; ++_i404) + 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) { - xfer += iprot->readString(this->success[_i404]); + xfer += iprot->readString(this->success[_i412]); } 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 _iter405; - for (_iter405 = this->success.begin(); _iter405 != this->success.end(); ++_iter405) + std::vector ::const_iterator _iter413; + for (_iter413 = this->success.begin(); _iter413 != this->success.end(); ++_iter413) { - xfer += oprot->writeString((*_iter405)); + xfer += oprot->writeString((*_iter413)); } 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 _size406; - ::apache::thrift::protocol::TType _etype409; - xfer += iprot->readListBegin(_etype409, _size406); - (*(this->success)).resize(_size406); - uint32_t _i410; - for (_i410 = 0; _i410 < _size406; ++_i410) + 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) { - xfer += iprot->readString((*(this->success))[_i410]); + xfer += iprot->readString((*(this->success))[_i418]); } 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 _size411; - ::apache::thrift::protocol::TType _etype414; - xfer += iprot->readListBegin(_etype414, _size411); - this->tbl_names.resize(_size411); - uint32_t _i415; - for (_i415 = 0; _i415 < _size411; ++_i415) + 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) { - xfer += iprot->readString(this->tbl_names[_i415]); + xfer += iprot->readString(this->tbl_names[_i423]); } 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 _iter416; - for (_iter416 = this->tbl_names.begin(); _iter416 != this->tbl_names.end(); ++_iter416) + std::vector ::const_iterator _iter424; + for (_iter424 = this->tbl_names.begin(); _iter424 != this->tbl_names.end(); ++_iter424) { - xfer += oprot->writeString((*_iter416)); + xfer += oprot->writeString((*_iter424)); } 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 _iter417; - for (_iter417 = (*(this->tbl_names)).begin(); _iter417 != (*(this->tbl_names)).end(); ++_iter417) + std::vector ::const_iterator _iter425; + for (_iter425 = (*(this->tbl_names)).begin(); _iter425 != (*(this->tbl_names)).end(); ++_iter425) { - xfer += oprot->writeString((*_iter417)); + xfer += oprot->writeString((*_iter425)); } 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 _size418; - ::apache::thrift::protocol::TType _etype421; - xfer += iprot->readListBegin(_etype421, _size418); - this->success.resize(_size418); - uint32_t _i422; - for (_i422 = 0; _i422 < _size418; ++_i422) + 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) { - xfer += this->success[_i422].read(iprot); + xfer += this->success[_i430].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 _iter423; - for (_iter423 = this->success.begin(); _iter423 != this->success.end(); ++_iter423) + std::vector
::const_iterator _iter431; + for (_iter431 = this->success.begin(); _iter431 != this->success.end(); ++_iter431) { - xfer += (*_iter423).write(oprot); + xfer += (*_iter431).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 _size424; - ::apache::thrift::protocol::TType _etype427; - xfer += iprot->readListBegin(_etype427, _size424); - (*(this->success)).resize(_size424); - uint32_t _i428; - for (_i428 = 0; _i428 < _size424; ++_i428) + 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) { - xfer += (*(this->success))[_i428].read(iprot); + xfer += (*(this->success))[_i436].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 _size429; - ::apache::thrift::protocol::TType _etype432; - xfer += iprot->readListBegin(_etype432, _size429); - this->success.resize(_size429); - uint32_t _i433; - for (_i433 = 0; _i433 < _size429; ++_i433) + 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) { - xfer += iprot->readString(this->success[_i433]); + xfer += iprot->readString(this->success[_i441]); } 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 _iter434; - for (_iter434 = this->success.begin(); _iter434 != this->success.end(); ++_iter434) + std::vector ::const_iterator _iter442; + for (_iter442 = this->success.begin(); _iter442 != this->success.end(); ++_iter442) { - xfer += oprot->writeString((*_iter434)); + xfer += oprot->writeString((*_iter442)); } 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 _size435; - ::apache::thrift::protocol::TType _etype438; - xfer += iprot->readListBegin(_etype438, _size435); - (*(this->success)).resize(_size435); - uint32_t _i439; - for (_i439 = 0; _i439 < _size435; ++_i439) + 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) { - xfer += iprot->readString((*(this->success))[_i439]); + xfer += iprot->readString((*(this->success))[_i447]); } 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 _size440; - ::apache::thrift::protocol::TType _etype443; - xfer += iprot->readListBegin(_etype443, _size440); - this->new_parts.resize(_size440); - uint32_t _i444; - for (_i444 = 0; _i444 < _size440; ++_i444) + 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) { - xfer += this->new_parts[_i444].read(iprot); + xfer += this->new_parts[_i452].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 _iter445; - for (_iter445 = this->new_parts.begin(); _iter445 != this->new_parts.end(); ++_iter445) + std::vector ::const_iterator _iter453; + for (_iter453 = this->new_parts.begin(); _iter453 != this->new_parts.end(); ++_iter453) { - xfer += (*_iter445).write(oprot); + xfer += (*_iter453).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 _iter446; - for (_iter446 = (*(this->new_parts)).begin(); _iter446 != (*(this->new_parts)).end(); ++_iter446) + std::vector ::const_iterator _iter454; + for (_iter454 = (*(this->new_parts)).begin(); _iter454 != (*(this->new_parts)).end(); ++_iter454) { - xfer += (*_iter446).write(oprot); + xfer += (*_iter454).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 _size447; - ::apache::thrift::protocol::TType _etype450; - xfer += iprot->readListBegin(_etype450, _size447); - this->part_vals.resize(_size447); - uint32_t _i451; - for (_i451 = 0; _i451 < _size447; ++_i451) + 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) { - xfer += iprot->readString(this->part_vals[_i451]); + xfer += iprot->readString(this->part_vals[_i459]); } 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 _iter452; - for (_iter452 = this->part_vals.begin(); _iter452 != this->part_vals.end(); ++_iter452) + std::vector ::const_iterator _iter460; + for (_iter460 = this->part_vals.begin(); _iter460 != this->part_vals.end(); ++_iter460) { - xfer += oprot->writeString((*_iter452)); + xfer += oprot->writeString((*_iter460)); } 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 _iter453; - for (_iter453 = (*(this->part_vals)).begin(); _iter453 != (*(this->part_vals)).end(); ++_iter453) + std::vector ::const_iterator _iter461; + for (_iter461 = (*(this->part_vals)).begin(); _iter461 != (*(this->part_vals)).end(); ++_iter461) { - xfer += oprot->writeString((*_iter453)); + xfer += oprot->writeString((*_iter461)); } 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 _size454; - ::apache::thrift::protocol::TType _etype457; - xfer += iprot->readListBegin(_etype457, _size454); - this->part_vals.resize(_size454); - uint32_t _i458; - for (_i458 = 0; _i458 < _size454; ++_i458) + 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[_i458]); + xfer += iprot->readString(this->part_vals[_i466]); } 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 _iter459; - for (_iter459 = this->part_vals.begin(); _iter459 != this->part_vals.end(); ++_iter459) + std::vector ::const_iterator _iter467; + for (_iter467 = this->part_vals.begin(); _iter467 != this->part_vals.end(); ++_iter467) { - xfer += oprot->writeString((*_iter459)); + xfer += oprot->writeString((*_iter467)); } 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 _iter460; - for (_iter460 = (*(this->part_vals)).begin(); _iter460 != (*(this->part_vals)).end(); ++_iter460) + std::vector ::const_iterator _iter468; + for (_iter468 = (*(this->part_vals)).begin(); _iter468 != (*(this->part_vals)).end(); ++_iter468) { - xfer += oprot->writeString((*_iter460)); + xfer += oprot->writeString((*_iter468)); } 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 _size461; - ::apache::thrift::protocol::TType _etype464; - xfer += iprot->readListBegin(_etype464, _size461); - this->part_vals.resize(_size461); - uint32_t _i465; - for (_i465 = 0; _i465 < _size461; ++_i465) + 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[_i465]); + xfer += iprot->readString(this->part_vals[_i473]); } 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 _iter466; - for (_iter466 = this->part_vals.begin(); _iter466 != this->part_vals.end(); ++_iter466) + std::vector ::const_iterator _iter474; + for (_iter474 = this->part_vals.begin(); _iter474 != this->part_vals.end(); ++_iter474) { - xfer += oprot->writeString((*_iter466)); + xfer += oprot->writeString((*_iter474)); } 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 _iter467; - for (_iter467 = (*(this->part_vals)).begin(); _iter467 != (*(this->part_vals)).end(); ++_iter467) + std::vector ::const_iterator _iter475; + for (_iter475 = (*(this->part_vals)).begin(); _iter475 != (*(this->part_vals)).end(); ++_iter475) { - xfer += oprot->writeString((*_iter467)); + xfer += oprot->writeString((*_iter475)); } 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 _size468; - ::apache::thrift::protocol::TType _etype471; - xfer += iprot->readListBegin(_etype471, _size468); - this->part_vals.resize(_size468); - uint32_t _i472; - for (_i472 = 0; _i472 < _size468; ++_i472) + 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[_i472]); + xfer += iprot->readString(this->part_vals[_i480]); } 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 _iter473; - for (_iter473 = this->part_vals.begin(); _iter473 != this->part_vals.end(); ++_iter473) + std::vector ::const_iterator _iter481; + for (_iter481 = this->part_vals.begin(); _iter481 != this->part_vals.end(); ++_iter481) { - xfer += oprot->writeString((*_iter473)); + xfer += oprot->writeString((*_iter481)); } 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 _iter474; - for (_iter474 = (*(this->part_vals)).begin(); _iter474 != (*(this->part_vals)).end(); ++_iter474) + std::vector ::const_iterator _iter482; + for (_iter482 = (*(this->part_vals)).begin(); _iter482 != (*(this->part_vals)).end(); ++_iter482) { - xfer += oprot->writeString((*_iter474)); + xfer += oprot->writeString((*_iter482)); } 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 _size475; - ::apache::thrift::protocol::TType _etype478; - xfer += iprot->readListBegin(_etype478, _size475); - this->part_vals.resize(_size475); - uint32_t _i479; - for (_i479 = 0; _i479 < _size475; ++_i479) + 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[_i479]); + xfer += iprot->readString(this->part_vals[_i487]); } 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 _iter480; - for (_iter480 = this->part_vals.begin(); _iter480 != this->part_vals.end(); ++_iter480) + std::vector ::const_iterator _iter488; + for (_iter488 = this->part_vals.begin(); _iter488 != this->part_vals.end(); ++_iter488) { - xfer += oprot->writeString((*_iter480)); + xfer += oprot->writeString((*_iter488)); } 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 _iter481; - for (_iter481 = (*(this->part_vals)).begin(); _iter481 != (*(this->part_vals)).end(); ++_iter481) + std::vector ::const_iterator _iter489; + for (_iter489 = (*(this->part_vals)).begin(); _iter489 != (*(this->part_vals)).end(); ++_iter489) { - xfer += oprot->writeString((*_iter481)); + xfer += oprot->writeString((*_iter489)); } 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 _size482; - ::apache::thrift::protocol::TType _ktype483; - ::apache::thrift::protocol::TType _vtype484; - xfer += iprot->readMapBegin(_ktype483, _vtype484, _size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + 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) { - std::string _key487; - xfer += iprot->readString(_key487); - std::string& _val488 = this->partitionSpecs[_key487]; - xfer += iprot->readString(_val488); + std::string _key495; + xfer += iprot->readString(_key495); + std::string& _val496 = this->partitionSpecs[_key495]; + xfer += iprot->readString(_val496); } 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 _iter489; - for (_iter489 = this->partitionSpecs.begin(); _iter489 != this->partitionSpecs.end(); ++_iter489) + std::map ::const_iterator _iter497; + for (_iter497 = this->partitionSpecs.begin(); _iter497 != this->partitionSpecs.end(); ++_iter497) { - xfer += oprot->writeString(_iter489->first); - xfer += oprot->writeString(_iter489->second); + xfer += oprot->writeString(_iter497->first); + xfer += oprot->writeString(_iter497->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 _iter490; - for (_iter490 = (*(this->partitionSpecs)).begin(); _iter490 != (*(this->partitionSpecs)).end(); ++_iter490) + std::map ::const_iterator _iter498; + for (_iter498 = (*(this->partitionSpecs)).begin(); _iter498 != (*(this->partitionSpecs)).end(); ++_iter498) { - xfer += oprot->writeString(_iter490->first); - xfer += oprot->writeString(_iter490->second); + xfer += oprot->writeString(_iter498->first); + xfer += oprot->writeString(_iter498->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 _size491; - ::apache::thrift::protocol::TType _etype494; - xfer += iprot->readListBegin(_etype494, _size491); - this->part_vals.resize(_size491); - uint32_t _i495; - for (_i495 = 0; _i495 < _size491; ++_i495) + 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) { - xfer += iprot->readString(this->part_vals[_i495]); + xfer += iprot->readString(this->part_vals[_i503]); } 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 _size496; - ::apache::thrift::protocol::TType _etype499; - xfer += iprot->readListBegin(_etype499, _size496); - this->group_names.resize(_size496); - uint32_t _i500; - for (_i500 = 0; _i500 < _size496; ++_i500) + 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) { - xfer += iprot->readString(this->group_names[_i500]); + xfer += iprot->readString(this->group_names[_i508]); } 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 _iter501; - for (_iter501 = this->part_vals.begin(); _iter501 != this->part_vals.end(); ++_iter501) + std::vector ::const_iterator _iter509; + for (_iter509 = this->part_vals.begin(); _iter509 != this->part_vals.end(); ++_iter509) { - xfer += oprot->writeString((*_iter501)); + xfer += oprot->writeString((*_iter509)); } 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 _iter502; - for (_iter502 = this->group_names.begin(); _iter502 != this->group_names.end(); ++_iter502) + std::vector ::const_iterator _iter510; + for (_iter510 = this->group_names.begin(); _iter510 != this->group_names.end(); ++_iter510) { - xfer += oprot->writeString((*_iter502)); + xfer += oprot->writeString((*_iter510)); } 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 _iter503; - for (_iter503 = (*(this->part_vals)).begin(); _iter503 != (*(this->part_vals)).end(); ++_iter503) + std::vector ::const_iterator _iter511; + for (_iter511 = (*(this->part_vals)).begin(); _iter511 != (*(this->part_vals)).end(); ++_iter511) { - xfer += oprot->writeString((*_iter503)); + xfer += oprot->writeString((*_iter511)); } 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 _iter504; - for (_iter504 = (*(this->group_names)).begin(); _iter504 != (*(this->group_names)).end(); ++_iter504) + std::vector ::const_iterator _iter512; + for (_iter512 = (*(this->group_names)).begin(); _iter512 != (*(this->group_names)).end(); ++_iter512) { - xfer += oprot->writeString((*_iter504)); + xfer += oprot->writeString((*_iter512)); } 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 _size505; - ::apache::thrift::protocol::TType _etype508; - xfer += iprot->readListBegin(_etype508, _size505); - this->success.resize(_size505); - uint32_t _i509; - for (_i509 = 0; _i509 < _size505; ++_i509) + 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) { - xfer += this->success[_i509].read(iprot); + xfer += this->success[_i517].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 _iter510; - for (_iter510 = this->success.begin(); _iter510 != this->success.end(); ++_iter510) + std::vector ::const_iterator _iter518; + for (_iter518 = this->success.begin(); _iter518 != this->success.end(); ++_iter518) { - xfer += (*_iter510).write(oprot); + xfer += (*_iter518).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 _size511; - ::apache::thrift::protocol::TType _etype514; - xfer += iprot->readListBegin(_etype514, _size511); - (*(this->success)).resize(_size511); - uint32_t _i515; - for (_i515 = 0; _i515 < _size511; ++_i515) + 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) { - xfer += (*(this->success))[_i515].read(iprot); + xfer += (*(this->success))[_i523].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 _size516; - ::apache::thrift::protocol::TType _etype519; - xfer += iprot->readListBegin(_etype519, _size516); - this->group_names.resize(_size516); - uint32_t _i520; - for (_i520 = 0; _i520 < _size516; ++_i520) + 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) { - xfer += iprot->readString(this->group_names[_i520]); + xfer += iprot->readString(this->group_names[_i528]); } 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 _iter521; - for (_iter521 = this->group_names.begin(); _iter521 != this->group_names.end(); ++_iter521) + std::vector ::const_iterator _iter529; + for (_iter529 = this->group_names.begin(); _iter529 != this->group_names.end(); ++_iter529) { - xfer += oprot->writeString((*_iter521)); + xfer += oprot->writeString((*_iter529)); } 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 _iter522; - for (_iter522 = (*(this->group_names)).begin(); _iter522 != (*(this->group_names)).end(); ++_iter522) + std::vector ::const_iterator _iter530; + for (_iter530 = (*(this->group_names)).begin(); _iter530 != (*(this->group_names)).end(); ++_iter530) { - xfer += oprot->writeString((*_iter522)); + xfer += oprot->writeString((*_iter530)); } 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 _size523; - ::apache::thrift::protocol::TType _etype526; - xfer += iprot->readListBegin(_etype526, _size523); - this->success.resize(_size523); - uint32_t _i527; - for (_i527 = 0; _i527 < _size523; ++_i527) + 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) { - xfer += this->success[_i527].read(iprot); + xfer += this->success[_i535].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 _iter528; - for (_iter528 = this->success.begin(); _iter528 != this->success.end(); ++_iter528) + std::vector ::const_iterator _iter536; + for (_iter536 = this->success.begin(); _iter536 != this->success.end(); ++_iter536) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter536).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 _size529; - ::apache::thrift::protocol::TType _etype532; - xfer += iprot->readListBegin(_etype532, _size529); - (*(this->success)).resize(_size529); - uint32_t _i533; - for (_i533 = 0; _i533 < _size529; ++_i533) + 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) { - xfer += (*(this->success))[_i533].read(iprot); + xfer += (*(this->success))[_i541].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 _size534; - ::apache::thrift::protocol::TType _etype537; - xfer += iprot->readListBegin(_etype537, _size534); - this->success.resize(_size534); - uint32_t _i538; - for (_i538 = 0; _i538 < _size534; ++_i538) + 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) { - xfer += iprot->readString(this->success[_i538]); + xfer += iprot->readString(this->success[_i546]); } 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 _iter539; - for (_iter539 = this->success.begin(); _iter539 != this->success.end(); ++_iter539) + std::vector ::const_iterator _iter547; + for (_iter547 = this->success.begin(); _iter547 != this->success.end(); ++_iter547) { - xfer += oprot->writeString((*_iter539)); + xfer += oprot->writeString((*_iter547)); } 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 _size540; - ::apache::thrift::protocol::TType _etype543; - xfer += iprot->readListBegin(_etype543, _size540); - (*(this->success)).resize(_size540); - uint32_t _i544; - for (_i544 = 0; _i544 < _size540; ++_i544) + 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) { - xfer += iprot->readString((*(this->success))[_i544]); + xfer += iprot->readString((*(this->success))[_i552]); } 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 _size545; - ::apache::thrift::protocol::TType _etype548; - xfer += iprot->readListBegin(_etype548, _size545); - this->part_vals.resize(_size545); - uint32_t _i549; - for (_i549 = 0; _i549 < _size545; ++_i549) + 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) { - xfer += iprot->readString(this->part_vals[_i549]); + xfer += iprot->readString(this->part_vals[_i557]); } 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 _iter550; - for (_iter550 = this->part_vals.begin(); _iter550 != this->part_vals.end(); ++_iter550) + std::vector ::const_iterator _iter558; + for (_iter558 = this->part_vals.begin(); _iter558 != this->part_vals.end(); ++_iter558) { - xfer += oprot->writeString((*_iter550)); + xfer += oprot->writeString((*_iter558)); } 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 _iter551; - for (_iter551 = (*(this->part_vals)).begin(); _iter551 != (*(this->part_vals)).end(); ++_iter551) + std::vector ::const_iterator _iter559; + for (_iter559 = (*(this->part_vals)).begin(); _iter559 != (*(this->part_vals)).end(); ++_iter559) { - xfer += oprot->writeString((*_iter551)); + xfer += oprot->writeString((*_iter559)); } 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 _size552; - ::apache::thrift::protocol::TType _etype555; - xfer += iprot->readListBegin(_etype555, _size552); - this->success.resize(_size552); - uint32_t _i556; - for (_i556 = 0; _i556 < _size552; ++_i556) + 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) { - xfer += this->success[_i556].read(iprot); + xfer += this->success[_i564].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 _iter557; - for (_iter557 = this->success.begin(); _iter557 != this->success.end(); ++_iter557) + std::vector ::const_iterator _iter565; + for (_iter565 = this->success.begin(); _iter565 != this->success.end(); ++_iter565) { - xfer += (*_iter557).write(oprot); + xfer += (*_iter565).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 _size558; - ::apache::thrift::protocol::TType _etype561; - xfer += iprot->readListBegin(_etype561, _size558); - (*(this->success)).resize(_size558); - uint32_t _i562; - for (_i562 = 0; _i562 < _size558; ++_i562) + 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) { - xfer += (*(this->success))[_i562].read(iprot); + xfer += (*(this->success))[_i570].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 _size563; - ::apache::thrift::protocol::TType _etype566; - xfer += iprot->readListBegin(_etype566, _size563); - this->part_vals.resize(_size563); - uint32_t _i567; - for (_i567 = 0; _i567 < _size563; ++_i567) + 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) { - xfer += iprot->readString(this->part_vals[_i567]); + xfer += iprot->readString(this->part_vals[_i575]); } 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 _size568; - ::apache::thrift::protocol::TType _etype571; - xfer += iprot->readListBegin(_etype571, _size568); - this->group_names.resize(_size568); - uint32_t _i572; - for (_i572 = 0; _i572 < _size568; ++_i572) + 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) { - xfer += iprot->readString(this->group_names[_i572]); + xfer += iprot->readString(this->group_names[_i580]); } 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 _iter573; - for (_iter573 = this->part_vals.begin(); _iter573 != this->part_vals.end(); ++_iter573) + std::vector ::const_iterator _iter581; + for (_iter581 = this->part_vals.begin(); _iter581 != this->part_vals.end(); ++_iter581) { - xfer += oprot->writeString((*_iter573)); + xfer += oprot->writeString((*_iter581)); } 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 _iter574; - for (_iter574 = this->group_names.begin(); _iter574 != this->group_names.end(); ++_iter574) + std::vector ::const_iterator _iter582; + for (_iter582 = this->group_names.begin(); _iter582 != this->group_names.end(); ++_iter582) { - xfer += oprot->writeString((*_iter574)); + xfer += oprot->writeString((*_iter582)); } 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 _iter575; - for (_iter575 = (*(this->part_vals)).begin(); _iter575 != (*(this->part_vals)).end(); ++_iter575) + std::vector ::const_iterator _iter583; + for (_iter583 = (*(this->part_vals)).begin(); _iter583 != (*(this->part_vals)).end(); ++_iter583) { - xfer += oprot->writeString((*_iter575)); + xfer += oprot->writeString((*_iter583)); } 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 _iter576; - for (_iter576 = (*(this->group_names)).begin(); _iter576 != (*(this->group_names)).end(); ++_iter576) + std::vector ::const_iterator _iter584; + for (_iter584 = (*(this->group_names)).begin(); _iter584 != (*(this->group_names)).end(); ++_iter584) { - xfer += oprot->writeString((*_iter576)); + xfer += oprot->writeString((*_iter584)); } 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 _size577; - ::apache::thrift::protocol::TType _etype580; - xfer += iprot->readListBegin(_etype580, _size577); - this->success.resize(_size577); - uint32_t _i581; - for (_i581 = 0; _i581 < _size577; ++_i581) + 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) { - xfer += this->success[_i581].read(iprot); + xfer += this->success[_i589].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 _iter582; - for (_iter582 = this->success.begin(); _iter582 != this->success.end(); ++_iter582) + std::vector ::const_iterator _iter590; + for (_iter590 = this->success.begin(); _iter590 != this->success.end(); ++_iter590) { - xfer += (*_iter582).write(oprot); + xfer += (*_iter590).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 _size583; - ::apache::thrift::protocol::TType _etype586; - xfer += iprot->readListBegin(_etype586, _size583); - (*(this->success)).resize(_size583); - uint32_t _i587; - for (_i587 = 0; _i587 < _size583; ++_i587) + 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) { - xfer += (*(this->success))[_i587].read(iprot); + xfer += (*(this->success))[_i595].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 _size588; - ::apache::thrift::protocol::TType _etype591; - xfer += iprot->readListBegin(_etype591, _size588); - this->part_vals.resize(_size588); - uint32_t _i592; - for (_i592 = 0; _i592 < _size588; ++_i592) + 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) { - xfer += iprot->readString(this->part_vals[_i592]); + xfer += iprot->readString(this->part_vals[_i600]); } 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 _iter593; - for (_iter593 = this->part_vals.begin(); _iter593 != this->part_vals.end(); ++_iter593) + std::vector ::const_iterator _iter601; + for (_iter601 = this->part_vals.begin(); _iter601 != this->part_vals.end(); ++_iter601) { - xfer += oprot->writeString((*_iter593)); + xfer += oprot->writeString((*_iter601)); } 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 _iter594; - for (_iter594 = (*(this->part_vals)).begin(); _iter594 != (*(this->part_vals)).end(); ++_iter594) + std::vector ::const_iterator _iter602; + for (_iter602 = (*(this->part_vals)).begin(); _iter602 != (*(this->part_vals)).end(); ++_iter602) { - xfer += oprot->writeString((*_iter594)); + xfer += oprot->writeString((*_iter602)); } 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 _size595; - ::apache::thrift::protocol::TType _etype598; - xfer += iprot->readListBegin(_etype598, _size595); - this->success.resize(_size595); - uint32_t _i599; - for (_i599 = 0; _i599 < _size595; ++_i599) + 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) { - xfer += iprot->readString(this->success[_i599]); + xfer += iprot->readString(this->success[_i607]); } 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 _iter600; - for (_iter600 = this->success.begin(); _iter600 != this->success.end(); ++_iter600) + std::vector ::const_iterator _iter608; + for (_iter608 = this->success.begin(); _iter608 != this->success.end(); ++_iter608) { - xfer += oprot->writeString((*_iter600)); + xfer += oprot->writeString((*_iter608)); } 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 _size601; - ::apache::thrift::protocol::TType _etype604; - xfer += iprot->readListBegin(_etype604, _size601); - (*(this->success)).resize(_size601); - uint32_t _i605; - for (_i605 = 0; _i605 < _size601; ++_i605) + 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) { - xfer += iprot->readString((*(this->success))[_i605]); + xfer += iprot->readString((*(this->success))[_i613]); } 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 _size606; - ::apache::thrift::protocol::TType _etype609; - xfer += iprot->readListBegin(_etype609, _size606); - this->success.resize(_size606); - uint32_t _i610; - for (_i610 = 0; _i610 < _size606; ++_i610) + 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) { - xfer += this->success[_i610].read(iprot); + xfer += this->success[_i618].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 _iter611; - for (_iter611 = this->success.begin(); _iter611 != this->success.end(); ++_iter611) + std::vector ::const_iterator _iter619; + for (_iter619 = this->success.begin(); _iter619 != this->success.end(); ++_iter619) { - xfer += (*_iter611).write(oprot); + xfer += (*_iter619).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 _size612; - ::apache::thrift::protocol::TType _etype615; - xfer += iprot->readListBegin(_etype615, _size612); - (*(this->success)).resize(_size612); - uint32_t _i616; - for (_i616 = 0; _i616 < _size612; ++_i616) + 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) { - xfer += (*(this->success))[_i616].read(iprot); + xfer += (*(this->success))[_i624].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 _size617; - ::apache::thrift::protocol::TType _etype620; - xfer += iprot->readListBegin(_etype620, _size617); - this->names.resize(_size617); - uint32_t _i621; - for (_i621 = 0; _i621 < _size617; ++_i621) + 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) { - xfer += iprot->readString(this->names[_i621]); + xfer += iprot->readString(this->names[_i629]); } 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 _iter622; - for (_iter622 = this->names.begin(); _iter622 != this->names.end(); ++_iter622) + std::vector ::const_iterator _iter630; + for (_iter630 = this->names.begin(); _iter630 != this->names.end(); ++_iter630) { - xfer += oprot->writeString((*_iter622)); + xfer += oprot->writeString((*_iter630)); } 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 _iter623; - for (_iter623 = (*(this->names)).begin(); _iter623 != (*(this->names)).end(); ++_iter623) + std::vector ::const_iterator _iter631; + for (_iter631 = (*(this->names)).begin(); _iter631 != (*(this->names)).end(); ++_iter631) { - xfer += oprot->writeString((*_iter623)); + xfer += oprot->writeString((*_iter631)); } 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 _size624; - ::apache::thrift::protocol::TType _etype627; - xfer += iprot->readListBegin(_etype627, _size624); - this->success.resize(_size624); - uint32_t _i628; - for (_i628 = 0; _i628 < _size624; ++_i628) + 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) { - xfer += this->success[_i628].read(iprot); + xfer += this->success[_i636].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 _iter629; - for (_iter629 = this->success.begin(); _iter629 != this->success.end(); ++_iter629) + std::vector ::const_iterator _iter637; + for (_iter637 = this->success.begin(); _iter637 != this->success.end(); ++_iter637) { - xfer += (*_iter629).write(oprot); + xfer += (*_iter637).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 _size630; - ::apache::thrift::protocol::TType _etype633; - xfer += iprot->readListBegin(_etype633, _size630); - (*(this->success)).resize(_size630); - uint32_t _i634; - for (_i634 = 0; _i634 < _size630; ++_i634) + 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) { - xfer += (*(this->success))[_i634].read(iprot); + xfer += (*(this->success))[_i642].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 _size635; - ::apache::thrift::protocol::TType _etype638; - xfer += iprot->readListBegin(_etype638, _size635); - this->new_parts.resize(_size635); - uint32_t _i639; - for (_i639 = 0; _i639 < _size635; ++_i639) + 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) { - xfer += this->new_parts[_i639].read(iprot); + xfer += this->new_parts[_i647].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 _iter640; - for (_iter640 = this->new_parts.begin(); _iter640 != this->new_parts.end(); ++_iter640) + std::vector ::const_iterator _iter648; + for (_iter648 = this->new_parts.begin(); _iter648 != this->new_parts.end(); ++_iter648) { - xfer += (*_iter640).write(oprot); + xfer += (*_iter648).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 _iter641; - for (_iter641 = (*(this->new_parts)).begin(); _iter641 != (*(this->new_parts)).end(); ++_iter641) + std::vector ::const_iterator _iter649; + for (_iter649 = (*(this->new_parts)).begin(); _iter649 != (*(this->new_parts)).end(); ++_iter649) { - xfer += (*_iter641).write(oprot); + xfer += (*_iter649).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 _size642; - ::apache::thrift::protocol::TType _etype645; - xfer += iprot->readListBegin(_etype645, _size642); - this->part_vals.resize(_size642); - uint32_t _i646; - for (_i646 = 0; _i646 < _size642; ++_i646) + 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) { - xfer += iprot->readString(this->part_vals[_i646]); + xfer += iprot->readString(this->part_vals[_i654]); } 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 _iter647; - for (_iter647 = this->part_vals.begin(); _iter647 != this->part_vals.end(); ++_iter647) + std::vector ::const_iterator _iter655; + for (_iter655 = this->part_vals.begin(); _iter655 != this->part_vals.end(); ++_iter655) { - xfer += oprot->writeString((*_iter647)); + xfer += oprot->writeString((*_iter655)); } 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 _iter648; - for (_iter648 = (*(this->part_vals)).begin(); _iter648 != (*(this->part_vals)).end(); ++_iter648) + std::vector ::const_iterator _iter656; + for (_iter656 = (*(this->part_vals)).begin(); _iter656 != (*(this->part_vals)).end(); ++_iter656) { - xfer += oprot->writeString((*_iter648)); + xfer += oprot->writeString((*_iter656)); } 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 _size649; - ::apache::thrift::protocol::TType _etype652; - xfer += iprot->readListBegin(_etype652, _size649); - this->part_vals.resize(_size649); - uint32_t _i653; - for (_i653 = 0; _i653 < _size649; ++_i653) + 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[_i653]); + xfer += iprot->readString(this->part_vals[_i661]); } 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 _iter654; - for (_iter654 = this->part_vals.begin(); _iter654 != this->part_vals.end(); ++_iter654) + std::vector ::const_iterator _iter662; + for (_iter662 = this->part_vals.begin(); _iter662 != this->part_vals.end(); ++_iter662) { - xfer += oprot->writeString((*_iter654)); + xfer += oprot->writeString((*_iter662)); } 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 _iter655; - for (_iter655 = (*(this->part_vals)).begin(); _iter655 != (*(this->part_vals)).end(); ++_iter655) + std::vector ::const_iterator _iter663; + for (_iter663 = (*(this->part_vals)).begin(); _iter663 != (*(this->part_vals)).end(); ++_iter663) { - xfer += oprot->writeString((*_iter655)); + xfer += oprot->writeString((*_iter663)); } 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 _size656; - ::apache::thrift::protocol::TType _etype659; - xfer += iprot->readListBegin(_etype659, _size656); - this->success.resize(_size656); - uint32_t _i660; - for (_i660 = 0; _i660 < _size656; ++_i660) + 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) { - xfer += iprot->readString(this->success[_i660]); + xfer += iprot->readString(this->success[_i668]); } 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 _iter661; - for (_iter661 = this->success.begin(); _iter661 != this->success.end(); ++_iter661) + std::vector ::const_iterator _iter669; + for (_iter669 = this->success.begin(); _iter669 != this->success.end(); ++_iter669) { - xfer += oprot->writeString((*_iter661)); + xfer += oprot->writeString((*_iter669)); } 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 _size662; - ::apache::thrift::protocol::TType _etype665; - xfer += iprot->readListBegin(_etype665, _size662); - (*(this->success)).resize(_size662); - uint32_t _i666; - for (_i666 = 0; _i666 < _size662; ++_i666) + 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) { - xfer += iprot->readString((*(this->success))[_i666]); + xfer += iprot->readString((*(this->success))[_i674]); } 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 _size667; - ::apache::thrift::protocol::TType _ktype668; - ::apache::thrift::protocol::TType _vtype669; - xfer += iprot->readMapBegin(_ktype668, _vtype669, _size667); - uint32_t _i671; - for (_i671 = 0; _i671 < _size667; ++_i671) + 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) { - std::string _key672; - xfer += iprot->readString(_key672); - std::string& _val673 = this->success[_key672]; - xfer += iprot->readString(_val673); + std::string _key680; + xfer += iprot->readString(_key680); + std::string& _val681 = this->success[_key680]; + xfer += iprot->readString(_val681); } 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 _iter674; - for (_iter674 = this->success.begin(); _iter674 != this->success.end(); ++_iter674) + std::map ::const_iterator _iter682; + for (_iter682 = this->success.begin(); _iter682 != this->success.end(); ++_iter682) { - xfer += oprot->writeString(_iter674->first); - xfer += oprot->writeString(_iter674->second); + xfer += oprot->writeString(_iter682->first); + xfer += oprot->writeString(_iter682->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 _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 _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) { - std::string _key680; - xfer += iprot->readString(_key680); - std::string& _val681 = (*(this->success))[_key680]; - xfer += iprot->readString(_val681); + std::string _key688; + xfer += iprot->readString(_key688); + std::string& _val689 = (*(this->success))[_key688]; + xfer += iprot->readString(_val689); } 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 _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) + 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 _key687; - xfer += iprot->readString(_key687); - std::string& _val688 = this->part_vals[_key687]; - xfer += iprot->readString(_val688); + std::string _key695; + xfer += iprot->readString(_key695); + std::string& _val696 = this->part_vals[_key695]; + xfer += iprot->readString(_val696); } 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 ecast689; - xfer += iprot->readI32(ecast689); - this->eventType = (PartitionEventType::type)ecast689; + int32_t ecast697; + xfer += iprot->readI32(ecast697); + this->eventType = (PartitionEventType::type)ecast697; 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 _iter690; - for (_iter690 = this->part_vals.begin(); _iter690 != this->part_vals.end(); ++_iter690) + std::map ::const_iterator _iter698; + for (_iter698 = this->part_vals.begin(); _iter698 != this->part_vals.end(); ++_iter698) { - xfer += oprot->writeString(_iter690->first); - xfer += oprot->writeString(_iter690->second); + xfer += oprot->writeString(_iter698->first); + xfer += oprot->writeString(_iter698->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 _iter691; - for (_iter691 = (*(this->part_vals)).begin(); _iter691 != (*(this->part_vals)).end(); ++_iter691) + std::map ::const_iterator _iter699; + for (_iter699 = (*(this->part_vals)).begin(); _iter699 != (*(this->part_vals)).end(); ++_iter699) { - xfer += oprot->writeString(_iter691->first); - xfer += oprot->writeString(_iter691->second); + xfer += oprot->writeString(_iter699->first); + xfer += oprot->writeString(_iter699->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 _size692; - ::apache::thrift::protocol::TType _ktype693; - ::apache::thrift::protocol::TType _vtype694; - xfer += iprot->readMapBegin(_ktype693, _vtype694, _size692); - uint32_t _i696; - for (_i696 = 0; _i696 < _size692; ++_i696) + 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) { - std::string _key697; - xfer += iprot->readString(_key697); - std::string& _val698 = this->part_vals[_key697]; - xfer += iprot->readString(_val698); + std::string _key705; + xfer += iprot->readString(_key705); + std::string& _val706 = this->part_vals[_key705]; + xfer += iprot->readString(_val706); } 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 ecast699; - xfer += iprot->readI32(ecast699); - this->eventType = (PartitionEventType::type)ecast699; + int32_t ecast707; + xfer += iprot->readI32(ecast707); + this->eventType = (PartitionEventType::type)ecast707; 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 _iter700; - for (_iter700 = this->part_vals.begin(); _iter700 != this->part_vals.end(); ++_iter700) + std::map ::const_iterator _iter708; + for (_iter708 = this->part_vals.begin(); _iter708 != this->part_vals.end(); ++_iter708) { - xfer += oprot->writeString(_iter700->first); - xfer += oprot->writeString(_iter700->second); + xfer += oprot->writeString(_iter708->first); + xfer += oprot->writeString(_iter708->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 _iter701; - for (_iter701 = (*(this->part_vals)).begin(); _iter701 != (*(this->part_vals)).end(); ++_iter701) + std::map ::const_iterator _iter709; + for (_iter709 = (*(this->part_vals)).begin(); _iter709 != (*(this->part_vals)).end(); ++_iter709) { - xfer += oprot->writeString(_iter701->first); - xfer += oprot->writeString(_iter701->second); + xfer += oprot->writeString(_iter709->first); + xfer += oprot->writeString(_iter709->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 _size702; - ::apache::thrift::protocol::TType _etype705; - xfer += iprot->readListBegin(_etype705, _size702); - this->success.resize(_size702); - uint32_t _i706; - for (_i706 = 0; _i706 < _size702; ++_i706) + 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) { - xfer += this->success[_i706].read(iprot); + xfer += this->success[_i714].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 _iter707; - for (_iter707 = this->success.begin(); _iter707 != this->success.end(); ++_iter707) + std::vector ::const_iterator _iter715; + for (_iter715 = this->success.begin(); _iter715 != this->success.end(); ++_iter715) { - xfer += (*_iter707).write(oprot); + xfer += (*_iter715).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 _size708; - ::apache::thrift::protocol::TType _etype711; - xfer += iprot->readListBegin(_etype711, _size708); - (*(this->success)).resize(_size708); - uint32_t _i712; - for (_i712 = 0; _i712 < _size708; ++_i712) + 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) { - xfer += (*(this->success))[_i712].read(iprot); + xfer += (*(this->success))[_i720].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 _size713; - ::apache::thrift::protocol::TType _etype716; - xfer += iprot->readListBegin(_etype716, _size713); - this->success.resize(_size713); - uint32_t _i717; - for (_i717 = 0; _i717 < _size713; ++_i717) + 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) { - xfer += iprot->readString(this->success[_i717]); + xfer += iprot->readString(this->success[_i725]); } 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 _iter718; - for (_iter718 = this->success.begin(); _iter718 != this->success.end(); ++_iter718) + std::vector ::const_iterator _iter726; + for (_iter726 = this->success.begin(); _iter726 != this->success.end(); ++_iter726) { - xfer += oprot->writeString((*_iter718)); + xfer += oprot->writeString((*_iter726)); } 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 _size719; - ::apache::thrift::protocol::TType _etype722; - xfer += iprot->readListBegin(_etype722, _size719); - (*(this->success)).resize(_size719); - uint32_t _i723; - for (_i723 = 0; _i723 < _size719; ++_i723) + 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) { - xfer += iprot->readString((*(this->success))[_i723]); + xfer += iprot->readString((*(this->success))[_i731]); } 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 _size724; - ::apache::thrift::protocol::TType _etype727; - xfer += iprot->readListBegin(_etype727, _size724); - this->success.resize(_size724); - uint32_t _i728; - for (_i728 = 0; _i728 < _size724; ++_i728) + 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) { - xfer += iprot->readString(this->success[_i728]); + xfer += iprot->readString(this->success[_i736]); } 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 _iter729; - for (_iter729 = this->success.begin(); _iter729 != this->success.end(); ++_iter729) + std::vector ::const_iterator _iter737; + for (_iter737 = this->success.begin(); _iter737 != this->success.end(); ++_iter737) { - xfer += oprot->writeString((*_iter729)); + xfer += oprot->writeString((*_iter737)); } 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 _size730; - ::apache::thrift::protocol::TType _etype733; - xfer += iprot->readListBegin(_etype733, _size730); - (*(this->success)).resize(_size730); - uint32_t _i734; - for (_i734 = 0; _i734 < _size730; ++_i734) + 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) { - xfer += iprot->readString((*(this->success))[_i734]); + xfer += iprot->readString((*(this->success))[_i742]); } 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 _size735; - ::apache::thrift::protocol::TType _etype738; - xfer += iprot->readListBegin(_etype738, _size735); - this->success.resize(_size735); - uint32_t _i739; - for (_i739 = 0; _i739 < _size735; ++_i739) + 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) { - xfer += iprot->readString(this->success[_i739]); + xfer += iprot->readString(this->success[_i747]); } 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 _iter740; - for (_iter740 = this->success.begin(); _iter740 != this->success.end(); ++_iter740) + std::vector ::const_iterator _iter748; + for (_iter748 = this->success.begin(); _iter748 != this->success.end(); ++_iter748) { - xfer += oprot->writeString((*_iter740)); + xfer += oprot->writeString((*_iter748)); } 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 _size741; - ::apache::thrift::protocol::TType _etype744; - xfer += iprot->readListBegin(_etype744, _size741); - (*(this->success)).resize(_size741); - uint32_t _i745; - for (_i745 = 0; _i745 < _size741; ++_i745) + 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) { - xfer += iprot->readString((*(this->success))[_i745]); + xfer += iprot->readString((*(this->success))[_i753]); } 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 ecast746; - xfer += iprot->readI32(ecast746); - this->principal_type = (PrincipalType::type)ecast746; + int32_t ecast754; + xfer += iprot->readI32(ecast754); + this->principal_type = (PrincipalType::type)ecast754; 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 ecast747; - xfer += iprot->readI32(ecast747); - this->grantorType = (PrincipalType::type)ecast747; + int32_t ecast755; + xfer += iprot->readI32(ecast755); + this->grantorType = (PrincipalType::type)ecast755; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20257,9 +20257,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast748; - xfer += iprot->readI32(ecast748); - this->principal_type = (PrincipalType::type)ecast748; + int32_t ecast756; + xfer += iprot->readI32(ecast756); + this->principal_type = (PrincipalType::type)ecast756; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20465,9 +20465,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast749; - xfer += iprot->readI32(ecast749); - this->principal_type = (PrincipalType::type)ecast749; + int32_t ecast757; + xfer += iprot->readI32(ecast757); + this->principal_type = (PrincipalType::type)ecast757; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20543,14 +20543,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + 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[_i754].read(iprot); + xfer += this->success[_i762].read(iprot); } xfer += iprot->readListEnd(); } @@ -20589,10 +20589,10 @@ uint32_t ThriftHiveMetastore_list_roles_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 _iter755; - for (_iter755 = this->success.begin(); _iter755 != this->success.end(); ++_iter755) + std::vector ::const_iterator _iter763; + for (_iter763 = this->success.begin(); _iter763 != this->success.end(); ++_iter763) { - xfer += (*_iter755).write(oprot); + xfer += (*_iter763).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20631,14 +20631,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + 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))[_i760].read(iprot); + xfer += (*(this->success))[_i768].read(iprot); } xfer += iprot->readListEnd(); } @@ -20667,6 +20667,188 @@ 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 xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_principals_in_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_args"); + + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_principals_in_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_pargs"); + + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_principals_in_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_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_principals_in_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_principals_in_role_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_principals_in_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_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + uint32_t ThriftHiveMetastore_get_privilege_set_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -20707,14 +20889,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 _size761; - ::apache::thrift::protocol::TType _etype764; - xfer += iprot->readListBegin(_etype764, _size761); - this->group_names.resize(_size761); - uint32_t _i765; - for (_i765 = 0; _i765 < _size761; ++_i765) + 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) { - xfer += iprot->readString(this->group_names[_i765]); + xfer += iprot->readString(this->group_names[_i773]); } xfer += iprot->readListEnd(); } @@ -20750,10 +20932,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 _iter766; - for (_iter766 = this->group_names.begin(); _iter766 != this->group_names.end(); ++_iter766) + std::vector ::const_iterator _iter774; + for (_iter774 = this->group_names.begin(); _iter774 != this->group_names.end(); ++_iter774) { - xfer += oprot->writeString((*_iter766)); + xfer += oprot->writeString((*_iter774)); } xfer += oprot->writeListEnd(); } @@ -20779,10 +20961,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 _iter767; - for (_iter767 = (*(this->group_names)).begin(); _iter767 != (*(this->group_names)).end(); ++_iter767) + std::vector ::const_iterator _iter775; + for (_iter775 = (*(this->group_names)).begin(); _iter775 != (*(this->group_names)).end(); ++_iter775) { - xfer += oprot->writeString((*_iter767)); + xfer += oprot->writeString((*_iter775)); } xfer += oprot->writeListEnd(); } @@ -20939,9 +21121,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast768; - xfer += iprot->readI32(ecast768); - this->principal_type = (PrincipalType::type)ecast768; + int32_t ecast776; + xfer += iprot->readI32(ecast776); + this->principal_type = (PrincipalType::type)ecast776; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21033,14 +21215,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size769; - ::apache::thrift::protocol::TType _etype772; - xfer += iprot->readListBegin(_etype772, _size769); - this->success.resize(_size769); - uint32_t _i773; - for (_i773 = 0; _i773 < _size769; ++_i773) + 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) { - xfer += this->success[_i773].read(iprot); + xfer += this->success[_i781].read(iprot); } xfer += iprot->readListEnd(); } @@ -21079,10 +21261,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 _iter774; - for (_iter774 = this->success.begin(); _iter774 != this->success.end(); ++_iter774) + std::vector ::const_iterator _iter782; + for (_iter782 = this->success.begin(); _iter782 != this->success.end(); ++_iter782) { - xfer += (*_iter774).write(oprot); + xfer += (*_iter782).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21121,14 +21303,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size775; - ::apache::thrift::protocol::TType _etype778; - xfer += iprot->readListBegin(_etype778, _size775); - (*(this->success)).resize(_size775); - uint32_t _i779; - for (_i779 = 0; _i779 < _size775; ++_i779) + 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) { - xfer += (*(this->success))[_i779].read(iprot); + xfer += (*(this->success))[_i787].read(iprot); } xfer += iprot->readListEnd(); } @@ -21553,14 +21735,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 _size780; - ::apache::thrift::protocol::TType _etype783; - xfer += iprot->readListBegin(_etype783, _size780); - this->group_names.resize(_size780); - uint32_t _i784; - for (_i784 = 0; _i784 < _size780; ++_i784) + 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) { - xfer += iprot->readString(this->group_names[_i784]); + xfer += iprot->readString(this->group_names[_i792]); } xfer += iprot->readListEnd(); } @@ -21592,10 +21774,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 _iter785; - for (_iter785 = this->group_names.begin(); _iter785 != this->group_names.end(); ++_iter785) + std::vector ::const_iterator _iter793; + for (_iter793 = this->group_names.begin(); _iter793 != this->group_names.end(); ++_iter793) { - xfer += oprot->writeString((*_iter785)); + xfer += oprot->writeString((*_iter793)); } xfer += oprot->writeListEnd(); } @@ -21617,10 +21799,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 _iter786; - for (_iter786 = (*(this->group_names)).begin(); _iter786 != (*(this->group_names)).end(); ++_iter786) + std::vector ::const_iterator _iter794; + for (_iter794 = (*(this->group_names)).begin(); _iter794 != (*(this->group_names)).end(); ++_iter794) { - xfer += oprot->writeString((*_iter786)); + xfer += oprot->writeString((*_iter794)); } xfer += oprot->writeListEnd(); } @@ -21655,14 +21837,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size787; - ::apache::thrift::protocol::TType _etype790; - xfer += iprot->readListBegin(_etype790, _size787); - this->success.resize(_size787); - uint32_t _i791; - for (_i791 = 0; _i791 < _size787; ++_i791) + 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) { - xfer += iprot->readString(this->success[_i791]); + xfer += iprot->readString(this->success[_i799]); } xfer += iprot->readListEnd(); } @@ -21701,10 +21883,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 _iter792; - for (_iter792 = this->success.begin(); _iter792 != this->success.end(); ++_iter792) + std::vector ::const_iterator _iter800; + for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) { - xfer += oprot->writeString((*_iter792)); + xfer += oprot->writeString((*_iter800)); } xfer += oprot->writeListEnd(); } @@ -21743,14 +21925,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size793; - ::apache::thrift::protocol::TType _etype796; - xfer += iprot->readListBegin(_etype796, _size793); - (*(this->success)).resize(_size793); - uint32_t _i797; - for (_i797 = 0; _i797 < _size793; ++_i797) + 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) { - xfer += iprot->readString((*(this->success))[_i797]); + xfer += iprot->readString((*(this->success))[_i805]); } xfer += iprot->readListEnd(); } @@ -29870,6 +30052,67 @@ void ThriftHiveMetastoreClient::recv_list_roles(std::vector & _return) throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "list_roles failed: unknown result"); } +void ThriftHiveMetastoreClient::get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request) +{ + send_get_principals_in_role(request); + recv_get_principals_in_role(_return); +} + +void ThriftHiveMetastoreClient::send_get_principals_in_role(const GetPrincipalsInRoleRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_principals_in_role", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_principals_in_role_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_principals_in_role(GetPrincipalsInRoleResponse& _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_principals_in_role") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_principals_in_role_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_principals_in_role 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); @@ -36177,6 +36420,63 @@ void ThriftHiveMetastoreProcessor::process_list_roles(int32_t seqid, ::apache::t } } +void ThriftHiveMetastoreProcessor::process_get_principals_in_role(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_principals_in_role", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_principals_in_role"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_principals_in_role"); + } + + ThriftHiveMetastore_get_principals_in_role_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_principals_in_role", bytes); + } + + ThriftHiveMetastore_get_principals_in_role_result result; + try { + iface_->get_principals_in_role(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_principals_in_role"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_principals_in_role", ::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_principals_in_role"); + } + + oprot->writeMessageBegin("get_principals_in_role", ::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_principals_in_role", 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 d24f781..ca972ef 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -100,6 +100,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual bool grant_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type, const std::string& grantor, const PrincipalType::type grantorType, const bool grant_option) = 0; virtual bool revoke_role(const std::string& role_name, const std::string& principal_name, const PrincipalType::type principal_type) = 0; virtual void list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type) = 0; + virtual void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& 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; @@ -419,6 +420,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void list_roles(std::vector & /* _return */, const std::string& /* principal_name */, const PrincipalType::type /* principal_type */) { return; } + void get_principals_in_role(GetPrincipalsInRoleResponse& /* _return */, const GetPrincipalsInRoleRequest& /* request */) { + return; + } void get_privilege_set(PrincipalPrivilegeSet& /* _return */, const HiveObjectRef& /* hiveObject */, const std::string& /* user_name */, const std::vector & /* group_names */) { return; } @@ -12512,6 +12516,124 @@ class ThriftHiveMetastore_list_roles_presult { }; +typedef struct _ThriftHiveMetastore_get_principals_in_role_args__isset { + _ThriftHiveMetastore_get_principals_in_role_args__isset() : request(false) {} + bool request; +} _ThriftHiveMetastore_get_principals_in_role_args__isset; + +class ThriftHiveMetastore_get_principals_in_role_args { + public: + + ThriftHiveMetastore_get_principals_in_role_args() { + } + + virtual ~ThriftHiveMetastore_get_principals_in_role_args() throw() {} + + GetPrincipalsInRoleRequest request; + + _ThriftHiveMetastore_get_principals_in_role_args__isset __isset; + + void __set_request(const GetPrincipalsInRoleRequest& val) { + request = val; + } + + bool operator == (const ThriftHiveMetastore_get_principals_in_role_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_principals_in_role_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_principals_in_role_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_principals_in_role_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_principals_in_role_pargs() throw() {} + + const GetPrincipalsInRoleRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_principals_in_role_result__isset { + _ThriftHiveMetastore_get_principals_in_role_result__isset() : success(false), o1(false) {} + bool success; + bool o1; +} _ThriftHiveMetastore_get_principals_in_role_result__isset; + +class ThriftHiveMetastore_get_principals_in_role_result { + public: + + ThriftHiveMetastore_get_principals_in_role_result() { + } + + virtual ~ThriftHiveMetastore_get_principals_in_role_result() throw() {} + + GetPrincipalsInRoleResponse success; + MetaException o1; + + _ThriftHiveMetastore_get_principals_in_role_result__isset __isset; + + void __set_success(const GetPrincipalsInRoleResponse& val) { + success = val; + } + + void __set_o1(const MetaException& val) { + o1 = val; + } + + bool operator == (const ThriftHiveMetastore_get_principals_in_role_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_principals_in_role_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_principals_in_role_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_principals_in_role_presult__isset { + _ThriftHiveMetastore_get_principals_in_role_presult__isset() : success(false), o1(false) {} + bool success; + bool o1; +} _ThriftHiveMetastore_get_principals_in_role_presult__isset; + +class ThriftHiveMetastore_get_principals_in_role_presult { + public: + + + virtual ~ThriftHiveMetastore_get_principals_in_role_presult() throw() {} + + GetPrincipalsInRoleResponse* success; + MetaException o1; + + _ThriftHiveMetastore_get_principals_in_role_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; @@ -15102,6 +15224,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void list_roles(std::vector & _return, const std::string& principal_name, const PrincipalType::type principal_type); void send_list_roles(const std::string& principal_name, const PrincipalType::type principal_type); void recv_list_roles(std::vector & _return); + 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_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); @@ -15256,6 +15381,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_grant_role(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); 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_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); @@ -15364,6 +15490,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["grant_role"] = &ThriftHiveMetastoreProcessor::process_grant_role; 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_privilege_set"] = &ThriftHiveMetastoreProcessor::process_get_privilege_set; processMap_["list_privileges"] = &ThriftHiveMetastoreProcessor::process_list_privileges; processMap_["grant_privileges"] = &ThriftHiveMetastoreProcessor::process_grant_privileges; @@ -16221,6 +16348,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_principals_in_role(_return, request); + } + ifaces_[i]->get_principals_in_role(_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 569e3df..d1523ce 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -442,6 +442,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("list_roles\n"); } + void get_principals_in_role(GetPrincipalsInRoleResponse& _return, const GetPrincipalsInRoleRequest& request) { + // Your implementation goes here + printf("get_principals_in_role\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 2c48a58..59ac959 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -1228,6 +1228,294 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } +const char* RolePrincipalGrant::ascii_fingerprint = "899BA3F6214DD1B79D27206BA857C772"; +const uint8_t RolePrincipalGrant::binary_fingerprint[16] = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; + +uint32_t RolePrincipalGrant::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->roleName); + this->__isset.roleName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->principalName); + this->__isset.principalName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast63; + xfer += iprot->readI32(ecast63); + this->principalType = (PrincipalType::type)ecast63; + this->__isset.principalType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->grantOption); + this->__isset.grantOption = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->grantTime); + this->__isset.grantTime = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->grantorName); + this->__isset.grantorName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + int32_t ecast64; + xfer += iprot->readI32(ecast64); + this->grantorPrincipalType = (PrincipalType::type)ecast64; + this->__isset.grantorPrincipalType = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t RolePrincipalGrant::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("RolePrincipalGrant"); + + xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->roleName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("principalName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->principalName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("principalType", ::apache::thrift::protocol::T_I32, 3); + xfer += oprot->writeI32((int32_t)this->principalType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantOption", ::apache::thrift::protocol::T_BOOL, 4); + xfer += oprot->writeBool(this->grantOption); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantTime", ::apache::thrift::protocol::T_I32, 5); + xfer += oprot->writeI32(this->grantTime); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantorName", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->grantorName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("grantorPrincipalType", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32((int32_t)this->grantorPrincipalType); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { + using ::std::swap; + swap(a.roleName, b.roleName); + swap(a.principalName, b.principalName); + swap(a.principalType, b.principalType); + swap(a.grantOption, b.grantOption); + swap(a.grantTime, b.grantTime); + swap(a.grantorName, b.grantorName); + swap(a.grantorPrincipalType, b.grantorPrincipalType); + swap(a.__isset, b.__isset); +} + +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}; + +uint32_t GetPrincipalsInRoleRequest::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->roleName); + this->__isset.roleName = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t GetPrincipalsInRoleRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("GetPrincipalsInRoleRequest"); + + xfer += oprot->writeFieldBegin("roleName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->roleName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +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"; +const uint8_t GetPrincipalsInRoleResponse::binary_fingerprint[16] = {0x59,0x26,0xB4,0xB3,0x54,0x1A,0x62,0xE1,0x76,0x63,0x82,0x0C,0x7E,0x3B,0xE6,0x90}; + +uint32_t GetPrincipalsInRoleResponse::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_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) + { + xfer += this->principalGrants[_i69].read(iprot); + } + xfer += iprot->readListEnd(); + } + this->__isset.principalGrants = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("GetPrincipalsInRoleResponse"); + + 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) + { + xfer += (*_iter70).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +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"; const uint8_t Database::binary_fingerprint[16] = {0x55,0x34,0x95,0xCA,0xE2,0x43,0xA1,0xC5,0x83,0xD5,0xC3,0xDD,0x99,0x0A,0xED,0x53}; @@ -1279,17 +1567,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size63; - ::apache::thrift::protocol::TType _ktype64; - ::apache::thrift::protocol::TType _vtype65; - xfer += iprot->readMapBegin(_ktype64, _vtype65, _size63); - uint32_t _i67; - for (_i67 = 0; _i67 < _size63; ++_i67) + 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) { - std::string _key68; - xfer += iprot->readString(_key68); - std::string& _val69 = this->parameters[_key68]; - xfer += iprot->readString(_val69); + std::string _key76; + xfer += iprot->readString(_key76); + std::string& _val77 = this->parameters[_key76]; + xfer += iprot->readString(_val77); } xfer += iprot->readMapEnd(); } @@ -1316,9 +1604,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast70; - xfer += iprot->readI32(ecast70); - this->ownerType = (PrincipalType::type)ecast70; + int32_t ecast78; + xfer += iprot->readI32(ecast78); + this->ownerType = (PrincipalType::type)ecast78; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -1355,11 +1643,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 _iter71; - for (_iter71 = this->parameters.begin(); _iter71 != this->parameters.end(); ++_iter71) + std::map ::const_iterator _iter79; + for (_iter79 = this->parameters.begin(); _iter79 != this->parameters.end(); ++_iter79) { - xfer += oprot->writeString(_iter71->first); - xfer += oprot->writeString(_iter71->second); + xfer += oprot->writeString(_iter79->first); + xfer += oprot->writeString(_iter79->second); } xfer += oprot->writeMapEnd(); } @@ -1440,17 +1728,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size72; - ::apache::thrift::protocol::TType _ktype73; - ::apache::thrift::protocol::TType _vtype74; - xfer += iprot->readMapBegin(_ktype73, _vtype74, _size72); - uint32_t _i76; - for (_i76 = 0; _i76 < _size72; ++_i76) + 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) { - std::string _key77; - xfer += iprot->readString(_key77); - std::string& _val78 = this->parameters[_key77]; - xfer += iprot->readString(_val78); + std::string _key85; + xfer += iprot->readString(_key85); + std::string& _val86 = this->parameters[_key85]; + xfer += iprot->readString(_val86); } xfer += iprot->readMapEnd(); } @@ -1486,11 +1774,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 _iter79; - for (_iter79 = this->parameters.begin(); _iter79 != this->parameters.end(); ++_iter79) + std::map ::const_iterator _iter87; + for (_iter87 = this->parameters.begin(); _iter87 != this->parameters.end(); ++_iter87) { - xfer += oprot->writeString(_iter79->first); - xfer += oprot->writeString(_iter79->second); + xfer += oprot->writeString(_iter87->first); + xfer += oprot->writeString(_iter87->second); } xfer += oprot->writeMapEnd(); } @@ -1611,14 +1899,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size80; - ::apache::thrift::protocol::TType _etype83; - xfer += iprot->readListBegin(_etype83, _size80); - this->skewedColNames.resize(_size80); - uint32_t _i84; - for (_i84 = 0; _i84 < _size80; ++_i84) + 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) { - xfer += iprot->readString(this->skewedColNames[_i84]); + xfer += iprot->readString(this->skewedColNames[_i92]); } xfer += iprot->readListEnd(); } @@ -1631,23 +1919,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size85; - ::apache::thrift::protocol::TType _etype88; - xfer += iprot->readListBegin(_etype88, _size85); - this->skewedColValues.resize(_size85); - uint32_t _i89; - for (_i89 = 0; _i89 < _size85; ++_i89) + 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) { { - this->skewedColValues[_i89].clear(); - uint32_t _size90; - ::apache::thrift::protocol::TType _etype93; - xfer += iprot->readListBegin(_etype93, _size90); - this->skewedColValues[_i89].resize(_size90); - uint32_t _i94; - for (_i94 = 0; _i94 < _size90; ++_i94) + 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) { - xfer += iprot->readString(this->skewedColValues[_i89][_i94]); + xfer += iprot->readString(this->skewedColValues[_i97][_i102]); } xfer += iprot->readListEnd(); } @@ -1663,29 +1951,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size95; - ::apache::thrift::protocol::TType _ktype96; - ::apache::thrift::protocol::TType _vtype97; - xfer += iprot->readMapBegin(_ktype96, _vtype97, _size95); - uint32_t _i99; - for (_i99 = 0; _i99 < _size95; ++_i99) + 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) { - std::vector _key100; + std::vector _key108; { - _key100.clear(); - uint32_t _size102; - ::apache::thrift::protocol::TType _etype105; - xfer += iprot->readListBegin(_etype105, _size102); - _key100.resize(_size102); - uint32_t _i106; - for (_i106 = 0; _i106 < _size102; ++_i106) + _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) { - xfer += iprot->readString(_key100[_i106]); + xfer += iprot->readString(_key108[_i114]); } xfer += iprot->readListEnd(); } - std::string& _val101 = this->skewedColValueLocationMaps[_key100]; - xfer += iprot->readString(_val101); + std::string& _val109 = this->skewedColValueLocationMaps[_key108]; + xfer += iprot->readString(_val109); } xfer += iprot->readMapEnd(); } @@ -1713,10 +2001,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 _iter107; - for (_iter107 = this->skewedColNames.begin(); _iter107 != this->skewedColNames.end(); ++_iter107) + std::vector ::const_iterator _iter115; + for (_iter115 = this->skewedColNames.begin(); _iter115 != this->skewedColNames.end(); ++_iter115) { - xfer += oprot->writeString((*_iter107)); + xfer += oprot->writeString((*_iter115)); } xfer += oprot->writeListEnd(); } @@ -1725,15 +2013,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 _iter108; - for (_iter108 = this->skewedColValues.begin(); _iter108 != this->skewedColValues.end(); ++_iter108) + std::vector > ::const_iterator _iter116; + for (_iter116 = this->skewedColValues.begin(); _iter116 != this->skewedColValues.end(); ++_iter116) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter108).size())); - std::vector ::const_iterator _iter109; - for (_iter109 = (*_iter108).begin(); _iter109 != (*_iter108).end(); ++_iter109) + 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->writeString((*_iter109)); + xfer += oprot->writeString((*_iter117)); } xfer += oprot->writeListEnd(); } @@ -1745,19 +2033,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 _iter110; - for (_iter110 = this->skewedColValueLocationMaps.begin(); _iter110 != this->skewedColValueLocationMaps.end(); ++_iter110) + std::map , std::string> ::const_iterator _iter118; + for (_iter118 = this->skewedColValueLocationMaps.begin(); _iter118 != this->skewedColValueLocationMaps.end(); ++_iter118) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter110->first.size())); - std::vector ::const_iterator _iter111; - for (_iter111 = _iter110->first.begin(); _iter111 != _iter110->first.end(); ++_iter111) + 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->writeString((*_iter111)); + xfer += oprot->writeString((*_iter119)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter110->second); + xfer += oprot->writeString(_iter118->second); } xfer += oprot->writeMapEnd(); } @@ -1803,14 +2091,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size112; - ::apache::thrift::protocol::TType _etype115; - xfer += iprot->readListBegin(_etype115, _size112); - this->cols.resize(_size112); - uint32_t _i116; - for (_i116 = 0; _i116 < _size112; ++_i116) + 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) { - xfer += this->cols[_i116].read(iprot); + xfer += this->cols[_i124].read(iprot); } xfer += iprot->readListEnd(); } @@ -1871,14 +2159,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size117; - ::apache::thrift::protocol::TType _etype120; - xfer += iprot->readListBegin(_etype120, _size117); - this->bucketCols.resize(_size117); - uint32_t _i121; - for (_i121 = 0; _i121 < _size117; ++_i121) + 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) { - xfer += iprot->readString(this->bucketCols[_i121]); + xfer += iprot->readString(this->bucketCols[_i129]); } xfer += iprot->readListEnd(); } @@ -1891,14 +2179,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size122; - ::apache::thrift::protocol::TType _etype125; - xfer += iprot->readListBegin(_etype125, _size122); - this->sortCols.resize(_size122); - uint32_t _i126; - for (_i126 = 0; _i126 < _size122; ++_i126) + 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) { - xfer += this->sortCols[_i126].read(iprot); + xfer += this->sortCols[_i134].read(iprot); } xfer += iprot->readListEnd(); } @@ -1911,17 +2199,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size127; - ::apache::thrift::protocol::TType _ktype128; - ::apache::thrift::protocol::TType _vtype129; - xfer += iprot->readMapBegin(_ktype128, _vtype129, _size127); - uint32_t _i131; - for (_i131 = 0; _i131 < _size127; ++_i131) + 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) { - std::string _key132; - xfer += iprot->readString(_key132); - std::string& _val133 = this->parameters[_key132]; - xfer += iprot->readString(_val133); + std::string _key140; + xfer += iprot->readString(_key140); + std::string& _val141 = this->parameters[_key140]; + xfer += iprot->readString(_val141); } xfer += iprot->readMapEnd(); } @@ -1965,10 +2253,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 _iter134; - for (_iter134 = this->cols.begin(); _iter134 != this->cols.end(); ++_iter134) + std::vector ::const_iterator _iter142; + for (_iter142 = this->cols.begin(); _iter142 != this->cols.end(); ++_iter142) { - xfer += (*_iter134).write(oprot); + xfer += (*_iter142).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2001,10 +2289,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 _iter135; - for (_iter135 = this->bucketCols.begin(); _iter135 != this->bucketCols.end(); ++_iter135) + std::vector ::const_iterator _iter143; + for (_iter143 = this->bucketCols.begin(); _iter143 != this->bucketCols.end(); ++_iter143) { - xfer += oprot->writeString((*_iter135)); + xfer += oprot->writeString((*_iter143)); } xfer += oprot->writeListEnd(); } @@ -2013,10 +2301,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 _iter136; - for (_iter136 = this->sortCols.begin(); _iter136 != this->sortCols.end(); ++_iter136) + std::vector ::const_iterator _iter144; + for (_iter144 = this->sortCols.begin(); _iter144 != this->sortCols.end(); ++_iter144) { - xfer += (*_iter136).write(oprot); + xfer += (*_iter144).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2025,11 +2313,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 _iter137; - for (_iter137 = this->parameters.begin(); _iter137 != this->parameters.end(); ++_iter137) + std::map ::const_iterator _iter145; + for (_iter145 = this->parameters.begin(); _iter145 != this->parameters.end(); ++_iter145) { - xfer += oprot->writeString(_iter137->first); - xfer += oprot->writeString(_iter137->second); + xfer += oprot->writeString(_iter145->first); + xfer += oprot->writeString(_iter145->second); } xfer += oprot->writeMapEnd(); } @@ -2150,14 +2438,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size138; - ::apache::thrift::protocol::TType _etype141; - xfer += iprot->readListBegin(_etype141, _size138); - this->partitionKeys.resize(_size138); - uint32_t _i142; - for (_i142 = 0; _i142 < _size138; ++_i142) + 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) { - xfer += this->partitionKeys[_i142].read(iprot); + xfer += this->partitionKeys[_i150].read(iprot); } xfer += iprot->readListEnd(); } @@ -2170,17 +2458,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size143; - ::apache::thrift::protocol::TType _ktype144; - ::apache::thrift::protocol::TType _vtype145; - xfer += iprot->readMapBegin(_ktype144, _vtype145, _size143); - uint32_t _i147; - for (_i147 = 0; _i147 < _size143; ++_i147) + 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) { - std::string _key148; - xfer += iprot->readString(_key148); - std::string& _val149 = this->parameters[_key148]; - xfer += iprot->readString(_val149); + std::string _key156; + xfer += iprot->readString(_key156); + std::string& _val157 = this->parameters[_key156]; + xfer += iprot->readString(_val157); } xfer += iprot->readMapEnd(); } @@ -2268,10 +2556,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 _iter150; - for (_iter150 = this->partitionKeys.begin(); _iter150 != this->partitionKeys.end(); ++_iter150) + std::vector ::const_iterator _iter158; + for (_iter158 = this->partitionKeys.begin(); _iter158 != this->partitionKeys.end(); ++_iter158) { - xfer += (*_iter150).write(oprot); + xfer += (*_iter158).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2280,11 +2568,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 _iter151; - for (_iter151 = this->parameters.begin(); _iter151 != this->parameters.end(); ++_iter151) + std::map ::const_iterator _iter159; + for (_iter159 = this->parameters.begin(); _iter159 != this->parameters.end(); ++_iter159) { - xfer += oprot->writeString(_iter151->first); - xfer += oprot->writeString(_iter151->second); + xfer += oprot->writeString(_iter159->first); + xfer += oprot->writeString(_iter159->second); } xfer += oprot->writeMapEnd(); } @@ -2357,14 +2645,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size152; - ::apache::thrift::protocol::TType _etype155; - xfer += iprot->readListBegin(_etype155, _size152); - this->values.resize(_size152); - uint32_t _i156; - for (_i156 = 0; _i156 < _size152; ++_i156) + 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) { - xfer += iprot->readString(this->values[_i156]); + xfer += iprot->readString(this->values[_i164]); } xfer += iprot->readListEnd(); } @@ -2417,17 +2705,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size157; - ::apache::thrift::protocol::TType _ktype158; - ::apache::thrift::protocol::TType _vtype159; - xfer += iprot->readMapBegin(_ktype158, _vtype159, _size157); - uint32_t _i161; - for (_i161 = 0; _i161 < _size157; ++_i161) + 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) { - std::string _key162; - xfer += iprot->readString(_key162); - std::string& _val163 = this->parameters[_key162]; - xfer += iprot->readString(_val163); + std::string _key170; + xfer += iprot->readString(_key170); + std::string& _val171 = this->parameters[_key170]; + xfer += iprot->readString(_val171); } xfer += iprot->readMapEnd(); } @@ -2463,10 +2751,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 _iter164; - for (_iter164 = this->values.begin(); _iter164 != this->values.end(); ++_iter164) + std::vector ::const_iterator _iter172; + for (_iter172 = this->values.begin(); _iter172 != this->values.end(); ++_iter172) { - xfer += oprot->writeString((*_iter164)); + xfer += oprot->writeString((*_iter172)); } xfer += oprot->writeListEnd(); } @@ -2495,11 +2783,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 _iter165; - for (_iter165 = this->parameters.begin(); _iter165 != this->parameters.end(); ++_iter165) + std::map ::const_iterator _iter173; + for (_iter173 = this->parameters.begin(); _iter173 != this->parameters.end(); ++_iter173) { - xfer += oprot->writeString(_iter165->first); - xfer += oprot->writeString(_iter165->second); + xfer += oprot->writeString(_iter173->first); + xfer += oprot->writeString(_iter173->second); } xfer += oprot->writeMapEnd(); } @@ -2619,17 +2907,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size166; - ::apache::thrift::protocol::TType _ktype167; - ::apache::thrift::protocol::TType _vtype168; - xfer += iprot->readMapBegin(_ktype167, _vtype168, _size166); - uint32_t _i170; - for (_i170 = 0; _i170 < _size166; ++_i170) + 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) { - std::string _key171; - xfer += iprot->readString(_key171); - std::string& _val172 = this->parameters[_key171]; - xfer += iprot->readString(_val172); + std::string _key179; + xfer += iprot->readString(_key179); + std::string& _val180 = this->parameters[_key179]; + xfer += iprot->readString(_val180); } xfer += iprot->readMapEnd(); } @@ -2697,11 +2985,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 _iter173; - for (_iter173 = this->parameters.begin(); _iter173 != this->parameters.end(); ++_iter173) + std::map ::const_iterator _iter181; + for (_iter181 = this->parameters.begin(); _iter181 != this->parameters.end(); ++_iter181) { - xfer += oprot->writeString(_iter173->first); - xfer += oprot->writeString(_iter173->second); + xfer += oprot->writeString(_iter181->first); + xfer += oprot->writeString(_iter181->second); } xfer += oprot->writeMapEnd(); } @@ -3631,14 +3919,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size174; - ::apache::thrift::protocol::TType _etype177; - xfer += iprot->readListBegin(_etype177, _size174); - this->statsObj.resize(_size174); - uint32_t _i178; - for (_i178 = 0; _i178 < _size174; ++_i178) + 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) { - xfer += this->statsObj[_i178].read(iprot); + xfer += this->statsObj[_i186].read(iprot); } xfer += iprot->readListEnd(); } @@ -3674,10 +3962,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 _iter179; - for (_iter179 = this->statsObj.begin(); _iter179 != this->statsObj.end(); ++_iter179) + std::vector ::const_iterator _iter187; + for (_iter187 = this->statsObj.begin(); _iter187 != this->statsObj.end(); ++_iter187) { - xfer += (*_iter179).write(oprot); + xfer += (*_iter187).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3721,14 +4009,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size180; - ::apache::thrift::protocol::TType _etype183; - xfer += iprot->readListBegin(_etype183, _size180); - this->fieldSchemas.resize(_size180); - uint32_t _i184; - for (_i184 = 0; _i184 < _size180; ++_i184) + 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) { - xfer += this->fieldSchemas[_i184].read(iprot); + xfer += this->fieldSchemas[_i192].read(iprot); } xfer += iprot->readListEnd(); } @@ -3741,17 +4029,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size185; - ::apache::thrift::protocol::TType _ktype186; - ::apache::thrift::protocol::TType _vtype187; - xfer += iprot->readMapBegin(_ktype186, _vtype187, _size185); - uint32_t _i189; - for (_i189 = 0; _i189 < _size185; ++_i189) + 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) { - std::string _key190; - xfer += iprot->readString(_key190); - std::string& _val191 = this->properties[_key190]; - xfer += iprot->readString(_val191); + std::string _key198; + xfer += iprot->readString(_key198); + std::string& _val199 = this->properties[_key198]; + xfer += iprot->readString(_val199); } xfer += iprot->readMapEnd(); } @@ -3779,10 +4067,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 _iter192; - for (_iter192 = this->fieldSchemas.begin(); _iter192 != this->fieldSchemas.end(); ++_iter192) + std::vector ::const_iterator _iter200; + for (_iter200 = this->fieldSchemas.begin(); _iter200 != this->fieldSchemas.end(); ++_iter200) { - xfer += (*_iter192).write(oprot); + xfer += (*_iter200).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3791,11 +4079,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 _iter193; - for (_iter193 = this->properties.begin(); _iter193 != this->properties.end(); ++_iter193) + std::map ::const_iterator _iter201; + for (_iter201 = this->properties.begin(); _iter201 != this->properties.end(); ++_iter201) { - xfer += oprot->writeString(_iter193->first); - xfer += oprot->writeString(_iter193->second); + xfer += oprot->writeString(_iter201->first); + xfer += oprot->writeString(_iter201->second); } xfer += oprot->writeMapEnd(); } @@ -3840,17 +4128,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size194; - ::apache::thrift::protocol::TType _ktype195; - ::apache::thrift::protocol::TType _vtype196; - xfer += iprot->readMapBegin(_ktype195, _vtype196, _size194); - uint32_t _i198; - for (_i198 = 0; _i198 < _size194; ++_i198) + 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) { - std::string _key199; - xfer += iprot->readString(_key199); - std::string& _val200 = this->properties[_key199]; - xfer += iprot->readString(_val200); + std::string _key207; + xfer += iprot->readString(_key207); + std::string& _val208 = this->properties[_key207]; + xfer += iprot->readString(_val208); } xfer += iprot->readMapEnd(); } @@ -3878,11 +4166,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 _iter201; - for (_iter201 = this->properties.begin(); _iter201 != this->properties.end(); ++_iter201) + std::map ::const_iterator _iter209; + for (_iter209 = this->properties.begin(); _iter209 != this->properties.end(); ++_iter209) { - xfer += oprot->writeString(_iter201->first); - xfer += oprot->writeString(_iter201->second); + xfer += oprot->writeString(_iter209->first); + xfer += oprot->writeString(_iter209->second); } xfer += oprot->writeMapEnd(); } @@ -3928,14 +4216,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size202; - ::apache::thrift::protocol::TType _etype205; - xfer += iprot->readListBegin(_etype205, _size202); - this->partitions.resize(_size202); - uint32_t _i206; - for (_i206 = 0; _i206 < _size202; ++_i206) + 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) { - xfer += this->partitions[_i206].read(iprot); + xfer += this->partitions[_i214].read(iprot); } xfer += iprot->readListEnd(); } @@ -3975,10 +4263,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 _iter207; - for (_iter207 = this->partitions.begin(); _iter207 != this->partitions.end(); ++_iter207) + std::vector ::const_iterator _iter215; + for (_iter215 = this->partitions.begin(); _iter215 != this->partitions.end(); ++_iter215) { - xfer += (*_iter207).write(oprot); + xfer += (*_iter215).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4152,14 +4440,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size208; - ::apache::thrift::protocol::TType _etype211; - xfer += iprot->readListBegin(_etype211, _size208); - this->tableStats.resize(_size208); - uint32_t _i212; - for (_i212 = 0; _i212 < _size208; ++_i212) + 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) { - xfer += this->tableStats[_i212].read(iprot); + xfer += this->tableStats[_i220].read(iprot); } xfer += iprot->readListEnd(); } @@ -4189,10 +4477,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 _iter213; - for (_iter213 = this->tableStats.begin(); _iter213 != this->tableStats.end(); ++_iter213) + std::vector ::const_iterator _iter221; + for (_iter221 = this->tableStats.begin(); _iter221 != this->tableStats.end(); ++_iter221) { - xfer += (*_iter213).write(oprot); + xfer += (*_iter221).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4236,26 +4524,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size214; - ::apache::thrift::protocol::TType _ktype215; - ::apache::thrift::protocol::TType _vtype216; - xfer += iprot->readMapBegin(_ktype215, _vtype216, _size214); - uint32_t _i218; - for (_i218 = 0; _i218 < _size214; ++_i218) + 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) { - std::string _key219; - xfer += iprot->readString(_key219); - std::vector & _val220 = this->partStats[_key219]; + std::string _key227; + xfer += iprot->readString(_key227); + std::vector & _val228 = this->partStats[_key227]; { - _val220.clear(); - uint32_t _size221; - ::apache::thrift::protocol::TType _etype224; - xfer += iprot->readListBegin(_etype224, _size221); - _val220.resize(_size221); - uint32_t _i225; - for (_i225 = 0; _i225 < _size221; ++_i225) + _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) { - xfer += _val220[_i225].read(iprot); + xfer += _val228[_i233].read(iprot); } xfer += iprot->readListEnd(); } @@ -4288,16 +4576,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 _iter226; - for (_iter226 = this->partStats.begin(); _iter226 != this->partStats.end(); ++_iter226) + std::map > ::const_iterator _iter234; + for (_iter234 = this->partStats.begin(); _iter234 != this->partStats.end(); ++_iter234) { - xfer += oprot->writeString(_iter226->first); + xfer += oprot->writeString(_iter234->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter226->second.size())); - std::vector ::const_iterator _iter227; - for (_iter227 = _iter226->second.begin(); _iter227 != _iter226->second.end(); ++_iter227) + 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 += (*_iter227).write(oprot); + xfer += (*_iter235).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4362,14 +4650,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size228; - ::apache::thrift::protocol::TType _etype231; - xfer += iprot->readListBegin(_etype231, _size228); - this->colNames.resize(_size228); - uint32_t _i232; - for (_i232 = 0; _i232 < _size228; ++_i232) + 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) { - xfer += iprot->readString(this->colNames[_i232]); + xfer += iprot->readString(this->colNames[_i240]); } xfer += iprot->readListEnd(); } @@ -4411,10 +4699,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 _iter233; - for (_iter233 = this->colNames.begin(); _iter233 != this->colNames.end(); ++_iter233) + std::vector ::const_iterator _iter241; + for (_iter241 = this->colNames.begin(); _iter241 != this->colNames.end(); ++_iter241) { - xfer += oprot->writeString((*_iter233)); + xfer += oprot->writeString((*_iter241)); } xfer += oprot->writeListEnd(); } @@ -4479,14 +4767,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size234; - ::apache::thrift::protocol::TType _etype237; - xfer += iprot->readListBegin(_etype237, _size234); - this->colNames.resize(_size234); - uint32_t _i238; - for (_i238 = 0; _i238 < _size234; ++_i238) + 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) { - xfer += iprot->readString(this->colNames[_i238]); + xfer += iprot->readString(this->colNames[_i246]); } xfer += iprot->readListEnd(); } @@ -4499,14 +4787,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size239; - ::apache::thrift::protocol::TType _etype242; - xfer += iprot->readListBegin(_etype242, _size239); - this->partNames.resize(_size239); - uint32_t _i243; - for (_i243 = 0; _i243 < _size239; ++_i243) + 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) { - xfer += iprot->readString(this->partNames[_i243]); + xfer += iprot->readString(this->partNames[_i251]); } xfer += iprot->readListEnd(); } @@ -4550,10 +4838,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 _iter244; - for (_iter244 = this->colNames.begin(); _iter244 != this->colNames.end(); ++_iter244) + std::vector ::const_iterator _iter252; + for (_iter252 = this->colNames.begin(); _iter252 != this->colNames.end(); ++_iter252) { - xfer += oprot->writeString((*_iter244)); + xfer += oprot->writeString((*_iter252)); } xfer += oprot->writeListEnd(); } @@ -4562,10 +4850,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 _iter245; - for (_iter245 = this->partNames.begin(); _iter245 != this->partNames.end(); ++_iter245) + std::vector ::const_iterator _iter253; + for (_iter253 = this->partNames.begin(); _iter253 != this->partNames.end(); ++_iter253) { - xfer += oprot->writeString((*_iter245)); + xfer += oprot->writeString((*_iter253)); } xfer += oprot->writeListEnd(); } @@ -4611,14 +4899,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size246; - ::apache::thrift::protocol::TType _etype249; - xfer += iprot->readListBegin(_etype249, _size246); - this->partitions.resize(_size246); - uint32_t _i250; - for (_i250 = 0; _i250 < _size246; ++_i250) + 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) { - xfer += this->partitions[_i250].read(iprot); + xfer += this->partitions[_i258].read(iprot); } xfer += iprot->readListEnd(); } @@ -4647,10 +4935,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 _iter251; - for (_iter251 = this->partitions.begin(); _iter251 != this->partitions.end(); ++_iter251) + std::vector ::const_iterator _iter259; + for (_iter259 = this->partitions.begin(); _iter259 != this->partitions.end(); ++_iter259) { - xfer += (*_iter251).write(oprot); + xfer += (*_iter259).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4714,14 +5002,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size252; - ::apache::thrift::protocol::TType _etype255; - xfer += iprot->readListBegin(_etype255, _size252); - this->parts.resize(_size252); - uint32_t _i256; - for (_i256 = 0; _i256 < _size252; ++_i256) + 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) { - xfer += this->parts[_i256].read(iprot); + xfer += this->parts[_i264].read(iprot); } xfer += iprot->readListEnd(); } @@ -4781,10 +5069,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 _iter257; - for (_iter257 = this->parts.begin(); _iter257 != this->parts.end(); ++_iter257) + std::vector ::const_iterator _iter265; + for (_iter265 = this->parts.begin(); _iter265 != this->parts.end(); ++_iter265) { - xfer += (*_iter257).write(oprot); + xfer += (*_iter265).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4841,14 +5129,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size258; - ::apache::thrift::protocol::TType _etype261; - xfer += iprot->readListBegin(_etype261, _size258); - this->partitions.resize(_size258); - uint32_t _i262; - for (_i262 = 0; _i262 < _size258; ++_i262) + 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) { - xfer += this->partitions[_i262].read(iprot); + xfer += this->partitions[_i270].read(iprot); } xfer += iprot->readListEnd(); } @@ -4877,10 +5165,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 _iter263; - for (_iter263 = this->partitions.begin(); _iter263 != this->partitions.end(); ++_iter263) + std::vector ::const_iterator _iter271; + for (_iter271 = this->partitions.begin(); _iter271 != this->partitions.end(); ++_iter271) { - xfer += (*_iter263).write(oprot); + xfer += (*_iter271).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5003,14 +5291,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size264; - ::apache::thrift::protocol::TType _etype267; - xfer += iprot->readListBegin(_etype267, _size264); - this->names.resize(_size264); - uint32_t _i268; - for (_i268 = 0; _i268 < _size264; ++_i268) + 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) { - xfer += iprot->readString(this->names[_i268]); + xfer += iprot->readString(this->names[_i276]); } xfer += iprot->readListEnd(); } @@ -5023,14 +5311,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size269; - ::apache::thrift::protocol::TType _etype272; - xfer += iprot->readListBegin(_etype272, _size269); - this->exprs.resize(_size269); - uint32_t _i273; - for (_i273 = 0; _i273 < _size269; ++_i273) + 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) { - xfer += this->exprs[_i273].read(iprot); + xfer += this->exprs[_i281].read(iprot); } xfer += iprot->readListEnd(); } @@ -5058,10 +5346,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 _iter274; - for (_iter274 = this->names.begin(); _iter274 != this->names.end(); ++_iter274) + std::vector ::const_iterator _iter282; + for (_iter282 = this->names.begin(); _iter282 != this->names.end(); ++_iter282) { - xfer += oprot->writeString((*_iter274)); + xfer += oprot->writeString((*_iter282)); } xfer += oprot->writeListEnd(); } @@ -5070,10 +5358,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 _iter275; - for (_iter275 = this->exprs.begin(); _iter275 != this->exprs.end(); ++_iter275) + std::vector ::const_iterator _iter283; + for (_iter283 = this->exprs.begin(); _iter283 != this->exprs.end(); ++_iter283) { - xfer += (*_iter275).write(oprot); + xfer += (*_iter283).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5283,9 +5571,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast276; - xfer += iprot->readI32(ecast276); - this->resourceType = (ResourceType::type)ecast276; + int32_t ecast284; + xfer += iprot->readI32(ecast284); + this->resourceType = (ResourceType::type)ecast284; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -5392,9 +5680,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast277; - xfer += iprot->readI32(ecast277); - this->ownerType = (PrincipalType::type)ecast277; + int32_t ecast285; + xfer += iprot->readI32(ecast285); + this->ownerType = (PrincipalType::type)ecast285; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -5410,9 +5698,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast278; - xfer += iprot->readI32(ecast278); - this->functionType = (FunctionType::type)ecast278; + int32_t ecast286; + xfer += iprot->readI32(ecast286); + this->functionType = (FunctionType::type)ecast286; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -5422,14 +5710,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size279; - ::apache::thrift::protocol::TType _etype282; - xfer += iprot->readListBegin(_etype282, _size279); - this->resourceUris.resize(_size279); - uint32_t _i283; - for (_i283 = 0; _i283 < _size279; ++_i283) + 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) { - xfer += this->resourceUris[_i283].read(iprot); + xfer += this->resourceUris[_i291].read(iprot); } xfer += iprot->readListEnd(); } @@ -5485,10 +5773,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 _iter284; - for (_iter284 = this->resourceUris.begin(); _iter284 != this->resourceUris.end(); ++_iter284) + std::vector ::const_iterator _iter292; + for (_iter292 = this->resourceUris.begin(); _iter292 != this->resourceUris.end(); ++_iter292) { - xfer += (*_iter284).write(oprot); + xfer += (*_iter292).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5549,9 +5837,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast285; - xfer += iprot->readI32(ecast285); - this->state = (TxnState::type)ecast285; + int32_t ecast293; + xfer += iprot->readI32(ecast293); + this->state = (TxnState::type)ecast293; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -5663,14 +5951,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size286; - ::apache::thrift::protocol::TType _etype289; - xfer += iprot->readListBegin(_etype289, _size286); - this->open_txns.resize(_size286); - uint32_t _i290; - for (_i290 = 0; _i290 < _size286; ++_i290) + 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) { - xfer += this->open_txns[_i290].read(iprot); + xfer += this->open_txns[_i298].read(iprot); } xfer += iprot->readListEnd(); } @@ -5706,10 +5994,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 _iter291; - for (_iter291 = this->open_txns.begin(); _iter291 != this->open_txns.end(); ++_iter291) + std::vector ::const_iterator _iter299; + for (_iter299 = this->open_txns.begin(); _iter299 != this->open_txns.end(); ++_iter299) { - xfer += (*_iter291).write(oprot); + xfer += (*_iter299).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5763,15 +6051,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size292; - ::apache::thrift::protocol::TType _etype295; - xfer += iprot->readSetBegin(_etype295, _size292); - uint32_t _i296; - for (_i296 = 0; _i296 < _size292; ++_i296) + uint32_t _size300; + ::apache::thrift::protocol::TType _etype303; + xfer += iprot->readSetBegin(_etype303, _size300); + uint32_t _i304; + for (_i304 = 0; _i304 < _size300; ++_i304) { - int64_t _elem297; - xfer += iprot->readI64(_elem297); - this->open_txns.insert(_elem297); + int64_t _elem305; + xfer += iprot->readI64(_elem305); + this->open_txns.insert(_elem305); } xfer += iprot->readSetEnd(); } @@ -5807,10 +6095,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 _iter298; - for (_iter298 = this->open_txns.begin(); _iter298 != this->open_txns.end(); ++_iter298) + std::set ::const_iterator _iter306; + for (_iter306 = this->open_txns.begin(); _iter306 != this->open_txns.end(); ++_iter306) { - xfer += oprot->writeI64((*_iter298)); + xfer += oprot->writeI64((*_iter306)); } xfer += oprot->writeSetEnd(); } @@ -5951,14 +6239,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size299; - ::apache::thrift::protocol::TType _etype302; - xfer += iprot->readListBegin(_etype302, _size299); - this->txn_ids.resize(_size299); - uint32_t _i303; - for (_i303 = 0; _i303 < _size299; ++_i303) + 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) { - xfer += iprot->readI64(this->txn_ids[_i303]); + xfer += iprot->readI64(this->txn_ids[_i311]); } xfer += iprot->readListEnd(); } @@ -5988,10 +6276,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 _iter304; - for (_iter304 = this->txn_ids.begin(); _iter304 != this->txn_ids.end(); ++_iter304) + std::vector ::const_iterator _iter312; + for (_iter312 = this->txn_ids.begin(); _iter312 != this->txn_ids.end(); ++_iter312) { - xfer += oprot->writeI64((*_iter304)); + xfer += oprot->writeI64((*_iter312)); } xfer += oprot->writeListEnd(); } @@ -6163,9 +6451,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast305; - xfer += iprot->readI32(ecast305); - this->type = (LockType::type)ecast305; + int32_t ecast313; + xfer += iprot->readI32(ecast313); + this->type = (LockType::type)ecast313; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -6173,9 +6461,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast306; - xfer += iprot->readI32(ecast306); - this->level = (LockLevel::type)ecast306; + int32_t ecast314; + xfer += iprot->readI32(ecast314); + this->level = (LockLevel::type)ecast314; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -6294,14 +6582,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size307; - ::apache::thrift::protocol::TType _etype310; - xfer += iprot->readListBegin(_etype310, _size307); - this->component.resize(_size307); - uint32_t _i311; - for (_i311 = 0; _i311 < _size307; ++_i311) + 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) { - xfer += this->component[_i311].read(iprot); + xfer += this->component[_i319].read(iprot); } xfer += iprot->readListEnd(); } @@ -6359,10 +6647,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 _iter312; - for (_iter312 = this->component.begin(); _iter312 != this->component.end(); ++_iter312) + std::vector ::const_iterator _iter320; + for (_iter320 = this->component.begin(); _iter320 != this->component.end(); ++_iter320) { - xfer += (*_iter312).write(oprot); + xfer += (*_iter320).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6430,9 +6718,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast313; - xfer += iprot->readI32(ecast313); - this->state = (LockState::type)ecast313; + int32_t ecast321; + xfer += iprot->readI32(ecast321); + this->state = (LockState::type)ecast321; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -6714,9 +7002,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast314; - xfer += iprot->readI32(ecast314); - this->state = (LockState::type)ecast314; + int32_t ecast322; + xfer += iprot->readI32(ecast322); + this->state = (LockState::type)ecast322; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -6724,9 +7012,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast315; - xfer += iprot->readI32(ecast315); - this->type = (LockType::type)ecast315; + int32_t ecast323; + xfer += iprot->readI32(ecast323); + this->type = (LockType::type)ecast323; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -6898,14 +7186,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size316; - ::apache::thrift::protocol::TType _etype319; - xfer += iprot->readListBegin(_etype319, _size316); - this->locks.resize(_size316); - uint32_t _i320; - for (_i320 = 0; _i320 < _size316; ++_i320) + 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) { - xfer += this->locks[_i320].read(iprot); + xfer += this->locks[_i328].read(iprot); } xfer += iprot->readListEnd(); } @@ -6933,10 +7221,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 _iter321; - for (_iter321 = this->locks.begin(); _iter321 != this->locks.end(); ++_iter321) + std::vector ::const_iterator _iter329; + for (_iter329 = this->locks.begin(); _iter329 != this->locks.end(); ++_iter329) { - xfer += (*_iter321).write(oprot); + xfer += (*_iter329).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7082,9 +7370,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast322; - xfer += iprot->readI32(ecast322); - this->type = (CompactionType::type)ecast322; + int32_t ecast330; + xfer += iprot->readI32(ecast330); + this->type = (CompactionType::type)ecast330; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7259,9 +7547,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast323; - xfer += iprot->readI32(ecast323); - this->type = (CompactionType::type)ecast323; + int32_t ecast331; + xfer += iprot->readI32(ecast331); + this->type = (CompactionType::type)ecast331; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7408,14 +7696,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size324; - ::apache::thrift::protocol::TType _etype327; - xfer += iprot->readListBegin(_etype327, _size324); - this->compacts.resize(_size324); - uint32_t _i328; - for (_i328 = 0; _i328 < _size324; ++_i328) + 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) { - xfer += this->compacts[_i328].read(iprot); + xfer += this->compacts[_i336].read(iprot); } xfer += iprot->readListEnd(); } @@ -7445,10 +7733,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 _iter329; - for (_iter329 = this->compacts.begin(); _iter329 != this->compacts.end(); ++_iter329) + std::vector ::const_iterator _iter337; + for (_iter337 = this->compacts.begin(); _iter337 != this->compacts.end(); ++_iter337) { - xfer += (*_iter329).write(oprot); + xfer += (*_iter337).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 0c9dac7..d0998e0 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -734,6 +734,183 @@ class Role { void swap(Role &a, Role &b); +typedef struct _RolePrincipalGrant__isset { + _RolePrincipalGrant__isset() : roleName(false), principalName(false), principalType(false), grantOption(false), grantTime(false), grantorName(false), grantorPrincipalType(false) {} + bool roleName; + bool principalName; + bool principalType; + bool grantOption; + bool grantTime; + bool grantorName; + bool grantorPrincipalType; +} _RolePrincipalGrant__isset; + +class RolePrincipalGrant { + public: + + static const char* ascii_fingerprint; // = "899BA3F6214DD1B79D27206BA857C772"; + static const uint8_t binary_fingerprint[16]; // = {0x89,0x9B,0xA3,0xF6,0x21,0x4D,0xD1,0xB7,0x9D,0x27,0x20,0x6B,0xA8,0x57,0xC7,0x72}; + + RolePrincipalGrant() : roleName(), principalName(), principalType((PrincipalType::type)0), grantOption(0), grantTime(0), grantorName(), grantorPrincipalType((PrincipalType::type)0) { + } + + virtual ~RolePrincipalGrant() throw() {} + + std::string roleName; + std::string principalName; + PrincipalType::type principalType; + bool grantOption; + int32_t grantTime; + std::string grantorName; + PrincipalType::type grantorPrincipalType; + + _RolePrincipalGrant__isset __isset; + + void __set_roleName(const std::string& val) { + roleName = val; + } + + void __set_principalName(const std::string& val) { + principalName = val; + } + + void __set_principalType(const PrincipalType::type val) { + principalType = val; + } + + void __set_grantOption(const bool val) { + grantOption = val; + } + + void __set_grantTime(const int32_t val) { + grantTime = val; + } + + void __set_grantorName(const std::string& val) { + grantorName = val; + } + + void __set_grantorPrincipalType(const PrincipalType::type val) { + grantorPrincipalType = val; + } + + bool operator == (const RolePrincipalGrant & rhs) const + { + if (!(roleName == rhs.roleName)) + return false; + if (!(principalName == rhs.principalName)) + return false; + if (!(principalType == rhs.principalType)) + return false; + if (!(grantOption == rhs.grantOption)) + return false; + if (!(grantTime == rhs.grantTime)) + return false; + if (!(grantorName == rhs.grantorName)) + return false; + if (!(grantorPrincipalType == rhs.grantorPrincipalType)) + return false; + return true; + } + bool operator != (const RolePrincipalGrant &rhs) const { + return !(*this == rhs); + } + + bool operator < (const RolePrincipalGrant & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(RolePrincipalGrant &a, RolePrincipalGrant &b); + +typedef struct _GetPrincipalsInRoleRequest__isset { + _GetPrincipalsInRoleRequest__isset() : roleName(false) {} + bool roleName; +} _GetPrincipalsInRoleRequest__isset; + +class GetPrincipalsInRoleRequest { + public: + + static const char* ascii_fingerprint; // = "EFB929595D312AC8F305D5A794CFEDA1"; + static const uint8_t binary_fingerprint[16]; // = {0xEF,0xB9,0x29,0x59,0x5D,0x31,0x2A,0xC8,0xF3,0x05,0xD5,0xA7,0x94,0xCF,0xED,0xA1}; + + GetPrincipalsInRoleRequest() : roleName() { + } + + virtual ~GetPrincipalsInRoleRequest() throw() {} + + std::string roleName; + + _GetPrincipalsInRoleRequest__isset __isset; + + void __set_roleName(const std::string& val) { + roleName = val; + } + + bool operator == (const GetPrincipalsInRoleRequest & rhs) const + { + if (!(roleName == rhs.roleName)) + return false; + return true; + } + bool operator != (const GetPrincipalsInRoleRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetPrincipalsInRoleRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b); + +typedef struct _GetPrincipalsInRoleResponse__isset { + _GetPrincipalsInRoleResponse__isset() : principalGrants(false) {} + bool principalGrants; +} _GetPrincipalsInRoleResponse__isset; + +class GetPrincipalsInRoleResponse { + 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}; + + GetPrincipalsInRoleResponse() { + } + + virtual ~GetPrincipalsInRoleResponse() throw() {} + + std::vector principalGrants; + + _GetPrincipalsInRoleResponse__isset __isset; + + void __set_principalGrants(const std::vector & val) { + principalGrants = val; + } + + bool operator == (const GetPrincipalsInRoleResponse & rhs) const + { + if (!(principalGrants == rhs.principalGrants)) + return false; + return true; + } + bool operator != (const GetPrincipalsInRoleResponse &rhs) const { + return !(*this == rhs); + } + + bool operator < (const GetPrincipalsInRoleResponse & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b); + typedef struct _Database__isset { _Database__isset() : name(false), description(false), locationUri(false), parameters(false), privileges(false), ownerName(false), ownerType(false) {} bool name; 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 c27a36e..d0c6ef4 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 _list322 = iprot.readListBegin(); - struct.parts = new ArrayList(_list322.size); - for (int _i323 = 0; _i323 < _list322.size; ++_i323) + org.apache.thrift.protocol.TList _list330 = iprot.readListBegin(); + struct.parts = new ArrayList(_list330.size); + for (int _i331 = 0; _i331 < _list330.size; ++_i331) { - Partition _elem324; // required - _elem324 = new Partition(); - _elem324.read(iprot); - struct.parts.add(_elem324); + Partition _elem332; // optional + _elem332 = new Partition(); + _elem332.read(iprot); + struct.parts.add(_elem332); } 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 _iter325 : struct.parts) + for (Partition _iter333 : struct.parts) { - _iter325.write(oprot); + _iter333.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 _iter326 : struct.parts) + for (Partition _iter334 : struct.parts) { - _iter326.write(oprot); + _iter334.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 _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = 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.parts = new ArrayList(_list335.size); + for (int _i336 = 0; _i336 < _list335.size; ++_i336) { - Partition _elem329; // required - _elem329 = new Partition(); - _elem329.read(iprot); - struct.parts.add(_elem329); + Partition _elem337; // optional + _elem337 = new Partition(); + _elem337.read(iprot); + struct.parts.add(_elem337); } } 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 160b4bb..f2da4c0 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 _list314 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list314.size); - for (int _i315 = 0; _i315 < _list314.size; ++_i315) + org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list322.size); + for (int _i323 = 0; _i323 < _list322.size; ++_i323) { - Partition _elem316; // required - _elem316 = new Partition(); - _elem316.read(iprot); - struct.partitions.add(_elem316); + Partition _elem324; // optional + _elem324 = new Partition(); + _elem324.read(iprot); + struct.partitions.add(_elem324); } 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 _iter317 : struct.partitions) + for (Partition _iter325 : struct.partitions) { - _iter317.write(oprot); + _iter325.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 _iter318 : struct.partitions) + for (Partition _iter326 : struct.partitions) { - _iter318.write(oprot); + _iter326.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 _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = 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.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list327.size); + for (int _i328 = 0; _i328 < _list327.size; ++_i328) { - Partition _elem321; // required - _elem321 = new Partition(); - _elem321.read(iprot); - struct.partitions.add(_elem321); + Partition _elem329; // optional + _elem329 = new Partition(); + _elem329.read(iprot); + struct.partitions.add(_elem329); } } 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 5eefdd9..937ef94 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 _list220 = iprot.readListBegin(); - struct.statsObj = new ArrayList(_list220.size); - for (int _i221 = 0; _i221 < _list220.size; ++_i221) + org.apache.thrift.protocol.TList _list228 = iprot.readListBegin(); + struct.statsObj = new ArrayList(_list228.size); + for (int _i229 = 0; _i229 < _list228.size; ++_i229) { - ColumnStatisticsObj _elem222; // required - _elem222 = new ColumnStatisticsObj(); - _elem222.read(iprot); - struct.statsObj.add(_elem222); + ColumnStatisticsObj _elem230; // optional + _elem230 = new ColumnStatisticsObj(); + _elem230.read(iprot); + struct.statsObj.add(_elem230); } 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 _iter223 : struct.statsObj) + for (ColumnStatisticsObj _iter231 : struct.statsObj) { - _iter223.write(oprot); + _iter231.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 _iter224 : struct.statsObj) + for (ColumnStatisticsObj _iter232 : struct.statsObj) { - _iter224.write(oprot); + _iter232.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 _list225 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.statsObj = new ArrayList(_list225.size); - for (int _i226 = 0; _i226 < _list225.size; ++_i226) + 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) { - ColumnStatisticsObj _elem227; // required - _elem227 = new ColumnStatisticsObj(); - _elem227.read(iprot); - struct.statsObj.add(_elem227); + ColumnStatisticsObj _elem235; // optional + _elem235 = new ColumnStatisticsObj(); + _elem235.read(iprot); + struct.statsObj.add(_elem235); } } 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 56cc691..e1e9012 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 _map78 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map78.size); - for (int _i79 = 0; _i79 < _map78.size; ++_i79) + org.apache.thrift.protocol.TMap _map86 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map86.size); + for (int _i87 = 0; _i87 < _map86.size; ++_i87) { - String _key80; // required - String _val81; // required - _key80 = iprot.readString(); - _val81 = iprot.readString(); - struct.parameters.put(_key80, _val81); + String _key88; // required + String _val89; // required + _key88 = iprot.readString(); + _val89 = iprot.readString(); + struct.parameters.put(_key88, _val89); } 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 _iter82 : struct.parameters.entrySet()) + for (Map.Entry _iter90 : struct.parameters.entrySet()) { - oprot.writeString(_iter82.getKey()); - oprot.writeString(_iter82.getValue()); + oprot.writeString(_iter90.getKey()); + oprot.writeString(_iter90.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 _iter83 : struct.parameters.entrySet()) + for (Map.Entry _iter91 : struct.parameters.entrySet()) { - oprot.writeString(_iter83.getKey()); - oprot.writeString(_iter83.getValue()); + oprot.writeString(_iter91.getKey()); + oprot.writeString(_iter91.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 _map84 = 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*_map84.size); - for (int _i85 = 0; _i85 < _map84.size; ++_i85) + 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) { - String _key86; // required - String _val87; // required - _key86 = iprot.readString(); - _val87 = iprot.readString(); - struct.parameters.put(_key86, _val87); + String _key94; // required + String _val95; // required + _key94 = iprot.readString(); + _val95 = iprot.readString(); + struct.parameters.put(_key94, _val95); } } 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 a394c38..0bff340 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 _list330 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list330.size); - for (int _i331 = 0; _i331 < _list330.size; ++_i331) + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list338.size); + for (int _i339 = 0; _i339 < _list338.size; ++_i339) { - Partition _elem332; // required - _elem332 = new Partition(); - _elem332.read(iprot); - struct.partitions.add(_elem332); + Partition _elem340; // optional + _elem340 = new Partition(); + _elem340.read(iprot); + struct.partitions.add(_elem340); } 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 _iter333 : struct.partitions) + for (Partition _iter341 : struct.partitions) { - _iter333.write(oprot); + _iter341.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 _iter334 : struct.partitions) + for (Partition _iter342 : struct.partitions) { - _iter334.write(oprot); + _iter342.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 _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) + 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) { - Partition _elem337; // required - _elem337 = new Partition(); - _elem337.read(iprot); - struct.partitions.add(_elem337); + Partition _elem345; // optional + _elem345 = new Partition(); + _elem345.read(iprot); + struct.partitions.add(_elem345); } } 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 d97a190..b8ba555 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 _map246 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map246.size); - for (int _i247 = 0; _i247 < _map246.size; ++_i247) + org.apache.thrift.protocol.TMap _map254 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map254.size); + for (int _i255 = 0; _i255 < _map254.size; ++_i255) { - String _key248; // required - String _val249; // required - _key248 = iprot.readString(); - _val249 = iprot.readString(); - struct.properties.put(_key248, _val249); + String _key256; // required + String _val257; // required + _key256 = iprot.readString(); + _val257 = iprot.readString(); + struct.properties.put(_key256, _val257); } 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 _iter250 : struct.properties.entrySet()) + for (Map.Entry _iter258 : struct.properties.entrySet()) { - oprot.writeString(_iter250.getKey()); - oprot.writeString(_iter250.getValue()); + oprot.writeString(_iter258.getKey()); + oprot.writeString(_iter258.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 _iter251 : struct.properties.entrySet()) + for (Map.Entry _iter259 : struct.properties.entrySet()) { - oprot.writeString(_iter251.getKey()); - oprot.writeString(_iter251.getValue()); + oprot.writeString(_iter259.getKey()); + oprot.writeString(_iter259.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 _map252 = 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*_map252.size); - for (int _i253 = 0; _i253 < _map252.size; ++_i253) + 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) { - String _key254; // required - String _val255; // required - _key254 = iprot.readString(); - _val255 = iprot.readString(); - struct.properties.put(_key254, _val255); + String _key262; // required + String _val263; // required + _key262 = iprot.readString(); + _val263 = iprot.readString(); + struct.properties.put(_key262, _val263); } } 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 8088f23..7197dc0 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 _list354 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list354.size); - for (int _i355 = 0; _i355 < _list354.size; ++_i355) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list362.size); + for (int _i363 = 0; _i363 < _list362.size; ++_i363) { - ResourceUri _elem356; // required - _elem356 = new ResourceUri(); - _elem356.read(iprot); - struct.resourceUris.add(_elem356); + ResourceUri _elem364; // optional + _elem364 = new ResourceUri(); + _elem364.read(iprot); + struct.resourceUris.add(_elem364); } 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 _iter357 : struct.resourceUris) + for (ResourceUri _iter365 : struct.resourceUris) { - _iter357.write(oprot); + _iter365.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 _iter358 : struct.resourceUris) + for (ResourceUri _iter366 : struct.resourceUris) { - _iter358.write(oprot); + _iter366.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 _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list359.size); - for (int _i360 = 0; _i360 < _list359.size; ++_i360) + 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) { - ResourceUri _elem361; // required - _elem361 = new ResourceUri(); - _elem361.read(iprot); - struct.resourceUris.add(_elem361); + ResourceUri _elem369; // optional + _elem369 = new ResourceUri(); + _elem369.read(iprot); + struct.resourceUris.add(_elem369); } } 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 66669d6..c510cdb 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 _list362 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list362.size); - for (int _i363 = 0; _i363 < _list362.size; ++_i363) + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list370.size); + for (int _i371 = 0; _i371 < _list370.size; ++_i371) { - TxnInfo _elem364; // required - _elem364 = new TxnInfo(); - _elem364.read(iprot); - struct.open_txns.add(_elem364); + TxnInfo _elem372; // optional + _elem372 = new TxnInfo(); + _elem372.read(iprot); + struct.open_txns.add(_elem372); } 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 _iter365 : struct.open_txns) + for (TxnInfo _iter373 : struct.open_txns) { - _iter365.write(oprot); + _iter373.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 _iter366 : struct.open_txns) + for (TxnInfo _iter374 : struct.open_txns) { - _iter366.write(oprot); + _iter374.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 _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = 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.open_txns = new ArrayList(_list375.size); + for (int _i376 = 0; _i376 < _list375.size; ++_i376) { - TxnInfo _elem369; // required - _elem369 = new TxnInfo(); - _elem369.read(iprot); - struct.open_txns.add(_elem369); + TxnInfo _elem377; // optional + _elem377 = new TxnInfo(); + _elem377.read(iprot); + struct.open_txns.add(_elem377); } } 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 1bfdf60..06660d9 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 _set370 = iprot.readSetBegin(); - struct.open_txns = new HashSet(2*_set370.size); - for (int _i371 = 0; _i371 < _set370.size; ++_i371) + org.apache.thrift.protocol.TSet _set378 = iprot.readSetBegin(); + struct.open_txns = new HashSet(2*_set378.size); + for (int _i379 = 0; _i379 < _set378.size; ++_i379) { - long _elem372; // required - _elem372 = iprot.readI64(); - struct.open_txns.add(_elem372); + long _elem380; // optional + _elem380 = iprot.readI64(); + struct.open_txns.add(_elem380); } 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 _iter373 : struct.open_txns) + for (long _iter381 : struct.open_txns) { - oprot.writeI64(_iter373); + oprot.writeI64(_iter381); } 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 _iter374 : struct.open_txns) + for (long _iter382 : struct.open_txns) { - oprot.writeI64(_iter374); + oprot.writeI64(_iter382); } } } @@ -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 _set375 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet(2*_set375.size); - for (int _i376 = 0; _i376 < _set375.size; ++_i376) + 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) { - long _elem377; // required - _elem377 = iprot.readI64(); - struct.open_txns.add(_elem377); + long _elem385; // optional + _elem385 = iprot.readI64(); + struct.open_txns.add(_elem385); } } 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 new file mode 100644 index 0000000..6b3b194 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleRequest.java @@ -0,0 +1,391 @@ +/** + * 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 GetPrincipalsInRoleRequest 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("GetPrincipalsInRoleRequest"); + + 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 Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new GetPrincipalsInRoleRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPrincipalsInRoleRequestTupleSchemeFactory()); + } + + private String roleName; // 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, "roleName"); + + 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; + 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("roleName", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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); + } + + public GetPrincipalsInRoleRequest() { + } + + public GetPrincipalsInRoleRequest( + String roleName) + { + this(); + this.roleName = roleName; + } + + /** + * Performs a deep copy on other. + */ + public GetPrincipalsInRoleRequest(GetPrincipalsInRoleRequest other) { + if (other.isSetRoleName()) { + this.roleName = other.roleName; + } + } + + public GetPrincipalsInRoleRequest deepCopy() { + return new GetPrincipalsInRoleRequest(this); + } + + @Override + public void clear() { + this.roleName = null; + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public void unsetRoleName() { + this.roleName = null; + } + + /** Returns true if field roleName is set (has been assigned a value) and false otherwise */ + public boolean isSetRoleName() { + return this.roleName != null; + } + + public void setRoleNameIsSet(boolean value) { + if (!value) { + this.roleName = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ROLE_NAME: + if (value == null) { + unsetRoleName(); + } else { + setRoleName((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ROLE_NAME: + return getRoleName(); + + } + 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 isSetRoleName(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof GetPrincipalsInRoleRequest) + return this.equals((GetPrincipalsInRoleRequest)that); + return false; + } + + public boolean equals(GetPrincipalsInRoleRequest that) { + if (that == null) + return false; + + boolean this_present_roleName = true && this.isSetRoleName(); + boolean that_present_roleName = true && that.isSetRoleName(); + if (this_present_roleName || that_present_roleName) { + if (!(this_present_roleName && that_present_roleName)) + return false; + if (!this.roleName.equals(that.roleName)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_roleName = true && (isSetRoleName()); + builder.append(present_roleName); + if (present_roleName) + builder.append(roleName); + + return builder.toHashCode(); + } + + public int compareTo(GetPrincipalsInRoleRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + GetPrincipalsInRoleRequest typedOther = (GetPrincipalsInRoleRequest)other; + + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRoleName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); + 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("GetPrincipalsInRoleRequest("); + boolean first = true; + + sb.append("roleName:"); + if (this.roleName == null) { + sb.append("null"); + } else { + sb.append(this.roleName); + } + 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 GetPrincipalsInRoleRequestStandardSchemeFactory implements SchemeFactory { + public GetPrincipalsInRoleRequestStandardScheme getScheme() { + return new GetPrincipalsInRoleRequestStandardScheme(); + } + } + + private static class GetPrincipalsInRoleRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRoleRequest 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.roleName = iprot.readString(); + struct.setRoleNameIsSet(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, GetPrincipalsInRoleRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.roleName != null) { + oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); + oprot.writeString(struct.roleName); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class GetPrincipalsInRoleRequestTupleSchemeFactory implements SchemeFactory { + public GetPrincipalsInRoleRequestTupleScheme getScheme() { + return new GetPrincipalsInRoleRequestTupleScheme(); + } + } + + private static class GetPrincipalsInRoleRequestTupleScheme extends TupleScheme { + + @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); + } + } + + @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); + } + } + } + +} + 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 new file mode 100644 index 0000000..e5ba412 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java @@ -0,0 +1,445 @@ +/** + * 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 GetPrincipalsInRoleResponse 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("GetPrincipalsInRoleResponse"); + + 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 GetPrincipalsInRoleResponseStandardSchemeFactory()); + schemes.put(TupleScheme.class, new GetPrincipalsInRoleResponseTupleSchemeFactory()); + } + + 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.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, RolePrincipalGrant.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(GetPrincipalsInRoleResponse.class, metaDataMap); + } + + public GetPrincipalsInRoleResponse() { + } + + public GetPrincipalsInRoleResponse( + List principalGrants) + { + this(); + this.principalGrants = principalGrants; + } + + /** + * Performs a deep copy on other. + */ + public GetPrincipalsInRoleResponse(GetPrincipalsInRoleResponse 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 GetPrincipalsInRoleResponse deepCopy() { + return new GetPrincipalsInRoleResponse(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 GetPrincipalsInRoleResponse) + return this.equals((GetPrincipalsInRoleResponse)that); + return false; + } + + public boolean equals(GetPrincipalsInRoleResponse 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(GetPrincipalsInRoleResponse other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + GetPrincipalsInRoleResponse typedOther = (GetPrincipalsInRoleResponse)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("GetPrincipalsInRoleResponse("); + 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 + // 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 GetPrincipalsInRoleResponseStandardSchemeFactory implements SchemeFactory { + public GetPrincipalsInRoleResponseStandardScheme getScheme() { + return new GetPrincipalsInRoleResponseStandardScheme(); + } + } + + private static class GetPrincipalsInRoleResponseStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRoleResponse 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, GetPrincipalsInRoleResponse 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 GetPrincipalsInRoleResponseTupleSchemeFactory implements SchemeFactory { + public GetPrincipalsInRoleResponseTupleScheme getScheme() { + return new GetPrincipalsInRoleResponseTupleScheme(); + } + } + + private static class GetPrincipalsInRoleResponseTupleScheme extends TupleScheme { + + @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 _iter82 : struct.principalGrants) + { + _iter82.write(oprot); + } + } + } + } + + @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 _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/HiveObjectRef.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java index 997060f..b22b211 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java @@ -710,7 +710,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HiveObjectRef struc struct.partValues = new ArrayList(_list8.size); for (int _i9 = 0; _i9 < _list8.size; ++_i9) { - String _elem10; // required + String _elem10; // optional _elem10 = iprot.readString(); struct.partValues.add(_elem10); } @@ -853,7 +853,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, HiveObjectRef struct struct.partValues = new ArrayList(_list13.size); for (int _i14 = 0; _i14 < _list13.size; ++_i14) { - String _elem15; // required + String _elem15; // optional _elem15 = iprot.readString(); struct.partValues.add(_elem15); } 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 72791b7..f6c62c1 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 _map210 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map210.size); - for (int _i211 = 0; _i211 < _map210.size; ++_i211) + org.apache.thrift.protocol.TMap _map218 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map218.size); + for (int _i219 = 0; _i219 < _map218.size; ++_i219) { - String _key212; // required - String _val213; // required - _key212 = iprot.readString(); - _val213 = iprot.readString(); - struct.parameters.put(_key212, _val213); + String _key220; // required + String _val221; // required + _key220 = iprot.readString(); + _val221 = iprot.readString(); + struct.parameters.put(_key220, _val221); } 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 _iter214 : struct.parameters.entrySet()) + for (Map.Entry _iter222 : struct.parameters.entrySet()) { - oprot.writeString(_iter214.getKey()); - oprot.writeString(_iter214.getValue()); + oprot.writeString(_iter222.getKey()); + oprot.writeString(_iter222.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 _iter215 : struct.parameters.entrySet()) + for (Map.Entry _iter223 : struct.parameters.entrySet()) { - oprot.writeString(_iter215.getKey()); - oprot.writeString(_iter215.getValue()); + oprot.writeString(_iter223.getKey()); + oprot.writeString(_iter223.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 _map216 = 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*_map216.size); - for (int _i217 = 0; _i217 < _map216.size; ++_i217) + 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) { - String _key218; // required - String _val219; // required - _key218 = iprot.readString(); - _val219 = iprot.readString(); - struct.parameters.put(_key218, _val219); + String _key226; // required + String _val227; // required + _key226 = iprot.readString(); + _val227 = iprot.readString(); + struct.parameters.put(_key226, _val227); } } 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 9b858d6..dd1da3d 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 _list386 = iprot.readListBegin(); - struct.component = new ArrayList(_list386.size); - for (int _i387 = 0; _i387 < _list386.size; ++_i387) + org.apache.thrift.protocol.TList _list394 = iprot.readListBegin(); + struct.component = new ArrayList(_list394.size); + for (int _i395 = 0; _i395 < _list394.size; ++_i395) { - LockComponent _elem388; // required - _elem388 = new LockComponent(); - _elem388.read(iprot); - struct.component.add(_elem388); + LockComponent _elem396; // optional + _elem396 = new LockComponent(); + _elem396.read(iprot); + struct.component.add(_elem396); } 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 _iter389 : struct.component) + for (LockComponent _iter397 : struct.component) { - _iter389.write(oprot); + _iter397.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 _iter390 : struct.component) + for (LockComponent _iter398 : struct.component) { - _iter390.write(oprot); + _iter398.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 _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = 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.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list399.size); + for (int _i400 = 0; _i400 < _list399.size; ++_i400) { - LockComponent _elem393; // required - _elem393 = new LockComponent(); - _elem393.read(iprot); - struct.component.add(_elem393); + LockComponent _elem401; // optional + _elem401 = new LockComponent(); + _elem401.read(iprot); + struct.component.add(_elem401); } } 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 416379a..8ac2d6b 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 _list378 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list378.size); - for (int _i379 = 0; _i379 < _list378.size; ++_i379) + org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list386.size); + for (int _i387 = 0; _i387 < _list386.size; ++_i387) { - long _elem380; // required - _elem380 = iprot.readI64(); - struct.txn_ids.add(_elem380); + long _elem388; // optional + _elem388 = iprot.readI64(); + struct.txn_ids.add(_elem388); } 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 _iter381 : struct.txn_ids) + for (long _iter389 : struct.txn_ids) { - oprot.writeI64(_iter381); + oprot.writeI64(_iter389); } 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 _iter382 : struct.txn_ids) + for (long _iter390 : struct.txn_ids) { - oprot.writeI64(_iter382); + oprot.writeI64(_iter390); } } } @@ -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 _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list383.size); - for (int _i384 = 0; _i384 < _list383.size; ++_i384) + 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) { - long _elem385; // required - _elem385 = iprot.readI64(); - struct.txn_ids.add(_elem385); + long _elem393; // optional + _elem393 = iprot.readI64(); + struct.txn_ids.add(_elem393); } } 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 4329d34..bdfae38 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 _list192 = iprot.readListBegin(); - struct.values = new ArrayList(_list192.size); - for (int _i193 = 0; _i193 < _list192.size; ++_i193) + org.apache.thrift.protocol.TList _list200 = iprot.readListBegin(); + struct.values = new ArrayList(_list200.size); + for (int _i201 = 0; _i201 < _list200.size; ++_i201) { - String _elem194; // required - _elem194 = iprot.readString(); - struct.values.add(_elem194); + String _elem202; // optional + _elem202 = iprot.readString(); + struct.values.add(_elem202); } 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 _map195 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map195.size); - for (int _i196 = 0; _i196 < _map195.size; ++_i196) + org.apache.thrift.protocol.TMap _map203 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map203.size); + for (int _i204 = 0; _i204 < _map203.size; ++_i204) { - String _key197; // required - String _val198; // required - _key197 = iprot.readString(); - _val198 = iprot.readString(); - struct.parameters.put(_key197, _val198); + String _key205; // required + String _val206; // required + _key205 = iprot.readString(); + _val206 = iprot.readString(); + struct.parameters.put(_key205, _val206); } 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 _iter199 : struct.values) + for (String _iter207 : struct.values) { - oprot.writeString(_iter199); + oprot.writeString(_iter207); } 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 _iter200 : struct.parameters.entrySet()) + for (Map.Entry _iter208 : struct.parameters.entrySet()) { - oprot.writeString(_iter200.getKey()); - oprot.writeString(_iter200.getValue()); + oprot.writeString(_iter208.getKey()); + oprot.writeString(_iter208.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 _iter201 : struct.values) + for (String _iter209 : struct.values) { - oprot.writeString(_iter201); + oprot.writeString(_iter209); } } } @@ -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 _iter202 : struct.parameters.entrySet()) + for (Map.Entry _iter210 : struct.parameters.entrySet()) { - oprot.writeString(_iter202.getKey()); - oprot.writeString(_iter202.getValue()); + oprot.writeString(_iter210.getKey()); + oprot.writeString(_iter210.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 _list203 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.values = new ArrayList(_list203.size); - for (int _i204 = 0; _i204 < _list203.size; ++_i204) + 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) { - String _elem205; // required - _elem205 = iprot.readString(); - struct.values.add(_elem205); + String _elem213; // optional + _elem213 = iprot.readString(); + struct.values.add(_elem213); } } 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 _map206 = 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*_map206.size); - for (int _i207 = 0; _i207 < _map206.size; ++_i207) + 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) { - String _key208; // required - String _val209; // required - _key208 = iprot.readString(); - _val209 = iprot.readString(); - struct.parameters.put(_key208, _val209); + String _key216; // required + String _val217; // required + _key216 = iprot.readString(); + _val217 = iprot.readString(); + struct.parameters.put(_key216, _val217); } } 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 a4bdeaa..41f27b6 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 _list256 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list256.size); - for (int _i257 = 0; _i257 < _list256.size; ++_i257) + org.apache.thrift.protocol.TList _list264 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list264.size); + for (int _i265 = 0; _i265 < _list264.size; ++_i265) { - Partition _elem258; // required - _elem258 = new Partition(); - _elem258.read(iprot); - struct.partitions.add(_elem258); + Partition _elem266; // optional + _elem266 = new Partition(); + _elem266.read(iprot); + struct.partitions.add(_elem266); } 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 _iter259 : struct.partitions) + for (Partition _iter267 : struct.partitions) { - _iter259.write(oprot); + _iter267.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 _iter260 : struct.partitions) + for (Partition _iter268 : struct.partitions) { - _iter260.write(oprot); + _iter268.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 _list261 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list261.size); - for (int _i262 = 0; _i262 < _list261.size; ++_i262) + 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) { - Partition _elem263; // required - _elem263 = new Partition(); - _elem263.read(iprot); - struct.partitions.add(_elem263); + Partition _elem271; // optional + _elem271 = new Partition(); + _elem271.read(iprot); + struct.partitions.add(_elem271); } } 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 e7a90f4..4ddc0d6 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 _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; // required - _elem300 = iprot.readString(); - struct.colNames.add(_elem300); + String _elem308; // optional + _elem308 = iprot.readString(); + struct.colNames.add(_elem308); } 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 _list301 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list301.size); - for (int _i302 = 0; _i302 < _list301.size; ++_i302) + org.apache.thrift.protocol.TList _list309 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list309.size); + for (int _i310 = 0; _i310 < _list309.size; ++_i310) { - String _elem303; // required - _elem303 = iprot.readString(); - struct.partNames.add(_elem303); + String _elem311; // optional + _elem311 = iprot.readString(); + struct.partNames.add(_elem311); } 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 _iter304 : struct.colNames) + for (String _iter312 : struct.colNames) { - oprot.writeString(_iter304); + oprot.writeString(_iter312); } 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 _iter305 : struct.partNames) + for (String _iter313 : struct.partNames) { - oprot.writeString(_iter305); + oprot.writeString(_iter313); } 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 _iter306 : struct.colNames) + for (String _iter314 : struct.colNames) { - oprot.writeString(_iter306); + oprot.writeString(_iter314); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter307 : struct.partNames) + for (String _iter315 : struct.partNames) { - oprot.writeString(_iter307); + oprot.writeString(_iter315); } } } @@ -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 _list308 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list308.size); - for (int _i309 = 0; _i309 < _list308.size; ++_i309) + 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) { - String _elem310; // required - _elem310 = iprot.readString(); - struct.colNames.add(_elem310); + String _elem318; // optional + _elem318 = iprot.readString(); + struct.colNames.add(_elem318); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list311.size); - for (int _i312 = 0; _i312 < _list311.size; ++_i312) + 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) { - String _elem313; // required - _elem313 = iprot.readString(); - struct.partNames.add(_elem313); + String _elem321; // optional + _elem321 = iprot.readString(); + struct.partNames.add(_elem321); } } 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 bd8881d..c3e276e 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 _map272 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map272.size); - for (int _i273 = 0; _i273 < _map272.size; ++_i273) + org.apache.thrift.protocol.TMap _map280 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map280.size); + for (int _i281 = 0; _i281 < _map280.size; ++_i281) { - String _key274; // required - List _val275; // required - _key274 = iprot.readString(); + String _key282; // required + List _val283; // required + _key282 = iprot.readString(); { - org.apache.thrift.protocol.TList _list276 = iprot.readListBegin(); - _val275 = new ArrayList(_list276.size); - for (int _i277 = 0; _i277 < _list276.size; ++_i277) + org.apache.thrift.protocol.TList _list284 = iprot.readListBegin(); + _val283 = new ArrayList(_list284.size); + for (int _i285 = 0; _i285 < _list284.size; ++_i285) { - ColumnStatisticsObj _elem278; // required - _elem278 = new ColumnStatisticsObj(); - _elem278.read(iprot); - _val275.add(_elem278); + ColumnStatisticsObj _elem286; // optional + _elem286 = new ColumnStatisticsObj(); + _elem286.read(iprot); + _val283.add(_elem286); } iprot.readListEnd(); } - struct.partStats.put(_key274, _val275); + struct.partStats.put(_key282, _val283); } 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> _iter279 : struct.partStats.entrySet()) + for (Map.Entry> _iter287 : struct.partStats.entrySet()) { - oprot.writeString(_iter279.getKey()); + oprot.writeString(_iter287.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter279.getValue().size())); - for (ColumnStatisticsObj _iter280 : _iter279.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter287.getValue().size())); + for (ColumnStatisticsObj _iter288 : _iter287.getValue()) { - _iter280.write(oprot); + _iter288.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> _iter281 : struct.partStats.entrySet()) + for (Map.Entry> _iter289 : struct.partStats.entrySet()) { - oprot.writeString(_iter281.getKey()); + oprot.writeString(_iter289.getKey()); { - oprot.writeI32(_iter281.getValue().size()); - for (ColumnStatisticsObj _iter282 : _iter281.getValue()) + oprot.writeI32(_iter289.getValue().size()); + for (ColumnStatisticsObj _iter290 : _iter289.getValue()) { - _iter282.write(oprot); + _iter290.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 _map283 = 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*_map283.size); - for (int _i284 = 0; _i284 < _map283.size; ++_i284) + 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) { - String _key285; // required - List _val286; // required - _key285 = iprot.readString(); + String _key293; // required + List _val294; // required + _key293 = iprot.readString(); { - org.apache.thrift.protocol.TList _list287 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val286 = new ArrayList(_list287.size); - for (int _i288 = 0; _i288 < _list287.size; ++_i288) + 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) { - ColumnStatisticsObj _elem289; // required - _elem289 = new ColumnStatisticsObj(); - _elem289.read(iprot); - _val286.add(_elem289); + ColumnStatisticsObj _elem297; // optional + _elem297 = new ColumnStatisticsObj(); + _elem297.read(iprot); + _val294.add(_elem297); } } - struct.partStats.put(_key285, _val286); + struct.partStats.put(_key293, _val294); } } struct.setPartStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java index eea86e5..0c9518a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java @@ -587,7 +587,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS _val27 = new ArrayList(_list28.size); for (int _i29 = 0; _i29 < _list28.size; ++_i29) { - PrivilegeGrantInfo _elem30; // required + PrivilegeGrantInfo _elem30; // optional _elem30 = new PrivilegeGrantInfo(); _elem30.read(iprot); _val27.add(_elem30); @@ -618,7 +618,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS _val34 = new ArrayList(_list35.size); for (int _i36 = 0; _i36 < _list35.size; ++_i36) { - PrivilegeGrantInfo _elem37; // required + PrivilegeGrantInfo _elem37; // optional _elem37 = new PrivilegeGrantInfo(); _elem37.read(iprot); _val34.add(_elem37); @@ -649,7 +649,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrincipalPrivilegeS _val41 = new ArrayList(_list42.size); for (int _i43 = 0; _i43 < _list42.size; ++_i43) { - PrivilegeGrantInfo _elem44; // required + PrivilegeGrantInfo _elem44; // optional _elem44 = new PrivilegeGrantInfo(); _elem44.read(iprot); _val41.add(_elem44); @@ -834,7 +834,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe _val60 = new ArrayList(_list61.size); for (int _i62 = 0; _i62 < _list61.size; ++_i62) { - PrivilegeGrantInfo _elem63; // required + PrivilegeGrantInfo _elem63; // optional _elem63 = new PrivilegeGrantInfo(); _elem63.read(iprot); _val60.add(_elem63); @@ -859,7 +859,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe _val67 = new ArrayList(_list68.size); for (int _i69 = 0; _i69 < _list68.size; ++_i69) { - PrivilegeGrantInfo _elem70; // required + PrivilegeGrantInfo _elem70; // optional _elem70 = new PrivilegeGrantInfo(); _elem70.read(iprot); _val67.add(_elem70); @@ -884,7 +884,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrincipalPrivilegeSe _val74 = new ArrayList(_list75.size); for (int _i76 = 0; _i76 < _list75.size; ++_i76) { - PrivilegeGrantInfo _elem77; // required + PrivilegeGrantInfo _elem77; // optional _elem77 = new PrivilegeGrantInfo(); _elem77.read(iprot); _val74.add(_elem77); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java index a4687ad..4285ed8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java @@ -350,7 +350,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PrivilegeBag struct struct.privileges = new ArrayList(_list16.size); for (int _i17 = 0; _i17 < _list16.size; ++_i17) { - HiveObjectPrivilege _elem18; // required + HiveObjectPrivilege _elem18; // optional _elem18 = new HiveObjectPrivilege(); _elem18.read(iprot); struct.privileges.add(_elem18); @@ -430,7 +430,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PrivilegeBag struct) struct.privileges = new ArrayList(_list21.size); for (int _i22 = 0; _i22 < _list21.size; ++_i22) { - HiveObjectPrivilege _elem23; // required + HiveObjectPrivilege _elem23; // optional _elem23 = new HiveObjectPrivilege(); _elem23.read(iprot); struct.privileges.add(_elem23); 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 2577059..6b78ffe 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 _list338 = iprot.readListBegin(); - names = new ArrayList(_list338.size); - for (int _i339 = 0; _i339 < _list338.size; ++_i339) + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + names = new ArrayList(_list346.size); + for (int _i347 = 0; _i347 < _list346.size; ++_i347) { - String _elem340; // required - _elem340 = iprot.readString(); - names.add(_elem340); + String _elem348; // optional + _elem348 = iprot.readString(); + names.add(_elem348); } 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 _list341 = iprot.readListBegin(); - exprs = new ArrayList(_list341.size); - for (int _i342 = 0; _i342 < _list341.size; ++_i342) + org.apache.thrift.protocol.TList _list349 = iprot.readListBegin(); + exprs = new ArrayList(_list349.size); + for (int _i350 = 0; _i350 < _list349.size; ++_i350) { - DropPartitionsExpr _elem343; // required - _elem343 = new DropPartitionsExpr(); - _elem343.read(iprot); - exprs.add(_elem343); + DropPartitionsExpr _elem351; // optional + _elem351 = new DropPartitionsExpr(); + _elem351.read(iprot); + exprs.add(_elem351); } 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 _iter344 : names) + for (String _iter352 : names) { - oprot.writeString(_iter344); + oprot.writeString(_iter352); } 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 _iter345 : exprs) + for (DropPartitionsExpr _iter353 : exprs) { - _iter345.write(oprot); + _iter353.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 _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; // required - _elem348 = iprot.readString(); - names.add(_elem348); + String _elem356; // optional + _elem356 = iprot.readString(); + names.add(_elem356); } iprot.readListEnd(); } @@ -260,14 +260,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: 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; // required - _elem351 = new DropPartitionsExpr(); - _elem351.read(iprot); - exprs.add(_elem351); + DropPartitionsExpr _elem359; // optional + _elem359 = new DropPartitionsExpr(); + _elem359.read(iprot); + exprs.add(_elem359); } 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 _iter352 : names) + for (String _iter360 : names) { - oprot.writeString(_iter352); + oprot.writeString(_iter360); } 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 _iter353 : exprs) + for (DropPartitionsExpr _iter361 : exprs) { - _iter353.write(oprot); + _iter361.write(oprot); } oprot.writeListEnd(); } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java new file mode 100644 index 0000000..8993268 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RolePrincipalGrant.java @@ -0,0 +1,1031 @@ +/** + * 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 RolePrincipalGrant 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("RolePrincipalGrant"); + + 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 PRINCIPAL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("principalName", 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("principalType", org.apache.thrift.protocol.TType.I32, (short)3); + 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)4); + 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)5); + private static final org.apache.thrift.protocol.TField GRANTOR_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorName", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField GRANTOR_PRINCIPAL_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("grantorPrincipalType", org.apache.thrift.protocol.TType.I32, (short)7); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new RolePrincipalGrantStandardSchemeFactory()); + schemes.put(TupleScheme.class, new RolePrincipalGrantTupleSchemeFactory()); + } + + private String roleName; // required + private String principalName; // required + private PrincipalType principalType; // required + private boolean grantOption; // required + private int grantTime; // required + private String grantorName; // required + private PrincipalType grantorPrincipalType; // 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, "roleName"), + PRINCIPAL_NAME((short)2, "principalName"), + /** + * + * @see PrincipalType + */ + PRINCIPAL_TYPE((short)3, "principalType"), + GRANT_OPTION((short)4, "grantOption"), + GRANT_TIME((short)5, "grantTime"), + GRANTOR_NAME((short)6, "grantorName"), + /** + * + * @see PrincipalType + */ + GRANTOR_PRINCIPAL_TYPE((short)7, "grantorPrincipalType"); + + 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; + case 4: // GRANT_OPTION + return GRANT_OPTION; + case 5: // GRANT_TIME + return GRANT_TIME; + case 6: // GRANTOR_NAME + return GRANTOR_NAME; + case 7: // GRANTOR_PRINCIPAL_TYPE + return GRANTOR_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 + private static final int __GRANTOPTION_ISSET_ID = 0; + private static final int __GRANTTIME_ISSET_ID = 1; + 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.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", 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.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("principalType", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PrincipalType.class))); + tmpMap.put(_Fields.GRANT_OPTION, new org.apache.thrift.meta_data.FieldMetaData("grantOption", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.GRANTOR_NAME, new org.apache.thrift.meta_data.FieldMetaData("grantorName", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.GRANTOR_PRINCIPAL_TYPE, new org.apache.thrift.meta_data.FieldMetaData("grantorPrincipalType", 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(RolePrincipalGrant.class, metaDataMap); + } + + public RolePrincipalGrant() { + } + + public RolePrincipalGrant( + String roleName, + String principalName, + PrincipalType principalType, + boolean grantOption, + int grantTime, + String grantorName, + PrincipalType grantorPrincipalType) + { + this(); + this.roleName = roleName; + this.principalName = principalName; + this.principalType = principalType; + this.grantOption = grantOption; + setGrantOptionIsSet(true); + this.grantTime = grantTime; + setGrantTimeIsSet(true); + this.grantorName = grantorName; + this.grantorPrincipalType = grantorPrincipalType; + } + + /** + * Performs a deep copy on other. + */ + public RolePrincipalGrant(RolePrincipalGrant other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetRoleName()) { + this.roleName = other.roleName; + } + if (other.isSetPrincipalName()) { + this.principalName = other.principalName; + } + if (other.isSetPrincipalType()) { + this.principalType = other.principalType; + } + this.grantOption = other.grantOption; + this.grantTime = other.grantTime; + if (other.isSetGrantorName()) { + this.grantorName = other.grantorName; + } + if (other.isSetGrantorPrincipalType()) { + this.grantorPrincipalType = other.grantorPrincipalType; + } + } + + public RolePrincipalGrant deepCopy() { + return new RolePrincipalGrant(this); + } + + @Override + public void clear() { + this.roleName = null; + this.principalName = null; + this.principalType = null; + setGrantOptionIsSet(false); + this.grantOption = false; + setGrantTimeIsSet(false); + this.grantTime = 0; + this.grantorName = null; + this.grantorPrincipalType = null; + } + + public String getRoleName() { + return this.roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public void unsetRoleName() { + this.roleName = null; + } + + /** Returns true if field roleName is set (has been assigned a value) and false otherwise */ + public boolean isSetRoleName() { + return this.roleName != null; + } + + public void setRoleNameIsSet(boolean value) { + if (!value) { + this.roleName = null; + } + } + + 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; + } + } + + /** + * + * @see PrincipalType + */ + public PrincipalType getPrincipalType() { + return this.principalType; + } + + /** + * + * @see PrincipalType + */ + public void setPrincipalType(PrincipalType 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 getGrantorName() { + return this.grantorName; + } + + public void setGrantorName(String grantorName) { + this.grantorName = grantorName; + } + + public void unsetGrantorName() { + this.grantorName = null; + } + + /** Returns true if field grantorName is set (has been assigned a value) and false otherwise */ + public boolean isSetGrantorName() { + return this.grantorName != null; + } + + public void setGrantorNameIsSet(boolean value) { + if (!value) { + this.grantorName = null; + } + } + + /** + * + * @see PrincipalType + */ + public PrincipalType getGrantorPrincipalType() { + return this.grantorPrincipalType; + } + + /** + * + * @see PrincipalType + */ + public void setGrantorPrincipalType(PrincipalType grantorPrincipalType) { + this.grantorPrincipalType = grantorPrincipalType; + } + + public void unsetGrantorPrincipalType() { + this.grantorPrincipalType = null; + } + + /** Returns true if field grantorPrincipalType is set (has been assigned a value) and false otherwise */ + public boolean isSetGrantorPrincipalType() { + return this.grantorPrincipalType != null; + } + + public void setGrantorPrincipalTypeIsSet(boolean value) { + if (!value) { + this.grantorPrincipalType = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case ROLE_NAME: + if (value == null) { + unsetRoleName(); + } else { + setRoleName((String)value); + } + break; + + case PRINCIPAL_NAME: + if (value == null) { + unsetPrincipalName(); + } else { + setPrincipalName((String)value); + } + break; + + case PRINCIPAL_TYPE: + if (value == null) { + unsetPrincipalType(); + } else { + setPrincipalType((PrincipalType)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_NAME: + if (value == null) { + unsetGrantorName(); + } else { + setGrantorName((String)value); + } + break; + + case GRANTOR_PRINCIPAL_TYPE: + if (value == null) { + unsetGrantorPrincipalType(); + } else { + setGrantorPrincipalType((PrincipalType)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case ROLE_NAME: + return getRoleName(); + + 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_NAME: + return getGrantorName(); + + case GRANTOR_PRINCIPAL_TYPE: + return getGrantorPrincipalType(); + + } + 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 isSetRoleName(); + case PRINCIPAL_NAME: + return isSetPrincipalName(); + case PRINCIPAL_TYPE: + return isSetPrincipalType(); + case GRANT_OPTION: + return isSetGrantOption(); + case GRANT_TIME: + return isSetGrantTime(); + case GRANTOR_NAME: + return isSetGrantorName(); + case GRANTOR_PRINCIPAL_TYPE: + return isSetGrantorPrincipalType(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof RolePrincipalGrant) + return this.equals((RolePrincipalGrant)that); + return false; + } + + public boolean equals(RolePrincipalGrant that) { + if (that == null) + return false; + + boolean this_present_roleName = true && this.isSetRoleName(); + boolean that_present_roleName = true && that.isSetRoleName(); + if (this_present_roleName || that_present_roleName) { + if (!(this_present_roleName && that_present_roleName)) + return false; + if (!this.roleName.equals(that.roleName)) + 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; + boolean that_present_grantOption = true; + 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; + boolean that_present_grantTime = true; + 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_grantorName = true && this.isSetGrantorName(); + boolean that_present_grantorName = true && that.isSetGrantorName(); + if (this_present_grantorName || that_present_grantorName) { + if (!(this_present_grantorName && that_present_grantorName)) + return false; + if (!this.grantorName.equals(that.grantorName)) + return false; + } + + boolean this_present_grantorPrincipalType = true && this.isSetGrantorPrincipalType(); + boolean that_present_grantorPrincipalType = true && that.isSetGrantorPrincipalType(); + if (this_present_grantorPrincipalType || that_present_grantorPrincipalType) { + if (!(this_present_grantorPrincipalType && that_present_grantorPrincipalType)) + return false; + if (!this.grantorPrincipalType.equals(that.grantorPrincipalType)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_roleName = true && (isSetRoleName()); + builder.append(present_roleName); + if (present_roleName) + builder.append(roleName); + + 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.getValue()); + + boolean present_grantOption = true; + builder.append(present_grantOption); + if (present_grantOption) + builder.append(grantOption); + + boolean present_grantTime = true; + builder.append(present_grantTime); + if (present_grantTime) + builder.append(grantTime); + + boolean present_grantorName = true && (isSetGrantorName()); + builder.append(present_grantorName); + if (present_grantorName) + builder.append(grantorName); + + boolean present_grantorPrincipalType = true && (isSetGrantorPrincipalType()); + builder.append(present_grantorPrincipalType); + if (present_grantorPrincipalType) + builder.append(grantorPrincipalType.getValue()); + + return builder.toHashCode(); + } + + public int compareTo(RolePrincipalGrant other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + RolePrincipalGrant typedOther = (RolePrincipalGrant)other; + + lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(typedOther.isSetRoleName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRoleName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, typedOther.roleName); + if (lastComparison != 0) { + 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(isSetGrantorName()).compareTo(typedOther.isSetGrantorName()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGrantorName()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorName, typedOther.grantorName); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetGrantorPrincipalType()).compareTo(typedOther.isSetGrantorPrincipalType()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetGrantorPrincipalType()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.grantorPrincipalType, typedOther.grantorPrincipalType); + 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("RolePrincipalGrant("); + boolean first = true; + + sb.append("roleName:"); + if (this.roleName == null) { + sb.append("null"); + } else { + sb.append(this.roleName); + } + first = false; + if (!first) sb.append(", "); + sb.append("principalName:"); + if (this.principalName == null) { + sb.append("null"); + } else { + sb.append(this.principalName); + } + first = false; + if (!first) sb.append(", "); + sb.append("principalType:"); + if (this.principalType == null) { + sb.append("null"); + } else { + sb.append(this.principalType); + } + first = false; + if (!first) sb.append(", "); + sb.append("grantOption:"); + sb.append(this.grantOption); + first = false; + if (!first) sb.append(", "); + sb.append("grantTime:"); + sb.append(this.grantTime); + first = false; + if (!first) sb.append(", "); + sb.append("grantorName:"); + if (this.grantorName == null) { + sb.append("null"); + } else { + sb.append(this.grantorName); + } + first = false; + if (!first) sb.append(", "); + sb.append("grantorPrincipalType:"); + if (this.grantorPrincipalType == null) { + sb.append("null"); + } else { + sb.append(this.grantorPrincipalType); + } + 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 RolePrincipalGrantStandardSchemeFactory implements SchemeFactory { + public RolePrincipalGrantStandardScheme getScheme() { + return new RolePrincipalGrantStandardScheme(); + } + } + + private static class RolePrincipalGrantStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, RolePrincipalGrant 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.roleName = iprot.readString(); + struct.setRoleNameIsSet(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.principalName = iprot.readString(); + struct.setPrincipalNameIsSet(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.principalType = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipalTypeIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // 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 5: // 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 6: // GRANTOR_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.grantorName = iprot.readString(); + struct.setGrantorNameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // GRANTOR_PRINCIPAL_TYPE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); + struct.setGrantorPrincipalTypeIsSet(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, RolePrincipalGrant struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.roleName != null) { + oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); + oprot.writeString(struct.roleName); + oprot.writeFieldEnd(); + } + if (struct.principalName != null) { + oprot.writeFieldBegin(PRINCIPAL_NAME_FIELD_DESC); + oprot.writeString(struct.principalName); + oprot.writeFieldEnd(); + } + if (struct.principalType != null) { + oprot.writeFieldBegin(PRINCIPAL_TYPE_FIELD_DESC); + oprot.writeI32(struct.principalType.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(GRANT_OPTION_FIELD_DESC); + oprot.writeBool(struct.grantOption); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(GRANT_TIME_FIELD_DESC); + oprot.writeI32(struct.grantTime); + oprot.writeFieldEnd(); + if (struct.grantorName != null) { + oprot.writeFieldBegin(GRANTOR_NAME_FIELD_DESC); + oprot.writeString(struct.grantorName); + oprot.writeFieldEnd(); + } + if (struct.grantorPrincipalType != null) { + oprot.writeFieldBegin(GRANTOR_PRINCIPAL_TYPE_FIELD_DESC); + oprot.writeI32(struct.grantorPrincipalType.getValue()); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class RolePrincipalGrantTupleSchemeFactory implements SchemeFactory { + public RolePrincipalGrantTupleScheme getScheme() { + return new RolePrincipalGrantTupleScheme(); + } + } + + private static class RolePrincipalGrantTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRoleName()) { + optionals.set(0); + } + if (struct.isSetPrincipalName()) { + optionals.set(1); + } + if (struct.isSetPrincipalType()) { + optionals.set(2); + } + if (struct.isSetGrantOption()) { + optionals.set(3); + } + if (struct.isSetGrantTime()) { + optionals.set(4); + } + if (struct.isSetGrantorName()) { + optionals.set(5); + } + if (struct.isSetGrantorPrincipalType()) { + optionals.set(6); + } + oprot.writeBitSet(optionals, 7); + if (struct.isSetRoleName()) { + oprot.writeString(struct.roleName); + } + if (struct.isSetPrincipalName()) { + oprot.writeString(struct.principalName); + } + if (struct.isSetPrincipalType()) { + oprot.writeI32(struct.principalType.getValue()); + } + if (struct.isSetGrantOption()) { + oprot.writeBool(struct.grantOption); + } + if (struct.isSetGrantTime()) { + oprot.writeI32(struct.grantTime); + } + if (struct.isSetGrantorName()) { + oprot.writeString(struct.grantorName); + } + if (struct.isSetGrantorPrincipalType()) { + oprot.writeI32(struct.grantorPrincipalType.getValue()); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, RolePrincipalGrant struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(7); + if (incoming.get(0)) { + struct.roleName = iprot.readString(); + struct.setRoleNameIsSet(true); + } + if (incoming.get(1)) { + struct.principalName = iprot.readString(); + struct.setPrincipalNameIsSet(true); + } + if (incoming.get(2)) { + struct.principalType = PrincipalType.findByValue(iprot.readI32()); + struct.setPrincipalTypeIsSet(true); + } + if (incoming.get(3)) { + struct.grantOption = iprot.readBool(); + struct.setGrantOptionIsSet(true); + } + if (incoming.get(4)) { + struct.grantTime = iprot.readI32(); + struct.setGrantTimeIsSet(true); + } + if (incoming.get(5)) { + struct.grantorName = iprot.readString(); + struct.setGrantorNameIsSet(true); + } + if (incoming.get(6)) { + struct.grantorPrincipalType = PrincipalType.findByValue(iprot.readI32()); + struct.setGrantorPrincipalTypeIsSet(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 f6af8d9..0ced725 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 _list228 = iprot.readListBegin(); - struct.fieldSchemas = new ArrayList(_list228.size); - for (int _i229 = 0; _i229 < _list228.size; ++_i229) + org.apache.thrift.protocol.TList _list236 = iprot.readListBegin(); + struct.fieldSchemas = new ArrayList(_list236.size); + for (int _i237 = 0; _i237 < _list236.size; ++_i237) { - FieldSchema _elem230; // required - _elem230 = new FieldSchema(); - _elem230.read(iprot); - struct.fieldSchemas.add(_elem230); + FieldSchema _elem238; // optional + _elem238 = new FieldSchema(); + _elem238.read(iprot); + struct.fieldSchemas.add(_elem238); } 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 _map231 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map231.size); - for (int _i232 = 0; _i232 < _map231.size; ++_i232) + org.apache.thrift.protocol.TMap _map239 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map239.size); + for (int _i240 = 0; _i240 < _map239.size; ++_i240) { - String _key233; // required - String _val234; // required - _key233 = iprot.readString(); - _val234 = iprot.readString(); - struct.properties.put(_key233, _val234); + String _key241; // required + String _val242; // required + _key241 = iprot.readString(); + _val242 = iprot.readString(); + struct.properties.put(_key241, _val242); } 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 _iter235 : struct.fieldSchemas) + for (FieldSchema _iter243 : struct.fieldSchemas) { - _iter235.write(oprot); + _iter243.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 _iter236 : struct.properties.entrySet()) + for (Map.Entry _iter244 : struct.properties.entrySet()) { - oprot.writeString(_iter236.getKey()); - oprot.writeString(_iter236.getValue()); + oprot.writeString(_iter244.getKey()); + oprot.writeString(_iter244.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 _iter237 : struct.fieldSchemas) + for (FieldSchema _iter245 : struct.fieldSchemas) { - _iter237.write(oprot); + _iter245.write(oprot); } } } if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter238 : struct.properties.entrySet()) + for (Map.Entry _iter246 : struct.properties.entrySet()) { - oprot.writeString(_iter238.getKey()); - oprot.writeString(_iter238.getValue()); + oprot.writeString(_iter246.getKey()); + oprot.writeString(_iter246.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 _list239 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.fieldSchemas = new ArrayList(_list239.size); - for (int _i240 = 0; _i240 < _list239.size; ++_i240) + 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) { - FieldSchema _elem241; // required - _elem241 = new FieldSchema(); - _elem241.read(iprot); - struct.fieldSchemas.add(_elem241); + FieldSchema _elem249; // optional + _elem249 = new FieldSchema(); + _elem249.read(iprot); + struct.fieldSchemas.add(_elem249); } } struct.setFieldSchemasIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TMap _map242 = 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*_map242.size); - for (int _i243 = 0; _i243 < _map242.size; ++_i243) + 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) { - String _key244; // required - String _val245; // required - _key244 = iprot.readString(); - _val245 = iprot.readString(); - struct.properties.put(_key244, _val245); + String _key252; // required + String _val253; // required + _key252 = iprot.readString(); + _val253 = iprot.readString(); + struct.properties.put(_key252, _val253); } } 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 8299b22..6fbf905 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 _map88 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map88.size); - for (int _i89 = 0; _i89 < _map88.size; ++_i89) + org.apache.thrift.protocol.TMap _map96 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map96.size); + for (int _i97 = 0; _i97 < _map96.size; ++_i97) { - String _key90; // required - String _val91; // required - _key90 = iprot.readString(); - _val91 = iprot.readString(); - struct.parameters.put(_key90, _val91); + String _key98; // required + String _val99; // required + _key98 = iprot.readString(); + _val99 = iprot.readString(); + struct.parameters.put(_key98, _val99); } 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 _iter92 : struct.parameters.entrySet()) + for (Map.Entry _iter100 : struct.parameters.entrySet()) { - oprot.writeString(_iter92.getKey()); - oprot.writeString(_iter92.getValue()); + oprot.writeString(_iter100.getKey()); + oprot.writeString(_iter100.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 _iter93 : struct.parameters.entrySet()) + for (Map.Entry _iter101 : struct.parameters.entrySet()) { - oprot.writeString(_iter93.getKey()); - oprot.writeString(_iter93.getValue()); + oprot.writeString(_iter101.getKey()); + oprot.writeString(_iter101.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 _map94 = 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*_map94.size); - for (int _i95 = 0; _i95 < _map94.size; ++_i95) + 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) { - String _key96; // required - String _val97; // required - _key96 = iprot.readString(); - _val97 = iprot.readString(); - struct.parameters.put(_key96, _val97); + String _key104; // required + String _val105; // required + _key104 = iprot.readString(); + _val105 = iprot.readString(); + struct.parameters.put(_key104, _val105); } } 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 6da28dd..c06d0bb 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 _list402 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list402.size); - for (int _i403 = 0; _i403 < _list402.size; ++_i403) + org.apache.thrift.protocol.TList _list410 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list410.size); + for (int _i411 = 0; _i411 < _list410.size; ++_i411) { - ShowCompactResponseElement _elem404; // required - _elem404 = new ShowCompactResponseElement(); - _elem404.read(iprot); - struct.compacts.add(_elem404); + ShowCompactResponseElement _elem412; // optional + _elem412 = new ShowCompactResponseElement(); + _elem412.read(iprot); + struct.compacts.add(_elem412); } 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 _iter405 : struct.compacts) + for (ShowCompactResponseElement _iter413 : struct.compacts) { - _iter405.write(oprot); + _iter413.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 _iter406 : struct.compacts) + for (ShowCompactResponseElement _iter414 : struct.compacts) { - _iter406.write(oprot); + _iter414.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 _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = 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.compacts = new ArrayList(_list415.size); + for (int _i416 = 0; _i416 < _list415.size; ++_i416) { - ShowCompactResponseElement _elem409; // required - _elem409 = new ShowCompactResponseElement(); - _elem409.read(iprot); - struct.compacts.add(_elem409); + ShowCompactResponseElement _elem417; // optional + _elem417 = new ShowCompactResponseElement(); + _elem417.read(iprot); + struct.compacts.add(_elem417); } } 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 95948c4..ef5f6e2 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 _list394 = iprot.readListBegin(); - struct.locks = new ArrayList(_list394.size); - for (int _i395 = 0; _i395 < _list394.size; ++_i395) + org.apache.thrift.protocol.TList _list402 = iprot.readListBegin(); + struct.locks = new ArrayList(_list402.size); + for (int _i403 = 0; _i403 < _list402.size; ++_i403) { - ShowLocksResponseElement _elem396; // required - _elem396 = new ShowLocksResponseElement(); - _elem396.read(iprot); - struct.locks.add(_elem396); + ShowLocksResponseElement _elem404; // optional + _elem404 = new ShowLocksResponseElement(); + _elem404.read(iprot); + struct.locks.add(_elem404); } 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 _iter397 : struct.locks) + for (ShowLocksResponseElement _iter405 : struct.locks) { - _iter397.write(oprot); + _iter405.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 _iter398 : struct.locks) + for (ShowLocksResponseElement _iter406 : struct.locks) { - _iter398.write(oprot); + _iter406.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 _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = 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.locks = new ArrayList(_list407.size); + for (int _i408 = 0; _i408 < _list407.size; ++_i408) { - ShowLocksResponseElement _elem401; // required - _elem401 = new ShowLocksResponseElement(); - _elem401.read(iprot); - struct.locks.add(_elem401); + ShowLocksResponseElement _elem409; // optional + _elem409 = new ShowLocksResponseElement(); + _elem409.read(iprot); + struct.locks.add(_elem409); } } 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 2ad42a2..33d4b53 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 _list98 = iprot.readListBegin(); - struct.skewedColNames = new ArrayList(_list98.size); - for (int _i99 = 0; _i99 < _list98.size; ++_i99) + org.apache.thrift.protocol.TList _list106 = iprot.readListBegin(); + struct.skewedColNames = new ArrayList(_list106.size); + for (int _i107 = 0; _i107 < _list106.size; ++_i107) { - String _elem100; // required - _elem100 = iprot.readString(); - struct.skewedColNames.add(_elem100); + String _elem108; // optional + _elem108 = iprot.readString(); + struct.skewedColNames.add(_elem108); } 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 _list101 = iprot.readListBegin(); - struct.skewedColValues = new ArrayList>(_list101.size); - for (int _i102 = 0; _i102 < _list101.size; ++_i102) + org.apache.thrift.protocol.TList _list109 = iprot.readListBegin(); + struct.skewedColValues = new ArrayList>(_list109.size); + for (int _i110 = 0; _i110 < _list109.size; ++_i110) { - List _elem103; // required + List _elem111; // optional { - org.apache.thrift.protocol.TList _list104 = iprot.readListBegin(); - _elem103 = new ArrayList(_list104.size); - for (int _i105 = 0; _i105 < _list104.size; ++_i105) + org.apache.thrift.protocol.TList _list112 = iprot.readListBegin(); + _elem111 = new ArrayList(_list112.size); + for (int _i113 = 0; _i113 < _list112.size; ++_i113) { - String _elem106; // required - _elem106 = iprot.readString(); - _elem103.add(_elem106); + String _elem114; // optional + _elem114 = iprot.readString(); + _elem111.add(_elem114); } iprot.readListEnd(); } - struct.skewedColValues.add(_elem103); + struct.skewedColValues.add(_elem111); } 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 _map107 = iprot.readMapBegin(); - struct.skewedColValueLocationMaps = new HashMap,String>(2*_map107.size); - for (int _i108 = 0; _i108 < _map107.size; ++_i108) + org.apache.thrift.protocol.TMap _map115 = iprot.readMapBegin(); + struct.skewedColValueLocationMaps = new HashMap,String>(2*_map115.size); + for (int _i116 = 0; _i116 < _map115.size; ++_i116) { - List _key109; // required - String _val110; // required + List _key117; // required + String _val118; // required { - org.apache.thrift.protocol.TList _list111 = iprot.readListBegin(); - _key109 = new ArrayList(_list111.size); - for (int _i112 = 0; _i112 < _list111.size; ++_i112) + org.apache.thrift.protocol.TList _list119 = iprot.readListBegin(); + _key117 = new ArrayList(_list119.size); + for (int _i120 = 0; _i120 < _list119.size; ++_i120) { - String _elem113; // required - _elem113 = iprot.readString(); - _key109.add(_elem113); + String _elem121; // optional + _elem121 = iprot.readString(); + _key117.add(_elem121); } iprot.readListEnd(); } - _val110 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key109, _val110); + _val118 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key117, _val118); } 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 _iter114 : struct.skewedColNames) + for (String _iter122 : struct.skewedColNames) { - oprot.writeString(_iter114); + oprot.writeString(_iter122); } 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 _iter115 : struct.skewedColValues) + for (List _iter123 : struct.skewedColValues) { { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter115.size())); - for (String _iter116 : _iter115) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter123.size())); + for (String _iter124 : _iter123) { - oprot.writeString(_iter116); + oprot.writeString(_iter124); } 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> _iter117 : struct.skewedColValueLocationMaps.entrySet()) + for (Map.Entry, String> _iter125 : struct.skewedColValueLocationMaps.entrySet()) { { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter117.getKey().size())); - for (String _iter118 : _iter117.getKey()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, _iter125.getKey().size())); + for (String _iter126 : _iter125.getKey()) { - oprot.writeString(_iter118); + oprot.writeString(_iter126); } oprot.writeListEnd(); } - oprot.writeString(_iter117.getValue()); + oprot.writeString(_iter125.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 _iter119 : struct.skewedColNames) + for (String _iter127 : struct.skewedColNames) { - oprot.writeString(_iter119); + oprot.writeString(_iter127); } } } if (struct.isSetSkewedColValues()) { { oprot.writeI32(struct.skewedColValues.size()); - for (List _iter120 : struct.skewedColValues) + for (List _iter128 : struct.skewedColValues) { { - oprot.writeI32(_iter120.size()); - for (String _iter121 : _iter120) + oprot.writeI32(_iter128.size()); + for (String _iter129 : _iter128) { - oprot.writeString(_iter121); + oprot.writeString(_iter129); } } } @@ -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> _iter122 : struct.skewedColValueLocationMaps.entrySet()) + for (Map.Entry, String> _iter130 : struct.skewedColValueLocationMaps.entrySet()) { { - oprot.writeI32(_iter122.getKey().size()); - for (String _iter123 : _iter122.getKey()) + oprot.writeI32(_iter130.getKey().size()); + for (String _iter131 : _iter130.getKey()) { - oprot.writeString(_iter123); + oprot.writeString(_iter131); } } - oprot.writeString(_iter122.getValue()); + oprot.writeString(_iter130.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 _list124 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.skewedColNames = new ArrayList(_list124.size); - for (int _i125 = 0; _i125 < _list124.size; ++_i125) + 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) { - String _elem126; // required - _elem126 = iprot.readString(); - struct.skewedColNames.add(_elem126); + String _elem134; // optional + _elem134 = iprot.readString(); + struct.skewedColNames.add(_elem134); } } struct.setSkewedColNamesIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list127 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.skewedColValues = new ArrayList>(_list127.size); - for (int _i128 = 0; _i128 < _list127.size; ++_i128) + 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) { - List _elem129; // required + List _elem137; // optional { - org.apache.thrift.protocol.TList _list130 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _elem129 = new ArrayList(_list130.size); - for (int _i131 = 0; _i131 < _list130.size; ++_i131) + 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) { - String _elem132; // required - _elem132 = iprot.readString(); - _elem129.add(_elem132); + String _elem140; // optional + _elem140 = iprot.readString(); + _elem137.add(_elem140); } } - struct.skewedColValues.add(_elem129); + struct.skewedColValues.add(_elem137); } } struct.setSkewedColValuesIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map133 = 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*_map133.size); - for (int _i134 = 0; _i134 < _map133.size; ++_i134) + 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) { - List _key135; // required - String _val136; // required + List _key143; // required + String _val144; // required { - org.apache.thrift.protocol.TList _list137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - _key135 = new ArrayList(_list137.size); - for (int _i138 = 0; _i138 < _list137.size; ++_i138) + 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) { - String _elem139; // required - _elem139 = iprot.readString(); - _key135.add(_elem139); + String _elem147; // optional + _elem147 = iprot.readString(); + _key143.add(_elem147); } } - _val136 = iprot.readString(); - struct.skewedColValueLocationMaps.put(_key135, _val136); + _val144 = iprot.readString(); + struct.skewedColValueLocationMaps.put(_key143, _val144); } } 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 0a2f2c2..bd02c5b 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 _list140 = iprot.readListBegin(); - struct.cols = new ArrayList(_list140.size); - for (int _i141 = 0; _i141 < _list140.size; ++_i141) + org.apache.thrift.protocol.TList _list148 = iprot.readListBegin(); + struct.cols = new ArrayList(_list148.size); + for (int _i149 = 0; _i149 < _list148.size; ++_i149) { - FieldSchema _elem142; // required - _elem142 = new FieldSchema(); - _elem142.read(iprot); - struct.cols.add(_elem142); + FieldSchema _elem150; // optional + _elem150 = new FieldSchema(); + _elem150.read(iprot); + struct.cols.add(_elem150); } 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 _list143 = iprot.readListBegin(); - struct.bucketCols = new ArrayList(_list143.size); - for (int _i144 = 0; _i144 < _list143.size; ++_i144) + org.apache.thrift.protocol.TList _list151 = iprot.readListBegin(); + struct.bucketCols = new ArrayList(_list151.size); + for (int _i152 = 0; _i152 < _list151.size; ++_i152) { - String _elem145; // required - _elem145 = iprot.readString(); - struct.bucketCols.add(_elem145); + String _elem153; // optional + _elem153 = iprot.readString(); + struct.bucketCols.add(_elem153); } 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 _list146 = iprot.readListBegin(); - struct.sortCols = new ArrayList(_list146.size); - for (int _i147 = 0; _i147 < _list146.size; ++_i147) + org.apache.thrift.protocol.TList _list154 = iprot.readListBegin(); + struct.sortCols = new ArrayList(_list154.size); + for (int _i155 = 0; _i155 < _list154.size; ++_i155) { - Order _elem148; // required - _elem148 = new Order(); - _elem148.read(iprot); - struct.sortCols.add(_elem148); + Order _elem156; // optional + _elem156 = new Order(); + _elem156.read(iprot); + struct.sortCols.add(_elem156); } 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 _map149 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map149.size); - for (int _i150 = 0; _i150 < _map149.size; ++_i150) + org.apache.thrift.protocol.TMap _map157 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map157.size); + for (int _i158 = 0; _i158 < _map157.size; ++_i158) { - String _key151; // required - String _val152; // required - _key151 = iprot.readString(); - _val152 = iprot.readString(); - struct.parameters.put(_key151, _val152); + String _key159; // required + String _val160; // required + _key159 = iprot.readString(); + _val160 = iprot.readString(); + struct.parameters.put(_key159, _val160); } 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 _iter153 : struct.cols) + for (FieldSchema _iter161 : struct.cols) { - _iter153.write(oprot); + _iter161.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 _iter154 : struct.bucketCols) + for (String _iter162 : struct.bucketCols) { - oprot.writeString(_iter154); + oprot.writeString(_iter162); } 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 _iter155 : struct.sortCols) + for (Order _iter163 : struct.sortCols) { - _iter155.write(oprot); + _iter163.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 _iter156 : struct.parameters.entrySet()) + for (Map.Entry _iter164 : struct.parameters.entrySet()) { - oprot.writeString(_iter156.getKey()); - oprot.writeString(_iter156.getValue()); + oprot.writeString(_iter164.getKey()); + oprot.writeString(_iter164.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 _iter157 : struct.cols) + for (FieldSchema _iter165 : struct.cols) { - _iter157.write(oprot); + _iter165.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 _iter158 : struct.bucketCols) + for (String _iter166 : struct.bucketCols) { - oprot.writeString(_iter158); + oprot.writeString(_iter166); } } } if (struct.isSetSortCols()) { { oprot.writeI32(struct.sortCols.size()); - for (Order _iter159 : struct.sortCols) + for (Order _iter167 : struct.sortCols) { - _iter159.write(oprot); + _iter167.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter160 : struct.parameters.entrySet()) + for (Map.Entry _iter168 : struct.parameters.entrySet()) { - oprot.writeString(_iter160.getKey()); - oprot.writeString(_iter160.getValue()); + oprot.writeString(_iter168.getKey()); + oprot.writeString(_iter168.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 _list161 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.cols = new ArrayList(_list161.size); - for (int _i162 = 0; _i162 < _list161.size; ++_i162) + 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) { - FieldSchema _elem163; // required - _elem163 = new FieldSchema(); - _elem163.read(iprot); - struct.cols.add(_elem163); + FieldSchema _elem171; // optional + _elem171 = new FieldSchema(); + _elem171.read(iprot); + struct.cols.add(_elem171); } } 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 _list164 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.bucketCols = new ArrayList(_list164.size); - for (int _i165 = 0; _i165 < _list164.size; ++_i165) + 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) { - String _elem166; // required - _elem166 = iprot.readString(); - struct.bucketCols.add(_elem166); + String _elem174; // optional + _elem174 = iprot.readString(); + struct.bucketCols.add(_elem174); } } struct.setBucketColsIsSet(true); } if (incoming.get(8)) { { - org.apache.thrift.protocol.TList _list167 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.sortCols = new ArrayList(_list167.size); - for (int _i168 = 0; _i168 < _list167.size; ++_i168) + 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) { - Order _elem169; // required - _elem169 = new Order(); - _elem169.read(iprot); - struct.sortCols.add(_elem169); + Order _elem177; // optional + _elem177 = new Order(); + _elem177.read(iprot); + struct.sortCols.add(_elem177); } } struct.setSortColsIsSet(true); } if (incoming.get(9)) { { - org.apache.thrift.protocol.TMap _map170 = 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*_map170.size); - for (int _i171 = 0; _i171 < _map170.size; ++_i171) + 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) { - String _key172; // required - String _val173; // required - _key172 = iprot.readString(); - _val173 = iprot.readString(); - struct.parameters.put(_key172, _val173); + String _key180; // required + String _val181; // required + _key180 = iprot.readString(); + _val181 = iprot.readString(); + struct.parameters.put(_key180, _val181); } } 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 377cafe..97c2724 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 _list174 = iprot.readListBegin(); - struct.partitionKeys = new ArrayList(_list174.size); - for (int _i175 = 0; _i175 < _list174.size; ++_i175) + org.apache.thrift.protocol.TList _list182 = iprot.readListBegin(); + struct.partitionKeys = new ArrayList(_list182.size); + for (int _i183 = 0; _i183 < _list182.size; ++_i183) { - FieldSchema _elem176; // required - _elem176 = new FieldSchema(); - _elem176.read(iprot); - struct.partitionKeys.add(_elem176); + FieldSchema _elem184; // optional + _elem184 = new FieldSchema(); + _elem184.read(iprot); + struct.partitionKeys.add(_elem184); } 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 _map177 = iprot.readMapBegin(); - struct.parameters = new HashMap(2*_map177.size); - for (int _i178 = 0; _i178 < _map177.size; ++_i178) + org.apache.thrift.protocol.TMap _map185 = iprot.readMapBegin(); + struct.parameters = new HashMap(2*_map185.size); + for (int _i186 = 0; _i186 < _map185.size; ++_i186) { - String _key179; // required - String _val180; // required - _key179 = iprot.readString(); - _val180 = iprot.readString(); - struct.parameters.put(_key179, _val180); + String _key187; // required + String _val188; // required + _key187 = iprot.readString(); + _val188 = iprot.readString(); + struct.parameters.put(_key187, _val188); } 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 _iter181 : struct.partitionKeys) + for (FieldSchema _iter189 : struct.partitionKeys) { - _iter181.write(oprot); + _iter189.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 _iter182 : struct.parameters.entrySet()) + for (Map.Entry _iter190 : struct.parameters.entrySet()) { - oprot.writeString(_iter182.getKey()); - oprot.writeString(_iter182.getValue()); + oprot.writeString(_iter190.getKey()); + oprot.writeString(_iter190.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 _iter183 : struct.partitionKeys) + for (FieldSchema _iter191 : struct.partitionKeys) { - _iter183.write(oprot); + _iter191.write(oprot); } } } if (struct.isSetParameters()) { { oprot.writeI32(struct.parameters.size()); - for (Map.Entry _iter184 : struct.parameters.entrySet()) + for (Map.Entry _iter192 : struct.parameters.entrySet()) { - oprot.writeString(_iter184.getKey()); - oprot.writeString(_iter184.getValue()); + oprot.writeString(_iter192.getKey()); + oprot.writeString(_iter192.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 _list185 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitionKeys = new ArrayList(_list185.size); - for (int _i186 = 0; _i186 < _list185.size; ++_i186) + 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) { - FieldSchema _elem187; // required - _elem187 = new FieldSchema(); - _elem187.read(iprot); - struct.partitionKeys.add(_elem187); + FieldSchema _elem195; // optional + _elem195 = new FieldSchema(); + _elem195.read(iprot); + struct.partitionKeys.add(_elem195); } } struct.setPartitionKeysIsSet(true); } if (incoming.get(8)) { { - org.apache.thrift.protocol.TMap _map188 = 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*_map188.size); - for (int _i189 = 0; _i189 < _map188.size; ++_i189) + 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) { - String _key190; // required - String _val191; // required - _key190 = iprot.readString(); - _val191 = iprot.readString(); - struct.parameters.put(_key190, _val191); + String _key198; // required + String _val199; // required + _key198 = iprot.readString(); + _val199 = iprot.readString(); + struct.parameters.put(_key198, _val199); } } 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 9a03953..0276c19 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 _list290 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list290.size); - for (int _i291 = 0; _i291 < _list290.size; ++_i291) + org.apache.thrift.protocol.TList _list298 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list298.size); + for (int _i299 = 0; _i299 < _list298.size; ++_i299) { - String _elem292; // required - _elem292 = iprot.readString(); - struct.colNames.add(_elem292); + String _elem300; // optional + _elem300 = iprot.readString(); + struct.colNames.add(_elem300); } 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 _iter293 : struct.colNames) + for (String _iter301 : struct.colNames) { - oprot.writeString(_iter293); + oprot.writeString(_iter301); } 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 _iter294 : struct.colNames) + for (String _iter302 : struct.colNames) { - oprot.writeString(_iter294); + oprot.writeString(_iter302); } } } @@ -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 _list295 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = 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.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list303.size); + for (int _i304 = 0; _i304 < _list303.size; ++_i304) { - String _elem297; // required - _elem297 = iprot.readString(); - struct.colNames.add(_elem297); + String _elem305; // optional + _elem305 = iprot.readString(); + struct.colNames.add(_elem305); } } 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 c2ed067..b27a979 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 _list264 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list264.size); - for (int _i265 = 0; _i265 < _list264.size; ++_i265) + org.apache.thrift.protocol.TList _list272 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list272.size); + for (int _i273 = 0; _i273 < _list272.size; ++_i273) { - ColumnStatisticsObj _elem266; // required - _elem266 = new ColumnStatisticsObj(); - _elem266.read(iprot); - struct.tableStats.add(_elem266); + ColumnStatisticsObj _elem274; // optional + _elem274 = new ColumnStatisticsObj(); + _elem274.read(iprot); + struct.tableStats.add(_elem274); } 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 _iter267 : struct.tableStats) + for (ColumnStatisticsObj _iter275 : struct.tableStats) { - _iter267.write(oprot); + _iter275.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 _iter268 : struct.tableStats) + for (ColumnStatisticsObj _iter276 : struct.tableStats) { - _iter268.write(oprot); + _iter276.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 _list269 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = 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.tableStats = new ArrayList(_list277.size); + for (int _i278 = 0; _i278 < _list277.size; ++_i278) { - ColumnStatisticsObj _elem271; // required - _elem271 = new ColumnStatisticsObj(); - _elem271.read(iprot); - struct.tableStats.add(_elem271); + ColumnStatisticsObj _elem279; // optional + _elem279 = new ColumnStatisticsObj(); + _elem279.read(iprot); + struct.tableStats.add(_elem279); } } 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 bb0205c..ad2d1b7 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 @@ -206,6 +206,8 @@ public List list_roles(String principal_name, PrincipalType principal_type) throws MetaException, org.apache.thrift.TException; + public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest 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; @@ -418,6 +420,8 @@ public void list_roles(String principal_name, PrincipalType principal_type, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_principals_in_role(GetPrincipalsInRoleRequest 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; @@ -3074,6 +3078,32 @@ public void send_list_roles(String principal_name, PrincipalType principal_type) throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); } + public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) throws MetaException, org.apache.thrift.TException + { + send_get_principals_in_role(request); + return recv_get_principals_in_role(); + } + + public void send_get_principals_in_role(GetPrincipalsInRoleRequest request) throws org.apache.thrift.TException + { + get_principals_in_role_args args = new get_principals_in_role_args(); + args.setRequest(request); + sendBase("get_principals_in_role", args); + } + + public GetPrincipalsInRoleResponse recv_get_principals_in_role() throws MetaException, org.apache.thrift.TException + { + get_principals_in_role_result result = new get_principals_in_role_result(); + receiveBase(result, "get_principals_in_role"); + 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_principals_in_role 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); @@ -6691,6 +6721,38 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_principals_in_role(GetPrincipalsInRoleRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_principals_in_role_call method_call = new get_principals_in_role_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_principals_in_role_call extends org.apache.thrift.async.TAsyncMethodCall { + private GetPrincipalsInRoleRequest request; + public get_principals_in_role_call(GetPrincipalsInRoleRequest 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_principals_in_role", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_principals_in_role_args args = new get_principals_in_role_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public GetPrincipalsInRoleResponse 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_principals_in_role(); + } + } + 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); @@ -7440,6 +7502,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_principals_in_role() { + super("get_principals_in_role"); + } + + public get_principals_in_role_args getEmptyArgsInstance() { + return new get_principals_in_role_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_principals_in_role_result getResult(I iface, get_principals_in_role_args args) throws org.apache.thrift.TException { + get_principals_in_role_result result = new get_principals_in_role_result(); + try { + result.success = iface.get_principals_in_role(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"); @@ -13944,13 +14031,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 _list410 = iprot.readListBegin(); - struct.success = new ArrayList(_list410.size); - for (int _i411 = 0; _i411 < _list410.size; ++_i411) + org.apache.thrift.protocol.TList _list418 = iprot.readListBegin(); + struct.success = new ArrayList(_list418.size); + for (int _i419 = 0; _i419 < _list418.size; ++_i419) { - String _elem412; // required - _elem412 = iprot.readString(); - struct.success.add(_elem412); + String _elem420; // optional + _elem420 = iprot.readString(); + struct.success.add(_elem420); } iprot.readListEnd(); } @@ -13985,9 +14072,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 _iter413 : struct.success) + for (String _iter421 : struct.success) { - oprot.writeString(_iter413); + oprot.writeString(_iter421); } oprot.writeListEnd(); } @@ -14026,9 +14113,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter414 : struct.success) + for (String _iter422 : struct.success) { - oprot.writeString(_iter414); + oprot.writeString(_iter422); } } } @@ -14043,13 +14130,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 _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list423.size); + for (int _i424 = 0; _i424 < _list423.size; ++_i424) { - String _elem417; // required - _elem417 = iprot.readString(); - struct.success.add(_elem417); + String _elem425; // optional + _elem425 = iprot.readString(); + struct.success.add(_elem425); } } struct.setSuccessIsSet(true); @@ -14706,13 +14793,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 _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; // required - _elem420 = iprot.readString(); - struct.success.add(_elem420); + String _elem428; // optional + _elem428 = iprot.readString(); + struct.success.add(_elem428); } iprot.readListEnd(); } @@ -14747,9 +14834,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 _iter421 : struct.success) + for (String _iter429 : struct.success) { - oprot.writeString(_iter421); + oprot.writeString(_iter429); } oprot.writeListEnd(); } @@ -14788,9 +14875,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter422 : struct.success) + for (String _iter430 : struct.success) { - oprot.writeString(_iter422); + oprot.writeString(_iter430); } } } @@ -14805,13 +14892,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 _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; // required - _elem425 = iprot.readString(); - struct.success.add(_elem425); + String _elem433; // optional + _elem433 = iprot.readString(); + struct.success.add(_elem433); } } struct.setSuccessIsSet(true); @@ -19418,16 +19505,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 _map426 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map426.size); - for (int _i427 = 0; _i427 < _map426.size; ++_i427) + org.apache.thrift.protocol.TMap _map434 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map434.size); + for (int _i435 = 0; _i435 < _map434.size; ++_i435) { - String _key428; // required - Type _val429; // required - _key428 = iprot.readString(); - _val429 = new Type(); - _val429.read(iprot); - struct.success.put(_key428, _val429); + String _key436; // required + Type _val437; // required + _key436 = iprot.readString(); + _val437 = new Type(); + _val437.read(iprot); + struct.success.put(_key436, _val437); } iprot.readMapEnd(); } @@ -19462,10 +19549,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 _iter430 : struct.success.entrySet()) + for (Map.Entry _iter438 : struct.success.entrySet()) { - oprot.writeString(_iter430.getKey()); - _iter430.getValue().write(oprot); + oprot.writeString(_iter438.getKey()); + _iter438.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -19504,10 +19591,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 _iter431 : struct.success.entrySet()) + for (Map.Entry _iter439 : struct.success.entrySet()) { - oprot.writeString(_iter431.getKey()); - _iter431.getValue().write(oprot); + oprot.writeString(_iter439.getKey()); + _iter439.getValue().write(oprot); } } } @@ -19522,16 +19609,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 _map432 = 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*_map432.size); - for (int _i433 = 0; _i433 < _map432.size; ++_i433) + 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) { - String _key434; // required - Type _val435; // required - _key434 = iprot.readString(); - _val435 = new Type(); - _val435.read(iprot); - struct.success.put(_key434, _val435); + String _key442; // required + Type _val443; // required + _key442 = iprot.readString(); + _val443 = new Type(); + _val443.read(iprot); + struct.success.put(_key442, _val443); } } struct.setSuccessIsSet(true); @@ -20566,14 +20653,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 _list436 = iprot.readListBegin(); - struct.success = new ArrayList(_list436.size); - for (int _i437 = 0; _i437 < _list436.size; ++_i437) + org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); + struct.success = new ArrayList(_list444.size); + for (int _i445 = 0; _i445 < _list444.size; ++_i445) { - FieldSchema _elem438; // required - _elem438 = new FieldSchema(); - _elem438.read(iprot); - struct.success.add(_elem438); + FieldSchema _elem446; // optional + _elem446 = new FieldSchema(); + _elem446.read(iprot); + struct.success.add(_elem446); } iprot.readListEnd(); } @@ -20626,9 +20713,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 _iter439 : struct.success) + for (FieldSchema _iter447 : struct.success) { - _iter439.write(oprot); + _iter447.write(oprot); } oprot.writeListEnd(); } @@ -20683,9 +20770,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter440 : struct.success) + for (FieldSchema _iter448 : struct.success) { - _iter440.write(oprot); + _iter448.write(oprot); } } } @@ -20706,14 +20793,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 _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list441.size); - for (int _i442 = 0; _i442 < _list441.size; ++_i442) + 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) { - FieldSchema _elem443; // required - _elem443 = new FieldSchema(); - _elem443.read(iprot); - struct.success.add(_elem443); + FieldSchema _elem451; // optional + _elem451 = new FieldSchema(); + _elem451.read(iprot); + struct.success.add(_elem451); } } struct.setSuccessIsSet(true); @@ -21758,14 +21845,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 _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; // required - _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(); } @@ -21818,9 +21905,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 _iter447 : struct.success) + for (FieldSchema _iter455 : struct.success) { - _iter447.write(oprot); + _iter455.write(oprot); } oprot.writeListEnd(); } @@ -21875,9 +21962,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_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); } } } @@ -21898,14 +21985,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 _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; // required - _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); @@ -27148,13 +27235,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 _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) { - String _elem454; // required - _elem454 = iprot.readString(); - struct.success.add(_elem454); + String _elem462; // optional + _elem462 = iprot.readString(); + struct.success.add(_elem462); } iprot.readListEnd(); } @@ -27189,9 +27276,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 _iter455 : struct.success) + for (String _iter463 : struct.success) { - oprot.writeString(_iter455); + oprot.writeString(_iter463); } oprot.writeListEnd(); } @@ -27230,9 +27317,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter456 : struct.success) + for (String _iter464 : struct.success) { - oprot.writeString(_iter456); + oprot.writeString(_iter464); } } } @@ -27247,13 +27334,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 _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list465.size); + for (int _i466 = 0; _i466 < _list465.size; ++_i466) { - String _elem459; // required - _elem459 = iprot.readString(); - struct.success.add(_elem459); + String _elem467; // optional + _elem467 = iprot.readString(); + struct.success.add(_elem467); } } struct.setSuccessIsSet(true); @@ -28022,13 +28109,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 _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; // required - _elem462 = iprot.readString(); - struct.success.add(_elem462); + String _elem470; // optional + _elem470 = iprot.readString(); + struct.success.add(_elem470); } iprot.readListEnd(); } @@ -28063,9 +28150,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 _iter463 : struct.success) + for (String _iter471 : struct.success) { - oprot.writeString(_iter463); + oprot.writeString(_iter471); } oprot.writeListEnd(); } @@ -28104,9 +28191,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter464 : struct.success) + for (String _iter472 : struct.success) { - oprot.writeString(_iter464); + oprot.writeString(_iter472); } } } @@ -28121,13 +28208,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 _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; // required - _elem467 = iprot.readString(); - struct.success.add(_elem467); + String _elem475; // optional + _elem475 = iprot.readString(); + struct.success.add(_elem475); } } struct.setSuccessIsSet(true); @@ -29583,13 +29670,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 _list468 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list468.size); - for (int _i469 = 0; _i469 < _list468.size; ++_i469) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list476.size); + for (int _i477 = 0; _i477 < _list476.size; ++_i477) { - String _elem470; // required - _elem470 = iprot.readString(); - struct.tbl_names.add(_elem470); + String _elem478; // optional + _elem478 = iprot.readString(); + struct.tbl_names.add(_elem478); } iprot.readListEnd(); } @@ -29620,9 +29707,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 _iter471 : struct.tbl_names) + for (String _iter479 : struct.tbl_names) { - oprot.writeString(_iter471); + oprot.writeString(_iter479); } oprot.writeListEnd(); } @@ -29659,9 +29746,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 _iter472 : struct.tbl_names) + for (String _iter480 : struct.tbl_names) { - oprot.writeString(_iter472); + oprot.writeString(_iter480); } } } @@ -29677,13 +29764,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = 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.tbl_names = new ArrayList(_list481.size); + for (int _i482 = 0; _i482 < _list481.size; ++_i482) { - String _elem475; // required - _elem475 = iprot.readString(); - struct.tbl_names.add(_elem475); + String _elem483; // optional + _elem483 = iprot.readString(); + struct.tbl_names.add(_elem483); } } struct.setTbl_namesIsSet(true); @@ -30251,14 +30338,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 _list476 = iprot.readListBegin(); - struct.success = new ArrayList
(_list476.size); - for (int _i477 = 0; _i477 < _list476.size; ++_i477) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.success = new ArrayList
(_list484.size); + for (int _i485 = 0; _i485 < _list484.size; ++_i485) { - Table _elem478; // required - _elem478 = new Table(); - _elem478.read(iprot); - struct.success.add(_elem478); + Table _elem486; // optional + _elem486 = new Table(); + _elem486.read(iprot); + struct.success.add(_elem486); } iprot.readListEnd(); } @@ -30311,9 +30398,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 _iter479 : struct.success) + for (Table _iter487 : struct.success) { - _iter479.write(oprot); + _iter487.write(oprot); } oprot.writeListEnd(); } @@ -30368,9 +30455,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter480 : struct.success) + for (Table _iter488 : struct.success) { - _iter480.write(oprot); + _iter488.write(oprot); } } } @@ -30391,14 +30478,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 _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list489.size); + for (int _i490 = 0; _i490 < _list489.size; ++_i490) { - Table _elem483; // required - _elem483 = new Table(); - _elem483.read(iprot); - struct.success.add(_elem483); + Table _elem491; // optional + _elem491 = new Table(); + _elem491.read(iprot); + struct.success.add(_elem491); } } struct.setSuccessIsSet(true); @@ -31547,13 +31634,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 _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) { - String _elem486; // required - _elem486 = iprot.readString(); - struct.success.add(_elem486); + String _elem494; // optional + _elem494 = iprot.readString(); + struct.success.add(_elem494); } iprot.readListEnd(); } @@ -31606,9 +31693,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 _iter487 : struct.success) + for (String _iter495 : struct.success) { - oprot.writeString(_iter487); + oprot.writeString(_iter495); } oprot.writeListEnd(); } @@ -31663,9 +31750,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter488 : struct.success) + for (String _iter496 : struct.success) { - oprot.writeString(_iter488); + oprot.writeString(_iter496); } } } @@ -31686,13 +31773,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 _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list497.size); + for (int _i498 = 0; _i498 < _list497.size; ++_i498) { - String _elem491; // required - _elem491 = iprot.readString(); - struct.success.add(_elem491); + String _elem499; // optional + _elem499 = iprot.readString(); + struct.success.add(_elem499); } } struct.setSuccessIsSet(true); @@ -36412,14 +36499,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 _list492 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list492.size); - for (int _i493 = 0; _i493 < _list492.size; ++_i493) + org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list500.size); + for (int _i501 = 0; _i501 < _list500.size; ++_i501) { - Partition _elem494; // required - _elem494 = new Partition(); - _elem494.read(iprot); - struct.new_parts.add(_elem494); + Partition _elem502; // optional + _elem502 = new Partition(); + _elem502.read(iprot); + struct.new_parts.add(_elem502); } iprot.readListEnd(); } @@ -36445,9 +36532,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 _iter495 : struct.new_parts) + for (Partition _iter503 : struct.new_parts) { - _iter495.write(oprot); + _iter503.write(oprot); } oprot.writeListEnd(); } @@ -36478,9 +36565,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 _iter496 : struct.new_parts) + for (Partition _iter504 : struct.new_parts) { - _iter496.write(oprot); + _iter504.write(oprot); } } } @@ -36492,14 +36579,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 _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = 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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list505.size); + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - Partition _elem499; // required - _elem499 = new Partition(); - _elem499.read(iprot); - struct.new_parts.add(_elem499); + Partition _elem507; // optional + _elem507 = new Partition(); + _elem507.read(iprot); + struct.new_parts.add(_elem507); } } struct.setNew_partsIsSet(true); @@ -37678,13 +37765,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 _list500 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list500.size); - for (int _i501 = 0; _i501 < _list500.size; ++_i501) + org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list508.size); + for (int _i509 = 0; _i509 < _list508.size; ++_i509) { - String _elem502; // required - _elem502 = iprot.readString(); - struct.part_vals.add(_elem502); + String _elem510; // optional + _elem510 = iprot.readString(); + struct.part_vals.add(_elem510); } iprot.readListEnd(); } @@ -37720,9 +37807,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 _iter503 : struct.part_vals) + for (String _iter511 : struct.part_vals) { - oprot.writeString(_iter503); + oprot.writeString(_iter511); } oprot.writeListEnd(); } @@ -37765,9 +37852,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 _iter504 : struct.part_vals) + for (String _iter512 : struct.part_vals) { - oprot.writeString(_iter504); + oprot.writeString(_iter512); } } } @@ -37787,13 +37874,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list513.size); + for (int _i514 = 0; _i514 < _list513.size; ++_i514) { - String _elem507; // required - _elem507 = iprot.readString(); - struct.part_vals.add(_elem507); + String _elem515; // optional + _elem515 = iprot.readString(); + struct.part_vals.add(_elem515); } } struct.setPart_valsIsSet(true); @@ -40105,13 +40192,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 _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; // required - _elem510 = iprot.readString(); - struct.part_vals.add(_elem510); + String _elem518; // optional + _elem518 = iprot.readString(); + struct.part_vals.add(_elem518); } iprot.readListEnd(); } @@ -40156,9 +40243,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 _iter511 : struct.part_vals) + for (String _iter519 : struct.part_vals) { - oprot.writeString(_iter511); + oprot.writeString(_iter519); } oprot.writeListEnd(); } @@ -40209,9 +40296,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 _iter512 : struct.part_vals) + for (String _iter520 : struct.part_vals) { - oprot.writeString(_iter512); + oprot.writeString(_iter520); } } } @@ -40234,13 +40321,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } 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; // required - _elem515 = iprot.readString(); - struct.part_vals.add(_elem515); + String _elem523; // optional + _elem523 = iprot.readString(); + struct.part_vals.add(_elem523); } } struct.setPart_valsIsSet(true); @@ -44113,13 +44200,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 _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; // required - _elem518 = iprot.readString(); - struct.part_vals.add(_elem518); + String _elem526; // optional + _elem526 = iprot.readString(); + struct.part_vals.add(_elem526); } iprot.readListEnd(); } @@ -44163,9 +44250,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 _iter519 : struct.part_vals) + for (String _iter527 : struct.part_vals) { - oprot.writeString(_iter519); + oprot.writeString(_iter527); } oprot.writeListEnd(); } @@ -44214,9 +44301,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 _iter520 : struct.part_vals) + for (String _iter528 : struct.part_vals) { - oprot.writeString(_iter520); + oprot.writeString(_iter528); } } } @@ -44239,13 +44326,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } 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; // required - _elem523 = iprot.readString(); - struct.part_vals.add(_elem523); + String _elem531; // optional + _elem531 = iprot.readString(); + struct.part_vals.add(_elem531); } } struct.setPart_valsIsSet(true); @@ -45487,13 +45574,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 _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; // required - _elem526 = iprot.readString(); - struct.part_vals.add(_elem526); + String _elem534; // optional + _elem534 = iprot.readString(); + struct.part_vals.add(_elem534); } iprot.readListEnd(); } @@ -45546,9 +45633,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 _iter527 : struct.part_vals) + for (String _iter535 : struct.part_vals) { - oprot.writeString(_iter527); + oprot.writeString(_iter535); } oprot.writeListEnd(); } @@ -45605,9 +45692,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 _iter528 : struct.part_vals) + for (String _iter536 : struct.part_vals) { - oprot.writeString(_iter528); + oprot.writeString(_iter536); } } } @@ -45633,13 +45720,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } 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; // required - _elem531 = iprot.readString(); - struct.part_vals.add(_elem531); + String _elem539; // optional + _elem539 = iprot.readString(); + struct.part_vals.add(_elem539); } } struct.setPart_valsIsSet(true); @@ -50244,13 +50331,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 _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; // required - _elem534 = iprot.readString(); - struct.part_vals.add(_elem534); + String _elem542; // optional + _elem542 = iprot.readString(); + struct.part_vals.add(_elem542); } iprot.readListEnd(); } @@ -50286,9 +50373,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 _iter535 : struct.part_vals) + for (String _iter543 : struct.part_vals) { - oprot.writeString(_iter535); + oprot.writeString(_iter543); } oprot.writeListEnd(); } @@ -50331,9 +50418,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 _iter536 : struct.part_vals) + for (String _iter544 : struct.part_vals) { - oprot.writeString(_iter536); + oprot.writeString(_iter544); } } } @@ -50353,13 +50440,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } 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; // required - _elem539 = iprot.readString(); - struct.part_vals.add(_elem539); + String _elem547; // optional + _elem547 = iprot.readString(); + struct.part_vals.add(_elem547); } } struct.setPart_valsIsSet(true); @@ -51588,15 +51675,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 _map540 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map540.size); - for (int _i541 = 0; _i541 < _map540.size; ++_i541) + org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map548.size); + for (int _i549 = 0; _i549 < _map548.size; ++_i549) { - String _key542; // required - String _val543; // required - _key542 = iprot.readString(); - _val543 = iprot.readString(); - struct.partitionSpecs.put(_key542, _val543); + String _key550; // required + String _val551; // required + _key550 = iprot.readString(); + _val551 = iprot.readString(); + struct.partitionSpecs.put(_key550, _val551); } iprot.readMapEnd(); } @@ -51654,10 +51741,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 _iter544 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter552 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter544.getKey()); - oprot.writeString(_iter544.getValue()); + oprot.writeString(_iter552.getKey()); + oprot.writeString(_iter552.getValue()); } oprot.writeMapEnd(); } @@ -51720,10 +51807,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter545 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter553 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter545.getKey()); - oprot.writeString(_iter545.getValue()); + oprot.writeString(_iter553.getKey()); + oprot.writeString(_iter553.getValue()); } } } @@ -51747,15 +51834,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 _map546 = 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*_map546.size); - for (int _i547 = 0; _i547 < _map546.size; ++_i547) + 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) { - String _key548; // required - String _val549; // required - _key548 = iprot.readString(); - _val549 = iprot.readString(); - struct.partitionSpecs.put(_key548, _val549); + String _key556; // required + String _val557; // required + _key556 = iprot.readString(); + _val557 = iprot.readString(); + struct.partitionSpecs.put(_key556, _val557); } } struct.setPartitionSpecsIsSet(true); @@ -53243,13 +53330,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 _list550 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list550.size); - for (int _i551 = 0; _i551 < _list550.size; ++_i551) + org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list558.size); + for (int _i559 = 0; _i559 < _list558.size; ++_i559) { - String _elem552; // required - _elem552 = iprot.readString(); - struct.part_vals.add(_elem552); + String _elem560; // optional + _elem560 = iprot.readString(); + struct.part_vals.add(_elem560); } iprot.readListEnd(); } @@ -53269,13 +53356,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 _list553 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list553.size); - for (int _i554 = 0; _i554 < _list553.size; ++_i554) + org.apache.thrift.protocol.TList _list561 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list561.size); + for (int _i562 = 0; _i562 < _list561.size; ++_i562) { - String _elem555; // required - _elem555 = iprot.readString(); - struct.group_names.add(_elem555); + String _elem563; // optional + _elem563 = iprot.readString(); + struct.group_names.add(_elem563); } iprot.readListEnd(); } @@ -53311,9 +53398,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 _iter556 : struct.part_vals) + for (String _iter564 : struct.part_vals) { - oprot.writeString(_iter556); + oprot.writeString(_iter564); } oprot.writeListEnd(); } @@ -53328,9 +53415,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 _iter557 : struct.group_names) + for (String _iter565 : struct.group_names) { - oprot.writeString(_iter557); + oprot.writeString(_iter565); } oprot.writeListEnd(); } @@ -53379,9 +53466,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 _iter558 : struct.part_vals) + for (String _iter566 : struct.part_vals) { - oprot.writeString(_iter558); + oprot.writeString(_iter566); } } } @@ -53391,9 +53478,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 _iter559 : struct.group_names) + for (String _iter567 : struct.group_names) { - oprot.writeString(_iter559); + oprot.writeString(_iter567); } } } @@ -53413,13 +53500,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list560 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list560.size); - for (int _i561 = 0; _i561 < _list560.size; ++_i561) + 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) { - String _elem562; // required - _elem562 = iprot.readString(); - struct.part_vals.add(_elem562); + String _elem570; // optional + _elem570 = iprot.readString(); + struct.part_vals.add(_elem570); } } struct.setPart_valsIsSet(true); @@ -53430,13 +53517,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list563.size); - for (int _i564 = 0; _i564 < _list563.size; ++_i564) + 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) { - String _elem565; // required - _elem565 = iprot.readString(); - struct.group_names.add(_elem565); + String _elem573; // optional + _elem573 = iprot.readString(); + struct.group_names.add(_elem573); } } struct.setGroup_namesIsSet(true); @@ -56205,14 +56292,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 _list566 = iprot.readListBegin(); - struct.success = new ArrayList(_list566.size); - for (int _i567 = 0; _i567 < _list566.size; ++_i567) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.success = new ArrayList(_list574.size); + for (int _i575 = 0; _i575 < _list574.size; ++_i575) { - Partition _elem568; // required - _elem568 = new Partition(); - _elem568.read(iprot); - struct.success.add(_elem568); + Partition _elem576; // optional + _elem576 = new Partition(); + _elem576.read(iprot); + struct.success.add(_elem576); } iprot.readListEnd(); } @@ -56256,9 +56343,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 _iter569 : struct.success) + for (Partition _iter577 : struct.success) { - _iter569.write(oprot); + _iter577.write(oprot); } oprot.writeListEnd(); } @@ -56305,9 +56392,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter570 : struct.success) + for (Partition _iter578 : struct.success) { - _iter570.write(oprot); + _iter578.write(oprot); } } } @@ -56325,14 +56412,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 _list571 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list579.size); + for (int _i580 = 0; _i580 < _list579.size; ++_i580) { - Partition _elem573; // required - _elem573 = new Partition(); - _elem573.read(iprot); - struct.success.add(_elem573); + Partition _elem581; // optional + _elem581 = new Partition(); + _elem581.read(iprot); + struct.success.add(_elem581); } } struct.setSuccessIsSet(true); @@ -57025,13 +57112,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 _list574 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list574.size); - for (int _i575 = 0; _i575 < _list574.size; ++_i575) + org.apache.thrift.protocol.TList _list582 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list582.size); + for (int _i583 = 0; _i583 < _list582.size; ++_i583) { - String _elem576; // required - _elem576 = iprot.readString(); - struct.group_names.add(_elem576); + String _elem584; // optional + _elem584 = iprot.readString(); + struct.group_names.add(_elem584); } iprot.readListEnd(); } @@ -57075,9 +57162,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 _iter577 : struct.group_names) + for (String _iter585 : struct.group_names) { - oprot.writeString(_iter577); + oprot.writeString(_iter585); } oprot.writeListEnd(); } @@ -57132,9 +57219,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 _iter578 : struct.group_names) + for (String _iter586 : struct.group_names) { - oprot.writeString(_iter578); + oprot.writeString(_iter586); } } } @@ -57162,13 +57249,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - 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) + 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) { - String _elem581; // required - _elem581 = iprot.readString(); - struct.group_names.add(_elem581); + String _elem589; // optional + _elem589 = iprot.readString(); + struct.group_names.add(_elem589); } } struct.setGroup_namesIsSet(true); @@ -57655,14 +57742,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 _list582 = iprot.readListBegin(); - struct.success = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.success = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) { - Partition _elem584; // required - _elem584 = new Partition(); - _elem584.read(iprot); - struct.success.add(_elem584); + Partition _elem592; // optional + _elem592 = new Partition(); + _elem592.read(iprot); + struct.success.add(_elem592); } iprot.readListEnd(); } @@ -57706,9 +57793,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 _iter585 : struct.success) + for (Partition _iter593 : struct.success) { - _iter585.write(oprot); + _iter593.write(oprot); } oprot.writeListEnd(); } @@ -57755,9 +57842,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter586 : struct.success) + for (Partition _iter594 : struct.success) { - _iter586.write(oprot); + _iter594.write(oprot); } } } @@ -57775,14 +57862,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 _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) + 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) { - Partition _elem589; // required - _elem589 = new Partition(); - _elem589.read(iprot); - struct.success.add(_elem589); + Partition _elem597; // optional + _elem597 = new Partition(); + _elem597.read(iprot); + struct.success.add(_elem597); } } struct.setSuccessIsSet(true); @@ -58764,13 +58851,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 _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) { - String _elem592; // required - _elem592 = iprot.readString(); - struct.success.add(_elem592); + String _elem600; // optional + _elem600 = iprot.readString(); + struct.success.add(_elem600); } iprot.readListEnd(); } @@ -58805,9 +58892,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 _iter593 : struct.success) + for (String _iter601 : struct.success) { - oprot.writeString(_iter593); + oprot.writeString(_iter601); } oprot.writeListEnd(); } @@ -58846,9 +58933,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter594 : struct.success) + for (String _iter602 : struct.success) { - oprot.writeString(_iter594); + oprot.writeString(_iter602); } } } @@ -58863,13 +58950,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 _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - String _elem597; // required - _elem597 = iprot.readString(); - struct.success.add(_elem597); + String _elem605; // optional + _elem605 = iprot.readString(); + struct.success.add(_elem605); } } struct.setSuccessIsSet(true); @@ -59460,13 +59547,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 _list598 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) { - String _elem600; // required - _elem600 = iprot.readString(); - struct.part_vals.add(_elem600); + String _elem608; // optional + _elem608 = iprot.readString(); + struct.part_vals.add(_elem608); } iprot.readListEnd(); } @@ -59510,9 +59597,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 _iter601 : struct.part_vals) + for (String _iter609 : struct.part_vals) { - oprot.writeString(_iter601); + oprot.writeString(_iter609); } oprot.writeListEnd(); } @@ -59561,9 +59648,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 _iter602 : struct.part_vals) + for (String _iter610 : struct.part_vals) { - oprot.writeString(_iter602); + oprot.writeString(_iter610); } } } @@ -59586,13 +59673,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.part_vals = new ArrayList(_list611.size); + for (int _i612 = 0; _i612 < _list611.size; ++_i612) { - String _elem605; // required - _elem605 = iprot.readString(); - struct.part_vals.add(_elem605); + String _elem613; // optional + _elem613 = iprot.readString(); + struct.part_vals.add(_elem613); } } struct.setPart_valsIsSet(true); @@ -60083,14 +60170,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 _list606 = iprot.readListBegin(); - struct.success = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.success = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - Partition _elem608; // required - _elem608 = new Partition(); - _elem608.read(iprot); - struct.success.add(_elem608); + Partition _elem616; // optional + _elem616 = new Partition(); + _elem616.read(iprot); + struct.success.add(_elem616); } iprot.readListEnd(); } @@ -60134,9 +60221,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 _iter609 : struct.success) + for (Partition _iter617 : struct.success) { - _iter609.write(oprot); + _iter617.write(oprot); } oprot.writeListEnd(); } @@ -60183,9 +60270,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter610 : struct.success) + for (Partition _iter618 : struct.success) { - _iter610.write(oprot); + _iter618.write(oprot); } } } @@ -60203,14 +60290,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 _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - Partition _elem613; // required - _elem613 = new Partition(); - _elem613.read(iprot); - struct.success.add(_elem613); + Partition _elem621; // optional + _elem621 = new Partition(); + _elem621.read(iprot); + struct.success.add(_elem621); } } struct.setSuccessIsSet(true); @@ -60988,13 +61075,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 _list614 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - String _elem616; // required - _elem616 = iprot.readString(); - struct.part_vals.add(_elem616); + String _elem624; // optional + _elem624 = iprot.readString(); + struct.part_vals.add(_elem624); } iprot.readListEnd(); } @@ -61022,13 +61109,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 _list617 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list617.size); - for (int _i618 = 0; _i618 < _list617.size; ++_i618) + org.apache.thrift.protocol.TList _list625 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list625.size); + for (int _i626 = 0; _i626 < _list625.size; ++_i626) { - String _elem619; // required - _elem619 = iprot.readString(); - struct.group_names.add(_elem619); + String _elem627; // optional + _elem627 = iprot.readString(); + struct.group_names.add(_elem627); } iprot.readListEnd(); } @@ -61064,9 +61151,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 _iter620 : struct.part_vals) + for (String _iter628 : struct.part_vals) { - oprot.writeString(_iter620); + oprot.writeString(_iter628); } oprot.writeListEnd(); } @@ -61084,9 +61171,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 _iter621 : struct.group_names) + for (String _iter629 : struct.group_names) { - oprot.writeString(_iter621); + oprot.writeString(_iter629); } oprot.writeListEnd(); } @@ -61138,9 +61225,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 _iter622 : struct.part_vals) + for (String _iter630 : struct.part_vals) { - oprot.writeString(_iter622); + oprot.writeString(_iter630); } } } @@ -61153,9 +61240,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 _iter623 : struct.group_names) + for (String _iter631 : struct.group_names) { - oprot.writeString(_iter623); + oprot.writeString(_iter631); } } } @@ -61175,13 +61262,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list624 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list624.size); - for (int _i625 = 0; _i625 < _list624.size; ++_i625) + 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) { - String _elem626; // required - _elem626 = iprot.readString(); - struct.part_vals.add(_elem626); + String _elem634; // optional + _elem634 = iprot.readString(); + struct.part_vals.add(_elem634); } } struct.setPart_valsIsSet(true); @@ -61196,13 +61283,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list627.size); - for (int _i628 = 0; _i628 < _list627.size; ++_i628) + 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) { - String _elem629; // required - _elem629 = iprot.readString(); - struct.group_names.add(_elem629); + String _elem637; // optional + _elem637 = iprot.readString(); + struct.group_names.add(_elem637); } } struct.setGroup_namesIsSet(true); @@ -61689,14 +61776,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 _list630 = iprot.readListBegin(); - struct.success = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.success = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - Partition _elem632; // required - _elem632 = new Partition(); - _elem632.read(iprot); - struct.success.add(_elem632); + Partition _elem640; // optional + _elem640 = new Partition(); + _elem640.read(iprot); + struct.success.add(_elem640); } iprot.readListEnd(); } @@ -61740,9 +61827,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 _iter633 : struct.success) + for (Partition _iter641 : struct.success) { - _iter633.write(oprot); + _iter641.write(oprot); } oprot.writeListEnd(); } @@ -61789,9 +61876,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter634 : struct.success) + for (Partition _iter642 : struct.success) { - _iter634.write(oprot); + _iter642.write(oprot); } } } @@ -61809,14 +61896,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 _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - Partition _elem637; // required - _elem637 = new Partition(); - _elem637.read(iprot); - struct.success.add(_elem637); + Partition _elem645; // optional + _elem645 = new Partition(); + _elem645.read(iprot); + struct.success.add(_elem645); } } struct.setSuccessIsSet(true); @@ -62412,13 +62499,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 _list638 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - String _elem640; // required - _elem640 = iprot.readString(); - struct.part_vals.add(_elem640); + String _elem648; // optional + _elem648 = iprot.readString(); + struct.part_vals.add(_elem648); } iprot.readListEnd(); } @@ -62462,9 +62549,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 _iter641 : struct.part_vals) + for (String _iter649 : struct.part_vals) { - oprot.writeString(_iter641); + oprot.writeString(_iter649); } oprot.writeListEnd(); } @@ -62513,9 +62600,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 _iter642 : struct.part_vals) + for (String _iter650 : struct.part_vals) { - oprot.writeString(_iter642); + oprot.writeString(_iter650); } } } @@ -62538,13 +62625,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - String _elem645; // required - _elem645 = iprot.readString(); - struct.part_vals.add(_elem645); + String _elem653; // optional + _elem653 = iprot.readString(); + struct.part_vals.add(_elem653); } } struct.setPart_valsIsSet(true); @@ -63035,13 +63122,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 _list646 = iprot.readListBegin(); - struct.success = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.success = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem648; // required - _elem648 = iprot.readString(); - struct.success.add(_elem648); + String _elem656; // optional + _elem656 = iprot.readString(); + struct.success.add(_elem656); } iprot.readListEnd(); } @@ -63085,9 +63172,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 _iter649 : struct.success) + for (String _iter657 : struct.success) { - oprot.writeString(_iter649); + oprot.writeString(_iter657); } oprot.writeListEnd(); } @@ -63134,9 +63221,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter650 : struct.success) + for (String _iter658 : struct.success) { - oprot.writeString(_iter650); + oprot.writeString(_iter658); } } } @@ -63154,13 +63241,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 _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list659.size); + for (int _i660 = 0; _i660 < _list659.size; ++_i660) { - String _elem653; // required - _elem653 = iprot.readString(); - struct.success.add(_elem653); + String _elem661; // optional + _elem661 = iprot.readString(); + struct.success.add(_elem661); } } struct.setSuccessIsSet(true); @@ -64327,14 +64414,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 _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) { - Partition _elem656; // required - _elem656 = new Partition(); - _elem656.read(iprot); - struct.success.add(_elem656); + Partition _elem664; // optional + _elem664 = new Partition(); + _elem664.read(iprot); + struct.success.add(_elem664); } iprot.readListEnd(); } @@ -64378,9 +64465,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 _iter657 : struct.success) + for (Partition _iter665 : struct.success) { - _iter657.write(oprot); + _iter665.write(oprot); } oprot.writeListEnd(); } @@ -64427,9 +64514,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter658 : struct.success) + for (Partition _iter666 : struct.success) { - _iter658.write(oprot); + _iter666.write(oprot); } } } @@ -64447,14 +64534,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 _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) { - Partition _elem661; // required - _elem661 = new Partition(); - _elem661.read(iprot); - struct.success.add(_elem661); + Partition _elem669; // optional + _elem669 = new Partition(); + _elem669.read(iprot); + struct.success.add(_elem669); } } struct.setSuccessIsSet(true); @@ -65905,13 +65992,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 _list662 = iprot.readListBegin(); - struct.names = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.names = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - String _elem664; // required - _elem664 = iprot.readString(); - struct.names.add(_elem664); + String _elem672; // optional + _elem672 = iprot.readString(); + struct.names.add(_elem672); } iprot.readListEnd(); } @@ -65947,9 +66034,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 _iter665 : struct.names) + for (String _iter673 : struct.names) { - oprot.writeString(_iter665); + oprot.writeString(_iter673); } oprot.writeListEnd(); } @@ -65992,9 +66079,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter666 : struct.names) + for (String _iter674 : struct.names) { - oprot.writeString(_iter666); + oprot.writeString(_iter674); } } } @@ -66014,13 +66101,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = 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.STRING, iprot.readI32()); + struct.names = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - String _elem669; // required - _elem669 = iprot.readString(); - struct.names.add(_elem669); + String _elem677; // optional + _elem677 = iprot.readString(); + struct.names.add(_elem677); } } struct.setNamesIsSet(true); @@ -66507,14 +66594,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 _list670 = iprot.readListBegin(); - struct.success = new ArrayList(_list670.size); - for (int _i671 = 0; _i671 < _list670.size; ++_i671) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.success = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - Partition _elem672; // required - _elem672 = new Partition(); - _elem672.read(iprot); - struct.success.add(_elem672); + Partition _elem680; // optional + _elem680 = new Partition(); + _elem680.read(iprot); + struct.success.add(_elem680); } iprot.readListEnd(); } @@ -66558,9 +66645,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 _iter673 : struct.success) + for (Partition _iter681 : struct.success) { - _iter673.write(oprot); + _iter681.write(oprot); } oprot.writeListEnd(); } @@ -66607,9 +66694,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter674 : struct.success) + for (Partition _iter682 : struct.success) { - _iter674.write(oprot); + _iter682.write(oprot); } } } @@ -66627,14 +66714,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 _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) + 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) { - Partition _elem677; // required - _elem677 = new Partition(); - _elem677.read(iprot); - struct.success.add(_elem677); + Partition _elem685; // optional + _elem685 = new Partition(); + _elem685.read(iprot); + struct.success.add(_elem685); } } struct.setSuccessIsSet(true); @@ -68184,14 +68271,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 _list678 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list678.size); - for (int _i679 = 0; _i679 < _list678.size; ++_i679) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list686.size); + for (int _i687 = 0; _i687 < _list686.size; ++_i687) { - Partition _elem680; // required - _elem680 = new Partition(); - _elem680.read(iprot); - struct.new_parts.add(_elem680); + Partition _elem688; // optional + _elem688 = new Partition(); + _elem688.read(iprot); + struct.new_parts.add(_elem688); } iprot.readListEnd(); } @@ -68227,9 +68314,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 _iter681 : struct.new_parts) + for (Partition _iter689 : struct.new_parts) { - _iter681.write(oprot); + _iter689.write(oprot); } oprot.writeListEnd(); } @@ -68272,9 +68359,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 _iter682 : struct.new_parts) + for (Partition _iter690 : struct.new_parts) { - _iter682.write(oprot); + _iter690.write(oprot); } } } @@ -68294,14 +68381,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = 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.new_parts = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - Partition _elem685; // required - _elem685 = new Partition(); - _elem685.read(iprot); - struct.new_parts.add(_elem685); + Partition _elem693; // optional + _elem693 = new Partition(); + _elem693.read(iprot); + struct.new_parts.add(_elem693); } } struct.setNew_partsIsSet(true); @@ -70500,13 +70587,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 _list686 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list694.size); + for (int _i695 = 0; _i695 < _list694.size; ++_i695) { - String _elem688; // required - _elem688 = iprot.readString(); - struct.part_vals.add(_elem688); + String _elem696; // optional + _elem696 = iprot.readString(); + struct.part_vals.add(_elem696); } iprot.readListEnd(); } @@ -70551,9 +70638,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 _iter689 : struct.part_vals) + for (String _iter697 : struct.part_vals) { - oprot.writeString(_iter689); + oprot.writeString(_iter697); } oprot.writeListEnd(); } @@ -70604,9 +70691,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 _iter690 : struct.part_vals) + for (String _iter698 : struct.part_vals) { - oprot.writeString(_iter690); + oprot.writeString(_iter698); } } } @@ -70629,13 +70716,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = 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.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - String _elem693; // required - _elem693 = iprot.readString(); - struct.part_vals.add(_elem693); + String _elem701; // optional + _elem701 = iprot.readString(); + struct.part_vals.add(_elem701); } } struct.setPart_valsIsSet(true); @@ -71512,13 +71599,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 _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; // required - _elem696 = iprot.readString(); - struct.part_vals.add(_elem696); + String _elem704; // optional + _elem704 = iprot.readString(); + struct.part_vals.add(_elem704); } iprot.readListEnd(); } @@ -71552,9 +71639,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 _iter697 : struct.part_vals) + for (String _iter705 : struct.part_vals) { - oprot.writeString(_iter697); + oprot.writeString(_iter705); } oprot.writeListEnd(); } @@ -71591,9 +71678,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 _iter698 : struct.part_vals) + for (String _iter706 : struct.part_vals) { - oprot.writeString(_iter698); + oprot.writeString(_iter706); } } } @@ -71608,13 +71695,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 _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; // required - _elem701 = iprot.readString(); - struct.part_vals.add(_elem701); + String _elem709; // optional + _elem709 = iprot.readString(); + struct.part_vals.add(_elem709); } } struct.setPart_valsIsSet(true); @@ -73772,13 +73859,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 _list702 = iprot.readListBegin(); - struct.success = new ArrayList(_list702.size); - for (int _i703 = 0; _i703 < _list702.size; ++_i703) + org.apache.thrift.protocol.TList _list710 = iprot.readListBegin(); + struct.success = new ArrayList(_list710.size); + for (int _i711 = 0; _i711 < _list710.size; ++_i711) { - String _elem704; // required - _elem704 = iprot.readString(); - struct.success.add(_elem704); + String _elem712; // optional + _elem712 = iprot.readString(); + struct.success.add(_elem712); } iprot.readListEnd(); } @@ -73813,9 +73900,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 _iter705 : struct.success) + for (String _iter713 : struct.success) { - oprot.writeString(_iter705); + oprot.writeString(_iter713); } oprot.writeListEnd(); } @@ -73854,9 +73941,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter706 : struct.success) + for (String _iter714 : struct.success) { - oprot.writeString(_iter706); + oprot.writeString(_iter714); } } } @@ -73871,13 +73958,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 _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - String _elem709; // required - _elem709 = iprot.readString(); - struct.success.add(_elem709); + String _elem717; // optional + _elem717 = iprot.readString(); + struct.success.add(_elem717); } } struct.setSuccessIsSet(true); @@ -74651,15 +74738,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 _map710 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map710.size); - for (int _i711 = 0; _i711 < _map710.size; ++_i711) + org.apache.thrift.protocol.TMap _map718 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map718.size); + for (int _i719 = 0; _i719 < _map718.size; ++_i719) { - String _key712; // required - String _val713; // required - _key712 = iprot.readString(); - _val713 = iprot.readString(); - struct.success.put(_key712, _val713); + String _key720; // required + String _val721; // required + _key720 = iprot.readString(); + _val721 = iprot.readString(); + struct.success.put(_key720, _val721); } iprot.readMapEnd(); } @@ -74694,10 +74781,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 _iter714 : struct.success.entrySet()) + for (Map.Entry _iter722 : struct.success.entrySet()) { - oprot.writeString(_iter714.getKey()); - oprot.writeString(_iter714.getValue()); + oprot.writeString(_iter722.getKey()); + oprot.writeString(_iter722.getValue()); } oprot.writeMapEnd(); } @@ -74736,10 +74823,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 _iter715 : struct.success.entrySet()) + for (Map.Entry _iter723 : struct.success.entrySet()) { - oprot.writeString(_iter715.getKey()); - oprot.writeString(_iter715.getValue()); + oprot.writeString(_iter723.getKey()); + oprot.writeString(_iter723.getValue()); } } } @@ -74754,15 +74841,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 _map716 = 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*_map716.size); - for (int _i717 = 0; _i717 < _map716.size; ++_i717) + 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) { - String _key718; // required - String _val719; // required - _key718 = iprot.readString(); - _val719 = iprot.readString(); - struct.success.put(_key718, _val719); + String _key726; // required + String _val727; // required + _key726 = iprot.readString(); + _val727 = iprot.readString(); + struct.success.put(_key726, _val727); } } struct.setSuccessIsSet(true); @@ -75368,15 +75455,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 _map720 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map720.size); - for (int _i721 = 0; _i721 < _map720.size; ++_i721) + org.apache.thrift.protocol.TMap _map728 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map728.size); + for (int _i729 = 0; _i729 < _map728.size; ++_i729) { - String _key722; // required - String _val723; // required - _key722 = iprot.readString(); - _val723 = iprot.readString(); - struct.part_vals.put(_key722, _val723); + String _key730; // required + String _val731; // required + _key730 = iprot.readString(); + _val731 = iprot.readString(); + struct.part_vals.put(_key730, _val731); } iprot.readMapEnd(); } @@ -75420,10 +75507,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 _iter724 : struct.part_vals.entrySet()) + for (Map.Entry _iter732 : struct.part_vals.entrySet()) { - oprot.writeString(_iter724.getKey()); - oprot.writeString(_iter724.getValue()); + oprot.writeString(_iter732.getKey()); + oprot.writeString(_iter732.getValue()); } oprot.writeMapEnd(); } @@ -75474,10 +75561,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter725 : struct.part_vals.entrySet()) + for (Map.Entry _iter733 : struct.part_vals.entrySet()) { - oprot.writeString(_iter725.getKey()); - oprot.writeString(_iter725.getValue()); + oprot.writeString(_iter733.getKey()); + oprot.writeString(_iter733.getValue()); } } } @@ -75500,15 +75587,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map726 = 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*_map726.size); - for (int _i727 = 0; _i727 < _map726.size; ++_i727) + 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) { - String _key728; // required - String _val729; // required - _key728 = iprot.readString(); - _val729 = iprot.readString(); - struct.part_vals.put(_key728, _val729); + String _key736; // required + String _val737; // required + _key736 = iprot.readString(); + _val737 = iprot.readString(); + struct.part_vals.put(_key736, _val737); } } struct.setPart_valsIsSet(true); @@ -77003,15 +77090,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 _map730 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map730.size); - for (int _i731 = 0; _i731 < _map730.size; ++_i731) + org.apache.thrift.protocol.TMap _map738 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map738.size); + for (int _i739 = 0; _i739 < _map738.size; ++_i739) { - String _key732; // required - String _val733; // required - _key732 = iprot.readString(); - _val733 = iprot.readString(); - struct.part_vals.put(_key732, _val733); + String _key740; // required + String _val741; // required + _key740 = iprot.readString(); + _val741 = iprot.readString(); + struct.part_vals.put(_key740, _val741); } iprot.readMapEnd(); } @@ -77055,10 +77142,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 _iter734 : struct.part_vals.entrySet()) + for (Map.Entry _iter742 : struct.part_vals.entrySet()) { - oprot.writeString(_iter734.getKey()); - oprot.writeString(_iter734.getValue()); + oprot.writeString(_iter742.getKey()); + oprot.writeString(_iter742.getValue()); } oprot.writeMapEnd(); } @@ -77109,10 +77196,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter735 : struct.part_vals.entrySet()) + for (Map.Entry _iter743 : struct.part_vals.entrySet()) { - oprot.writeString(_iter735.getKey()); - oprot.writeString(_iter735.getValue()); + oprot.writeString(_iter743.getKey()); + oprot.writeString(_iter743.getValue()); } } } @@ -77135,15 +77222,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map736 = 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*_map736.size); - for (int _i737 = 0; _i737 < _map736.size; ++_i737) + 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) { - String _key738; // required - String _val739; // required - _key738 = iprot.readString(); - _val739 = iprot.readString(); - struct.part_vals.put(_key738, _val739); + String _key746; // required + String _val747; // required + _key746 = iprot.readString(); + _val747 = iprot.readString(); + struct.part_vals.put(_key746, _val747); } } struct.setPart_valsIsSet(true); @@ -83867,14 +83954,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 _list740 = iprot.readListBegin(); - struct.success = new ArrayList(_list740.size); - for (int _i741 = 0; _i741 < _list740.size; ++_i741) + org.apache.thrift.protocol.TList _list748 = iprot.readListBegin(); + struct.success = new ArrayList(_list748.size); + for (int _i749 = 0; _i749 < _list748.size; ++_i749) { - Index _elem742; // required - _elem742 = new Index(); - _elem742.read(iprot); - struct.success.add(_elem742); + Index _elem750; // optional + _elem750 = new Index(); + _elem750.read(iprot); + struct.success.add(_elem750); } iprot.readListEnd(); } @@ -83918,9 +84005,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 _iter743 : struct.success) + for (Index _iter751 : struct.success) { - _iter743.write(oprot); + _iter751.write(oprot); } oprot.writeListEnd(); } @@ -83967,9 +84054,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter744 : struct.success) + for (Index _iter752 : struct.success) { - _iter744.write(oprot); + _iter752.write(oprot); } } } @@ -83987,14 +84074,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 _list745 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list745.size); - for (int _i746 = 0; _i746 < _list745.size; ++_i746) + 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) { - Index _elem747; // required - _elem747 = new Index(); - _elem747.read(iprot); - struct.success.add(_elem747); + Index _elem755; // optional + _elem755 = new Index(); + _elem755.read(iprot); + struct.success.add(_elem755); } } struct.setSuccessIsSet(true); @@ -84976,13 +85063,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 _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) { - String _elem750; // required - _elem750 = iprot.readString(); - struct.success.add(_elem750); + String _elem758; // optional + _elem758 = iprot.readString(); + struct.success.add(_elem758); } iprot.readListEnd(); } @@ -85017,9 +85104,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 _iter751 : struct.success) + for (String _iter759 : struct.success) { - oprot.writeString(_iter751); + oprot.writeString(_iter759); } oprot.writeListEnd(); } @@ -85058,9 +85145,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter752 : struct.success) + for (String _iter760 : struct.success) { - oprot.writeString(_iter752); + oprot.writeString(_iter760); } } } @@ -85075,13 +85162,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 _list753 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list761.size); + for (int _i762 = 0; _i762 < _list761.size; ++_i762) { - String _elem755; // required - _elem755 = iprot.readString(); - struct.success.add(_elem755); + String _elem763; // optional + _elem763 = iprot.readString(); + struct.success.add(_elem763); } } struct.setSuccessIsSet(true); @@ -98736,13 +98823,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 _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; // required - _elem758 = iprot.readString(); - struct.success.add(_elem758); + String _elem766; // optional + _elem766 = iprot.readString(); + struct.success.add(_elem766); } iprot.readListEnd(); } @@ -98777,9 +98864,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 _iter759 : struct.success) + for (String _iter767 : struct.success) { - oprot.writeString(_iter759); + oprot.writeString(_iter767); } oprot.writeListEnd(); } @@ -98818,9 +98905,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter760 : struct.success) + for (String _iter768 : struct.success) { - oprot.writeString(_iter760); + oprot.writeString(_iter768); } } } @@ -98835,13 +98922,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 _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; // required - _elem763 = iprot.readString(); - struct.success.add(_elem763); + String _elem771; // optional + _elem771 = iprot.readString(); + struct.success.add(_elem771); } } struct.setSuccessIsSet(true); @@ -102184,13 +102271,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 _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; // required - _elem766 = iprot.readString(); - struct.success.add(_elem766); + String _elem774; // optional + _elem774 = iprot.readString(); + struct.success.add(_elem774); } iprot.readListEnd(); } @@ -102225,9 +102312,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 _iter767 : struct.success) + for (String _iter775 : struct.success) { - oprot.writeString(_iter767); + oprot.writeString(_iter775); } oprot.writeListEnd(); } @@ -102266,9 +102353,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter768 : struct.success) + for (String _iter776 : struct.success) { - oprot.writeString(_iter768); + oprot.writeString(_iter776); } } } @@ -102283,13 +102370,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 _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; // required - _elem771 = iprot.readString(); - struct.success.add(_elem771); + String _elem779; // optional + _elem779 = iprot.readString(); + struct.success.add(_elem779); } } struct.setSuccessIsSet(true); @@ -102960,26 +103047,1137 @@ public String toString() { sb.append(this.principal_type); } first = false; - if (!first) sb.append(", "); - sb.append("grantor:"); - if (this.grantor == null) { - sb.append("null"); - } else { - sb.append(this.grantor); - } - first = false; - if (!first) sb.append(", "); - sb.append("grantorType:"); - if (this.grantorType == null) { - sb.append("null"); - } else { - sb.append(this.grantorType); - } - first = false; - if (!first) sb.append(", "); - sb.append("grant_option:"); - sb.append(this.grant_option); - first = false; + if (!first) sb.append(", "); + sb.append("grantor:"); + if (this.grantor == null) { + sb.append("null"); + } else { + sb.append(this.grantor); + } + first = false; + if (!first) sb.append(", "); + sb.append("grantorType:"); + if (this.grantorType == null) { + sb.append("null"); + } else { + sb.append(this.grantorType); + } + first = false; + if (!first) sb.append(", "); + sb.append("grant_option:"); + sb.append(this.grant_option); + 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_argsStandardSchemeFactory implements SchemeFactory { + public grant_role_argsStandardScheme getScheme() { + return new grant_role_argsStandardScheme(); + } + } + + private static class grant_role_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, grant_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; + 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(); } @@ -102999,23 +104197,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 grant_role_argsStandardSchemeFactory implements SchemeFactory { - public grant_role_argsStandardScheme getScheme() { - return new grant_role_argsStandardScheme(); + private static class revoke_role_argsStandardSchemeFactory implements SchemeFactory { + public revoke_role_argsStandardScheme getScheme() { + return new revoke_role_argsStandardScheme(); } } - private static class grant_role_argsStandardScheme extends StandardScheme { + private static class revoke_role_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, grant_role_args struct) throws org.apache.thrift.TException { + 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) @@ -103049,30 +104245,6 @@ 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; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -103082,7 +104254,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); @@ -103101,35 +104273,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()) { @@ -103141,16 +104300,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); } @@ -103160,21 +104310,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); @@ -103187,33 +104328,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 @@ -103291,13 +104420,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) { @@ -103310,7 +104439,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()) { @@ -103318,8 +104447,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 @@ -103426,12 +104555,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; @@ -103473,13 +104602,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) { @@ -103518,7 +104647,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:"); @@ -103559,15 +104688,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) @@ -103603,7 +104732,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); @@ -103623,16 +104752,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()) { @@ -103651,7 +104780,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)) { @@ -103668,32 +104797,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(); @@ -103708,11 +104834,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; @@ -103757,26 +104881,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; } @@ -103784,10 +104904,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; } @@ -103796,40 +104913,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; } @@ -103886,14 +104979,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(); @@ -103915,9 +105000,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(); @@ -103935,8 +105017,6 @@ public boolean isSet(_Fields field) { } switch (field) { - case ROLE_NAME: - return isSetRole_name(); case PRINCIPAL_NAME: return isSetPrincipal_name(); case PRINCIPAL_TYPE: @@ -103949,24 +105029,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) { @@ -103992,11 +105063,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) @@ -104010,24 +105076,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; @@ -104065,17 +105121,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"); @@ -104116,15 +105164,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) @@ -104134,15 +105182,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); @@ -104150,7 +105190,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); @@ -104167,15 +105207,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); @@ -104192,31 +105227,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); } @@ -104226,18 +105255,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); } @@ -104246,19 +105271,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. */ @@ -104323,74 +105348,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() { @@ -104422,7 +105465,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -104440,7 +105483,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(); @@ -104468,21 +105511,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; } @@ -104502,7 +105545,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); @@ -104515,13 +105558,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) { @@ -104560,11 +105603,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:"); @@ -104593,23 +105640,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) @@ -104620,8 +105665,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 _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(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -104645,13 +105701,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 _iter783 : struct.success) + { + _iter783.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -104665,16 +105728,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()) { @@ -104685,7 +105748,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 _iter784 : struct.success) + { + _iter784.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -104693,11 +105762,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 _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.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -104710,29 +105789,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(); @@ -104747,10 +105819,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; } @@ -104794,117 +105864,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; @@ -104913,11 +105936,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(); @@ -104930,10 +105950,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(); } @@ -104942,30 +105960,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; } @@ -104976,43 +105985,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; } @@ -105034,22 +106028,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(")"); @@ -105059,6 +106045,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 { @@ -105077,15 +106066,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) @@ -105095,18 +106084,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); } @@ -105120,18 +106102,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(); @@ -105140,63 +106117,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. */ @@ -105265,19 +106233,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(); @@ -105288,21 +106255,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 @@ -105311,26 +106274,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; } @@ -105378,7 +106326,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((GetPrincipalsInRoleResponse)value); } break; @@ -105424,12 +106372,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; @@ -105471,13 +106419,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) { @@ -105516,7 +106464,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:"); @@ -105541,6 +106489,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 { @@ -105559,15 +106510,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) @@ -105578,19 +106529,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 _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - for (int _i773 = 0; _i773 < _list772.size; ++_i773) - { - Role _elem774; // required - _elem774 = new Role(); - _elem774.read(iprot); - struct.success.add(_elem774); - } - 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); @@ -105614,20 +106555,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 _iter775 : struct.success) - { - _iter775.write(oprot); - } - oprot.writeListEnd(); - } + struct.success.write(oprot); oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -105641,16 +106575,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()) { @@ -105661,13 +106595,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 _iter776 : struct.success) - { - _iter776.write(oprot); - } - } + struct.success.write(oprot); } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -105675,21 +106603,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 _list777 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list777.size); - for (int _i778 = 0; _i778 < _list777.size; ++_i778) - { - Role _elem779; // required - _elem779 = new Role(); - _elem779.read(iprot); - struct.success.add(_elem779); - } - } + struct.success = new GetPrincipalsInRoleResponse(); + struct.success.read(iprot); struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -106199,13 +107118,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 _list780 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list780.size); - for (int _i781 = 0; _i781 < _list780.size; ++_i781) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list788.size); + for (int _i789 = 0; _i789 < _list788.size; ++_i789) { - String _elem782; // required - _elem782 = iprot.readString(); - struct.group_names.add(_elem782); + String _elem790; // optional + _elem790 = iprot.readString(); + struct.group_names.add(_elem790); } iprot.readListEnd(); } @@ -106241,9 +107160,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 _iter783 : struct.group_names) + for (String _iter791 : struct.group_names) { - oprot.writeString(_iter783); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -106286,9 +107205,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 _iter784 : struct.group_names) + for (String _iter792 : struct.group_names) { - oprot.writeString(_iter784); + oprot.writeString(_iter792); } } } @@ -106309,13 +107228,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list785.size); - for (int _i786 = 0; _i786 < _list785.size; ++_i786) + 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) { - String _elem787; // required - _elem787 = iprot.readString(); - struct.group_names.add(_elem787); + String _elem795; // optional + _elem795 = iprot.readString(); + struct.group_names.add(_elem795); } } struct.setGroup_namesIsSet(true); @@ -107773,14 +108692,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 _list788 = iprot.readListBegin(); - struct.success = new ArrayList(_list788.size); - for (int _i789 = 0; _i789 < _list788.size; ++_i789) + org.apache.thrift.protocol.TList _list796 = iprot.readListBegin(); + struct.success = new ArrayList(_list796.size); + for (int _i797 = 0; _i797 < _list796.size; ++_i797) { - HiveObjectPrivilege _elem790; // required - _elem790 = new HiveObjectPrivilege(); - _elem790.read(iprot); - struct.success.add(_elem790); + HiveObjectPrivilege _elem798; // optional + _elem798 = new HiveObjectPrivilege(); + _elem798.read(iprot); + struct.success.add(_elem798); } iprot.readListEnd(); } @@ -107815,9 +108734,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 _iter791 : struct.success) + for (HiveObjectPrivilege _iter799 : struct.success) { - _iter791.write(oprot); + _iter799.write(oprot); } oprot.writeListEnd(); } @@ -107856,9 +108775,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter792 : struct.success) + for (HiveObjectPrivilege _iter800 : struct.success) { - _iter792.write(oprot); + _iter800.write(oprot); } } } @@ -107873,14 +108792,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 _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) + 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) { - HiveObjectPrivilege _elem795; // required - _elem795 = new HiveObjectPrivilege(); - _elem795.read(iprot); - struct.success.add(_elem795); + HiveObjectPrivilege _elem803; // optional + _elem803 = new HiveObjectPrivilege(); + _elem803.read(iprot); + struct.success.add(_elem803); } } struct.setSuccessIsSet(true); @@ -109953,13 +110872,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 _list796 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list796.size); - for (int _i797 = 0; _i797 < _list796.size; ++_i797) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list804.size); + for (int _i805 = 0; _i805 < _list804.size; ++_i805) { - String _elem798; // required - _elem798 = iprot.readString(); - struct.group_names.add(_elem798); + String _elem806; // optional + _elem806 = iprot.readString(); + struct.group_names.add(_elem806); } iprot.readListEnd(); } @@ -109990,9 +110909,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 _iter799 : struct.group_names) + for (String _iter807 : struct.group_names) { - oprot.writeString(_iter799); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -110029,9 +110948,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 _iter800 : struct.group_names) + for (String _iter808 : struct.group_names) { - oprot.writeString(_iter800); + oprot.writeString(_iter808); } } } @@ -110047,13 +110966,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - 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) + 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) { - String _elem803; // required - _elem803 = iprot.readString(); - struct.group_names.add(_elem803); + String _elem811; // optional + _elem811 = iprot.readString(); + struct.group_names.add(_elem811); } } struct.setGroup_namesIsSet(true); @@ -110459,13 +111378,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 _list804 = iprot.readListBegin(); - struct.success = new ArrayList(_list804.size); - for (int _i805 = 0; _i805 < _list804.size; ++_i805) + org.apache.thrift.protocol.TList _list812 = iprot.readListBegin(); + struct.success = new ArrayList(_list812.size); + for (int _i813 = 0; _i813 < _list812.size; ++_i813) { - String _elem806; // required - _elem806 = iprot.readString(); - struct.success.add(_elem806); + String _elem814; // optional + _elem814 = iprot.readString(); + struct.success.add(_elem814); } iprot.readListEnd(); } @@ -110500,9 +111419,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 _iter807 : struct.success) + for (String _iter815 : struct.success) { - oprot.writeString(_iter807); + oprot.writeString(_iter815); } oprot.writeListEnd(); } @@ -110541,9 +111460,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter808 : struct.success) + for (String _iter816 : struct.success) { - oprot.writeString(_iter808); + oprot.writeString(_iter816); } } } @@ -110558,13 +111477,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 _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list817.size); + for (int _i818 = 0; _i818 < _list817.size; ++_i818) { - String _elem811; // required - _elem811 = iprot.readString(); - struct.success.add(_elem811); + String _elem819; // optional + _elem819 = iprot.readString(); + struct.success.add(_elem819); } } struct.setSuccessIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java index bb81e3c..1882b57 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java @@ -618,7 +618,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Type struct) throws struct.fields = new ArrayList(_list0.size); for (int _i1 = 0; _i1 < _list0.size; ++_i1) { - FieldSchema _elem2; // required + FieldSchema _elem2; // optional _elem2 = new FieldSchema(); _elem2.read(iprot); struct.fields.add(_elem2); @@ -749,7 +749,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Type struct) throws struct.fields = new ArrayList(_list5.size); for (int _i6 = 0; _i6 < _list5.size; ++_i6) { - FieldSchema _elem7; // required + FieldSchema _elem7; // optional _elem7 = new FieldSchema(); _elem7.read(iprot); struct.fields.add(_elem7); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 1dfbc42..32ce246 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -100,6 +100,7 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function grant_role($role_name, $principal_name, $principal_type, $grantor, $grantorType, $grant_option); 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_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); @@ -5073,6 +5074,60 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("list_roles failed: unknown result"); } + public function get_principals_in_role(\metastore\GetPrincipalsInRoleRequest $request) + { + $this->send_get_principals_in_role($request); + return $this->recv_get_principals_in_role(); + } + + public function send_get_principals_in_role(\metastore\GetPrincipalsInRoleRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_principals_in_role_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_principals_in_role', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_principals_in_role', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_principals_in_role() + { + $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_principals_in_role_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_principals_in_role_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_principals_in_role 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); @@ -6892,14 +6947,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $xfer += $input->readString($elem368); - $this->success []= $elem368; + $elem375 = null; + $xfer += $input->readString($elem375); + $this->success []= $elem375; } $xfer += $input->readListEnd(); } else { @@ -6935,9 +6990,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter369) + foreach ($this->success as $iter376) { - $xfer += $output->writeString($iter369); + $xfer += $output->writeString($iter376); } } $output->writeListEnd(); @@ -7062,14 +7117,14 @@ class ThriftHiveMetastore_get_all_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 { @@ -7105,9 +7160,9 @@ class ThriftHiveMetastore_get_all_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(); @@ -8048,18 +8103,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size377 = 0; - $_ktype378 = 0; - $_vtype379 = 0; - $xfer += $input->readMapBegin($_ktype378, $_vtype379, $_size377); - for ($_i381 = 0; $_i381 < $_size377; ++$_i381) + $_size384 = 0; + $_ktype385 = 0; + $_vtype386 = 0; + $xfer += $input->readMapBegin($_ktype385, $_vtype386, $_size384); + for ($_i388 = 0; $_i388 < $_size384; ++$_i388) { - $key382 = ''; - $val383 = new \metastore\Type(); - $xfer += $input->readString($key382); - $val383 = new \metastore\Type(); - $xfer += $val383->read($input); - $this->success[$key382] = $val383; + $key389 = ''; + $val390 = new \metastore\Type(); + $xfer += $input->readString($key389); + $val390 = new \metastore\Type(); + $xfer += $val390->read($input); + $this->success[$key389] = $val390; } $xfer += $input->readMapEnd(); } else { @@ -8095,10 +8150,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter384 => $viter385) + foreach ($this->success as $kiter391 => $viter392) { - $xfer += $output->writeString($kiter384); - $xfer += $viter385->write($output); + $xfer += $output->writeString($kiter391); + $xfer += $viter392->write($output); } } $output->writeMapEnd(); @@ -8284,15 +8339,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size386 = 0; - $_etype389 = 0; - $xfer += $input->readListBegin($_etype389, $_size386); - for ($_i390 = 0; $_i390 < $_size386; ++$_i390) + $_size393 = 0; + $_etype396 = 0; + $xfer += $input->readListBegin($_etype396, $_size393); + for ($_i397 = 0; $_i397 < $_size393; ++$_i397) { - $elem391 = null; - $elem391 = new \metastore\FieldSchema(); - $xfer += $elem391->read($input); - $this->success []= $elem391; + $elem398 = null; + $elem398 = new \metastore\FieldSchema(); + $xfer += $elem398->read($input); + $this->success []= $elem398; } $xfer += $input->readListEnd(); } else { @@ -8344,9 +8399,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter392) + foreach ($this->success as $iter399) { - $xfer += $iter392->write($output); + $xfer += $iter399->write($output); } } $output->writeListEnd(); @@ -8542,15 +8597,15 @@ class ThriftHiveMetastore_get_schema_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 { @@ -8602,9 +8657,9 @@ class ThriftHiveMetastore_get_schema_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(); @@ -9681,14 +9736,14 @@ class ThriftHiveMetastore_get_tables_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; - $xfer += $input->readString($elem405); - $this->success []= $elem405; + $elem412 = null; + $xfer += $input->readString($elem412); + $this->success []= $elem412; } $xfer += $input->readListEnd(); } else { @@ -9724,9 +9779,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter406) + foreach ($this->success as $iter413) { - $xfer += $output->writeString($iter406); + $xfer += $output->writeString($iter413); } } $output->writeListEnd(); @@ -9873,14 +9928,14 @@ class ThriftHiveMetastore_get_all_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 { @@ -9916,9 +9971,9 @@ class ThriftHiveMetastore_get_all_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(); @@ -10212,14 +10267,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = 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->tbl_names []= $elem419; + $elem426 = null; + $xfer += $input->readString($elem426); + $this->tbl_names []= $elem426; } $xfer += $input->readListEnd(); } else { @@ -10252,9 +10307,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter420) + foreach ($this->tbl_names as $iter427) { - $xfer += $output->writeString($iter420); + $xfer += $output->writeString($iter427); } } $output->writeListEnd(); @@ -10343,15 +10398,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem426 = new \metastore\Table(); - $xfer += $elem426->read($input); - $this->success []= $elem426; + $elem433 = null; + $elem433 = new \metastore\Table(); + $xfer += $elem433->read($input); + $this->success []= $elem433; } $xfer += $input->readListEnd(); } else { @@ -10403,9 +10458,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter427) + foreach ($this->success as $iter434) { - $xfer += $iter427->write($output); + $xfer += $iter434->write($output); } } $output->writeListEnd(); @@ -10620,14 +10675,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_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; - $xfer += $input->readString($elem433); - $this->success []= $elem433; + $elem440 = null; + $xfer += $input->readString($elem440); + $this->success []= $elem440; } $xfer += $input->readListEnd(); } else { @@ -10679,9 +10734,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter434) + foreach ($this->success as $iter441) { - $xfer += $output->writeString($iter434); + $xfer += $output->writeString($iter441); } } $output->writeListEnd(); @@ -11674,15 +11729,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = 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; - $elem440 = new \metastore\Partition(); - $xfer += $elem440->read($input); - $this->new_parts []= $elem440; + $elem447 = null; + $elem447 = new \metastore\Partition(); + $xfer += $elem447->read($input); + $this->new_parts []= $elem447; } $xfer += $input->readListEnd(); } else { @@ -11710,9 +11765,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter441) + foreach ($this->new_parts as $iter448) { - $xfer += $iter441->write($output); + $xfer += $iter448->write($output); } } $output->writeListEnd(); @@ -11941,14 +11996,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem447); - $this->part_vals []= $elem447; + $elem454 = null; + $xfer += $input->readString($elem454); + $this->part_vals []= $elem454; } $xfer += $input->readListEnd(); } else { @@ -11986,9 +12041,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter448) + foreach ($this->part_vals as $iter455) { - $xfer += $output->writeString($iter448); + $xfer += $output->writeString($iter455); } } $output->writeListEnd(); @@ -12451,14 +12506,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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 { @@ -12504,9 +12559,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_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(); @@ -13291,14 +13346,14 @@ class ThriftHiveMetastore_drop_partition_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 { @@ -13343,9 +13398,9 @@ class ThriftHiveMetastore_drop_partition_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(); @@ -13574,14 +13629,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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 { @@ -13634,9 +13689,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_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(); @@ -14575,14 +14630,14 @@ class ThriftHiveMetastore_get_partition_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 { @@ -14620,9 +14675,9 @@ class ThriftHiveMetastore_get_partition_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(); @@ -14840,17 +14895,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size477 = 0; - $_ktype478 = 0; - $_vtype479 = 0; - $xfer += $input->readMapBegin($_ktype478, $_vtype479, $_size477); - for ($_i481 = 0; $_i481 < $_size477; ++$_i481) + $_size484 = 0; + $_ktype485 = 0; + $_vtype486 = 0; + $xfer += $input->readMapBegin($_ktype485, $_vtype486, $_size484); + for ($_i488 = 0; $_i488 < $_size484; ++$_i488) { - $key482 = ''; - $val483 = ''; - $xfer += $input->readString($key482); - $xfer += $input->readString($val483); - $this->partitionSpecs[$key482] = $val483; + $key489 = ''; + $val490 = ''; + $xfer += $input->readString($key489); + $xfer += $input->readString($val490); + $this->partitionSpecs[$key489] = $val490; } $xfer += $input->readMapEnd(); } else { @@ -14906,10 +14961,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter484 => $viter485) + foreach ($this->partitionSpecs as $kiter491 => $viter492) { - $xfer += $output->writeString($kiter484); - $xfer += $output->writeString($viter485); + $xfer += $output->writeString($kiter491); + $xfer += $output->writeString($viter492); } } $output->writeMapEnd(); @@ -15205,14 +15260,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size486 = 0; - $_etype489 = 0; - $xfer += $input->readListBegin($_etype489, $_size486); - for ($_i490 = 0; $_i490 < $_size486; ++$_i490) + $_size493 = 0; + $_etype496 = 0; + $xfer += $input->readListBegin($_etype496, $_size493); + for ($_i497 = 0; $_i497 < $_size493; ++$_i497) { - $elem491 = null; - $xfer += $input->readString($elem491); - $this->part_vals []= $elem491; + $elem498 = null; + $xfer += $input->readString($elem498); + $this->part_vals []= $elem498; } $xfer += $input->readListEnd(); } else { @@ -15229,14 +15284,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size492 = 0; - $_etype495 = 0; - $xfer += $input->readListBegin($_etype495, $_size492); - for ($_i496 = 0; $_i496 < $_size492; ++$_i496) + $_size499 = 0; + $_etype502 = 0; + $xfer += $input->readListBegin($_etype502, $_size499); + for ($_i503 = 0; $_i503 < $_size499; ++$_i503) { - $elem497 = null; - $xfer += $input->readString($elem497); - $this->group_names []= $elem497; + $elem504 = null; + $xfer += $input->readString($elem504); + $this->group_names []= $elem504; } $xfer += $input->readListEnd(); } else { @@ -15274,9 +15329,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter498) + foreach ($this->part_vals as $iter505) { - $xfer += $output->writeString($iter498); + $xfer += $output->writeString($iter505); } } $output->writeListEnd(); @@ -15296,9 +15351,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter499) + foreach ($this->group_names as $iter506) { - $xfer += $output->writeString($iter499); + $xfer += $output->writeString($iter506); } } $output->writeListEnd(); @@ -15844,15 +15899,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size500 = 0; - $_etype503 = 0; - $xfer += $input->readListBegin($_etype503, $_size500); - for ($_i504 = 0; $_i504 < $_size500; ++$_i504) + $_size507 = 0; + $_etype510 = 0; + $xfer += $input->readListBegin($_etype510, $_size507); + for ($_i511 = 0; $_i511 < $_size507; ++$_i511) { - $elem505 = null; - $elem505 = new \metastore\Partition(); - $xfer += $elem505->read($input); - $this->success []= $elem505; + $elem512 = null; + $elem512 = new \metastore\Partition(); + $xfer += $elem512->read($input); + $this->success []= $elem512; } $xfer += $input->readListEnd(); } else { @@ -15896,9 +15951,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter506) + foreach ($this->success as $iter513) { - $xfer += $iter506->write($output); + $xfer += $iter513->write($output); } } $output->writeListEnd(); @@ -16029,14 +16084,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem512); - $this->group_names []= $elem512; + $elem519 = null; + $xfer += $input->readString($elem519); + $this->group_names []= $elem519; } $xfer += $input->readListEnd(); } else { @@ -16084,9 +16139,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter513) + foreach ($this->group_names as $iter520) { - $xfer += $output->writeString($iter513); + $xfer += $output->writeString($iter520); } } $output->writeListEnd(); @@ -16166,15 +16221,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem519 = new \metastore\Partition(); - $xfer += $elem519->read($input); - $this->success []= $elem519; + $elem526 = null; + $elem526 = new \metastore\Partition(); + $xfer += $elem526->read($input); + $this->success []= $elem526; } $xfer += $input->readListEnd(); } else { @@ -16218,9 +16273,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter520) + foreach ($this->success as $iter527) { - $xfer += $iter520->write($output); + $xfer += $iter527->write($output); } } $output->writeListEnd(); @@ -16412,14 +16467,14 @@ class ThriftHiveMetastore_get_partition_names_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; - $xfer += $input->readString($elem526); - $this->success []= $elem526; + $elem533 = null; + $xfer += $input->readString($elem533); + $this->success []= $elem533; } $xfer += $input->readListEnd(); } else { @@ -16455,9 +16510,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter527) + foreach ($this->success as $iter534) { - $xfer += $output->writeString($iter527); + $xfer += $output->writeString($iter534); } } $output->writeListEnd(); @@ -16561,14 +16616,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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->part_vals []= $elem533; + $elem540 = null; + $xfer += $input->readString($elem540); + $this->part_vals []= $elem540; } $xfer += $input->readListEnd(); } else { @@ -16613,9 +16668,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter534) + foreach ($this->part_vals as $iter541) { - $xfer += $output->writeString($iter534); + $xfer += $output->writeString($iter541); } } $output->writeListEnd(); @@ -16700,15 +16755,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem540 = new \metastore\Partition(); - $xfer += $elem540->read($input); - $this->success []= $elem540; + $elem547 = null; + $elem547 = new \metastore\Partition(); + $xfer += $elem547->read($input); + $this->success []= $elem547; } $xfer += $input->readListEnd(); } else { @@ -16752,9 +16807,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter541) + foreach ($this->success as $iter548) { - $xfer += $iter541->write($output); + $xfer += $iter548->write($output); } } $output->writeListEnd(); @@ -16883,14 +16938,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem547); - $this->part_vals []= $elem547; + $elem554 = null; + $xfer += $input->readString($elem554); + $this->part_vals []= $elem554; } $xfer += $input->readListEnd(); } else { @@ -16914,14 +16969,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size548 = 0; - $_etype551 = 0; - $xfer += $input->readListBegin($_etype551, $_size548); - for ($_i552 = 0; $_i552 < $_size548; ++$_i552) + $_size555 = 0; + $_etype558 = 0; + $xfer += $input->readListBegin($_etype558, $_size555); + for ($_i559 = 0; $_i559 < $_size555; ++$_i559) { - $elem553 = null; - $xfer += $input->readString($elem553); - $this->group_names []= $elem553; + $elem560 = null; + $xfer += $input->readString($elem560); + $this->group_names []= $elem560; } $xfer += $input->readListEnd(); } else { @@ -16959,9 +17014,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter554) + foreach ($this->part_vals as $iter561) { - $xfer += $output->writeString($iter554); + $xfer += $output->writeString($iter561); } } $output->writeListEnd(); @@ -16986,9 +17041,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter555) + foreach ($this->group_names as $iter562) { - $xfer += $output->writeString($iter555); + $xfer += $output->writeString($iter562); } } $output->writeListEnd(); @@ -17068,15 +17123,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size556 = 0; - $_etype559 = 0; - $xfer += $input->readListBegin($_etype559, $_size556); - for ($_i560 = 0; $_i560 < $_size556; ++$_i560) + $_size563 = 0; + $_etype566 = 0; + $xfer += $input->readListBegin($_etype566, $_size563); + for ($_i567 = 0; $_i567 < $_size563; ++$_i567) { - $elem561 = null; - $elem561 = new \metastore\Partition(); - $xfer += $elem561->read($input); - $this->success []= $elem561; + $elem568 = null; + $elem568 = new \metastore\Partition(); + $xfer += $elem568->read($input); + $this->success []= $elem568; } $xfer += $input->readListEnd(); } else { @@ -17120,9 +17175,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter562) + foreach ($this->success as $iter569) { - $xfer += $iter562->write($output); + $xfer += $iter569->write($output); } } $output->writeListEnd(); @@ -17231,14 +17286,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem568); - $this->part_vals []= $elem568; + $elem575 = null; + $xfer += $input->readString($elem575); + $this->part_vals []= $elem575; } $xfer += $input->readListEnd(); } else { @@ -17283,9 +17338,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter569) + foreach ($this->part_vals as $iter576) { - $xfer += $output->writeString($iter569); + $xfer += $output->writeString($iter576); } } $output->writeListEnd(); @@ -17369,14 +17424,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem575; + $elem582 = null; + $xfer += $input->readString($elem582); + $this->success []= $elem582; } $xfer += $input->readListEnd(); } else { @@ -17420,9 +17475,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter576) + foreach ($this->success as $iter583) { - $xfer += $output->writeString($iter576); + $xfer += $output->writeString($iter583); } } $output->writeListEnd(); @@ -17644,15 +17699,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_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; - $elem582 = new \metastore\Partition(); - $xfer += $elem582->read($input); - $this->success []= $elem582; + $elem589 = null; + $elem589 = new \metastore\Partition(); + $xfer += $elem589->read($input); + $this->success []= $elem589; } $xfer += $input->readListEnd(); } else { @@ -17696,9 +17751,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter583) + foreach ($this->success as $iter590) { - $xfer += $iter583->write($output); + $xfer += $iter590->write($output); } } $output->writeListEnd(); @@ -17997,14 +18052,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = 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; - $xfer += $input->readString($elem589); - $this->names []= $elem589; + $elem596 = null; + $xfer += $input->readString($elem596); + $this->names []= $elem596; } $xfer += $input->readListEnd(); } else { @@ -18042,9 +18097,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter590) + foreach ($this->names as $iter597) { - $xfer += $output->writeString($iter590); + $xfer += $output->writeString($iter597); } } $output->writeListEnd(); @@ -18124,15 +18179,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem596 = new \metastore\Partition(); - $xfer += $elem596->read($input); - $this->success []= $elem596; + $elem603 = null; + $elem603 = new \metastore\Partition(); + $xfer += $elem603->read($input); + $this->success []= $elem603; } $xfer += $input->readListEnd(); } else { @@ -18176,9 +18231,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter597) + foreach ($this->success as $iter604) { - $xfer += $iter597->write($output); + $xfer += $iter604->write($output); } } $output->writeListEnd(); @@ -18493,15 +18548,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = 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->new_parts []= $elem603; + $elem610 = null; + $elem610 = new \metastore\Partition(); + $xfer += $elem610->read($input); + $this->new_parts []= $elem610; } $xfer += $input->readListEnd(); } else { @@ -18539,9 +18594,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter604) + foreach ($this->new_parts as $iter611) { - $xfer += $iter604->write($output); + $xfer += $iter611->write($output); } } $output->writeListEnd(); @@ -18975,14 +19030,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem610); - $this->part_vals []= $elem610; + $elem617 = null; + $xfer += $input->readString($elem617); + $this->part_vals []= $elem617; } $xfer += $input->readListEnd(); } else { @@ -19028,9 +19083,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter611) + foreach ($this->part_vals as $iter618) { - $xfer += $output->writeString($iter611); + $xfer += $output->writeString($iter618); } } $output->writeListEnd(); @@ -19203,14 +19258,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: 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 { @@ -19245,9 +19300,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_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(); @@ -19674,14 +19729,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem624; + $elem631 = null; + $xfer += $input->readString($elem631); + $this->success []= $elem631; } $xfer += $input->readListEnd(); } else { @@ -19717,9 +19772,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter625) + foreach ($this->success as $iter632) { - $xfer += $output->writeString($iter625); + $xfer += $output->writeString($iter632); } } $output->writeListEnd(); @@ -19870,17 +19925,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size626 = 0; - $_ktype627 = 0; - $_vtype628 = 0; - $xfer += $input->readMapBegin($_ktype627, $_vtype628, $_size626); - for ($_i630 = 0; $_i630 < $_size626; ++$_i630) + $_size633 = 0; + $_ktype634 = 0; + $_vtype635 = 0; + $xfer += $input->readMapBegin($_ktype634, $_vtype635, $_size633); + for ($_i637 = 0; $_i637 < $_size633; ++$_i637) { - $key631 = ''; - $val632 = ''; - $xfer += $input->readString($key631); - $xfer += $input->readString($val632); - $this->success[$key631] = $val632; + $key638 = ''; + $val639 = ''; + $xfer += $input->readString($key638); + $xfer += $input->readString($val639); + $this->success[$key638] = $val639; } $xfer += $input->readMapEnd(); } else { @@ -19916,10 +19971,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter633 => $viter634) + foreach ($this->success as $kiter640 => $viter641) { - $xfer += $output->writeString($kiter633); - $xfer += $output->writeString($viter634); + $xfer += $output->writeString($kiter640); + $xfer += $output->writeString($viter641); } } $output->writeMapEnd(); @@ -20027,17 +20082,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size635 = 0; - $_ktype636 = 0; - $_vtype637 = 0; - $xfer += $input->readMapBegin($_ktype636, $_vtype637, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size642 = 0; + $_ktype643 = 0; + $_vtype644 = 0; + $xfer += $input->readMapBegin($_ktype643, $_vtype644, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $key640 = ''; - $val641 = ''; - $xfer += $input->readString($key640); - $xfer += $input->readString($val641); - $this->part_vals[$key640] = $val641; + $key647 = ''; + $val648 = ''; + $xfer += $input->readString($key647); + $xfer += $input->readString($val648); + $this->part_vals[$key647] = $val648; } $xfer += $input->readMapEnd(); } else { @@ -20082,10 +20137,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter642 => $viter643) + foreach ($this->part_vals as $kiter649 => $viter650) { - $xfer += $output->writeString($kiter642); - $xfer += $output->writeString($viter643); + $xfer += $output->writeString($kiter649); + $xfer += $output->writeString($viter650); } } $output->writeMapEnd(); @@ -20377,17 +20432,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size644 = 0; - $_ktype645 = 0; - $_vtype646 = 0; - $xfer += $input->readMapBegin($_ktype645, $_vtype646, $_size644); - for ($_i648 = 0; $_i648 < $_size644; ++$_i648) + $_size651 = 0; + $_ktype652 = 0; + $_vtype653 = 0; + $xfer += $input->readMapBegin($_ktype652, $_vtype653, $_size651); + for ($_i655 = 0; $_i655 < $_size651; ++$_i655) { - $key649 = ''; - $val650 = ''; - $xfer += $input->readString($key649); - $xfer += $input->readString($val650); - $this->part_vals[$key649] = $val650; + $key656 = ''; + $val657 = ''; + $xfer += $input->readString($key656); + $xfer += $input->readString($val657); + $this->part_vals[$key656] = $val657; } $xfer += $input->readMapEnd(); } else { @@ -20432,10 +20487,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter651 => $viter652) + foreach ($this->part_vals as $kiter658 => $viter659) { - $xfer += $output->writeString($kiter651); - $xfer += $output->writeString($viter652); + $xfer += $output->writeString($kiter658); + $xfer += $output->writeString($viter659); } } $output->writeMapEnd(); @@ -21795,15 +21850,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size660 = 0; + $_etype663 = 0; + $xfer += $input->readListBegin($_etype663, $_size660); + for ($_i664 = 0; $_i664 < $_size660; ++$_i664) { - $elem658 = null; - $elem658 = new \metastore\Index(); - $xfer += $elem658->read($input); - $this->success []= $elem658; + $elem665 = null; + $elem665 = new \metastore\Index(); + $xfer += $elem665->read($input); + $this->success []= $elem665; } $xfer += $input->readListEnd(); } else { @@ -21847,9 +21902,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter659) + foreach ($this->success as $iter666) { - $xfer += $iter659->write($output); + $xfer += $iter666->write($output); } } $output->writeListEnd(); @@ -22041,14 +22096,14 @@ class ThriftHiveMetastore_get_index_names_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; - $xfer += $input->readString($elem665); - $this->success []= $elem665; + $elem672 = null; + $xfer += $input->readString($elem672); + $this->success []= $elem672; } $xfer += $input->readListEnd(); } else { @@ -22084,9 +22139,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter666) + foreach ($this->success as $iter673) { - $xfer += $output->writeString($iter666); + $xfer += $output->writeString($iter673); } } $output->writeListEnd(); @@ -24879,14 +24934,14 @@ class ThriftHiveMetastore_get_functions_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 { @@ -24922,9 +24977,9 @@ class ThriftHiveMetastore_get_functions_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(); @@ -25599,14 +25654,14 @@ class ThriftHiveMetastore_get_role_names_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 { @@ -25642,9 +25697,9 @@ class ThriftHiveMetastore_get_role_names_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(); @@ -26284,15 +26339,15 @@ class ThriftHiveMetastore_list_roles_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; - $elem686 = new \metastore\Role(); - $xfer += $elem686->read($input); - $this->success []= $elem686; + $elem693 = null; + $elem693 = new \metastore\Role(); + $xfer += $elem693->read($input); + $this->success []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -26328,9 +26383,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter687) + foreach ($this->success as $iter694) { - $xfer += $iter687->write($output); + $xfer += $iter694->write($output); } } $output->writeListEnd(); @@ -26349,6 +26404,182 @@ class ThriftHiveMetastore_list_roles_result { } +class ThriftHiveMetastore_get_principals_in_role_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\GetPrincipalsInRoleRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_principals_in_role_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\GetPrincipalsInRoleRequest(); + $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_principals_in_role_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_principals_in_role_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\GetPrincipalsInRoleResponse', + ), + 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_principals_in_role_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\GetPrincipalsInRoleResponse(); + $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_principals_in_role_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; @@ -26428,14 +26659,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem693); - $this->group_names []= $elem693; + $elem700 = null; + $xfer += $input->readString($elem700); + $this->group_names []= $elem700; } $xfer += $input->readListEnd(); } else { @@ -26476,9 +26707,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter694) + foreach ($this->group_names as $iter701) { - $xfer += $output->writeString($iter694); + $xfer += $output->writeString($iter701); } } $output->writeListEnd(); @@ -26765,15 +26996,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = 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; - $elem700 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem700->read($input); - $this->success []= $elem700; + $elem707 = null; + $elem707 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem707->read($input); + $this->success []= $elem707; } $xfer += $input->readListEnd(); } else { @@ -26809,9 +27040,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter701) + foreach ($this->success as $iter708) { - $xfer += $iter701->write($output); + $xfer += $iter708->write($output); } } $output->writeListEnd(); @@ -27234,14 +27465,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem707); - $this->group_names []= $elem707; + $elem714 = null; + $xfer += $input->readString($elem714); + $this->group_names []= $elem714; } $xfer += $input->readListEnd(); } else { @@ -27274,9 +27505,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter708) + foreach ($this->group_names as $iter715) { - $xfer += $output->writeString($iter708); + $xfer += $output->writeString($iter715); } } $output->writeListEnd(); @@ -27346,14 +27577,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = 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->success []= $elem714; + $elem721 = null; + $xfer += $input->readString($elem721); + $this->success []= $elem721; } $xfer += $input->readListEnd(); } else { @@ -27389,9 +27620,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter715) + foreach ($this->success as $iter722) { - $xfer += $output->writeString($iter715); + $xfer += $output->writeString($iter722); } } $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 6e1e3bb..39062f9 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -1559,6 +1559,370 @@ class Role { } +class RolePrincipalGrant { + static $_TSPEC; + + public $roleName = null; + public $principalName = null; + public $principalType = null; + public $grantOption = null; + public $grantTime = null; + public $grantorName = null; + public $grantorPrincipalType = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'roleName', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'principalName', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'principalType', + 'type' => TType::I32, + ), + 4 => array( + 'var' => 'grantOption', + 'type' => TType::BOOL, + ), + 5 => array( + 'var' => 'grantTime', + 'type' => TType::I32, + ), + 6 => array( + 'var' => 'grantorName', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'grantorPrincipalType', + 'type' => TType::I32, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['roleName'])) { + $this->roleName = $vals['roleName']; + } + 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['grantorName'])) { + $this->grantorName = $vals['grantorName']; + } + if (isset($vals['grantorPrincipalType'])) { + $this->grantorPrincipalType = $vals['grantorPrincipalType']; + } + } + } + + public function getName() { + return 'RolePrincipalGrant'; + } + + 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->roleName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->principalName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->principalType); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::BOOL) { + $xfer += $input->readBool($this->grantOption); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->grantTime); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->grantorName); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->grantorPrincipalType); + } 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('RolePrincipalGrant'); + if ($this->roleName !== null) { + $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1); + $xfer += $output->writeString($this->roleName); + $xfer += $output->writeFieldEnd(); + } + if ($this->principalName !== null) { + $xfer += $output->writeFieldBegin('principalName', TType::STRING, 2); + $xfer += $output->writeString($this->principalName); + $xfer += $output->writeFieldEnd(); + } + if ($this->principalType !== null) { + $xfer += $output->writeFieldBegin('principalType', TType::I32, 3); + $xfer += $output->writeI32($this->principalType); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantOption !== null) { + $xfer += $output->writeFieldBegin('grantOption', TType::BOOL, 4); + $xfer += $output->writeBool($this->grantOption); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantTime !== null) { + $xfer += $output->writeFieldBegin('grantTime', TType::I32, 5); + $xfer += $output->writeI32($this->grantTime); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantorName !== null) { + $xfer += $output->writeFieldBegin('grantorName', TType::STRING, 6); + $xfer += $output->writeString($this->grantorName); + $xfer += $output->writeFieldEnd(); + } + if ($this->grantorPrincipalType !== null) { + $xfer += $output->writeFieldBegin('grantorPrincipalType', TType::I32, 7); + $xfer += $output->writeI32($this->grantorPrincipalType); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPrincipalsInRoleRequest { + static $_TSPEC; + + public $roleName = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'roleName', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['roleName'])) { + $this->roleName = $vals['roleName']; + } + } + } + + public function getName() { + return 'GetPrincipalsInRoleRequest'; + } + + 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->roleName); + } 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('GetPrincipalsInRoleRequest'); + if ($this->roleName !== null) { + $xfer += $output->writeFieldBegin('roleName', TType::STRING, 1); + $xfer += $output->writeString($this->roleName); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class GetPrincipalsInRoleResponse { + 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 'GetPrincipalsInRoleResponse'; + } + + 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('GetPrincipalsInRoleResponse'); + 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 Database { static $_TSPEC; @@ -1680,17 +2044,17 @@ class Database { case 4: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size69 = 0; - $_ktype70 = 0; - $_vtype71 = 0; - $xfer += $input->readMapBegin($_ktype70, $_vtype71, $_size69); - for ($_i73 = 0; $_i73 < $_size69; ++$_i73) + $_size76 = 0; + $_ktype77 = 0; + $_vtype78 = 0; + $xfer += $input->readMapBegin($_ktype77, $_vtype78, $_size76); + for ($_i80 = 0; $_i80 < $_size76; ++$_i80) { - $key74 = ''; - $val75 = ''; - $xfer += $input->readString($key74); - $xfer += $input->readString($val75); - $this->parameters[$key74] = $val75; + $key81 = ''; + $val82 = ''; + $xfer += $input->readString($key81); + $xfer += $input->readString($val82); + $this->parameters[$key81] = $val82; } $xfer += $input->readMapEnd(); } else { @@ -1755,10 +2119,10 @@ class Database { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter76 => $viter77) + foreach ($this->parameters as $kiter83 => $viter84) { - $xfer += $output->writeString($kiter76); - $xfer += $output->writeString($viter77); + $xfer += $output->writeString($kiter83); + $xfer += $output->writeString($viter84); } } $output->writeMapEnd(); @@ -1871,17 +2235,17 @@ class SerDeInfo { case 3: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size78 = 0; - $_ktype79 = 0; - $_vtype80 = 0; - $xfer += $input->readMapBegin($_ktype79, $_vtype80, $_size78); - for ($_i82 = 0; $_i82 < $_size78; ++$_i82) + $_size85 = 0; + $_ktype86 = 0; + $_vtype87 = 0; + $xfer += $input->readMapBegin($_ktype86, $_vtype87, $_size85); + for ($_i89 = 0; $_i89 < $_size85; ++$_i89) { - $key83 = ''; - $val84 = ''; - $xfer += $input->readString($key83); - $xfer += $input->readString($val84); - $this->parameters[$key83] = $val84; + $key90 = ''; + $val91 = ''; + $xfer += $input->readString($key90); + $xfer += $input->readString($val91); + $this->parameters[$key90] = $val91; } $xfer += $input->readMapEnd(); } else { @@ -1919,10 +2283,10 @@ class SerDeInfo { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter85 => $viter86) + foreach ($this->parameters as $kiter92 => $viter93) { - $xfer += $output->writeString($kiter85); - $xfer += $output->writeString($viter86); + $xfer += $output->writeString($kiter92); + $xfer += $output->writeString($viter93); } } $output->writeMapEnd(); @@ -2111,14 +2475,14 @@ class SkewedInfo { case 1: if ($ftype == TType::LST) { $this->skewedColNames = array(); - $_size87 = 0; - $_etype90 = 0; - $xfer += $input->readListBegin($_etype90, $_size87); - for ($_i91 = 0; $_i91 < $_size87; ++$_i91) + $_size94 = 0; + $_etype97 = 0; + $xfer += $input->readListBegin($_etype97, $_size94); + for ($_i98 = 0; $_i98 < $_size94; ++$_i98) { - $elem92 = null; - $xfer += $input->readString($elem92); - $this->skewedColNames []= $elem92; + $elem99 = null; + $xfer += $input->readString($elem99); + $this->skewedColNames []= $elem99; } $xfer += $input->readListEnd(); } else { @@ -2128,24 +2492,24 @@ class SkewedInfo { case 2: if ($ftype == TType::LST) { $this->skewedColValues = array(); - $_size93 = 0; - $_etype96 = 0; - $xfer += $input->readListBegin($_etype96, $_size93); - for ($_i97 = 0; $_i97 < $_size93; ++$_i97) + $_size100 = 0; + $_etype103 = 0; + $xfer += $input->readListBegin($_etype103, $_size100); + for ($_i104 = 0; $_i104 < $_size100; ++$_i104) { - $elem98 = null; - $elem98 = array(); - $_size99 = 0; - $_etype102 = 0; - $xfer += $input->readListBegin($_etype102, $_size99); - for ($_i103 = 0; $_i103 < $_size99; ++$_i103) + $elem105 = null; + $elem105 = array(); + $_size106 = 0; + $_etype109 = 0; + $xfer += $input->readListBegin($_etype109, $_size106); + for ($_i110 = 0; $_i110 < $_size106; ++$_i110) { - $elem104 = null; - $xfer += $input->readString($elem104); - $elem98 []= $elem104; + $elem111 = null; + $xfer += $input->readString($elem111); + $elem105 []= $elem111; } $xfer += $input->readListEnd(); - $this->skewedColValues []= $elem98; + $this->skewedColValues []= $elem105; } $xfer += $input->readListEnd(); } else { @@ -2155,27 +2519,27 @@ class SkewedInfo { case 3: if ($ftype == TType::MAP) { $this->skewedColValueLocationMaps = array(); - $_size105 = 0; - $_ktype106 = 0; - $_vtype107 = 0; - $xfer += $input->readMapBegin($_ktype106, $_vtype107, $_size105); - for ($_i109 = 0; $_i109 < $_size105; ++$_i109) + $_size112 = 0; + $_ktype113 = 0; + $_vtype114 = 0; + $xfer += $input->readMapBegin($_ktype113, $_vtype114, $_size112); + for ($_i116 = 0; $_i116 < $_size112; ++$_i116) { - $key110 = array(); - $val111 = ''; - $key110 = array(); - $_size112 = 0; - $_etype115 = 0; - $xfer += $input->readListBegin($_etype115, $_size112); - for ($_i116 = 0; $_i116 < $_size112; ++$_i116) + $key117 = array(); + $val118 = ''; + $key117 = array(); + $_size119 = 0; + $_etype122 = 0; + $xfer += $input->readListBegin($_etype122, $_size119); + for ($_i123 = 0; $_i123 < $_size119; ++$_i123) { - $elem117 = null; - $xfer += $input->readString($elem117); - $key110 []= $elem117; + $elem124 = null; + $xfer += $input->readString($elem124); + $key117 []= $elem124; } $xfer += $input->readListEnd(); - $xfer += $input->readString($val111); - $this->skewedColValueLocationMaps[$key110] = $val111; + $xfer += $input->readString($val118); + $this->skewedColValueLocationMaps[$key117] = $val118; } $xfer += $input->readMapEnd(); } else { @@ -2203,9 +2567,9 @@ class SkewedInfo { { $output->writeListBegin(TType::STRING, count($this->skewedColNames)); { - foreach ($this->skewedColNames as $iter118) + foreach ($this->skewedColNames as $iter125) { - $xfer += $output->writeString($iter118); + $xfer += $output->writeString($iter125); } } $output->writeListEnd(); @@ -2220,14 +2584,14 @@ class SkewedInfo { { $output->writeListBegin(TType::LST, count($this->skewedColValues)); { - foreach ($this->skewedColValues as $iter119) + foreach ($this->skewedColValues as $iter126) { { - $output->writeListBegin(TType::STRING, count($iter119)); + $output->writeListBegin(TType::STRING, count($iter126)); { - foreach ($iter119 as $iter120) + foreach ($iter126 as $iter127) { - $xfer += $output->writeString($iter120); + $xfer += $output->writeString($iter127); } } $output->writeListEnd(); @@ -2246,19 +2610,19 @@ class SkewedInfo { { $output->writeMapBegin(TType::LST, TType::STRING, count($this->skewedColValueLocationMaps)); { - foreach ($this->skewedColValueLocationMaps as $kiter121 => $viter122) + foreach ($this->skewedColValueLocationMaps as $kiter128 => $viter129) { { - $output->writeListBegin(TType::STRING, count($kiter121)); + $output->writeListBegin(TType::STRING, count($kiter128)); { - foreach ($kiter121 as $iter123) + foreach ($kiter128 as $iter130) { - $xfer += $output->writeString($iter123); + $xfer += $output->writeString($iter130); } } $output->writeListEnd(); } - $xfer += $output->writeString($viter122); + $xfer += $output->writeString($viter129); } } $output->writeMapEnd(); @@ -2427,15 +2791,15 @@ class StorageDescriptor { case 1: if ($ftype == TType::LST) { $this->cols = array(); - $_size124 = 0; - $_etype127 = 0; - $xfer += $input->readListBegin($_etype127, $_size124); - for ($_i128 = 0; $_i128 < $_size124; ++$_i128) + $_size131 = 0; + $_etype134 = 0; + $xfer += $input->readListBegin($_etype134, $_size131); + for ($_i135 = 0; $_i135 < $_size131; ++$_i135) { - $elem129 = null; - $elem129 = new \metastore\FieldSchema(); - $xfer += $elem129->read($input); - $this->cols []= $elem129; + $elem136 = null; + $elem136 = new \metastore\FieldSchema(); + $xfer += $elem136->read($input); + $this->cols []= $elem136; } $xfer += $input->readListEnd(); } else { @@ -2488,14 +2852,14 @@ class StorageDescriptor { case 8: if ($ftype == TType::LST) { $this->bucketCols = array(); - $_size130 = 0; - $_etype133 = 0; - $xfer += $input->readListBegin($_etype133, $_size130); - for ($_i134 = 0; $_i134 < $_size130; ++$_i134) + $_size137 = 0; + $_etype140 = 0; + $xfer += $input->readListBegin($_etype140, $_size137); + for ($_i141 = 0; $_i141 < $_size137; ++$_i141) { - $elem135 = null; - $xfer += $input->readString($elem135); - $this->bucketCols []= $elem135; + $elem142 = null; + $xfer += $input->readString($elem142); + $this->bucketCols []= $elem142; } $xfer += $input->readListEnd(); } else { @@ -2505,15 +2869,15 @@ class StorageDescriptor { case 9: if ($ftype == TType::LST) { $this->sortCols = array(); - $_size136 = 0; - $_etype139 = 0; - $xfer += $input->readListBegin($_etype139, $_size136); - for ($_i140 = 0; $_i140 < $_size136; ++$_i140) + $_size143 = 0; + $_etype146 = 0; + $xfer += $input->readListBegin($_etype146, $_size143); + for ($_i147 = 0; $_i147 < $_size143; ++$_i147) { - $elem141 = null; - $elem141 = new \metastore\Order(); - $xfer += $elem141->read($input); - $this->sortCols []= $elem141; + $elem148 = null; + $elem148 = new \metastore\Order(); + $xfer += $elem148->read($input); + $this->sortCols []= $elem148; } $xfer += $input->readListEnd(); } else { @@ -2523,17 +2887,17 @@ class StorageDescriptor { case 10: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size142 = 0; - $_ktype143 = 0; - $_vtype144 = 0; - $xfer += $input->readMapBegin($_ktype143, $_vtype144, $_size142); - for ($_i146 = 0; $_i146 < $_size142; ++$_i146) + $_size149 = 0; + $_ktype150 = 0; + $_vtype151 = 0; + $xfer += $input->readMapBegin($_ktype150, $_vtype151, $_size149); + for ($_i153 = 0; $_i153 < $_size149; ++$_i153) { - $key147 = ''; - $val148 = ''; - $xfer += $input->readString($key147); - $xfer += $input->readString($val148); - $this->parameters[$key147] = $val148; + $key154 = ''; + $val155 = ''; + $xfer += $input->readString($key154); + $xfer += $input->readString($val155); + $this->parameters[$key154] = $val155; } $xfer += $input->readMapEnd(); } else { @@ -2576,9 +2940,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRUCT, count($this->cols)); { - foreach ($this->cols as $iter149) + foreach ($this->cols as $iter156) { - $xfer += $iter149->write($output); + $xfer += $iter156->write($output); } } $output->writeListEnd(); @@ -2626,9 +2990,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRING, count($this->bucketCols)); { - foreach ($this->bucketCols as $iter150) + foreach ($this->bucketCols as $iter157) { - $xfer += $output->writeString($iter150); + $xfer += $output->writeString($iter157); } } $output->writeListEnd(); @@ -2643,9 +3007,9 @@ class StorageDescriptor { { $output->writeListBegin(TType::STRUCT, count($this->sortCols)); { - foreach ($this->sortCols as $iter151) + foreach ($this->sortCols as $iter158) { - $xfer += $iter151->write($output); + $xfer += $iter158->write($output); } } $output->writeListEnd(); @@ -2660,10 +3024,10 @@ class StorageDescriptor { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter152 => $viter153) + foreach ($this->parameters as $kiter159 => $viter160) { - $xfer += $output->writeString($kiter152); - $xfer += $output->writeString($viter153); + $xfer += $output->writeString($kiter159); + $xfer += $output->writeString($viter160); } } $output->writeMapEnd(); @@ -2894,15 +3258,15 @@ class Table { case 8: if ($ftype == TType::LST) { $this->partitionKeys = array(); - $_size154 = 0; - $_etype157 = 0; - $xfer += $input->readListBegin($_etype157, $_size154); - for ($_i158 = 0; $_i158 < $_size154; ++$_i158) + $_size161 = 0; + $_etype164 = 0; + $xfer += $input->readListBegin($_etype164, $_size161); + for ($_i165 = 0; $_i165 < $_size161; ++$_i165) { - $elem159 = null; - $elem159 = new \metastore\FieldSchema(); - $xfer += $elem159->read($input); - $this->partitionKeys []= $elem159; + $elem166 = null; + $elem166 = new \metastore\FieldSchema(); + $xfer += $elem166->read($input); + $this->partitionKeys []= $elem166; } $xfer += $input->readListEnd(); } else { @@ -2912,17 +3276,17 @@ class Table { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size160 = 0; - $_ktype161 = 0; - $_vtype162 = 0; - $xfer += $input->readMapBegin($_ktype161, $_vtype162, $_size160); - for ($_i164 = 0; $_i164 < $_size160; ++$_i164) + $_size167 = 0; + $_ktype168 = 0; + $_vtype169 = 0; + $xfer += $input->readMapBegin($_ktype168, $_vtype169, $_size167); + for ($_i171 = 0; $_i171 < $_size167; ++$_i171) { - $key165 = ''; - $val166 = ''; - $xfer += $input->readString($key165); - $xfer += $input->readString($val166); - $this->parameters[$key165] = $val166; + $key172 = ''; + $val173 = ''; + $xfer += $input->readString($key172); + $xfer += $input->readString($val173); + $this->parameters[$key172] = $val173; } $xfer += $input->readMapEnd(); } else { @@ -3017,9 +3381,9 @@ class Table { { $output->writeListBegin(TType::STRUCT, count($this->partitionKeys)); { - foreach ($this->partitionKeys as $iter167) + foreach ($this->partitionKeys as $iter174) { - $xfer += $iter167->write($output); + $xfer += $iter174->write($output); } } $output->writeListEnd(); @@ -3034,10 +3398,10 @@ class Table { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter168 => $viter169) + foreach ($this->parameters as $kiter175 => $viter176) { - $xfer += $output->writeString($kiter168); - $xfer += $output->writeString($viter169); + $xfer += $output->writeString($kiter175); + $xfer += $output->writeString($viter176); } } $output->writeMapEnd(); @@ -3187,14 +3551,14 @@ class Partition { case 1: if ($ftype == TType::LST) { $this->values = array(); - $_size170 = 0; - $_etype173 = 0; - $xfer += $input->readListBegin($_etype173, $_size170); - for ($_i174 = 0; $_i174 < $_size170; ++$_i174) + $_size177 = 0; + $_etype180 = 0; + $xfer += $input->readListBegin($_etype180, $_size177); + for ($_i181 = 0; $_i181 < $_size177; ++$_i181) { - $elem175 = null; - $xfer += $input->readString($elem175); - $this->values []= $elem175; + $elem182 = null; + $xfer += $input->readString($elem182); + $this->values []= $elem182; } $xfer += $input->readListEnd(); } else { @@ -3240,17 +3604,17 @@ class Partition { case 7: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size176 = 0; - $_ktype177 = 0; - $_vtype178 = 0; - $xfer += $input->readMapBegin($_ktype177, $_vtype178, $_size176); - for ($_i180 = 0; $_i180 < $_size176; ++$_i180) + $_size183 = 0; + $_ktype184 = 0; + $_vtype185 = 0; + $xfer += $input->readMapBegin($_ktype184, $_vtype185, $_size183); + for ($_i187 = 0; $_i187 < $_size183; ++$_i187) { - $key181 = ''; - $val182 = ''; - $xfer += $input->readString($key181); - $xfer += $input->readString($val182); - $this->parameters[$key181] = $val182; + $key188 = ''; + $val189 = ''; + $xfer += $input->readString($key188); + $xfer += $input->readString($val189); + $this->parameters[$key188] = $val189; } $xfer += $input->readMapEnd(); } else { @@ -3286,9 +3650,9 @@ class Partition { { $output->writeListBegin(TType::STRING, count($this->values)); { - foreach ($this->values as $iter183) + foreach ($this->values as $iter190) { - $xfer += $output->writeString($iter183); + $xfer += $output->writeString($iter190); } } $output->writeListEnd(); @@ -3331,10 +3695,10 @@ class Partition { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter184 => $viter185) + foreach ($this->parameters as $kiter191 => $viter192) { - $xfer += $output->writeString($kiter184); - $xfer += $output->writeString($viter185); + $xfer += $output->writeString($kiter191); + $xfer += $output->writeString($viter192); } } $output->writeMapEnd(); @@ -3537,17 +3901,17 @@ class Index { case 9: if ($ftype == TType::MAP) { $this->parameters = array(); - $_size186 = 0; - $_ktype187 = 0; - $_vtype188 = 0; - $xfer += $input->readMapBegin($_ktype187, $_vtype188, $_size186); - for ($_i190 = 0; $_i190 < $_size186; ++$_i190) + $_size193 = 0; + $_ktype194 = 0; + $_vtype195 = 0; + $xfer += $input->readMapBegin($_ktype194, $_vtype195, $_size193); + for ($_i197 = 0; $_i197 < $_size193; ++$_i197) { - $key191 = ''; - $val192 = ''; - $xfer += $input->readString($key191); - $xfer += $input->readString($val192); - $this->parameters[$key191] = $val192; + $key198 = ''; + $val199 = ''; + $xfer += $input->readString($key198); + $xfer += $input->readString($val199); + $this->parameters[$key198] = $val199; } $xfer += $input->readMapEnd(); } else { @@ -3625,10 +3989,10 @@ class Index { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->parameters)); { - foreach ($this->parameters as $kiter193 => $viter194) + foreach ($this->parameters as $kiter200 => $viter201) { - $xfer += $output->writeString($kiter193); - $xfer += $output->writeString($viter194); + $xfer += $output->writeString($kiter200); + $xfer += $output->writeString($viter201); } } $output->writeMapEnd(); @@ -4778,15 +5142,15 @@ class ColumnStatistics { case 2: if ($ftype == TType::LST) { $this->statsObj = array(); - $_size195 = 0; - $_etype198 = 0; - $xfer += $input->readListBegin($_etype198, $_size195); - for ($_i199 = 0; $_i199 < $_size195; ++$_i199) + $_size202 = 0; + $_etype205 = 0; + $xfer += $input->readListBegin($_etype205, $_size202); + for ($_i206 = 0; $_i206 < $_size202; ++$_i206) { - $elem200 = null; - $elem200 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem200->read($input); - $this->statsObj []= $elem200; + $elem207 = null; + $elem207 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem207->read($input); + $this->statsObj []= $elem207; } $xfer += $input->readListEnd(); } else { @@ -4822,9 +5186,9 @@ class ColumnStatistics { { $output->writeListBegin(TType::STRUCT, count($this->statsObj)); { - foreach ($this->statsObj as $iter201) + foreach ($this->statsObj as $iter208) { - $xfer += $iter201->write($output); + $xfer += $iter208->write($output); } } $output->writeListEnd(); @@ -4902,15 +5266,15 @@ class Schema { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = 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\FieldSchema(); - $xfer += $elem207->read($input); - $this->fieldSchemas []= $elem207; + $elem214 = null; + $elem214 = new \metastore\FieldSchema(); + $xfer += $elem214->read($input); + $this->fieldSchemas []= $elem214; } $xfer += $input->readListEnd(); } else { @@ -4920,17 +5284,17 @@ class Schema { case 2: if ($ftype == TType::MAP) { $this->properties = array(); - $_size208 = 0; - $_ktype209 = 0; - $_vtype210 = 0; - $xfer += $input->readMapBegin($_ktype209, $_vtype210, $_size208); - for ($_i212 = 0; $_i212 < $_size208; ++$_i212) + $_size215 = 0; + $_ktype216 = 0; + $_vtype217 = 0; + $xfer += $input->readMapBegin($_ktype216, $_vtype217, $_size215); + for ($_i219 = 0; $_i219 < $_size215; ++$_i219) { - $key213 = ''; - $val214 = ''; - $xfer += $input->readString($key213); - $xfer += $input->readString($val214); - $this->properties[$key213] = $val214; + $key220 = ''; + $val221 = ''; + $xfer += $input->readString($key220); + $xfer += $input->readString($val221); + $this->properties[$key220] = $val221; } $xfer += $input->readMapEnd(); } else { @@ -4958,9 +5322,9 @@ class Schema { { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { - foreach ($this->fieldSchemas as $iter215) + foreach ($this->fieldSchemas as $iter222) { - $xfer += $iter215->write($output); + $xfer += $iter222->write($output); } } $output->writeListEnd(); @@ -4975,10 +5339,10 @@ class Schema { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter216 => $viter217) + foreach ($this->properties as $kiter223 => $viter224) { - $xfer += $output->writeString($kiter216); - $xfer += $output->writeString($viter217); + $xfer += $output->writeString($kiter223); + $xfer += $output->writeString($viter224); } } $output->writeMapEnd(); @@ -5043,17 +5407,17 @@ class EnvironmentContext { case 1: if ($ftype == TType::MAP) { $this->properties = array(); - $_size218 = 0; - $_ktype219 = 0; - $_vtype220 = 0; - $xfer += $input->readMapBegin($_ktype219, $_vtype220, $_size218); - for ($_i222 = 0; $_i222 < $_size218; ++$_i222) + $_size225 = 0; + $_ktype226 = 0; + $_vtype227 = 0; + $xfer += $input->readMapBegin($_ktype226, $_vtype227, $_size225); + for ($_i229 = 0; $_i229 < $_size225; ++$_i229) { - $key223 = ''; - $val224 = ''; - $xfer += $input->readString($key223); - $xfer += $input->readString($val224); - $this->properties[$key223] = $val224; + $key230 = ''; + $val231 = ''; + $xfer += $input->readString($key230); + $xfer += $input->readString($val231); + $this->properties[$key230] = $val231; } $xfer += $input->readMapEnd(); } else { @@ -5081,10 +5445,10 @@ class EnvironmentContext { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter225 => $viter226) + foreach ($this->properties as $kiter232 => $viter233) { - $xfer += $output->writeString($kiter225); - $xfer += $output->writeString($viter226); + $xfer += $output->writeString($kiter232); + $xfer += $output->writeString($viter233); } } $output->writeMapEnd(); @@ -5154,15 +5518,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size227 = 0; - $_etype230 = 0; - $xfer += $input->readListBegin($_etype230, $_size227); - for ($_i231 = 0; $_i231 < $_size227; ++$_i231) + $_size234 = 0; + $_etype237 = 0; + $xfer += $input->readListBegin($_etype237, $_size234); + for ($_i238 = 0; $_i238 < $_size234; ++$_i238) { - $elem232 = null; - $elem232 = new \metastore\Partition(); - $xfer += $elem232->read($input); - $this->partitions []= $elem232; + $elem239 = null; + $elem239 = new \metastore\Partition(); + $xfer += $elem239->read($input); + $this->partitions []= $elem239; } $xfer += $input->readListEnd(); } else { @@ -5197,9 +5561,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter233) + foreach ($this->partitions as $iter240) { - $xfer += $iter233->write($output); + $xfer += $iter240->write($output); } } $output->writeListEnd(); @@ -5418,15 +5782,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = 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\ColumnStatisticsObj(); - $xfer += $elem239->read($input); - $this->tableStats []= $elem239; + $elem246 = null; + $elem246 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem246->read($input); + $this->tableStats []= $elem246; } $xfer += $input->readListEnd(); } else { @@ -5454,9 +5818,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter240) + foreach ($this->tableStats as $iter247) { - $xfer += $iter240->write($output); + $xfer += $iter247->write($output); } } $output->writeListEnd(); @@ -5526,28 +5890,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size241 = 0; - $_ktype242 = 0; - $_vtype243 = 0; - $xfer += $input->readMapBegin($_ktype242, $_vtype243, $_size241); - for ($_i245 = 0; $_i245 < $_size241; ++$_i245) + $_size248 = 0; + $_ktype249 = 0; + $_vtype250 = 0; + $xfer += $input->readMapBegin($_ktype249, $_vtype250, $_size248); + for ($_i252 = 0; $_i252 < $_size248; ++$_i252) { - $key246 = ''; - $val247 = array(); - $xfer += $input->readString($key246); - $val247 = array(); - $_size248 = 0; - $_etype251 = 0; - $xfer += $input->readListBegin($_etype251, $_size248); - for ($_i252 = 0; $_i252 < $_size248; ++$_i252) + $key253 = ''; + $val254 = array(); + $xfer += $input->readString($key253); + $val254 = array(); + $_size255 = 0; + $_etype258 = 0; + $xfer += $input->readListBegin($_etype258, $_size255); + for ($_i259 = 0; $_i259 < $_size255; ++$_i259) { - $elem253 = null; - $elem253 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem253->read($input); - $val247 []= $elem253; + $elem260 = null; + $elem260 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem260->read($input); + $val254 []= $elem260; } $xfer += $input->readListEnd(); - $this->partStats[$key246] = $val247; + $this->partStats[$key253] = $val254; } $xfer += $input->readMapEnd(); } else { @@ -5575,15 +5939,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter254 => $viter255) + foreach ($this->partStats as $kiter261 => $viter262) { - $xfer += $output->writeString($kiter254); + $xfer += $output->writeString($kiter261); { - $output->writeListBegin(TType::STRUCT, count($viter255)); + $output->writeListBegin(TType::STRUCT, count($viter262)); { - foreach ($viter255 as $iter256) + foreach ($viter262 as $iter263) { - $xfer += $iter256->write($output); + $xfer += $iter263->write($output); } } $output->writeListEnd(); @@ -5678,14 +6042,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size257 = 0; - $_etype260 = 0; - $xfer += $input->readListBegin($_etype260, $_size257); - for ($_i261 = 0; $_i261 < $_size257; ++$_i261) + $_size264 = 0; + $_etype267 = 0; + $xfer += $input->readListBegin($_etype267, $_size264); + for ($_i268 = 0; $_i268 < $_size264; ++$_i268) { - $elem262 = null; - $xfer += $input->readString($elem262); - $this->colNames []= $elem262; + $elem269 = null; + $xfer += $input->readString($elem269); + $this->colNames []= $elem269; } $xfer += $input->readListEnd(); } else { @@ -5723,9 +6087,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter263) + foreach ($this->colNames as $iter270) { - $xfer += $output->writeString($iter263); + $xfer += $output->writeString($iter270); } } $output->writeListEnd(); @@ -5828,14 +6192,14 @@ class PartitionsStatsRequest { 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 { @@ -5845,14 +6209,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size270 = 0; - $_etype273 = 0; - $xfer += $input->readListBegin($_etype273, $_size270); - for ($_i274 = 0; $_i274 < $_size270; ++$_i274) + $_size277 = 0; + $_etype280 = 0; + $xfer += $input->readListBegin($_etype280, $_size277); + for ($_i281 = 0; $_i281 < $_size277; ++$_i281) { - $elem275 = null; - $xfer += $input->readString($elem275); - $this->partNames []= $elem275; + $elem282 = null; + $xfer += $input->readString($elem282); + $this->partNames []= $elem282; } $xfer += $input->readListEnd(); } else { @@ -5890,9 +6254,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter276) + foreach ($this->colNames as $iter283) { - $xfer += $output->writeString($iter276); + $xfer += $output->writeString($iter283); } } $output->writeListEnd(); @@ -5907,9 +6271,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter277) + foreach ($this->partNames as $iter284) { - $xfer += $output->writeString($iter277); + $xfer += $output->writeString($iter284); } } $output->writeListEnd(); @@ -5971,15 +6335,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size278 = 0; - $_etype281 = 0; - $xfer += $input->readListBegin($_etype281, $_size278); - for ($_i282 = 0; $_i282 < $_size278; ++$_i282) + $_size285 = 0; + $_etype288 = 0; + $xfer += $input->readListBegin($_etype288, $_size285); + for ($_i289 = 0; $_i289 < $_size285; ++$_i289) { - $elem283 = null; - $elem283 = new \metastore\Partition(); - $xfer += $elem283->read($input); - $this->partitions []= $elem283; + $elem290 = null; + $elem290 = new \metastore\Partition(); + $xfer += $elem290->read($input); + $this->partitions []= $elem290; } $xfer += $input->readListEnd(); } else { @@ -6007,9 +6371,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter284) + foreach ($this->partitions as $iter291) { - $xfer += $iter284->write($output); + $xfer += $iter291->write($output); } } $output->writeListEnd(); @@ -6117,15 +6481,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = 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->parts []= $elem290; + $elem297 = null; + $elem297 = new \metastore\Partition(); + $xfer += $elem297->read($input); + $this->parts []= $elem297; } $xfer += $input->readListEnd(); } else { @@ -6177,9 +6541,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter291) + foreach ($this->parts as $iter298) { - $xfer += $iter291->write($output); + $xfer += $iter298->write($output); } } $output->writeListEnd(); @@ -6251,15 +6615,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = 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->partitions []= $elem297; + $elem304 = null; + $elem304 = new \metastore\Partition(); + $xfer += $elem304->read($input); + $this->partitions []= $elem304; } $xfer += $input->readListEnd(); } else { @@ -6287,9 +6651,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter298) + foreach ($this->partitions as $iter305) { - $xfer += $iter298->write($output); + $xfer += $iter305->write($output); } } $output->writeListEnd(); @@ -6455,14 +6819,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = 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; - $xfer += $input->readString($elem304); - $this->names []= $elem304; + $elem311 = null; + $xfer += $input->readString($elem311); + $this->names []= $elem311; } $xfer += $input->readListEnd(); } else { @@ -6472,15 +6836,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size305 = 0; - $_etype308 = 0; - $xfer += $input->readListBegin($_etype308, $_size305); - for ($_i309 = 0; $_i309 < $_size305; ++$_i309) + $_size312 = 0; + $_etype315 = 0; + $xfer += $input->readListBegin($_etype315, $_size312); + for ($_i316 = 0; $_i316 < $_size312; ++$_i316) { - $elem310 = null; - $elem310 = new \metastore\DropPartitionsExpr(); - $xfer += $elem310->read($input); - $this->exprs []= $elem310; + $elem317 = null; + $elem317 = new \metastore\DropPartitionsExpr(); + $xfer += $elem317->read($input); + $this->exprs []= $elem317; } $xfer += $input->readListEnd(); } else { @@ -6508,9 +6872,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter311) + foreach ($this->names as $iter318) { - $xfer += $output->writeString($iter311); + $xfer += $output->writeString($iter318); } } $output->writeListEnd(); @@ -6525,9 +6889,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter312) + foreach ($this->exprs as $iter319) { - $xfer += $iter312->write($output); + $xfer += $iter319->write($output); } } $output->writeListEnd(); @@ -7008,15 +7372,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size313 = 0; - $_etype316 = 0; - $xfer += $input->readListBegin($_etype316, $_size313); - for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + $_size320 = 0; + $_etype323 = 0; + $xfer += $input->readListBegin($_etype323, $_size320); + for ($_i324 = 0; $_i324 < $_size320; ++$_i324) { - $elem318 = null; - $elem318 = new \metastore\ResourceUri(); - $xfer += $elem318->read($input); - $this->resourceUris []= $elem318; + $elem325 = null; + $elem325 = new \metastore\ResourceUri(); + $xfer += $elem325->read($input); + $this->resourceUris []= $elem325; } $xfer += $input->readListEnd(); } else { @@ -7079,9 +7443,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter319) + foreach ($this->resourceUris as $iter326) { - $xfer += $iter319->write($output); + $xfer += $iter326->write($output); } } $output->writeListEnd(); @@ -7290,15 +7654,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = 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\TxnInfo(); - $xfer += $elem325->read($input); - $this->open_txns []= $elem325; + $elem332 = null; + $elem332 = new \metastore\TxnInfo(); + $xfer += $elem332->read($input); + $this->open_txns []= $elem332; } $xfer += $input->readListEnd(); } else { @@ -7331,9 +7695,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter326) + foreach ($this->open_txns as $iter333) { - $xfer += $iter326->write($output); + $xfer += $iter333->write($output); } } $output->writeListEnd(); @@ -7409,17 +7773,17 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::SET) { $this->open_txns = array(); - $_size327 = 0; - $_etype330 = 0; - $xfer += $input->readSetBegin($_etype330, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readSetBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem332 = null; - $xfer += $input->readI64($elem332); - if (is_scalar($elem332)) { - $this->open_txns[$elem332] = true; + $elem339 = null; + $xfer += $input->readI64($elem339); + if (is_scalar($elem339)) { + $this->open_txns[$elem339] = true; } else { - $this->open_txns []= $elem332; + $this->open_txns []= $elem339; } } $xfer += $input->readSetEnd(); @@ -7453,12 +7817,12 @@ class GetOpenTxnsResponse { { $output->writeSetBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter333 => $iter334) + foreach ($this->open_txns as $iter340 => $iter341) { - if (is_scalar($iter334)) { - $xfer += $output->writeI64($iter333); + if (is_scalar($iter341)) { + $xfer += $output->writeI64($iter340); } else { - $xfer += $output->writeI64($iter334); + $xfer += $output->writeI64($iter341); } } } @@ -7632,14 +7996,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size335 = 0; - $_etype338 = 0; - $xfer += $input->readListBegin($_etype338, $_size335); - for ($_i339 = 0; $_i339 < $_size335; ++$_i339) + $_size342 = 0; + $_etype345 = 0; + $xfer += $input->readListBegin($_etype345, $_size342); + for ($_i346 = 0; $_i346 < $_size342; ++$_i346) { - $elem340 = null; - $xfer += $input->readI64($elem340); - $this->txn_ids []= $elem340; + $elem347 = null; + $xfer += $input->readI64($elem347); + $this->txn_ids []= $elem347; } $xfer += $input->readListEnd(); } else { @@ -7667,9 +8031,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter341) + foreach ($this->txn_ids as $iter348) { - $xfer += $output->writeI64($iter341); + $xfer += $output->writeI64($iter348); } } $output->writeListEnd(); @@ -8051,15 +8415,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = 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; - $elem347 = new \metastore\LockComponent(); - $xfer += $elem347->read($input); - $this->component []= $elem347; + $elem354 = null; + $elem354 = new \metastore\LockComponent(); + $xfer += $elem354->read($input); + $this->component []= $elem354; } $xfer += $input->readListEnd(); } else { @@ -8108,9 +8472,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter348) + foreach ($this->component as $iter355) { - $xfer += $iter348->write($output); + $xfer += $iter355->write($output); } } $output->writeListEnd(); @@ -8745,15 +9109,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = 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\ShowLocksResponseElement(); - $xfer += $elem354->read($input); - $this->locks []= $elem354; + $elem361 = null; + $elem361 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem361->read($input); + $this->locks []= $elem361; } $xfer += $input->readListEnd(); } else { @@ -8781,9 +9145,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter355) + foreach ($this->locks as $iter362) { - $xfer += $iter355->write($output); + $xfer += $iter362->write($output); } } $output->writeListEnd(); @@ -9351,15 +9715,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = 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\ShowCompactResponseElement(); - $xfer += $elem361->read($input); - $this->compacts []= $elem361; + $elem368 = null; + $elem368 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem368->read($input); + $this->compacts []= $elem368; } $xfer += $input->readListEnd(); } else { @@ -9387,9 +9751,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter362) + foreach ($this->compacts as $iter369) { - $xfer += $iter362->write($output); + $xfer += $iter369->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 69ef1b5..f7dca4a 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -107,6 +107,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' bool grant_role(string role_name, string principal_name, PrincipalType principal_type, string grantor, PrincipalType grantorType, bool grant_option)' 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 ' 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)' @@ -682,6 +683,12 @@ elif cmd == 'list_roles': sys.exit(1) pp.pprint(client.list_roles(args[0],eval(args[1]),)) +elif cmd == 'get_principals_in_role': + if len(args) != 1: + print 'get_principals_in_role requires 1 args' + sys.exit(1) + pp.pprint(client.get_principals_in_role(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 b27c432..3f28df0 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -738,6 +738,13 @@ def list_roles(self, principal_name, principal_type): """ pass + def get_principals_in_role(self, request): + """ + Parameters: + - request + """ + pass + def get_privilege_set(self, hiveObject, user_name, group_names): """ Parameters: @@ -4018,6 +4025,38 @@ def recv_list_roles(self, ): raise result.o1 raise TApplicationException(TApplicationException.MISSING_RESULT, "list_roles failed: unknown result"); + def get_principals_in_role(self, request): + """ + Parameters: + - request + """ + self.send_get_principals_in_role(request) + return self.recv_get_principals_in_role() + + def send_get_principals_in_role(self, request): + self._oprot.writeMessageBegin('get_principals_in_role', TMessageType.CALL, self._seqid) + args = get_principals_in_role_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_principals_in_role(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = get_principals_in_role_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_principals_in_role failed: unknown result"); + def get_privilege_set(self, hiveObject, user_name, group_names): """ Parameters: @@ -4738,6 +4777,7 @@ def __init__(self, handler): self._processMap["grant_role"] = Processor.process_grant_role 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_privilege_set"] = Processor.process_get_privilege_set self._processMap["list_privileges"] = Processor.process_list_privileges self._processMap["grant_privileges"] = Processor.process_grant_privileges @@ -6170,6 +6210,20 @@ def process_list_roles(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_principals_in_role(self, seqid, iprot, oprot): + args = get_principals_in_role_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_principals_in_role_result() + try: + result.success = self._handler.get_principals_in_role(args.request) + except MetaException as o1: + result.o1 = o1 + oprot.writeMessageBegin("get_principals_in_role", 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) @@ -7002,10 +7056,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype365, _size362) = iprot.readListBegin() - for _i366 in xrange(_size362): - _elem367 = iprot.readString(); - self.success.append(_elem367) + (_etype372, _size369) = iprot.readListBegin() + for _i373 in xrange(_size369): + _elem374 = iprot.readString(); + self.success.append(_elem374) iprot.readListEnd() else: iprot.skip(ftype) @@ -7028,8 +7082,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 iter368 in self.success: - oprot.writeString(iter368) + for iter375 in self.success: + oprot.writeString(iter375) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7124,10 +7178,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) @@ -7150,8 +7204,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: @@ -7861,12 +7915,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype377, _vtype378, _size376 ) = iprot.readMapBegin() - for _i380 in xrange(_size376): - _key381 = iprot.readString(); - _val382 = Type() - _val382.read(iprot) - self.success[_key381] = _val382 + (_ktype384, _vtype385, _size383 ) = iprot.readMapBegin() + for _i387 in xrange(_size383): + _key388 = iprot.readString(); + _val389 = Type() + _val389.read(iprot) + self.success[_key388] = _val389 iprot.readMapEnd() else: iprot.skip(ftype) @@ -7889,9 +7943,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 kiter383,viter384 in self.success.items(): - oprot.writeString(kiter383) - viter384.write(oprot) + for kiter390,viter391 in self.success.items(): + oprot.writeString(kiter390) + viter391.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -8022,11 +8076,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype388, _size385) = iprot.readListBegin() - for _i389 in xrange(_size385): - _elem390 = FieldSchema() - _elem390.read(iprot) - self.success.append(_elem390) + (_etype395, _size392) = iprot.readListBegin() + for _i396 in xrange(_size392): + _elem397 = FieldSchema() + _elem397.read(iprot) + self.success.append(_elem397) iprot.readListEnd() else: iprot.skip(ftype) @@ -8061,8 +8115,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 iter391 in self.success: - iter391.write(oprot) + for iter398 in self.success: + iter398.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8201,11 +8255,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) @@ -8240,8 +8294,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: @@ -9038,10 +9092,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype402, _size399) = iprot.readListBegin() - for _i403 in xrange(_size399): - _elem404 = iprot.readString(); - self.success.append(_elem404) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = iprot.readString(); + self.success.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -9064,8 +9118,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 iter405 in self.success: - oprot.writeString(iter405) + for iter412 in self.success: + oprot.writeString(iter412) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9178,10 +9232,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) @@ -9204,8 +9258,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: @@ -9422,10 +9476,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readString(); - self.tbl_names.append(_elem418) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = iprot.readString(); + self.tbl_names.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -9446,8 +9500,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 iter419 in self.tbl_names: - oprot.writeString(iter419) + for iter426 in self.tbl_names: + oprot.writeString(iter426) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9502,11 +9556,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = Table() - _elem425.read(iprot) - self.success.append(_elem425) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = Table() + _elem432.read(iprot) + self.success.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -9541,8 +9595,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 iter426 in self.success: - iter426.write(oprot) + for iter433 in self.success: + iter433.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9693,10 +9747,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = iprot.readString(); - self.success.append(_elem432) + (_etype437, _size434) = iprot.readListBegin() + for _i438 in xrange(_size434): + _elem439 = iprot.readString(); + self.success.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) @@ -9731,8 +9785,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 iter433 in self.success: - oprot.writeString(iter433) + for iter440 in self.success: + oprot.writeString(iter440) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10455,11 +10509,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype437, _size434) = iprot.readListBegin() - for _i438 in xrange(_size434): - _elem439 = Partition() - _elem439.read(iprot) - self.new_parts.append(_elem439) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = Partition() + _elem446.read(iprot) + self.new_parts.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -10476,8 +10530,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 iter440 in self.new_parts: - iter440.write(oprot) + for iter447 in self.new_parts: + iter447.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10638,10 +10692,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = iprot.readString(); - self.part_vals.append(_elem446) + (_etype451, _size448) = iprot.readListBegin() + for _i452 in xrange(_size448): + _elem453 = iprot.readString(); + self.part_vals.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -10666,8 +10720,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 iter447 in self.part_vals: - oprot.writeString(iter447) + for iter454 in self.part_vals: + oprot.writeString(iter454) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10992,10 +11046,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) @@ -11026,8 +11080,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() if self.environment_context is not None: @@ -11575,10 +11629,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) @@ -11608,8 +11662,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.deleteData is not None: @@ -11767,10 +11821,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) @@ -11806,8 +11860,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: @@ -12485,10 +12539,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) @@ -12513,8 +12567,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() oprot.writeFieldStop() @@ -12659,11 +12713,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype477, _vtype478, _size476 ) = iprot.readMapBegin() - for _i480 in xrange(_size476): - _key481 = iprot.readString(); - _val482 = iprot.readString(); - self.partitionSpecs[_key481] = _val482 + (_ktype484, _vtype485, _size483 ) = iprot.readMapBegin() + for _i487 in xrange(_size483): + _key488 = iprot.readString(); + _val489 = iprot.readString(); + self.partitionSpecs[_key488] = _val489 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12700,9 +12754,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 kiter483,viter484 in self.partitionSpecs.items(): - oprot.writeString(kiter483) - oprot.writeString(viter484) + for kiter490,viter491 in self.partitionSpecs.items(): + oprot.writeString(kiter490) + oprot.writeString(viter491) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -12899,10 +12953,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype488, _size485) = iprot.readListBegin() - for _i489 in xrange(_size485): - _elem490 = iprot.readString(); - self.part_vals.append(_elem490) + (_etype495, _size492) = iprot.readListBegin() + for _i496 in xrange(_size492): + _elem497 = iprot.readString(); + self.part_vals.append(_elem497) iprot.readListEnd() else: iprot.skip(ftype) @@ -12914,10 +12968,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype494, _size491) = iprot.readListBegin() - for _i495 in xrange(_size491): - _elem496 = iprot.readString(); - self.group_names.append(_elem496) + (_etype501, _size498) = iprot.readListBegin() + for _i502 in xrange(_size498): + _elem503 = iprot.readString(); + self.group_names.append(_elem503) iprot.readListEnd() else: iprot.skip(ftype) @@ -12942,8 +12996,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 iter497 in self.part_vals: - oprot.writeString(iter497) + for iter504 in self.part_vals: + oprot.writeString(iter504) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -12953,8 +13007,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 iter498 in self.group_names: - oprot.writeString(iter498) + for iter505 in self.group_names: + oprot.writeString(iter505) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13346,11 +13400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype502, _size499) = iprot.readListBegin() - for _i503 in xrange(_size499): - _elem504 = Partition() - _elem504.read(iprot) - self.success.append(_elem504) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = Partition() + _elem511.read(iprot) + self.success.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -13379,8 +13433,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 iter505 in self.success: - iter505.write(oprot) + for iter512 in self.success: + iter512.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13467,10 +13521,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype509, _size506) = iprot.readListBegin() - for _i510 in xrange(_size506): - _elem511 = iprot.readString(); - self.group_names.append(_elem511) + (_etype516, _size513) = iprot.readListBegin() + for _i517 in xrange(_size513): + _elem518 = iprot.readString(); + self.group_names.append(_elem518) iprot.readListEnd() else: iprot.skip(ftype) @@ -13503,8 +13557,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 iter512 in self.group_names: - oprot.writeString(iter512) + for iter519 in self.group_names: + oprot.writeString(iter519) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13556,11 +13610,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = Partition() - _elem518.read(iprot) - self.success.append(_elem518) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = Partition() + _elem525.read(iprot) + self.success.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) @@ -13589,8 +13643,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 iter519 in self.success: - iter519.write(oprot) + for iter526 in self.success: + iter526.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13731,10 +13785,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype523, _size520) = iprot.readListBegin() - for _i524 in xrange(_size520): - _elem525 = iprot.readString(); - self.success.append(_elem525) + (_etype530, _size527) = iprot.readListBegin() + for _i531 in xrange(_size527): + _elem532 = iprot.readString(); + self.success.append(_elem532) iprot.readListEnd() else: iprot.skip(ftype) @@ -13757,8 +13811,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 iter526 in self.success: - oprot.writeString(iter526) + for iter533 in self.success: + oprot.writeString(iter533) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -13828,10 +13882,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = iprot.readString(); - self.part_vals.append(_elem532) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = iprot.readString(); + self.part_vals.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -13861,8 +13915,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 iter533 in self.part_vals: - oprot.writeString(iter533) + for iter540 in self.part_vals: + oprot.writeString(iter540) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -13918,11 +13972,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = Partition() - _elem539.read(iprot) - self.success.append(_elem539) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = Partition() + _elem546.read(iprot) + self.success.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -13951,8 +14005,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 iter540 in self.success: - iter540.write(oprot) + for iter547 in self.success: + iter547.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14032,10 +14086,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = iprot.readString(); - self.part_vals.append(_elem546) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = iprot.readString(); + self.part_vals.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -14052,10 +14106,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype550, _size547) = iprot.readListBegin() - for _i551 in xrange(_size547): - _elem552 = iprot.readString(); - self.group_names.append(_elem552) + (_etype557, _size554) = iprot.readListBegin() + for _i558 in xrange(_size554): + _elem559 = iprot.readString(); + self.group_names.append(_elem559) iprot.readListEnd() else: iprot.skip(ftype) @@ -14080,8 +14134,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 iter553 in self.part_vals: - oprot.writeString(iter553) + for iter560 in self.part_vals: + oprot.writeString(iter560) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14095,8 +14149,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 iter554 in self.group_names: - oprot.writeString(iter554) + for iter561 in self.group_names: + oprot.writeString(iter561) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14148,11 +14202,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = Partition() - _elem560.read(iprot) - self.success.append(_elem560) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = Partition() + _elem567.read(iprot) + self.success.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -14181,8 +14235,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 iter561 in self.success: - iter561.write(oprot) + for iter568 in self.success: + iter568.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14256,10 +14310,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = iprot.readString(); - self.part_vals.append(_elem567) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = iprot.readString(); + self.part_vals.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14289,8 +14343,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 iter568 in self.part_vals: - oprot.writeString(iter568) + for iter575 in self.part_vals: + oprot.writeString(iter575) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14346,10 +14400,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.success.append(_elem574) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.success.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14378,8 +14432,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 iter575 in self.success: - oprot.writeString(iter575) + for iter582 in self.success: + oprot.writeString(iter582) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14535,11 +14589,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype579, _size576) = iprot.readListBegin() - for _i580 in xrange(_size576): - _elem581 = Partition() - _elem581.read(iprot) - self.success.append(_elem581) + (_etype586, _size583) = iprot.readListBegin() + for _i587 in xrange(_size583): + _elem588 = Partition() + _elem588.read(iprot) + self.success.append(_elem588) iprot.readListEnd() else: iprot.skip(ftype) @@ -14568,8 +14622,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 iter582 in self.success: - iter582.write(oprot) + for iter589 in self.success: + iter589.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14787,10 +14841,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = iprot.readString(); - self.names.append(_elem588) + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = iprot.readString(); + self.names.append(_elem595) iprot.readListEnd() else: iprot.skip(ftype) @@ -14815,8 +14869,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 iter589 in self.names: - oprot.writeString(iter589) + for iter596 in self.names: + oprot.writeString(iter596) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14868,11 +14922,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype593, _size590) = iprot.readListBegin() - for _i594 in xrange(_size590): - _elem595 = Partition() - _elem595.read(iprot) - self.success.append(_elem595) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = Partition() + _elem602.read(iprot) + self.success.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14901,8 +14955,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 iter596 in self.success: - iter596.write(oprot) + for iter603 in self.success: + iter603.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15132,11 +15186,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = Partition() - _elem602.read(iprot) - self.new_parts.append(_elem602) + (_etype607, _size604) = iprot.readListBegin() + for _i608 in xrange(_size604): + _elem609 = Partition() + _elem609.read(iprot) + self.new_parts.append(_elem609) iprot.readListEnd() else: iprot.skip(ftype) @@ -15161,8 +15215,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 iter603 in self.new_parts: - iter603.write(oprot) + for iter610 in self.new_parts: + iter610.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15474,10 +15528,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = iprot.readString(); - self.part_vals.append(_elem609) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = iprot.readString(); + self.part_vals.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -15508,8 +15562,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 iter610 in self.part_vals: - oprot.writeString(iter610) + for iter617 in self.part_vals: + oprot.writeString(iter617) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15637,10 +15691,10 @@ def read(self, iprot): if fid == 1: 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) @@ -15662,8 +15716,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 iter617 in self.part_vals: - oprot.writeString(iter617) + for iter624 in self.part_vals: + oprot.writeString(iter624) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -15992,10 +16046,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in xrange(_size618): - _elem623 = iprot.readString(); - self.success.append(_elem623) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = iprot.readString(); + self.success.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -16018,8 +16072,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 iter624 in self.success: - oprot.writeString(iter624) + for iter631 in self.success: + oprot.writeString(iter631) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16132,11 +16186,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype626, _vtype627, _size625 ) = iprot.readMapBegin() - for _i629 in xrange(_size625): - _key630 = iprot.readString(); - _val631 = iprot.readString(); - self.success[_key630] = _val631 + (_ktype633, _vtype634, _size632 ) = iprot.readMapBegin() + for _i636 in xrange(_size632): + _key637 = iprot.readString(); + _val638 = iprot.readString(); + self.success[_key637] = _val638 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16159,9 +16213,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 kiter632,viter633 in self.success.items(): - oprot.writeString(kiter632) - oprot.writeString(viter633) + for kiter639,viter640 in self.success.items(): + oprot.writeString(kiter639) + oprot.writeString(viter640) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16231,11 +16285,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype635, _vtype636, _size634 ) = iprot.readMapBegin() - for _i638 in xrange(_size634): - _key639 = iprot.readString(); - _val640 = iprot.readString(); - self.part_vals[_key639] = _val640 + (_ktype642, _vtype643, _size641 ) = iprot.readMapBegin() + for _i645 in xrange(_size641): + _key646 = iprot.readString(); + _val647 = iprot.readString(); + self.part_vals[_key646] = _val647 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16265,9 +16319,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 kiter641,viter642 in self.part_vals.items(): - oprot.writeString(kiter641) - oprot.writeString(viter642) + for kiter648,viter649 in self.part_vals.items(): + oprot.writeString(kiter648) + oprot.writeString(viter649) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16463,11 +16517,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype644, _vtype645, _size643 ) = iprot.readMapBegin() - for _i647 in xrange(_size643): - _key648 = iprot.readString(); - _val649 = iprot.readString(); - self.part_vals[_key648] = _val649 + (_ktype651, _vtype652, _size650 ) = iprot.readMapBegin() + for _i654 in xrange(_size650): + _key655 = iprot.readString(); + _val656 = iprot.readString(); + self.part_vals[_key655] = _val656 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16497,9 +16551,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 kiter650,viter651 in self.part_vals.items(): - oprot.writeString(kiter650) - oprot.writeString(viter651) + for kiter657,viter658 in self.part_vals.items(): + oprot.writeString(kiter657) + oprot.writeString(viter658) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17471,11 +17525,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype655, _size652) = iprot.readListBegin() - for _i656 in xrange(_size652): - _elem657 = Index() - _elem657.read(iprot) - self.success.append(_elem657) + (_etype662, _size659) = iprot.readListBegin() + for _i663 in xrange(_size659): + _elem664 = Index() + _elem664.read(iprot) + self.success.append(_elem664) iprot.readListEnd() else: iprot.skip(ftype) @@ -17504,8 +17558,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 iter658 in self.success: - iter658.write(oprot) + for iter665 in self.success: + iter665.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -17646,10 +17700,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype662, _size659) = iprot.readListBegin() - for _i663 in xrange(_size659): - _elem664 = iprot.readString(); - self.success.append(_elem664) + (_etype669, _size666) = iprot.readListBegin() + for _i670 in xrange(_size666): + _elem671 = iprot.readString(); + self.success.append(_elem671) iprot.readListEnd() else: iprot.skip(ftype) @@ -17672,8 +17726,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 iter665 in self.success: - oprot.writeString(iter665) + for iter672 in self.success: + oprot.writeString(iter672) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19708,10 +19762,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) @@ -19734,8 +19788,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.o1 is not None: @@ -20253,10 +20307,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) @@ -20279,8 +20333,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: @@ -20753,11 +20807,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = Role() - _elem685.read(iprot) - self.success.append(_elem685) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = Role() + _elem692.read(iprot) + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -20780,8 +20834,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 iter686 in self.success: - iter686.write(oprot) + for iter693 in self.success: + iter693.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20806,6 +20860,140 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_principals_in_role_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (GetPrincipalsInRoleRequest, GetPrincipalsInRoleRequest.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 = GetPrincipalsInRoleRequest() + 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_principals_in_role_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_principals_in_role_result: + """ + Attributes: + - success + - o1 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (GetPrincipalsInRoleResponse, GetPrincipalsInRoleResponse.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 = GetPrincipalsInRoleResponse() + 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_principals_in_role_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: @@ -20849,10 +21037,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString(); - self.group_names.append(_elem692) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = iprot.readString(); + self.group_names.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -20877,8 +21065,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 iter693 in self.group_names: - oprot.writeString(iter693) + for iter700 in self.group_names: + oprot.writeString(iter700) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21085,11 +21273,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = HiveObjectPrivilege() - _elem699.read(iprot) - self.success.append(_elem699) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = HiveObjectPrivilege() + _elem706.read(iprot) + self.success.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -21112,8 +21300,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 iter700 in self.success: - iter700.write(oprot) + for iter707 in self.success: + iter707.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21438,10 +21626,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString(); - self.group_names.append(_elem706) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString(); + self.group_names.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -21462,8 +21650,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 iter707 in self.group_names: - oprot.writeString(iter707) + for iter714 in self.group_names: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21512,10 +21700,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = iprot.readString(); - self.success.append(_elem713) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = iprot.readString(); + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -21538,8 +21726,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 iter714 in self.success: - oprot.writeString(iter714) + for iter721 in self.success: + oprot.writeString(iter721) 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 33c221d..2e9f238 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -1120,6 +1120,267 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class RolePrincipalGrant: + """ + Attributes: + - roleName + - principalName + - principalType + - grantOption + - grantTime + - grantorName + - grantorPrincipalType + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roleName', None, None, ), # 1 + (2, TType.STRING, 'principalName', None, None, ), # 2 + (3, TType.I32, 'principalType', None, None, ), # 3 + (4, TType.BOOL, 'grantOption', None, None, ), # 4 + (5, TType.I32, 'grantTime', None, None, ), # 5 + (6, TType.STRING, 'grantorName', None, None, ), # 6 + (7, TType.I32, 'grantorPrincipalType', None, None, ), # 7 + ) + + def __init__(self, roleName=None, principalName=None, principalType=None, grantOption=None, grantTime=None, grantorName=None, grantorPrincipalType=None,): + self.roleName = roleName + self.principalName = principalName + self.principalType = principalType + self.grantOption = grantOption + self.grantTime = grantTime + self.grantorName = grantorName + self.grantorPrincipalType = grantorPrincipalType + + 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.roleName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.principalName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.I32: + self.principalType = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.BOOL: + self.grantOption = iprot.readBool(); + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.I32: + self.grantTime = iprot.readI32(); + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.grantorName = iprot.readString(); + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.grantorPrincipalType = 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('RolePrincipalGrant') + if self.roleName is not None: + oprot.writeFieldBegin('roleName', TType.STRING, 1) + oprot.writeString(self.roleName) + oprot.writeFieldEnd() + if self.principalName is not None: + oprot.writeFieldBegin('principalName', TType.STRING, 2) + oprot.writeString(self.principalName) + oprot.writeFieldEnd() + if self.principalType is not None: + oprot.writeFieldBegin('principalType', TType.I32, 3) + oprot.writeI32(self.principalType) + oprot.writeFieldEnd() + if self.grantOption is not None: + oprot.writeFieldBegin('grantOption', TType.BOOL, 4) + oprot.writeBool(self.grantOption) + oprot.writeFieldEnd() + if self.grantTime is not None: + oprot.writeFieldBegin('grantTime', TType.I32, 5) + oprot.writeI32(self.grantTime) + oprot.writeFieldEnd() + if self.grantorName is not None: + oprot.writeFieldBegin('grantorName', TType.STRING, 6) + oprot.writeString(self.grantorName) + oprot.writeFieldEnd() + if self.grantorPrincipalType is not None: + oprot.writeFieldBegin('grantorPrincipalType', TType.I32, 7) + oprot.writeI32(self.grantorPrincipalType) + 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 GetPrincipalsInRoleRequest: + """ + Attributes: + - roleName + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'roleName', None, None, ), # 1 + ) + + def __init__(self, roleName=None,): + self.roleName = roleName + + 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.roleName = iprot.readString(); + 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('GetPrincipalsInRoleRequest') + if self.roleName is not None: + oprot.writeFieldBegin('roleName', TType.STRING, 1) + oprot.writeString(self.roleName) + 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 GetPrincipalsInRoleResponse: + """ + 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('GetPrincipalsInRoleResponse') + 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): + 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 Database: """ Attributes: @@ -1179,11 +1440,11 @@ def read(self, iprot): elif fid == 4: if ftype == TType.MAP: self.parameters = {} - (_ktype70, _vtype71, _size69 ) = iprot.readMapBegin() - for _i73 in xrange(_size69): - _key74 = iprot.readString(); - _val75 = iprot.readString(); - self.parameters[_key74] = _val75 + (_ktype77, _vtype78, _size76 ) = iprot.readMapBegin() + for _i80 in xrange(_size76): + _key81 = iprot.readString(); + _val82 = iprot.readString(); + self.parameters[_key81] = _val82 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1228,9 +1489,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 kiter76,viter77 in self.parameters.items(): - oprot.writeString(kiter76) - oprot.writeString(viter77) + for kiter83,viter84 in self.parameters.items(): + oprot.writeString(kiter83) + oprot.writeString(viter84) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -1305,11 +1566,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.parameters = {} - (_ktype79, _vtype80, _size78 ) = iprot.readMapBegin() - for _i82 in xrange(_size78): - _key83 = iprot.readString(); - _val84 = iprot.readString(); - self.parameters[_key83] = _val84 + (_ktype86, _vtype87, _size85 ) = iprot.readMapBegin() + for _i89 in xrange(_size85): + _key90 = iprot.readString(); + _val91 = iprot.readString(); + self.parameters[_key90] = _val91 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1334,9 +1595,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 kiter85,viter86 in self.parameters.items(): - oprot.writeString(kiter85) - oprot.writeString(viter86) + for kiter92,viter93 in self.parameters.items(): + oprot.writeString(kiter92) + oprot.writeString(viter93) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1461,41 +1722,41 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.skewedColNames = [] - (_etype90, _size87) = iprot.readListBegin() - for _i91 in xrange(_size87): - _elem92 = iprot.readString(); - self.skewedColNames.append(_elem92) + (_etype97, _size94) = iprot.readListBegin() + for _i98 in xrange(_size94): + _elem99 = iprot.readString(); + self.skewedColNames.append(_elem99) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.skewedColValues = [] - (_etype96, _size93) = iprot.readListBegin() - for _i97 in xrange(_size93): - _elem98 = [] - (_etype102, _size99) = iprot.readListBegin() - for _i103 in xrange(_size99): - _elem104 = iprot.readString(); - _elem98.append(_elem104) + (_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) iprot.readListEnd() - self.skewedColValues.append(_elem98) + self.skewedColValues.append(_elem105) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.MAP: self.skewedColValueLocationMaps = {} - (_ktype106, _vtype107, _size105 ) = iprot.readMapBegin() - for _i109 in xrange(_size105): - _key110 = [] - (_etype115, _size112) = iprot.readListBegin() - for _i116 in xrange(_size112): - _elem117 = iprot.readString(); - _key110.append(_elem117) + (_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) iprot.readListEnd() - _val111 = iprot.readString(); - self.skewedColValueLocationMaps[_key110] = _val111 + _val118 = iprot.readString(); + self.skewedColValueLocationMaps[_key117] = _val118 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1512,29 +1773,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 iter118 in self.skewedColNames: - oprot.writeString(iter118) + for iter125 in self.skewedColNames: + oprot.writeString(iter125) oprot.writeListEnd() oprot.writeFieldEnd() if self.skewedColValues is not None: oprot.writeFieldBegin('skewedColValues', TType.LIST, 2) oprot.writeListBegin(TType.LIST, len(self.skewedColValues)) - for iter119 in self.skewedColValues: - oprot.writeListBegin(TType.STRING, len(iter119)) - for iter120 in iter119: - oprot.writeString(iter120) + for iter126 in self.skewedColValues: + oprot.writeListBegin(TType.STRING, len(iter126)) + for iter127 in iter126: + oprot.writeString(iter127) 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 kiter121,viter122 in self.skewedColValueLocationMaps.items(): - oprot.writeListBegin(TType.STRING, len(kiter121)) - for iter123 in kiter121: - oprot.writeString(iter123) + for kiter128,viter129 in self.skewedColValueLocationMaps.items(): + oprot.writeListBegin(TType.STRING, len(kiter128)) + for iter130 in kiter128: + oprot.writeString(iter130) oprot.writeListEnd() - oprot.writeString(viter122) + oprot.writeString(viter129) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -1614,11 +1875,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.cols = [] - (_etype127, _size124) = iprot.readListBegin() - for _i128 in xrange(_size124): - _elem129 = FieldSchema() - _elem129.read(iprot) - self.cols.append(_elem129) + (_etype134, _size131) = iprot.readListBegin() + for _i135 in xrange(_size131): + _elem136 = FieldSchema() + _elem136.read(iprot) + self.cols.append(_elem136) iprot.readListEnd() else: iprot.skip(ftype) @@ -1656,32 +1917,32 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.bucketCols = [] - (_etype133, _size130) = iprot.readListBegin() - for _i134 in xrange(_size130): - _elem135 = iprot.readString(); - self.bucketCols.append(_elem135) + (_etype140, _size137) = iprot.readListBegin() + for _i141 in xrange(_size137): + _elem142 = iprot.readString(); + self.bucketCols.append(_elem142) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.LIST: self.sortCols = [] - (_etype139, _size136) = iprot.readListBegin() - for _i140 in xrange(_size136): - _elem141 = Order() - _elem141.read(iprot) - self.sortCols.append(_elem141) + (_etype146, _size143) = iprot.readListBegin() + for _i147 in xrange(_size143): + _elem148 = Order() + _elem148.read(iprot) + self.sortCols.append(_elem148) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 10: if ftype == TType.MAP: self.parameters = {} - (_ktype143, _vtype144, _size142 ) = iprot.readMapBegin() - for _i146 in xrange(_size142): - _key147 = iprot.readString(); - _val148 = iprot.readString(); - self.parameters[_key147] = _val148 + (_ktype150, _vtype151, _size149 ) = iprot.readMapBegin() + for _i153 in xrange(_size149): + _key154 = iprot.readString(); + _val155 = iprot.readString(); + self.parameters[_key154] = _val155 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1709,8 +1970,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 iter149 in self.cols: - iter149.write(oprot) + for iter156 in self.cols: + iter156.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.location is not None: @@ -1740,23 +2001,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 iter150 in self.bucketCols: - oprot.writeString(iter150) + for iter157 in self.bucketCols: + oprot.writeString(iter157) oprot.writeListEnd() oprot.writeFieldEnd() if self.sortCols is not None: oprot.writeFieldBegin('sortCols', TType.LIST, 9) oprot.writeListBegin(TType.STRUCT, len(self.sortCols)) - for iter151 in self.sortCols: - iter151.write(oprot) + for iter158 in self.sortCols: + iter158.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 kiter152,viter153 in self.parameters.items(): - oprot.writeString(kiter152) - oprot.writeString(viter153) + for kiter159,viter160 in self.parameters.items(): + oprot.writeString(kiter159) + oprot.writeString(viter160) oprot.writeMapEnd() oprot.writeFieldEnd() if self.skewedInfo is not None: @@ -1883,22 +2144,22 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.partitionKeys = [] - (_etype157, _size154) = iprot.readListBegin() - for _i158 in xrange(_size154): - _elem159 = FieldSchema() - _elem159.read(iprot) - self.partitionKeys.append(_elem159) + (_etype164, _size161) = iprot.readListBegin() + for _i165 in xrange(_size161): + _elem166 = FieldSchema() + _elem166.read(iprot) + self.partitionKeys.append(_elem166) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype161, _vtype162, _size160 ) = iprot.readMapBegin() - for _i164 in xrange(_size160): - _key165 = iprot.readString(); - _val166 = iprot.readString(); - self.parameters[_key165] = _val166 + (_ktype168, _vtype169, _size167 ) = iprot.readMapBegin() + for _i171 in xrange(_size167): + _key172 = iprot.readString(); + _val173 = iprot.readString(); + self.parameters[_key172] = _val173 iprot.readMapEnd() else: iprot.skip(ftype) @@ -1964,16 +2225,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 iter167 in self.partitionKeys: - iter167.write(oprot) + for iter174 in self.partitionKeys: + iter174.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 kiter168,viter169 in self.parameters.items(): - oprot.writeString(kiter168) - oprot.writeString(viter169) + for kiter175,viter176 in self.parameters.items(): + oprot.writeString(kiter175) + oprot.writeString(viter176) oprot.writeMapEnd() oprot.writeFieldEnd() if self.viewOriginalText is not None: @@ -2057,10 +2318,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.values = [] - (_etype173, _size170) = iprot.readListBegin() - for _i174 in xrange(_size170): - _elem175 = iprot.readString(); - self.values.append(_elem175) + (_etype180, _size177) = iprot.readListBegin() + for _i181 in xrange(_size177): + _elem182 = iprot.readString(); + self.values.append(_elem182) iprot.readListEnd() else: iprot.skip(ftype) @@ -2093,11 +2354,11 @@ def read(self, iprot): elif fid == 7: if ftype == TType.MAP: self.parameters = {} - (_ktype177, _vtype178, _size176 ) = iprot.readMapBegin() - for _i180 in xrange(_size176): - _key181 = iprot.readString(); - _val182 = iprot.readString(); - self.parameters[_key181] = _val182 + (_ktype184, _vtype185, _size183 ) = iprot.readMapBegin() + for _i187 in xrange(_size183): + _key188 = iprot.readString(); + _val189 = iprot.readString(); + self.parameters[_key188] = _val189 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2120,8 +2381,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 iter183 in self.values: - oprot.writeString(iter183) + for iter190 in self.values: + oprot.writeString(iter190) oprot.writeListEnd() oprot.writeFieldEnd() if self.dbName is not None: @@ -2147,9 +2408,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 kiter184,viter185 in self.parameters.items(): - oprot.writeString(kiter184) - oprot.writeString(viter185) + for kiter191,viter192 in self.parameters.items(): + oprot.writeString(kiter191) + oprot.writeString(viter192) oprot.writeMapEnd() oprot.writeFieldEnd() if self.privileges is not None: @@ -2268,11 +2529,11 @@ def read(self, iprot): elif fid == 9: if ftype == TType.MAP: self.parameters = {} - (_ktype187, _vtype188, _size186 ) = iprot.readMapBegin() - for _i190 in xrange(_size186): - _key191 = iprot.readString(); - _val192 = iprot.readString(); - self.parameters[_key191] = _val192 + (_ktype194, _vtype195, _size193 ) = iprot.readMapBegin() + for _i197 in xrange(_size193): + _key198 = iprot.readString(); + _val199 = iprot.readString(); + self.parameters[_key198] = _val199 iprot.readMapEnd() else: iprot.skip(ftype) @@ -2326,9 +2587,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 kiter193,viter194 in self.parameters.items(): - oprot.writeString(kiter193) - oprot.writeString(viter194) + for kiter200,viter201 in self.parameters.items(): + oprot.writeString(kiter200) + oprot.writeString(viter201) oprot.writeMapEnd() oprot.writeFieldEnd() if self.deferredRebuild is not None: @@ -3198,11 +3459,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.statsObj = [] - (_etype198, _size195) = iprot.readListBegin() - for _i199 in xrange(_size195): - _elem200 = ColumnStatisticsObj() - _elem200.read(iprot) - self.statsObj.append(_elem200) + (_etype205, _size202) = iprot.readListBegin() + for _i206 in xrange(_size202): + _elem207 = ColumnStatisticsObj() + _elem207.read(iprot) + self.statsObj.append(_elem207) iprot.readListEnd() else: iprot.skip(ftype) @@ -3223,8 +3484,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 iter201 in self.statsObj: - iter201.write(oprot) + for iter208 in self.statsObj: + iter208.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3278,22 +3539,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype205, _size202) = iprot.readListBegin() - for _i206 in xrange(_size202): - _elem207 = FieldSchema() - _elem207.read(iprot) - self.fieldSchemas.append(_elem207) + (_etype212, _size209) = iprot.readListBegin() + for _i213 in xrange(_size209): + _elem214 = FieldSchema() + _elem214.read(iprot) + self.fieldSchemas.append(_elem214) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype209, _vtype210, _size208 ) = iprot.readMapBegin() - for _i212 in xrange(_size208): - _key213 = iprot.readString(); - _val214 = iprot.readString(); - self.properties[_key213] = _val214 + (_ktype216, _vtype217, _size215 ) = iprot.readMapBegin() + for _i219 in xrange(_size215): + _key220 = iprot.readString(); + _val221 = iprot.readString(); + self.properties[_key220] = _val221 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3310,16 +3571,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 iter215 in self.fieldSchemas: - iter215.write(oprot) + for iter222 in self.fieldSchemas: + iter222.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 kiter216,viter217 in self.properties.items(): - oprot.writeString(kiter216) - oprot.writeString(viter217) + for kiter223,viter224 in self.properties.items(): + oprot.writeString(kiter223) + oprot.writeString(viter224) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3366,11 +3627,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype219, _vtype220, _size218 ) = iprot.readMapBegin() - for _i222 in xrange(_size218): - _key223 = iprot.readString(); - _val224 = iprot.readString(); - self.properties[_key223] = _val224 + (_ktype226, _vtype227, _size225 ) = iprot.readMapBegin() + for _i229 in xrange(_size225): + _key230 = iprot.readString(); + _val231 = iprot.readString(); + self.properties[_key230] = _val231 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3387,9 +3648,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 kiter225,viter226 in self.properties.items(): - oprot.writeString(kiter225) - oprot.writeString(viter226) + for kiter232,viter233 in self.properties.items(): + oprot.writeString(kiter232) + oprot.writeString(viter233) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3439,11 +3700,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype230, _size227) = iprot.readListBegin() - for _i231 in xrange(_size227): - _elem232 = Partition() - _elem232.read(iprot) - self.partitions.append(_elem232) + (_etype237, _size234) = iprot.readListBegin() + for _i238 in xrange(_size234): + _elem239 = Partition() + _elem239.read(iprot) + self.partitions.append(_elem239) iprot.readListEnd() else: iprot.skip(ftype) @@ -3465,8 +3726,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 iter233 in self.partitions: - iter233.write(oprot) + for iter240 in self.partitions: + iter240.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -3635,11 +3896,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype237, _size234) = iprot.readListBegin() - for _i238 in xrange(_size234): - _elem239 = ColumnStatisticsObj() - _elem239.read(iprot) - self.tableStats.append(_elem239) + (_etype244, _size241) = iprot.readListBegin() + for _i245 in xrange(_size241): + _elem246 = ColumnStatisticsObj() + _elem246.read(iprot) + self.tableStats.append(_elem246) iprot.readListEnd() else: iprot.skip(ftype) @@ -3656,8 +3917,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 iter240 in self.tableStats: - iter240.write(oprot) + for iter247 in self.tableStats: + iter247.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3706,17 +3967,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype242, _vtype243, _size241 ) = iprot.readMapBegin() - for _i245 in xrange(_size241): - _key246 = iprot.readString(); - _val247 = [] - (_etype251, _size248) = iprot.readListBegin() - for _i252 in xrange(_size248): - _elem253 = ColumnStatisticsObj() - _elem253.read(iprot) - _val247.append(_elem253) + (_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) iprot.readListEnd() - self.partStats[_key246] = _val247 + self.partStats[_key253] = _val254 iprot.readMapEnd() else: iprot.skip(ftype) @@ -3733,11 +3994,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 kiter254,viter255 in self.partStats.items(): - oprot.writeString(kiter254) - oprot.writeListBegin(TType.STRUCT, len(viter255)) - for iter256 in viter255: - iter256.write(oprot) + for kiter261,viter262 in self.partStats.items(): + oprot.writeString(kiter261) + oprot.writeListBegin(TType.STRUCT, len(viter262)) + for iter263 in viter262: + iter263.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -3803,10 +4064,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype260, _size257) = iprot.readListBegin() - for _i261 in xrange(_size257): - _elem262 = iprot.readString(); - self.colNames.append(_elem262) + (_etype267, _size264) = iprot.readListBegin() + for _i268 in xrange(_size264): + _elem269 = iprot.readString(); + self.colNames.append(_elem269) iprot.readListEnd() else: iprot.skip(ftype) @@ -3831,8 +4092,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 iter263 in self.colNames: - oprot.writeString(iter263) + for iter270 in self.colNames: + oprot.writeString(iter270) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -3904,20 +4165,20 @@ 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) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype273, _size270) = iprot.readListBegin() - for _i274 in xrange(_size270): - _elem275 = iprot.readString(); - self.partNames.append(_elem275) + (_etype280, _size277) = iprot.readListBegin() + for _i281 in xrange(_size277): + _elem282 = iprot.readString(); + self.partNames.append(_elem282) iprot.readListEnd() else: iprot.skip(ftype) @@ -3942,15 +4203,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 iter276 in self.colNames: - oprot.writeString(iter276) + for iter283 in self.colNames: + oprot.writeString(iter283) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter277 in self.partNames: - oprot.writeString(iter277) + for iter284 in self.partNames: + oprot.writeString(iter284) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4005,11 +4266,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype281, _size278) = iprot.readListBegin() - for _i282 in xrange(_size278): - _elem283 = Partition() - _elem283.read(iprot) - self.partitions.append(_elem283) + (_etype288, _size285) = iprot.readListBegin() + for _i289 in xrange(_size285): + _elem290 = Partition() + _elem290.read(iprot) + self.partitions.append(_elem290) iprot.readListEnd() else: iprot.skip(ftype) @@ -4026,8 +4287,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 iter284 in self.partitions: - iter284.write(oprot) + for iter291 in self.partitions: + iter291.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4096,11 +4357,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype288, _size285) = iprot.readListBegin() - for _i289 in xrange(_size285): - _elem290 = Partition() - _elem290.read(iprot) - self.parts.append(_elem290) + (_etype295, _size292) = iprot.readListBegin() + for _i296 in xrange(_size292): + _elem297 = Partition() + _elem297.read(iprot) + self.parts.append(_elem297) iprot.readListEnd() else: iprot.skip(ftype) @@ -4135,8 +4396,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 iter291 in self.parts: - iter291.write(oprot) + for iter298 in self.parts: + iter298.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -4199,11 +4460,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype295, _size292) = iprot.readListBegin() - for _i296 in xrange(_size292): - _elem297 = Partition() - _elem297.read(iprot) - self.partitions.append(_elem297) + (_etype302, _size299) = iprot.readListBegin() + for _i303 in xrange(_size299): + _elem304 = Partition() + _elem304.read(iprot) + self.partitions.append(_elem304) iprot.readListEnd() else: iprot.skip(ftype) @@ -4220,8 +4481,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 iter298 in self.partitions: - iter298.write(oprot) + for iter305 in self.partitions: + iter305.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4345,21 +4606,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = iprot.readString(); - self.names.append(_elem304) + (_etype309, _size306) = iprot.readListBegin() + for _i310 in xrange(_size306): + _elem311 = iprot.readString(); + self.names.append(_elem311) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype308, _size305) = iprot.readListBegin() - for _i309 in xrange(_size305): - _elem310 = DropPartitionsExpr() - _elem310.read(iprot) - self.exprs.append(_elem310) + (_etype315, _size312) = iprot.readListBegin() + for _i316 in xrange(_size312): + _elem317 = DropPartitionsExpr() + _elem317.read(iprot) + self.exprs.append(_elem317) iprot.readListEnd() else: iprot.skip(ftype) @@ -4376,15 +4637,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 iter311 in self.names: - oprot.writeString(iter311) + for iter318 in self.names: + oprot.writeString(iter318) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter312 in self.exprs: - iter312.write(oprot) + for iter319 in self.exprs: + iter319.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4711,11 +4972,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype316, _size313) = iprot.readListBegin() - for _i317 in xrange(_size313): - _elem318 = ResourceUri() - _elem318.read(iprot) - self.resourceUris.append(_elem318) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = ResourceUri() + _elem325.read(iprot) + self.resourceUris.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) @@ -4760,8 +5021,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 iter319 in self.resourceUris: - iter319.write(oprot) + for iter326 in self.resourceUris: + iter326.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4920,11 +5181,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = TxnInfo() - _elem325.read(iprot) - self.open_txns.append(_elem325) + (_etype330, _size327) = iprot.readListBegin() + for _i331 in xrange(_size327): + _elem332 = TxnInfo() + _elem332.read(iprot) + self.open_txns.append(_elem332) iprot.readListEnd() else: iprot.skip(ftype) @@ -4945,8 +5206,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 iter326 in self.open_txns: - iter326.write(oprot) + for iter333 in self.open_txns: + iter333.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5005,10 +5266,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.SET: self.open_txns = set() - (_etype330, _size327) = iprot.readSetBegin() - for _i331 in xrange(_size327): - _elem332 = iprot.readI64(); - self.open_txns.add(_elem332) + (_etype337, _size334) = iprot.readSetBegin() + for _i338 in xrange(_size334): + _elem339 = iprot.readI64(); + self.open_txns.add(_elem339) iprot.readSetEnd() else: iprot.skip(ftype) @@ -5029,8 +5290,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 iter333 in self.open_txns: - oprot.writeI64(iter333) + for iter340 in self.open_txns: + oprot.writeI64(iter340) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5171,10 +5432,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype337, _size334) = iprot.readListBegin() - for _i338 in xrange(_size334): - _elem339 = iprot.readI64(); - self.txn_ids.append(_elem339) + (_etype344, _size341) = iprot.readListBegin() + for _i345 in xrange(_size341): + _elem346 = iprot.readI64(); + self.txn_ids.append(_elem346) iprot.readListEnd() else: iprot.skip(ftype) @@ -5191,8 +5452,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 iter340 in self.txn_ids: - oprot.writeI64(iter340) + for iter347 in self.txn_ids: + oprot.writeI64(iter347) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5488,11 +5749,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype344, _size341) = iprot.readListBegin() - for _i345 in xrange(_size341): - _elem346 = LockComponent() - _elem346.read(iprot) - self.component.append(_elem346) + (_etype351, _size348) = iprot.readListBegin() + for _i352 in xrange(_size348): + _elem353 = LockComponent() + _elem353.read(iprot) + self.component.append(_elem353) iprot.readListEnd() else: iprot.skip(ftype) @@ -5524,8 +5785,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 iter347 in self.component: - iter347.write(oprot) + for iter354 in self.component: + iter354.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -6026,11 +6287,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype351, _size348) = iprot.readListBegin() - for _i352 in xrange(_size348): - _elem353 = ShowLocksResponseElement() - _elem353.read(iprot) - self.locks.append(_elem353) + (_etype358, _size355) = iprot.readListBegin() + for _i359 in xrange(_size355): + _elem360 = ShowLocksResponseElement() + _elem360.read(iprot) + self.locks.append(_elem360) iprot.readListEnd() else: iprot.skip(ftype) @@ -6047,8 +6308,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 iter354 in self.locks: - iter354.write(oprot) + for iter361 in self.locks: + iter361.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6483,11 +6744,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype358, _size355) = iprot.readListBegin() - for _i359 in xrange(_size355): - _elem360 = ShowCompactResponseElement() - _elem360.read(iprot) - self.compacts.append(_elem360) + (_etype365, _size362) = iprot.readListBegin() + for _i366 in xrange(_size362): + _elem367 = ShowCompactResponseElement() + _elem367.read(iprot) + self.compacts.append(_elem367) iprot.readListEnd() else: iprot.skip(ftype) @@ -6504,8 +6765,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 iter361 in self.compacts: - iter361.write(oprot) + for iter368 in self.compacts: + iter368.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 8fa27e6..b768b7f 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -291,6 +291,72 @@ class Role ::Thrift::Struct.generate_accessors self end +class RolePrincipalGrant + include ::Thrift::Struct, ::Thrift::Struct_Union + ROLENAME = 1 + PRINCIPALNAME = 2 + PRINCIPALTYPE = 3 + GRANTOPTION = 4 + GRANTTIME = 5 + GRANTORNAME = 6 + GRANTORPRINCIPALTYPE = 7 + + FIELDS = { + ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'}, + PRINCIPALNAME => {:type => ::Thrift::Types::STRING, :name => 'principalName'}, + PRINCIPALTYPE => {:type => ::Thrift::Types::I32, :name => 'principalType', :enum_class => ::PrincipalType}, + GRANTOPTION => {:type => ::Thrift::Types::BOOL, :name => 'grantOption'}, + GRANTTIME => {:type => ::Thrift::Types::I32, :name => 'grantTime'}, + GRANTORNAME => {:type => ::Thrift::Types::STRING, :name => 'grantorName'}, + GRANTORPRINCIPALTYPE => {:type => ::Thrift::Types::I32, :name => 'grantorPrincipalType', :enum_class => ::PrincipalType} + } + + def struct_fields; FIELDS; end + + def validate + unless @principalType.nil? || ::PrincipalType::VALID_VALUES.include?(@principalType) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field principalType!') + end + unless @grantorPrincipalType.nil? || ::PrincipalType::VALID_VALUES.include?(@grantorPrincipalType) + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field grantorPrincipalType!') + end + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPrincipalsInRoleRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + ROLENAME = 1 + + FIELDS = { + ROLENAME => {:type => ::Thrift::Types::STRING, :name => 'roleName'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + +class GetPrincipalsInRoleResponse + 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 + end + + ::Thrift::Struct.generate_accessors self +end + class Database include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 1 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 ff46007..745c1f5 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1448,6 +1448,22 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'list_roles failed: unknown result') end + def get_principals_in_role(request) + send_get_principals_in_role(request) + return recv_get_principals_in_role() + end + + def send_get_principals_in_role(request) + send_message('get_principals_in_role', Get_principals_in_role_args, :request => request) + end + + def recv_get_principals_in_role() + result = receive_message(Get_principals_in_role_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_principals_in_role 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() @@ -2912,6 +2928,17 @@ module ThriftHiveMetastore write_result(result, oprot, 'list_roles', seqid) end + def process_get_principals_in_role(seqid, iprot, oprot) + args = read_args(iprot, Get_principals_in_role_args) + result = Get_principals_in_role_result.new() + begin + result.success = @handler.get_principals_in_role(args.request) + rescue ::MetaException => o1 + result.o1 = o1 + end + write_result(result, oprot, 'get_principals_in_role', seqid) + end + def process_get_privilege_set(seqid, iprot, oprot) args = read_args(iprot, Get_privilege_set_args) result = Get_privilege_set_result.new() @@ -6454,6 +6481,40 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_principals_in_role_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::GetPrincipalsInRoleRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_principals_in_role_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::GetPrincipalsInRoleResponse}, + 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 0cabf35..06c216f 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -18,8 +18,6 @@ package org.apache.hadoop.hive.metastore; -import com.facebook.fb303.FacebookBase; -import com.facebook.fb303.fb_status; import static org.apache.commons.lang.StringUtils.join; import static org.apache.hadoop.hive.metastore.MetaStoreUtils.DEFAULT_DATABASE_COMMENT; import static org.apache.hadoop.hive.metastore.MetaStoreUtils.DEFAULT_DATABASE_NAME; @@ -44,7 +42,6 @@ import java.util.Properties; import java.util.Set; import java.util.Timer; -import java.util.concurrent.atomic.AtomicBoolean; import java.util.regex.Pattern; import org.apache.commons.cli.OptionBuilder; @@ -53,7 +50,6 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.FileUtils; -import org.apache.hadoop.hive.common.JavaUtils; import org.apache.hadoop.hive.common.LogUtils; import org.apache.hadoop.hive.common.LogUtils.LogInitializationException; import org.apache.hadoop.hive.common.classification.InterfaceAudience; @@ -82,6 +78,8 @@ import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; 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.HeartbeatRequest; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -112,6 +110,7 @@ import org.apache.hadoop.hive.metastore.api.PrivilegeGrantInfo; import org.apache.hadoop.hive.metastore.api.RequestPartsSpec; import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.RolePrincipalGrant; import org.apache.hadoop.hive.metastore.api.ShowCompactRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowLocksRequest; @@ -120,6 +119,7 @@ import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.hive.metastore.api.TableStatsRequest; import org.apache.hadoop.hive.metastore.api.TableStatsResult; +import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; import org.apache.hadoop.hive.metastore.api.TxnAbortedException; import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.Type; @@ -128,8 +128,6 @@ import org.apache.hadoop.hive.metastore.api.UnknownTableException; import org.apache.hadoop.hive.metastore.api.UnlockRequest; import org.apache.hadoop.hive.metastore.api.hive_metastoreConstants; -import org.apache.hadoop.hive.metastore.txn.TxnHandler; -import org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore; import org.apache.hadoop.hive.metastore.events.AddPartitionEvent; import org.apache.hadoop.hive.metastore.events.AlterPartitionEvent; import org.apache.hadoop.hive.metastore.events.AlterTableEvent; @@ -158,6 +156,7 @@ import org.apache.hadoop.hive.metastore.model.MRoleMap; import org.apache.hadoop.hive.metastore.model.MTableColumnPrivilege; import org.apache.hadoop.hive.metastore.model.MTablePrivilege; +import org.apache.hadoop.hive.metastore.txn.TxnHandler; import org.apache.hadoop.hive.serde2.Deserializer; import org.apache.hadoop.hive.serde2.SerDeException; import org.apache.hadoop.hive.serde2.SerDeUtils; @@ -172,8 +171,14 @@ import org.apache.thrift.protocol.TBinaryProtocol; import org.apache.thrift.server.TServer; import org.apache.thrift.server.TThreadPoolServer; -import org.apache.thrift.transport.*; +import org.apache.thrift.transport.TFramedTransport; +import org.apache.thrift.transport.TServerSocket; +import org.apache.thrift.transport.TServerTransport; +import org.apache.thrift.transport.TTransport; +import org.apache.thrift.transport.TTransportFactory; +import com.facebook.fb303.FacebookBase; +import com.facebook.fb303.fb_status; import com.google.common.base.Splitter; import com.google.common.collect.Lists; @@ -4027,6 +4032,8 @@ private boolean isNewRoleAParent(String newRole, String curRole) throws MetaExce } } + + @Override public boolean create_role(final Role role) throws MetaException, TException { @@ -4875,8 +4882,52 @@ public ShowCompactResponse show_compact(ShowCompactRequest rqst) throws TExcepti throw new TException(e); } } + + @Override + public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest request) + throws MetaException, TException { + + incrementCounter("get_principals_in_role"); + String role_name = request.getRoleName(); + List rolePrinGrantList = new ArrayList(); + Exception ex = 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); + } + } + + } catch (MetaException e) { + throw e; + } catch (Exception e) { + ex = e; + rethrowException(e); + } finally { + endFunction("get_principals_in_role", ex == null, ex); + } + return new GetPrincipalsInRoleResponse(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 8d5b225..529e538 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -27,6 +27,8 @@ import java.lang.reflect.Method; import java.lang.reflect.Proxy; import java.net.InetAddress; +import java.net.URI; +import java.net.URISyntaxException; import java.net.UnknownHostException; import java.nio.ByteBuffer; import java.util.ArrayList; @@ -60,12 +62,13 @@ import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.DropPartitionsExpr; import org.apache.hadoop.hive.metastore.api.DropPartitionsRequest; -import org.apache.hadoop.hive.metastore.api.DropPartitionsResult; import org.apache.hadoop.hive.metastore.api.EnvironmentContext; 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.GetOpenTxnsResponse; +import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; +import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.HeartbeatRequest; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; @@ -119,12 +122,6 @@ import org.apache.thrift.transport.TTransport; import org.apache.thrift.transport.TTransportException; -import java.net.URI; -import java.net.URISyntaxException; - -import static org.apache.hadoop.hive.metastore.MetaStoreUtils.DEFAULT_DATABASE_NAME; -import static org.apache.hadoop.hive.metastore.MetaStoreUtils.isIndexTable; - /** * Hive Metastore Client. */ @@ -224,6 +221,7 @@ private void promoteRandomMetaStoreURI() { metastoreUris[index] = tmp; } + @Override public void reconnect() throws MetaException { if (localMetaStore) { // For direct DB connections we don't yet support reestablishing connections. @@ -250,6 +248,7 @@ public void reconnect() throws MetaException { * java.lang.String, java.lang.String, * org.apache.hadoop.hive.metastore.api.Table) */ + @Override public void alter_table(String dbname, String tbl_name, Table new_tbl) throws InvalidOperationException, MetaException, TException { alter_table(dbname, tbl_name, new_tbl, null); @@ -271,6 +270,7 @@ public void alter_table(String dbname, String tbl_name, Table new_tbl, * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#rename_partition( * java.lang.String, java.lang.String, java.util.List, org.apache.hadoop.hive.metastore.api.Partition) */ + @Override public void renamePartition(final String dbname, final String name, final List part_vals, final Partition newPart) throws InvalidOperationException, MetaException, TException { client.rename_partition(dbname, name, part_vals, newPart); @@ -381,6 +381,7 @@ public String getTokenStrForm() throws IOException { return tokenStrForm; } + @Override public void close() { isConnected = false; try { @@ -406,6 +407,7 @@ public void close() { * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#add_partition(org.apache.hadoop.hive.metastore.api.Partition) */ + @Override public Partition add_partition(Partition new_part) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { @@ -426,6 +428,7 @@ public Partition add_partition(Partition new_part, EnvironmentContext envContext * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#add_partitions(List) */ + @Override public int add_partitions(List new_parts) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { @@ -459,6 +462,7 @@ public int add_partitions(List new_parts) * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#append_partition(java.lang.String, * java.lang.String, java.util.List) */ + @Override public Partition appendPartition(String db_name, String table_name, List part_vals) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { @@ -472,6 +476,7 @@ public Partition appendPartition(String db_name, String table_name, List part_vals, envContext)); } + @Override public Partition appendPartition(String dbName, String tableName, String partName) throws InvalidObjectException, AlreadyExistsException, MetaException, TException { return appendPartition(dbName, tableName, partName, null); @@ -500,6 +505,7 @@ public Partition exchange_partition(Map partitionSpecs, destDb, destinationTableName); } + @Override public void validatePartitionNameCharacters(List partVals) throws TException, MetaException { client.partition_name_has_valid_characters(partVals, true); @@ -514,6 +520,7 @@ public void validatePartitionNameCharacters(List partVals) * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_database(Database) */ + @Override public void createDatabase(Database db) throws AlreadyExistsException, InvalidObjectException, MetaException, TException { client.create_database(db); @@ -526,6 +533,7 @@ public void createDatabase(Database db) * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#create_table(org.apache.hadoop.hive.metastore.api.Table) */ + @Override public void createTable(Table tbl) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { createTable(tbl, null); @@ -573,16 +581,19 @@ public boolean createType(Type type) throws AlreadyExistsException, * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_database(java.lang.String, boolean, boolean) */ + @Override public void dropDatabase(String name) throws NoSuchObjectException, InvalidOperationException, MetaException, TException { dropDatabase(name, true, false, false); } + @Override public void dropDatabase(String name, boolean deleteData, boolean ignoreUnknownDb) throws NoSuchObjectException, InvalidOperationException, MetaException, TException { dropDatabase(name, deleteData, ignoreUnknownDb, false); } + @Override public void dropDatabase(String name, boolean deleteData, boolean ignoreUnknownDb, boolean cascade) throws NoSuchObjectException, InvalidOperationException, MetaException, TException { try { @@ -630,6 +641,7 @@ public boolean dropPartition(String db_name, String tbl_name, List part_ return dropPartition(db_name, tbl_name, part_vals, true, env_context); } + @Override public boolean dropPartition(String dbName, String tableName, String partName, boolean deleteData) throws NoSuchObjectException, MetaException, TException { return dropPartition(dbName, tableName, partName, deleteData, null); @@ -654,6 +666,7 @@ public boolean dropPartition(String dbName, String tableName, String partName, b * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_partition(java.lang.String, * java.lang.String, java.util.List, boolean) */ + @Override public boolean dropPartition(String db_name, String tbl_name, List part_vals, boolean deleteData) throws NoSuchObjectException, MetaException, TException { @@ -697,12 +710,14 @@ public boolean dropPartition(String db_name, String tbl_name, List part_ * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_table(java.lang.String, * java.lang.String, boolean) */ + @Override public void dropTable(String dbname, String name) throws NoSuchObjectException, MetaException, TException { dropTable(dbname, name, true, true, null); } /** {@inheritDoc} */ + @Override @Deprecated public void dropTable(String tableName, boolean deleteData) throws MetaException, UnknownTableException, TException, NoSuchObjectException { @@ -720,6 +735,7 @@ public void dropTable(String tableName, boolean deleteData) * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#drop_table(java.lang.String, * java.lang.String, boolean) */ + @Override public void dropTable(String dbname, String name, boolean deleteData, boolean ignoreUnknownTab) throws MetaException, TException, NoSuchObjectException, UnsupportedOperationException { @@ -795,6 +811,7 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException } /** {@inheritDoc} */ + @Override public List getDatabases(String databasePattern) throws MetaException { try { @@ -806,6 +823,7 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException } /** {@inheritDoc} */ + @Override public List getAllDatabases() throws MetaException { try { return client.get_all_databases(); @@ -824,6 +842,7 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException * @throws MetaException * @throws TException */ + @Override public List listPartitions(String db_name, String tbl_name, short max_parts) throws NoSuchObjectException, MetaException, TException { return deepCopyPartitions( @@ -869,6 +888,7 @@ public boolean dropType(String type) throws NoSuchObjectException, MetaException * @throws NoSuchObjectException * @throws TException */ + @Override public List listPartitionsByFilter(String db_name, String tbl_name, String filter, short max_parts) throws MetaException, NoSuchObjectException, TException { @@ -915,6 +935,7 @@ public boolean listPartitionsByExpr(String db_name, String tbl_name, byte[] expr * @throws TException * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#get_database(java.lang.String) */ + @Override public Database getDatabase(String name) throws NoSuchObjectException, MetaException, TException { return deepCopy(client.get_database(name)); @@ -930,11 +951,13 @@ public Database getDatabase(String name) throws NoSuchObjectException, * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#get_partition(java.lang.String, * java.lang.String, java.util.List) */ + @Override public Partition getPartition(String db_name, String tbl_name, List part_vals) throws NoSuchObjectException, MetaException, TException { return deepCopy(client.get_partition(db_name, tbl_name, part_vals)); } + @Override public List getPartitionsByNames(String db_name, String tbl_name, List part_names) throws NoSuchObjectException, MetaException, TException { return deepCopyPartitions(client.get_partitions_by_names(db_name, tbl_name, part_names)); @@ -960,12 +983,14 @@ public Partition getPartitionWithAuthInfo(String db_name, String tbl_name, * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#get_table(java.lang.String, * java.lang.String) */ + @Override public Table getTable(String dbname, String name) throws MetaException, TException, NoSuchObjectException { return deepCopy(client.get_table(dbname, name)); } /** {@inheritDoc} */ + @Override @Deprecated public Table getTable(String tableName) throws MetaException, TException, NoSuchObjectException { @@ -973,12 +998,14 @@ public Table getTable(String tableName) throws MetaException, TException, } /** {@inheritDoc} */ + @Override public List
getTableObjectsByName(String dbName, List tableNames) throws MetaException, InvalidOperationException, UnknownDBException, TException { return deepCopyTables(client.get_table_objects_by_name(dbName, tableNames)); } /** {@inheritDoc} */ + @Override public List listTableNamesByFilter(String dbName, String filter, short maxTables) throws MetaException, TException, InvalidOperationException, UnknownDBException { return client.get_table_names_by_filter(dbName, filter, maxTables); @@ -997,6 +1024,7 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE } /** {@inheritDoc} */ + @Override public List getTables(String dbname, String tablePattern) throws MetaException { try { return client.get_tables(dbname, tablePattern); @@ -1007,6 +1035,7 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE } /** {@inheritDoc} */ + @Override public List getAllTables(String dbname) throws MetaException { try { return client.get_all_tables(dbname); @@ -1016,6 +1045,7 @@ public Type getType(String name) throws NoSuchObjectException, MetaException, TE return null; } + @Override public boolean tableExists(String databaseName, String tableName) throws MetaException, TException, UnknownDBException { try { @@ -1027,12 +1057,14 @@ public boolean tableExists(String databaseName, String tableName) throws MetaExc } /** {@inheritDoc} */ + @Override @Deprecated public boolean tableExists(String tableName) throws MetaException, TException, UnknownDBException { return tableExists(DEFAULT_DATABASE_NAME, tableName); } + @Override public List listPartitionNames(String dbName, String tblName, short max) throws MetaException, TException { return client.get_partition_names(dbName, tblName, max); @@ -1045,16 +1077,19 @@ public boolean tableExists(String tableName) throws MetaException, return client.get_partition_names_ps(db_name, tbl_name, part_vals, max_parts); } + @Override public void alter_partition(String dbName, String tblName, Partition newPart) throws InvalidOperationException, MetaException, TException { client.alter_partition(dbName, tblName, newPart); } + @Override public void alter_partitions(String dbName, String tblName, List newParts) throws InvalidOperationException, MetaException, TException { client.alter_partitions(dbName, tblName, newParts); } + @Override public void alterDatabase(String dbName, Database db) throws MetaException, NoSuchObjectException, TException { client.alter_database(dbName, db); @@ -1069,6 +1104,7 @@ public void alterDatabase(String dbName, Database db) * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#get_fields(java.lang.String, * java.lang.String) */ + @Override public List getFields(String db, String tableName) throws MetaException, TException, UnknownTableException, UnknownDBException { @@ -1085,6 +1121,7 @@ public void alterDatabase(String dbName, Database db) * @throws TException * @throws AlreadyExistsException */ + @Override public void createIndex(Index index, Table indexTable) throws AlreadyExistsException, InvalidObjectException, MetaException, NoSuchObjectException, TException { client.add_index(index, indexTable); } @@ -1100,6 +1137,7 @@ public void createIndex(Index index, Table indexTable) throws AlreadyExistsExcep * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#alter_index(java.lang.String, * java.lang.String, java.lang.String, org.apache.hadoop.hive.metastore.api.Index) */ + @Override public void alter_index(String dbname, String base_tbl_name, String idx_name, Index new_idx) throws InvalidOperationException, MetaException, TException { client.alter_index(dbname, base_tbl_name, idx_name, new_idx); @@ -1115,6 +1153,7 @@ public void alter_index(String dbname, String base_tbl_name, String idx_name, In * @throws NoSuchObjectException * @throws TException */ + @Override public Index getIndex(String dbName, String tblName, String indexName) throws MetaException, UnknownTableException, NoSuchObjectException, TException { @@ -1131,6 +1170,7 @@ public Index getIndex(String dbName, String tblName, String indexName) * @throws MetaException * @throws TException */ + @Override public List listIndexNames(String dbName, String tblName, short max) throws MetaException, TException { return client.get_index_names(dbName, tblName, max); @@ -1146,12 +1186,14 @@ public Index getIndex(String dbName, String tblName, String indexName) * @throws MetaException * @throws TException */ + @Override public List listIndexes(String dbName, String tblName, short max) throws NoSuchObjectException, MetaException, TException { return client.get_indexes(dbName, tblName, max); } /** {@inheritDoc} */ + @Override public boolean updateTableColumnStatistics(ColumnStatistics statsObj) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException{ @@ -1159,6 +1201,7 @@ public boolean updateTableColumnStatistics(ColumnStatistics statsObj) } /** {@inheritDoc} */ + @Override public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException{ @@ -1166,6 +1209,7 @@ public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) } /** {@inheritDoc} */ + @Override public List getTableColumnStatistics(String dbName, String tableName, List colNames) throws NoSuchObjectException, MetaException, TException, InvalidInputException, InvalidObjectException { @@ -1174,6 +1218,7 @@ public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) } /** {@inheritDoc} */ + @Override public Map> getPartitionColumnStatistics( String dbName, String tableName, List partNames, List colNames) throws NoSuchObjectException, MetaException, TException { @@ -1182,6 +1227,7 @@ public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) } /** {@inheritDoc} */ + @Override public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, String colName) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException @@ -1190,6 +1236,7 @@ public boolean deletePartitionColumnStatistics(String dbName, String tableName, } /** {@inheritDoc} */ + @Override public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName) throws NoSuchObjectException, InvalidObjectException, MetaException, TException, InvalidInputException @@ -1207,17 +1254,20 @@ public boolean deleteTableColumnStatistics(String dbName, String tableName, Stri * @see org.apache.hadoop.hive.metastore.api.ThriftHiveMetastore.Iface#get_schema(java.lang.String, * java.lang.String) */ + @Override public List getSchema(String db, String tableName) throws MetaException, TException, UnknownTableException, UnknownDBException { return deepCopyFieldSchemas(client.get_schema(db, tableName)); } + @Override public String getConfigValue(String name, String defaultValue) throws TException, ConfigValSecurityException { return client.get_config_value(name, defaultValue); } + @Override public Partition getPartition(String db, String tableName, String partName) throws MetaException, TException, UnknownTableException, NoSuchObjectException { return deepCopy(client.get_partition_by_name(db, tableName, partName)); @@ -1402,6 +1452,12 @@ public boolean drop_role(String roleName) throws MetaException, TException { } @Override + public GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest req) + throws MetaException, TException { + return client.get_principals_in_role(req); + } + + @Override public boolean grant_privileges(PrivilegeBag privileges) throws MetaException, TException { return client.grant_privileges(privileges); @@ -1656,6 +1712,7 @@ public static IMetaStoreClient newSynchronizedClient( this.client = client; } + @Override public Object invoke(Object proxy, Method method, Object [] args) throws Throwable { try { 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 612a1a7..0f8dd54 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -18,20 +18,6 @@ package org.apache.hadoop.hive.metastore; -import org.apache.hadoop.hive.metastore.api.CompactionType; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsInfoResponse; -import org.apache.hadoop.hive.metastore.api.GetOpenTxnsResponse; -import org.apache.hadoop.hive.metastore.api.LockRequest; -import org.apache.hadoop.hive.metastore.api.LockResponse; -import org.apache.hadoop.hive.metastore.api.NoSuchLockException; -import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; -import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; -import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; -import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; -import org.apache.hadoop.hive.metastore.api.TxnAbortedException; -import org.apache.hadoop.hive.metastore.api.TxnOpenException; -import org.apache.thrift.TException; - import java.util.List; import java.util.Map; @@ -39,10 +25,15 @@ import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; +import org.apache.hadoop.hive.metastore.api.CompactionType; import org.apache.hadoop.hive.metastore.api.ConfigValSecurityException; import org.apache.hadoop.hive.metastore.api.Database; 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.GetOpenTxnsResponse; +import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleRequest; +import org.apache.hadoop.hive.metastore.api.GetPrincipalsInRoleResponse; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.Index; @@ -50,15 +41,24 @@ import org.apache.hadoop.hive.metastore.api.InvalidObjectException; import org.apache.hadoop.hive.metastore.api.InvalidOperationException; import org.apache.hadoop.hive.metastore.api.InvalidPartitionException; +import org.apache.hadoop.hive.metastore.api.LockRequest; +import org.apache.hadoop.hive.metastore.api.LockResponse; import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NoSuchLockException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; +import org.apache.hadoop.hive.metastore.api.NoSuchTxnException; +import org.apache.hadoop.hive.metastore.api.OpenTxnsResponse; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; 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.ShowCompactResponse; +import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; import org.apache.hadoop.hive.metastore.api.Table; +import org.apache.hadoop.hive.metastore.api.TxnAbortedException; +import org.apache.hadoop.hive.metastore.api.TxnOpenException; import org.apache.hadoop.hive.metastore.api.UnknownDBException; import org.apache.hadoop.hive.metastore.api.UnknownPartitionException; import org.apache.hadoop.hive.metastore.api.UnknownTableException; @@ -1079,6 +1079,7 @@ public Function getFunction(String dbName, String funcName) * implementation needs to override the default implementation. This should produce a string * that can be used by {@link #fromString(String)} to populate a validTxnsList. */ + @Override public String toString(); /** @@ -1297,4 +1298,16 @@ public IncompatibleMetastoreException(String message) { super(message); } } + + /** + * get all role-grants for users/roles that have been granted the given role + * Note that in the returned list of RolePrincipalGrants, the roleName is + * redundant as it would match the role_name argument of this function + * @param getPrincRoleReq + * @return + * @throws MetaException + * @throws TException + */ + GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest getPrincRoleReq) throws MetaException, + TException; } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 4c0c244..0c243ae 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -3105,7 +3105,7 @@ public boolean removeRole(String roleName) throws MetaException, if (mRol != null) { // first remove all the membership, the membership that this role has // been granted - List roleMap = listRoleMembers(mRol); + List roleMap = listRoleMembers(mRol.getRoleName()); if (roleMap.size() > 0) { pm.deletePersistentAll(roleMap); } @@ -4053,8 +4053,8 @@ public boolean revokePrivileges(PrivilegeBag privileges) } @SuppressWarnings("unchecked") - private List listRoleMembers( - MRole mRol) { + @Override + public List listRoleMembers(String roleName) { boolean success = false; List mRoleMemeberList = null; try { @@ -4065,7 +4065,7 @@ public boolean revokePrivileges(PrivilegeBag privileges) query.declareParameters("java.lang.String t1"); query.setUnique(false); mRoleMemeberList = (List) query.execute( - mRol.getRoleName()); + roleName); LOG.debug("Done executing query for listMSecurityUserRoleMember"); pm.retrieveAll(mRoleMemeberList); success = commitTransaction(); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 05938ea..e0de0e0 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -24,7 +24,6 @@ import java.lang.annotation.Target; import java.util.List; import java.util.Map; -import java.util.Set; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; @@ -285,6 +284,15 @@ public abstract boolean revokePrivileges (PrivilegeBag privileges) public List listRoles(String principalName, PrincipalType principalType); + + /** + * Get the role to principal grant mapping for given role + * @param roleName + * @return + */ + public List listRoleMembers(String roleName); + + public abstract Partition getPartitionWithAuth(String dbName, String tblName, List partVals, String user_name, List group_names) throws MetaException, NoSuchObjectException, InvalidObjectException; diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 8d8ce97..5c00aa1 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -21,7 +21,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.Set; import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; @@ -459,6 +458,11 @@ public Role getRole(String roleName) throws NoSuchObjectException { } @Override + public List listRoleMembers(String roleName) { + return objectStore.listRoleMembers(roleName); + } + + @Override public Partition getPartitionWithAuth(String dbName, String tblName, List partVals, String userName, List groupNames) throws MetaException, NoSuchObjectException, InvalidObjectException { @@ -571,6 +575,7 @@ public boolean deleteTableColumnStatistics(String dbName, String tableName, return objectStore.deleteTableColumnStatistics(dbName, tableName, colName); } + @Override public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, List partVals, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, @@ -586,6 +591,7 @@ public boolean updateTableColumnStatistics(ColumnStatistics statsObj) return objectStore.updateTableColumnStatistics(statsObj); } + @Override public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj, List partVals) throws NoSuchObjectException, MetaException, InvalidObjectException, @@ -593,33 +599,41 @@ public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj, return objectStore.updatePartitionColumnStatistics(statsObj, partVals); } + @Override public boolean addToken(String tokenIdentifier, String delegationToken) { return false; } + @Override public boolean removeToken(String tokenIdentifier) { return false; } + @Override public String getToken(String tokenIdentifier) { return ""; } + @Override public List getAllTokenIdentifiers() { return new ArrayList(); } + @Override public int addMasterKey(String key) throws MetaException { return -1; } + @Override public void updateMasterKey(Integer seqNo, String key) throws NoSuchObjectException, MetaException {} + @Override public boolean removeMasterKey(Integer keySeq) { return false; } + @Override public String[] getMasterKeys() { return new String[0]; } @@ -664,6 +678,7 @@ public void dropPartitions(String dbName, String tblName, List partNames objectStore.dropPartitions(dbName, tblName, partNames); } + @Override public void createFunction(Function func) throws InvalidObjectException, MetaException { objectStore.createFunction(func); @@ -694,4 +709,5 @@ public Function getFunction(String dbName, String funcName) return objectStore.getFunctions(dbName, pattern); } + } diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 397ae06..5025b83 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -20,7 +20,6 @@ import java.util.List; import java.util.Map; -import java.util.Set; import junit.framework.Assert; @@ -488,6 +487,11 @@ public Role getRole(String roleName) throws NoSuchObjectException { } @Override + public List listRoleMembers(String roleName) { + return null; + } + + @Override public Partition getPartitionWithAuth(String dbName, String tblName, List partVals, String user_name, List group_names) throws MetaException, NoSuchObjectException, InvalidObjectException { @@ -637,6 +641,7 @@ public boolean deleteTableColumnStatistics(String dbName, String tableName, } + @Override public boolean deletePartitionColumnStatistics(String dbName, String tableName, String partName, List partVals, String colName) throws NoSuchObjectException, MetaException, InvalidObjectException, @@ -651,6 +656,7 @@ public boolean updateTableColumnStatistics(ColumnStatistics statsObj) return false; } + @Override public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj,List partVals) throws NoSuchObjectException, MetaException, InvalidObjectException { return false; @@ -692,6 +698,7 @@ public boolean addPartitions(String dbName, String tblName, List part public void dropPartitions(String dbName, String tblName, List partNames) { } + @Override public void createFunction(Function func) throws InvalidObjectException, MetaException { } @@ -718,6 +725,8 @@ public Function getFunction(String dbName, String funcName) throws MetaException { return null; } + + } 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 ab6f95d..2295b0d 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 @@ -47,8 +47,11 @@ import org.apache.commons.lang.StringUtils; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; -import org.apache.hadoop.fs.*; +import org.apache.hadoop.fs.FSDataOutputStream; +import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; +import org.apache.hadoop.fs.FsShell; +import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.type.HiveDecimal; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; @@ -56,7 +59,26 @@ import org.apache.hadoop.hive.metastore.ProtectMode; import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.Warehouse; -import org.apache.hadoop.hive.metastore.api.*; +import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; +import org.apache.hadoop.hive.metastore.api.Database; +import org.apache.hadoop.hive.metastore.api.FieldSchema; +import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; +import org.apache.hadoop.hive.metastore.api.HiveObjectRef; +import org.apache.hadoop.hive.metastore.api.HiveObjectType; +import org.apache.hadoop.hive.metastore.api.Index; +import org.apache.hadoop.hive.metastore.api.InvalidOperationException; +import org.apache.hadoop.hive.metastore.api.MetaException; +import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; +import org.apache.hadoop.hive.metastore.api.Order; +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.SerDeInfo; +import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; +import org.apache.hadoop.hive.metastore.api.ShowLocksResponseElement; +import org.apache.hadoop.hive.metastore.api.SkewedInfo; +import org.apache.hadoop.hive.metastore.api.StorageDescriptor; import org.apache.hadoop.hive.ql.Context; import org.apache.hadoop.hive.ql.DriverContext; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -68,16 +90,31 @@ import org.apache.hadoop.hive.ql.io.rcfile.merge.MergeWork; import org.apache.hadoop.hive.ql.io.rcfile.truncate.ColumnTruncateTask; import org.apache.hadoop.hive.ql.io.rcfile.truncate.ColumnTruncateWork; -import org.apache.hadoop.hive.ql.lockmgr.*; +import org.apache.hadoop.hive.ql.lockmgr.DbLockManager; +import org.apache.hadoop.hive.ql.lockmgr.HiveLock; +import org.apache.hadoop.hive.ql.lockmgr.HiveLockManager; +import org.apache.hadoop.hive.ql.lockmgr.HiveLockMode; +import org.apache.hadoop.hive.ql.lockmgr.HiveLockObject; import org.apache.hadoop.hive.ql.lockmgr.HiveLockObject.HiveLockObjectData; -import org.apache.hadoop.hive.ql.metadata.*; +import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; +import org.apache.hadoop.hive.ql.metadata.CheckResult; +import org.apache.hadoop.hive.ql.metadata.Hive; +import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.HiveMetaStoreChecker; +import org.apache.hadoop.hive.ql.metadata.HiveStorageHandler; +import org.apache.hadoop.hive.ql.metadata.HiveUtils; +import org.apache.hadoop.hive.ql.metadata.InvalidTableException; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatUtils; import org.apache.hadoop.hive.ql.metadata.formatting.MetaDataFormatter; import org.apache.hadoop.hive.ql.parse.AlterTablePartMergeFilesDesc; import org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer; -import org.apache.hadoop.hive.ql.plan.*; +import org.apache.hadoop.hive.ql.plan.AddPartitionDesc; +import org.apache.hadoop.hive.ql.plan.AlterDatabaseDesc; +import org.apache.hadoop.hive.ql.plan.AlterIndexDesc; +import org.apache.hadoop.hive.ql.plan.AlterTableAlterPartDesc; +import org.apache.hadoop.hive.ql.plan.AlterTableDesc; import org.apache.hadoop.hive.ql.plan.AlterTableDesc.AlterTableTypes; import org.apache.hadoop.hive.ql.plan.AlterTableExchangePartition; import org.apache.hadoop.hive.ql.plan.AlterTableSimpleDesc; @@ -130,6 +167,7 @@ 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; import org.apache.hadoop.hive.serde2.Deserializer; @@ -897,7 +935,11 @@ private int roleDDL(RoleDDLDesc roleDDLDesc) throws HiveException, IOException { } outStream.close(); outStream = null; - } else { + } else if (operation.equals(RoleDDLDesc.RoleOperation.SHOW_ROLE_PRINCIPALS)) { + throw new HiveException("Show role principals is not currently supported in " + + "authorization mode V1"); + } + else { throw new HiveException("Unkown role operation " + operation.getOperationName()); } @@ -948,6 +990,11 @@ private int roleDDLV2(RoleDDLDesc roleDDLDesc) throws HiveException, IOException case SET_ROLE: authorizer.setCurrentRole(roleDDLDesc.getName()); break; + case SHOW_ROLE_PRINCIPALS: + testMode = conf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST); + List roleGrants = authorizer.getPrincipalsInRoleInfo(roleDDLDesc.getName()); + writeToFile(writeHiveRoleGrantInfo(roleGrants, testMode), roleDDLDesc.getResFile()); + break; default: throw new HiveException("Unkown role operation " + operation.getOperationName()); @@ -956,6 +1003,26 @@ private int roleDDLV2(RoleDDLDesc roleDDLDesc) throws HiveException, IOException return 0; } + private String writeHiveRoleGrantInfo(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(roleGrants); + for (HiveRoleGrant roleGrant : roleGrants) { + // schema: + // principal_name,principal_type,grant_option,grantor,grantor_type,grant_time + appendNonNull(builder, roleGrant.getPrincipalName(), true); + appendNonNull(builder, roleGrant.getPrincipalType()); + appendNonNull(builder, roleGrant.isGrantOption()); + appendNonNull(builder, roleGrant.getGrantor()); + appendNonNull(builder, roleGrant.getGrantorType()); + appendNonNull(builder, testMode ? -1 : roleGrant.getGrantTime() * 1000L); + } + return builder.toString(); + } + /** * Write list of string entries into given file * @param entries @@ -2652,7 +2719,7 @@ private int showLocksNewFormat(ShowLocksDesc showLocks, HiveLockManager lm) } catch (Exception e) { throw new HiveException(e.toString()); } finally { - IOUtils.closeStream((FSDataOutputStream) os); + IOUtils.closeStream(os); } return 0; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index 31819d5..e642919 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -70,10 +70,9 @@ import org.apache.hadoop.hive.ql.io.IgnoreKeyTextOutputFormat; import org.apache.hadoop.hive.ql.io.RCFileInputFormat; import org.apache.hadoop.hive.ql.lib.Node; -import org.apache.hadoop.hive.ql.lockmgr.HiveTxnManager; -import org.apache.hadoop.hive.ql.lockmgr.LockException; -import org.apache.hadoop.hive.ql.lockmgr.TxnManagerFactory; -import org.apache.hadoop.hive.ql.metadata.*; +import org.apache.hadoop.hive.ql.metadata.Hive; +import org.apache.hadoop.hive.ql.metadata.HiveException; +import org.apache.hadoop.hive.ql.metadata.HiveUtils; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.authorization.AuthorizationParseUtils; @@ -442,6 +441,10 @@ public void analyzeInternal(ASTNode ast) throws SemanticException { ctx.setResFile(ctx.getLocalTmpPath()); analyzeShowRoleGrant(ast); break; + case HiveParser.TOK_SHOW_ROLE_PRINCIPALS: + ctx.setResFile(ctx.getLocalTmpPath()); + analyzeShowRolePrincipals(ast); + break; case HiveParser.TOK_SHOW_ROLES: ctx.setResFile(ctx.getLocalTmpPath()); analyzeShowRoles(ast); @@ -553,7 +556,17 @@ private void analyzeShowRoleGrant(ASTNode ast) throws SemanticException { createShowRoleGrantTask(ast, ctx.getResFile(), getInputs(), getOutputs()); if(task != null) { rootTasks.add(task); - setFetchTask(createFetchTask(RoleDDLDesc.getRoleDescSchema())); + setFetchTask(createFetchTask(RoleDDLDesc.getRoleShowGrantSchema())); + } + } + + private void analyzeShowRolePrincipals(ASTNode ast) throws SemanticException { + Task roleDDLTask = (Task) hiveAuthorizationTaskFactory + .createShowRolePrincipalsTask(ast, ctx.getResFile(), getInputs(), getOutputs()); + + if (roleDDLTask != null) { + rootTasks.add(roleDDLTask); + setFetchTask(createFetchTask(RoleDDLDesc.getShowRolePrincipalsSchema())); } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g index 3b9dddc..cdfa300 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveLexer.g @@ -288,6 +288,8 @@ KW_INNER: 'INNER'; KW_EXCHANGE: 'EXCHANGE'; KW_ADMIN: 'ADMIN'; KW_OWNER: 'OWNER'; +KW_PRINCIPALS: 'PRINCIPALS'; + // Operators // NOTE: if you add a new function/operator, add it to sysFuncNames so that describe function _FUNC_ will work. diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g index 9ed8a7f..a74da0e 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g @@ -284,6 +284,7 @@ TOK_REVOKE_ROLE; TOK_SHOW_ROLE_GRANT; TOK_SHOW_ROLES; TOK_SHOW_SET_ROLE; +TOK_SHOW_ROLE_PRINCIPALS; TOK_SHOWINDEXES; TOK_SHOWDBLOCKS; TOK_INDEXCOMMENT; @@ -677,6 +678,7 @@ ddlStatement | revokePrivileges | showGrants | showRoleGrants + | showRolePrincipals | showRoles | grantRole | revokeRole @@ -1389,6 +1391,7 @@ showRoleGrants -> ^(TOK_SHOW_ROLE_GRANT principalName) ; + showRoles @init {pushMsg("show roles", state);} @after {popMsg(state);} @@ -1417,6 +1420,14 @@ showGrants -> ^(TOK_SHOW_GRANT principalName? privilegeIncludeColObject?) ; +showRolePrincipals +@init {pushMsg("show role principals", state);} +@after {popMsg(state);} + : KW_SHOW KW_PRINCIPALS roleName=identifier + -> ^(TOK_SHOW_ROLE_PRINCIPALS $roleName) + ; + + privilegeIncludeColObject @init {pushMsg("privilege object including columns", state);} @after {popMsg(state);} diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g index 6d9508f..53a461f 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/IdentifiersParser.g @@ -538,5 +538,5 @@ functionIdentifier nonReserved : - KW_TRUE | KW_FALSE | KW_LIKE | KW_EXISTS | KW_ASC | KW_DESC | KW_ORDER | KW_GROUP | KW_BY | KW_AS | KW_INSERT | KW_OVERWRITE | KW_OUTER | KW_LEFT | KW_RIGHT | KW_FULL | KW_PARTITION | KW_PARTITIONS | KW_TABLE | KW_TABLES | KW_COLUMNS | KW_INDEX | KW_INDEXES | KW_REBUILD | KW_FUNCTIONS | KW_SHOW | KW_MSCK | KW_REPAIR | KW_DIRECTORY | KW_LOCAL | KW_USING | KW_CLUSTER | KW_DISTRIBUTE | KW_SORT | KW_UNION | KW_LOAD | KW_EXPORT | KW_IMPORT | KW_DATA | KW_INPATH | KW_IS | KW_NULL | KW_CREATE | KW_EXTERNAL | KW_ALTER | KW_CHANGE | KW_FIRST | KW_AFTER | KW_DESCRIBE | KW_DROP | KW_RENAME | KW_IGNORE | KW_PROTECTION | KW_TO | KW_COMMENT | KW_BOOLEAN | KW_TINYINT | KW_SMALLINT | KW_INT | KW_BIGINT | KW_FLOAT | KW_DOUBLE | KW_DATE | KW_DATETIME | KW_TIMESTAMP | KW_DECIMAL | KW_STRING | KW_ARRAY | KW_STRUCT | KW_UNIONTYPE | KW_PARTITIONED | KW_CLUSTERED | KW_SORTED | KW_INTO | KW_BUCKETS | KW_ROW | KW_ROWS | KW_FORMAT | KW_DELIMITED | KW_FIELDS | KW_TERMINATED | KW_ESCAPED | KW_COLLECTION | KW_ITEMS | KW_KEYS | KW_KEY_TYPE | KW_LINES | KW_STORED | KW_FILEFORMAT | KW_SEQUENCEFILE | KW_TEXTFILE | KW_RCFILE | KW_ORCFILE | KW_PARQUETFILE | KW_INPUTFORMAT | KW_OUTPUTFORMAT | KW_INPUTDRIVER | KW_OUTPUTDRIVER | KW_OFFLINE | KW_ENABLE | KW_DISABLE | KW_READONLY | KW_NO_DROP | KW_LOCATION | KW_BUCKET | KW_OUT | KW_OF | KW_PERCENT | KW_ADD | KW_REPLACE | KW_RLIKE | KW_REGEXP | KW_TEMPORARY | KW_EXPLAIN | KW_FORMATTED | KW_PRETTY | KW_DEPENDENCY | KW_LOGICAL | KW_SERDE | KW_WITH | KW_DEFERRED | KW_SERDEPROPERTIES | KW_DBPROPERTIES | KW_LIMIT | KW_SET | KW_UNSET | KW_TBLPROPERTIES | KW_IDXPROPERTIES | KW_VALUE_TYPE | KW_ELEM_TYPE | KW_MAPJOIN | KW_STREAMTABLE | KW_HOLD_DDLTIME | KW_CLUSTERSTATUS | KW_UTC | KW_UTCTIMESTAMP | KW_LONG | KW_DELETE | KW_PLUS | KW_MINUS | KW_FETCH | KW_INTERSECT | KW_VIEW | KW_IN | KW_DATABASES | KW_MATERIALIZED | KW_SCHEMA | KW_SCHEMAS | KW_GRANT | KW_REVOKE | KW_SSL | KW_UNDO | KW_LOCK | KW_LOCKS | KW_UNLOCK | KW_SHARED | KW_EXCLUSIVE | KW_PROCEDURE | KW_UNSIGNED | KW_WHILE | KW_READ | KW_READS | KW_PURGE | KW_RANGE | KW_ANALYZE | KW_BEFORE | KW_BETWEEN | KW_BOTH | KW_BINARY | KW_CONTINUE | KW_CURSOR | KW_TRIGGER | KW_RECORDREADER | KW_RECORDWRITER | KW_SEMI | KW_LATERAL | KW_TOUCH | KW_ARCHIVE | KW_UNARCHIVE | KW_COMPUTE | KW_STATISTICS | KW_USE | KW_OPTION | KW_CONCATENATE | KW_SHOW_DATABASE | KW_UPDATE | KW_RESTRICT | KW_CASCADE | KW_SKEWED | KW_ROLLUP | KW_CUBE | KW_DIRECTORIES | KW_FOR | KW_GROUPING | KW_SETS | KW_TRUNCATE | KW_NOSCAN | KW_USER | KW_ROLE | KW_ROLES | KW_INNER | KW_DEFINED | KW_ADMIN | KW_JAR | KW_FILE | KW_OWNER + KW_TRUE | KW_FALSE | KW_LIKE | KW_EXISTS | KW_ASC | KW_DESC | KW_ORDER | KW_GROUP | KW_BY | KW_AS | KW_INSERT | KW_OVERWRITE | KW_OUTER | KW_LEFT | KW_RIGHT | KW_FULL | KW_PARTITION | KW_PARTITIONS | KW_TABLE | KW_TABLES | KW_COLUMNS | KW_INDEX | KW_INDEXES | KW_REBUILD | KW_FUNCTIONS | KW_SHOW | KW_MSCK | KW_REPAIR | KW_DIRECTORY | KW_LOCAL | KW_USING | KW_CLUSTER | KW_DISTRIBUTE | KW_SORT | KW_UNION | KW_LOAD | KW_EXPORT | KW_IMPORT | KW_DATA | KW_INPATH | KW_IS | KW_NULL | KW_CREATE | KW_EXTERNAL | KW_ALTER | KW_CHANGE | KW_FIRST | KW_AFTER | KW_DESCRIBE | KW_DROP | KW_RENAME | KW_IGNORE | KW_PROTECTION | KW_TO | KW_COMMENT | KW_BOOLEAN | KW_TINYINT | KW_SMALLINT | KW_INT | KW_BIGINT | KW_FLOAT | KW_DOUBLE | KW_DATE | KW_DATETIME | KW_TIMESTAMP | KW_DECIMAL | KW_STRING | KW_ARRAY | KW_STRUCT | KW_UNIONTYPE | KW_PARTITIONED | KW_CLUSTERED | KW_SORTED | KW_INTO | KW_BUCKETS | KW_ROW | KW_ROWS | KW_FORMAT | KW_DELIMITED | KW_FIELDS | KW_TERMINATED | KW_ESCAPED | KW_COLLECTION | KW_ITEMS | KW_KEYS | KW_KEY_TYPE | KW_LINES | KW_STORED | KW_FILEFORMAT | KW_SEQUENCEFILE | KW_TEXTFILE | KW_RCFILE | KW_ORCFILE | KW_PARQUETFILE | KW_INPUTFORMAT | KW_OUTPUTFORMAT | KW_INPUTDRIVER | KW_OUTPUTDRIVER | KW_OFFLINE | KW_ENABLE | KW_DISABLE | KW_READONLY | KW_NO_DROP | KW_LOCATION | KW_BUCKET | KW_OUT | KW_OF | KW_PERCENT | KW_ADD | KW_REPLACE | KW_RLIKE | KW_REGEXP | KW_TEMPORARY | KW_EXPLAIN | KW_FORMATTED | KW_PRETTY | KW_DEPENDENCY | KW_LOGICAL | KW_SERDE | KW_WITH | KW_DEFERRED | KW_SERDEPROPERTIES | KW_DBPROPERTIES | KW_LIMIT | KW_SET | KW_UNSET | KW_TBLPROPERTIES | KW_IDXPROPERTIES | KW_VALUE_TYPE | KW_ELEM_TYPE | KW_MAPJOIN | KW_STREAMTABLE | KW_HOLD_DDLTIME | KW_CLUSTERSTATUS | KW_UTC | KW_UTCTIMESTAMP | KW_LONG | KW_DELETE | KW_PLUS | KW_MINUS | KW_FETCH | KW_INTERSECT | KW_VIEW | KW_IN | KW_DATABASES | KW_MATERIALIZED | KW_SCHEMA | KW_SCHEMAS | KW_GRANT | KW_REVOKE | KW_SSL | KW_UNDO | KW_LOCK | KW_LOCKS | KW_UNLOCK | KW_SHARED | KW_EXCLUSIVE | KW_PROCEDURE | KW_UNSIGNED | KW_WHILE | KW_READ | KW_READS | KW_PURGE | KW_RANGE | KW_ANALYZE | KW_BEFORE | KW_BETWEEN | KW_BOTH | KW_BINARY | KW_CONTINUE | KW_CURSOR | KW_TRIGGER | KW_RECORDREADER | KW_RECORDWRITER | KW_SEMI | KW_LATERAL | KW_TOUCH | KW_ARCHIVE | KW_UNARCHIVE | KW_COMPUTE | KW_STATISTICS | KW_USE | KW_OPTION | KW_CONCATENATE | KW_SHOW_DATABASE | KW_UPDATE | KW_RESTRICT | KW_CASCADE | KW_SKEWED | KW_ROLLUP | KW_CUBE | KW_DIRECTORIES | KW_FOR | KW_GROUPING | KW_SETS | KW_TRUNCATE | KW_NOSCAN | KW_USER | KW_ROLE | KW_ROLES | KW_INNER | KW_DEFINED | KW_ADMIN | KW_JAR | KW_FILE | KW_OWNER | KW_PRINCIPALS ; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java index 82d48d0..5d16626 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java @@ -97,6 +97,7 @@ commandType.put(HiveParser.TOK_REVOKE_ROLE, HiveOperation.REVOKE_ROLE); commandType.put(HiveParser.TOK_SHOW_ROLES, HiveOperation.SHOW_ROLES); commandType.put(HiveParser.TOK_SHOW_SET_ROLE, HiveOperation.SHOW_ROLES); + commandType.put(HiveParser.TOK_SHOW_ROLE_PRINCIPALS, HiveOperation.SHOW_ROLE_PRINCIPALS); commandType.put(HiveParser.TOK_SHOW_ROLE_GRANT, HiveOperation.SHOW_ROLE_GRANT); commandType.put(HiveParser.TOK_ALTERDATABASE_PROPERTIES, HiveOperation.ALTERDATABASE); commandType.put(HiveParser.TOK_ALTERDATABASE_OWNER, HiveOperation.ALTERDATABASE_OWNER); @@ -212,6 +213,7 @@ public static BaseSemanticAnalyzer get(HiveConf conf, ASTNode tree) case HiveParser.TOK_GRANT_ROLE: case HiveParser.TOK_REVOKE_ROLE: case HiveParser.TOK_SHOW_ROLE_GRANT: + case HiveParser.TOK_SHOW_ROLE_PRINCIPALS: case HiveParser.TOK_SHOW_ROLES: case HiveParser.TOK_ALTERDATABASE_PROPERTIES: case HiveParser.TOK_ALTERDATABASE_OWNER: @@ -219,6 +221,7 @@ public static BaseSemanticAnalyzer get(HiveConf conf, ASTNode tree) case HiveParser.TOK_TRUNCATETABLE: case HiveParser.TOK_EXCHANGEPARTITION: case HiveParser.TOK_SHOW_SET_ROLE: + return new DDLSemanticAnalyzer(conf); case HiveParser.TOK_ALTERTABLE_PARTITION: HiveOperation commandType = null; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactory.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactory.java index bd6ef24..cc84731 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactory.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactory.java @@ -62,4 +62,7 @@ public Task createShowCurrentRoleTask(HashSet inputs, HashSet outputs, Path resFile) throws SemanticException; + + public Task createShowRolePrincipalsTask(ASTNode ast, Path resFile, + HashSet inputs, HashSet outputs) throws SemanticException; } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactoryImpl.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactoryImpl.java index 2c555af..d591163 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactoryImpl.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/authorization/HiveAuthorizationTaskFactoryImpl.java @@ -48,6 +48,7 @@ import org.apache.hadoop.hive.ql.plan.PrivilegeObjectDesc; import org.apache.hadoop.hive.ql.plan.RevokeDesc; import org.apache.hadoop.hive.ql.plan.RoleDDLDesc; +import org.apache.hadoop.hive.ql.plan.RoleDDLDesc.RoleOperation; import org.apache.hadoop.hive.ql.plan.ShowGrantDesc; import org.apache.hadoop.hive.ql.security.authorization.Privilege; import org.apache.hadoop.hive.ql.security.authorization.PrivilegeRegistry; @@ -130,6 +131,7 @@ public HiveAuthorizationTaskFactoryImpl(HiveConf conf, Hive db) { principalDesc, userName, PrincipalType.USER, grantOption); return TaskFactory.get(new DDLWork(inputs, outputs, grantDesc), conf); } + @Override public Task createRevokeTask(ASTNode ast, HashSet inputs, HashSet outputs) throws SemanticException { @@ -334,4 +336,21 @@ private String toMessage(ErrorMsg message, Object detail) { ddlDesc.setResFile(resFile.toString()); return TaskFactory.get(new DDLWork(inputs, outputs, ddlDesc), conf); } + + @Override + public Task createShowRolePrincipalsTask(ASTNode ast, Path resFile, + HashSet inputs, HashSet outputs) throws SemanticException { + String roleName; + + if (ast.getChildCount() == 1) { + roleName = ast.getChild(0).getText(); + } else { + // the parser should not allow this + throw new AssertionError("Unexpected Tokens in SHOW ROLE PRINCIPALS"); + } + + RoleDDLDesc roleDDLDesc = new RoleDDLDesc(roleName, RoleOperation.SHOW_ROLE_PRINCIPALS); + roleDDLDesc.setResFile(resFile.toString()); + return TaskFactory.get(new DDLWork(inputs, outputs, roleDDLDesc), conf); + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java index 89c71ea..9b8a8e1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java @@ -88,6 +88,7 @@ GRANT_ROLE("GRANT_ROLE", null, null), REVOKE_ROLE("REVOKE_ROLE", null, null), SHOW_ROLES("SHOW_ROLES", null, null), + SHOW_ROLE_PRINCIPALS("SHOW_ROLE_PRINCIPALS", null, null), SHOW_ROLE_GRANT("SHOW_ROLE_GRANT", null, null), ALTERTABLE_PROTECTMODE("ALTERTABLE_PROTECTMODE", new Privilege[]{Privilege.ALTER_METADATA}, null), ALTERPARTITION_PROTECTMODE("ALTERPARTITION_PROTECTMODE", new Privilege[]{Privilege.ALTER_METADATA}, null), 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 e3d2b4a..bc9d47e 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 @@ -45,23 +45,35 @@ private static final String roleNameSchema = "role#string"; /** - * thrift ddl for the result of show role. + * thrift ddl for the result of show role grant principalName */ - private static final String roleDescSchema = + private static final String roleShowGrantSchema = "role,create_time,principal_name,principal_type,grant_option,grant_time,grantor#" + "string:bigint:string:string:boolean:bigint:string"; + /** + * thrift ddl for the result of describe role roleName + */ + private static final String roleShowRolePrincipals = + "principal_name,principal_type,grant_option,grantor,grantor_type,grant_time#" + + "string:string:boolean:string:string:bigint"; + public static String getRoleNameSchema() { return roleNameSchema; } - public static String getRoleDescSchema() { - return roleDescSchema; + public static String getRoleShowGrantSchema() { + return roleShowGrantSchema; + } + + public static String getShowRolePrincipalsSchema() { + return roleShowRolePrincipals; } public static enum RoleOperation { DROP_ROLE("drop_role"), CREATE_ROLE("create_role"), SHOW_ROLE_GRANT("show_role_grant"), - SHOW_ROLES("show_roles"), SET_ROLE("set_role"), SHOW_CURRENT_ROLE("show_current_role"); + SHOW_ROLES("show_roles"), SET_ROLE("set_role"), SHOW_CURRENT_ROLE("show_current_role"), + SHOW_ROLE_PRINCIPALS("show_role_principals"); private String operationName; private RoleOperation() { 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 863da70..50bd592 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 @@ -65,4 +65,6 @@ void revokeRole(List hivePrincipals, List roles, boolean void setCurrentRole(String roleName) throws HiveAuthzPluginException, HiveAccessControlException; List getCurrentRoles() throws HiveAuthzPluginException; + + List getPrincipalsInRoleInfo(String roleName) 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 944985c..48064c4 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 @@ -102,6 +102,18 @@ void dropRole(String roleName) List getRoles(HivePrincipal hivePrincipal) throws HiveAuthzPluginException, HiveAccessControlException; + + /** + * Get the grant information for principals granted the given role + * @param roleName + * @return + * @throws HiveAuthzPluginException + * @throws HiveAccessControlException + */ + List getPrincipalsInRoleInfo(String roleName) + throws HiveAuthzPluginException, HiveAccessControlException; + + /** * Grant roles in given roles list to principals in given hivePrincipals list * @param hivePrincipals 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 7b37cf9..2577ae5 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 @@ -113,8 +113,10 @@ public void setCurrentRole(String roleName) throws HiveAccessControlException, H public List getCurrentRoles() throws HiveAuthzPluginException { return accessController.getCurrentRoles(); } - // other access control functions -// void validateAuthority(HiveAction, inputs, outputs){ -// authValidator.validateAuthority(HiveAction, inputs, outputs); -// } + + @Override + public List getPrincipalsInRoleInfo(String roleName) + throws HiveAuthzPluginException, HiveAccessControlException { + return accessController.getPrincipalsInRoleInfo(roleName); + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java index 15465b1..774347d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java @@ -91,6 +91,7 @@ REVOKE_ROLE, SHOW_ROLES, SHOW_ROLE_GRANT, + SHOW_ROLE_PRINCIPALS, ALTERTABLE_PROTECTMODE, ALTERPARTITION_PROTECTMODE, ALTERTABLE_FILEFORMAT, 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 new file mode 100644 index 0000000..03f129a --- /dev/null +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveRoleGrant.java @@ -0,0 +1,126 @@ +/** + * 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.RolePrincipalGrant; + +import com.google.common.collect.ComparisonChain; + +/** + * Represents a grant of a role to a principal + */ +@LimitedPrivate(value = { "" }) +@Evolving +public class HiveRoleGrant implements Comparable { + + private String roleName; + private String principalName; + private String principalType; + private boolean grantOption; + private int grantTime; + private String grantor; + private String grantorType; + + public HiveRoleGrant() {} + + public HiveRoleGrant(RolePrincipalGrant thriftRoleGrant) { + this.roleName = thriftRoleGrant.getRoleName(); + this.principalName = thriftRoleGrant.getPrincipalName(); + this.principalType = thriftRoleGrant.getPrincipalType().name(); + this.grantOption = thriftRoleGrant.isGrantOption(); + this.grantTime = thriftRoleGrant.getGrantTime(); + this.grantor = thriftRoleGrant.getGrantorName(); + this.grantorType = thriftRoleGrant.getGrantorPrincipalType().name(); + + } + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + 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; + } + + public String getGrantorType() { + return grantorType; + } + + public void setGrantorType(String grantorType) { + this.grantorType = grantorType; + } + + @Override + public int compareTo(HiveRoleGrant other) { + if(other == null){ + return 1; + } + return ComparisonChain.start().compare(roleName, other.roleName) + .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/sqlstd/Operation2Privilege.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java index 81f256d..a527be2 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java @@ -199,6 +199,9 @@ op2Priv.put(HiveOperationType.SHOW_ROLES, new InOutPrivs(null, null)); op2Priv.put(HiveOperationType.SHOW_ROLE_GRANT, new InOutPrivs(null, null)); + op2Priv.put(HiveOperationType.SHOW_ROLE_PRINCIPALS, new InOutPrivs(null, + null)); + } 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 c91e6b8..f69e41b 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 @@ -28,6 +28,8 @@ import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.HiveMetaStore; 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.HiveObjectPrivilege; import org.apache.hadoop.hive.metastore.api.HiveObjectRef; import org.apache.hadoop.hive.metastore.api.HiveObjectType; @@ -36,6 +38,7 @@ 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.ql.metadata.HiveException; import org.apache.hadoop.hive.ql.security.HiveAuthenticationProvider; import org.apache.hadoop.hive.ql.security.authorization.AuthorizationUtils; @@ -49,6 +52,7 @@ 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; /** @@ -371,6 +375,28 @@ public void revokeRole(List hivePrincipals, List roleName } } + + @Override + public List getPrincipalsInRoleInfo(String roleName) throws HiveAuthzPluginException, HiveAccessControlException { + // only user belonging to admin role can list role + if (!isUserAdmin()) { + throw new HiveAccessControlException("Current user : " + currentUserName+ " is not" + + " allowed get principals in a role. " + ADMIN_ONLY_MSG); + } + try { + GetPrincipalsInRoleResponse princGrantInfo = + metastoreClientFactory.getHiveMetastoreClient().get_principals_in_role(new GetPrincipalsInRoleRequest(roleName)); + + List hiveRoleGrants = new ArrayList(); + for(RolePrincipalGrant thriftRoleGrant : princGrantInfo.getPrincipalGrants()){ + hiveRoleGrants.add(new HiveRoleGrant(thriftRoleGrant)); + } + return hiveRoleGrants; + } catch (Exception e) { + throw new HiveAuthzPluginException("Error getting principals for all roles", e); + } + } + @Override public List showPrivileges(HivePrincipal principal, HivePrivilegeObject privObj) throws HiveAuthzPluginException { @@ -511,4 +537,5 @@ private boolean doesUserHasAdminOption(List roleNames) throws HiveAuthzP } return true; } + } diff --git a/ql/src/test/queries/clientnegative/authorization_show_role_principals_no_admin.q b/ql/src/test/queries/clientnegative/authorization_show_role_principals_no_admin.q new file mode 100644 index 0000000..34bbf87 --- /dev/null +++ b/ql/src/test/queries/clientnegative/authorization_show_role_principals_no_admin.q @@ -0,0 +1,3 @@ +set hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory; +-- This test will fail because hive_test_user is not in admin role +show principals role1; diff --git a/ql/src/test/queries/clientnegative/authorization_show_role_principals_v1.q b/ql/src/test/queries/clientnegative/authorization_show_role_principals_v1.q new file mode 100644 index 0000000..69cea2f --- /dev/null +++ b/ql/src/test/queries/clientnegative/authorization_show_role_principals_v1.q @@ -0,0 +1,2 @@ +-- This test will fail because the command is not currently supported in auth mode v1 +show principals role1; diff --git a/ql/src/test/queries/clientpositive/authorization_role_grant2.q b/ql/src/test/queries/clientpositive/authorization_role_grant2.q index 04fda84..00a67a2 100644 --- a/ql/src/test/queries/clientpositive/authorization_role_grant2.q +++ b/ql/src/test/queries/clientpositive/authorization_role_grant2.q @@ -1,8 +1,8 @@ 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 user.name=hive_admin_user; +set user.name=hive_admin_user; set role ADMIN; ---------------------------------------- @@ -12,10 +12,22 @@ set role ADMIN; create role src_role_wadmin; grant src_role_wadmin to user user2 with admin option; show role grant user user2; +show principals src_role_wadmin; set user.name=user2; set role src_role_wadmin; grant src_role_wadmin to user user3; show role grant user user3; + +set user.name=hive_admin_user; +set role ADMIN; +show principals src_role_wadmin; + +set user.name=user2; +set role src_role_wadmin; revoke src_role_wadmin from user user3; show role grant user user3; + +set user.name=hive_admin_user; +set role ADMIN; +show principals src_role_wadmin; diff --git a/ql/src/test/results/clientnegative/authorization_show_role_principals_no_admin.q.out b/ql/src/test/results/clientnegative/authorization_show_role_principals_no_admin.q.out new file mode 100644 index 0000000..b0c7b75 --- /dev/null +++ b/ql/src/test/results/clientnegative/authorization_show_role_principals_no_admin.q.out @@ -0,0 +1,4 @@ +PREHOOK: query: -- This test will fail because hive_test_user is not in admin role +show principals role1 +PREHOOK: type: SHOW_ROLE_PRINCIPALS +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Current user : hive_test_user is not allowed get principals in a role. User has to belong to ADMIN role and have it as current role, for this action. diff --git a/ql/src/test/results/clientnegative/authorization_show_role_principals_v1.q.out b/ql/src/test/results/clientnegative/authorization_show_role_principals_v1.q.out new file mode 100644 index 0000000..e9a965b --- /dev/null +++ b/ql/src/test/results/clientnegative/authorization_show_role_principals_v1.q.out @@ -0,0 +1,5 @@ +PREHOOK: query: -- This test will fail because the command is not currently supported in auth mode v1 +show principals role1 +PREHOOK: type: SHOW_ROLE_PRINCIPALS +Error in role operation show_role_principals on role name role1, error message Show role principals is not currently supported in authorization mode V1 +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask 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 81ef8d5..d08b906 100644 --- a/ql/src/test/results/clientpositive/authorization_role_grant2.q.out +++ b/ql/src/test/results/clientpositive/authorization_role_grant2.q.out @@ -24,6 +24,11 @@ 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 +PREHOOK: query: show principals src_role_wadmin +PREHOOK: type: SHOW_ROLE_PRINCIPALS +POSTHOOK: query: show principals src_role_wadmin +POSTHOOK: type: SHOW_ROLE_PRINCIPALS +user2 USER true hive_admin_user USER -1 PREHOOK: query: set role src_role_wadmin PREHOOK: type: SHOW_ROLES POSTHOOK: query: set role src_role_wadmin @@ -38,6 +43,20 @@ 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 +PREHOOK: query: set role ADMIN +PREHOOK: type: SHOW_ROLES +POSTHOOK: query: set role ADMIN +POSTHOOK: type: SHOW_ROLES +PREHOOK: query: show principals src_role_wadmin +PREHOOK: type: SHOW_ROLE_PRINCIPALS +POSTHOOK: query: show principals src_role_wadmin +POSTHOOK: type: SHOW_ROLE_PRINCIPALS +user2 USER true hive_admin_user USER -1 +user3 USER false user2 USER -1 +PREHOOK: query: set role src_role_wadmin +PREHOOK: type: SHOW_ROLES +POSTHOOK: query: set role src_role_wadmin +POSTHOOK: type: SHOW_ROLES PREHOOK: query: revoke src_role_wadmin from user user3 PREHOOK: type: REVOKE_ROLE POSTHOOK: query: revoke src_role_wadmin from user user3 @@ -47,3 +66,12 @@ PREHOOK: type: SHOW_ROLE_GRANT POSTHOOK: query: show role grant user user3 POSTHOOK: type: SHOW_ROLE_GRANT PUBLIC -1 false -1 +PREHOOK: query: set role ADMIN +PREHOOK: type: SHOW_ROLES +POSTHOOK: query: set role ADMIN +POSTHOOK: type: SHOW_ROLES +PREHOOK: query: show principals src_role_wadmin +PREHOOK: type: SHOW_ROLE_PRINCIPALS +POSTHOOK: query: show principals src_role_wadmin +POSTHOOK: type: SHOW_ROLE_PRINCIPALS +user2 USER true hive_admin_user USER -1