diff --git metastore/if/hive_metastore.thrift metastore/if/hive_metastore.thrift index 55f41db..815d26a 100755 --- metastore/if/hive_metastore.thrift +++ metastore/if/hive_metastore.thrift @@ -361,6 +361,11 @@ struct ColumnStatistics { 2: required list statsObj; } +struct Aggr_Stats { +1: required list colStats, +2: required i64 partsFound // number of partitions for which stats were found +} + // schema of the table/query results etc. struct Schema { // column names, types, comments @@ -950,6 +955,9 @@ service ThriftHiveMetastore extends fb303.FacebookService (1:NoSuchObjectException o1, 2:MetaException o2) PartitionsStatsResult get_partitions_statistics_req(1:PartitionsStatsRequest request) throws (1:NoSuchObjectException o1, 2:MetaException o2) + Aggr_Stats get_aggr_stats_for(1:PartitionsStatsRequest request) throws + (1:NoSuchObjectException o1, 2:MetaException o2) + // delete APIs attempt to delete column statistics, if found, associated with a given db_name, tbl_name, [part_name] // and col_name. If the delete API doesn't find the statistics record in the metastore, throws NoSuchObjectException diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 53165d0..12f7ffa 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ 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 _size363; - ::apache::thrift::protocol::TType _etype366; - xfer += iprot->readListBegin(_etype366, _size363); - this->success.resize(_size363); - uint32_t _i367; - for (_i367 = 0; _i367 < _size363; ++_i367) + uint32_t _size369; + ::apache::thrift::protocol::TType _etype372; + xfer += iprot->readListBegin(_etype372, _size369); + this->success.resize(_size369); + uint32_t _i373; + for (_i373 = 0; _i373 < _size369; ++_i373) { - xfer += iprot->readString(this->success[_i367]); + xfer += iprot->readString(this->success[_i373]); } 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 _iter368; - for (_iter368 = this->success.begin(); _iter368 != this->success.end(); ++_iter368) + std::vector ::const_iterator _iter374; + for (_iter374 = this->success.begin(); _iter374 != this->success.end(); ++_iter374) { - xfer += oprot->writeString((*_iter368)); + xfer += oprot->writeString((*_iter374)); } 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 _size369; - ::apache::thrift::protocol::TType _etype372; - xfer += iprot->readListBegin(_etype372, _size369); - (*(this->success)).resize(_size369); - uint32_t _i373; - for (_i373 = 0; _i373 < _size369; ++_i373) + 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 += iprot->readString((*(this->success))[_i373]); + xfer += iprot->readString((*(this->success))[_i379]); } 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 _size374; - ::apache::thrift::protocol::TType _etype377; - xfer += iprot->readListBegin(_etype377, _size374); - this->success.resize(_size374); - uint32_t _i378; - for (_i378 = 0; _i378 < _size374; ++_i378) + uint32_t _size380; + ::apache::thrift::protocol::TType _etype383; + xfer += iprot->readListBegin(_etype383, _size380); + this->success.resize(_size380); + uint32_t _i384; + for (_i384 = 0; _i384 < _size380; ++_i384) { - xfer += iprot->readString(this->success[_i378]); + xfer += iprot->readString(this->success[_i384]); } 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 _iter379; - for (_iter379 = this->success.begin(); _iter379 != this->success.end(); ++_iter379) + std::vector ::const_iterator _iter385; + for (_iter385 = this->success.begin(); _iter385 != this->success.end(); ++_iter385) { - xfer += oprot->writeString((*_iter379)); + xfer += oprot->writeString((*_iter385)); } 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 _size380; - ::apache::thrift::protocol::TType _etype383; - xfer += iprot->readListBegin(_etype383, _size380); - (*(this->success)).resize(_size380); - uint32_t _i384; - for (_i384 = 0; _i384 < _size380; ++_i384) + 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 += iprot->readString((*(this->success))[_i384]); + xfer += iprot->readString((*(this->success))[_i390]); } 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 _size385; - ::apache::thrift::protocol::TType _ktype386; - ::apache::thrift::protocol::TType _vtype387; - xfer += iprot->readMapBegin(_ktype386, _vtype387, _size385); - uint32_t _i389; - for (_i389 = 0; _i389 < _size385; ++_i389) + uint32_t _size391; + ::apache::thrift::protocol::TType _ktype392; + ::apache::thrift::protocol::TType _vtype393; + xfer += iprot->readMapBegin(_ktype392, _vtype393, _size391); + uint32_t _i395; + for (_i395 = 0; _i395 < _size391; ++_i395) { - std::string _key390; - xfer += iprot->readString(_key390); - Type& _val391 = this->success[_key390]; - xfer += _val391.read(iprot); + std::string _key396; + xfer += iprot->readString(_key396); + Type& _val397 = this->success[_key396]; + xfer += _val397.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 _iter392; - for (_iter392 = this->success.begin(); _iter392 != this->success.end(); ++_iter392) + std::map ::const_iterator _iter398; + for (_iter398 = this->success.begin(); _iter398 != this->success.end(); ++_iter398) { - xfer += oprot->writeString(_iter392->first); - xfer += _iter392->second.write(oprot); + xfer += oprot->writeString(_iter398->first); + xfer += _iter398->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 _size393; - ::apache::thrift::protocol::TType _ktype394; - ::apache::thrift::protocol::TType _vtype395; - xfer += iprot->readMapBegin(_ktype394, _vtype395, _size393); - uint32_t _i397; - for (_i397 = 0; _i397 < _size393; ++_i397) + uint32_t _size399; + ::apache::thrift::protocol::TType _ktype400; + ::apache::thrift::protocol::TType _vtype401; + xfer += iprot->readMapBegin(_ktype400, _vtype401, _size399); + uint32_t _i403; + for (_i403 = 0; _i403 < _size399; ++_i403) { - std::string _key398; - xfer += iprot->readString(_key398); - Type& _val399 = (*(this->success))[_key398]; - xfer += _val399.read(iprot); + std::string _key404; + xfer += iprot->readString(_key404); + Type& _val405 = (*(this->success))[_key404]; + xfer += _val405.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 _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 _size406; + ::apache::thrift::protocol::TType _etype409; + xfer += iprot->readListBegin(_etype409, _size406); + this->success.resize(_size406); + uint32_t _i410; + for (_i410 = 0; _i410 < _size406; ++_i410) { - xfer += this->success[_i404].read(iprot); + xfer += this->success[_i410].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 _iter405; - for (_iter405 = this->success.begin(); _iter405 != this->success.end(); ++_iter405) + std::vector ::const_iterator _iter411; + for (_iter411 = this->success.begin(); _iter411 != this->success.end(); ++_iter411) { - xfer += (*_iter405).write(oprot); + xfer += (*_iter411).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 _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 _size412; + ::apache::thrift::protocol::TType _etype415; + xfer += iprot->readListBegin(_etype415, _size412); + (*(this->success)).resize(_size412); + uint32_t _i416; + for (_i416 = 0; _i416 < _size412; ++_i416) { - xfer += (*(this->success))[_i410].read(iprot); + xfer += (*(this->success))[_i416].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 _size411; - ::apache::thrift::protocol::TType _etype414; - xfer += iprot->readListBegin(_etype414, _size411); - this->success.resize(_size411); - uint32_t _i415; - for (_i415 = 0; _i415 < _size411; ++_i415) + uint32_t _size417; + ::apache::thrift::protocol::TType _etype420; + xfer += iprot->readListBegin(_etype420, _size417); + this->success.resize(_size417); + uint32_t _i421; + for (_i421 = 0; _i421 < _size417; ++_i421) { - xfer += this->success[_i415].read(iprot); + xfer += this->success[_i421].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 _iter416; - for (_iter416 = this->success.begin(); _iter416 != this->success.end(); ++_iter416) + std::vector ::const_iterator _iter422; + for (_iter422 = this->success.begin(); _iter422 != this->success.end(); ++_iter422) { - xfer += (*_iter416).write(oprot); + xfer += (*_iter422).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 _size417; - ::apache::thrift::protocol::TType _etype420; - xfer += iprot->readListBegin(_etype420, _size417); - (*(this->success)).resize(_size417); - uint32_t _i421; - for (_i421 = 0; _i421 < _size417; ++_i421) + uint32_t _size423; + ::apache::thrift::protocol::TType _etype426; + xfer += iprot->readListBegin(_etype426, _size423); + (*(this->success)).resize(_size423); + uint32_t _i427; + for (_i427 = 0; _i427 < _size423; ++_i427) { - xfer += (*(this->success))[_i421].read(iprot); + xfer += (*(this->success))[_i427].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 _size422; - ::apache::thrift::protocol::TType _etype425; - xfer += iprot->readListBegin(_etype425, _size422); - this->success.resize(_size422); - uint32_t _i426; - for (_i426 = 0; _i426 < _size422; ++_i426) + uint32_t _size428; + ::apache::thrift::protocol::TType _etype431; + xfer += iprot->readListBegin(_etype431, _size428); + this->success.resize(_size428); + uint32_t _i432; + for (_i432 = 0; _i432 < _size428; ++_i432) { - xfer += iprot->readString(this->success[_i426]); + xfer += iprot->readString(this->success[_i432]); } 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 _iter427; - for (_iter427 = this->success.begin(); _iter427 != this->success.end(); ++_iter427) + std::vector ::const_iterator _iter433; + for (_iter433 = this->success.begin(); _iter433 != this->success.end(); ++_iter433) { - xfer += oprot->writeString((*_iter427)); + xfer += oprot->writeString((*_iter433)); } 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 _size428; - ::apache::thrift::protocol::TType _etype431; - xfer += iprot->readListBegin(_etype431, _size428); - (*(this->success)).resize(_size428); - uint32_t _i432; - for (_i432 = 0; _i432 < _size428; ++_i432) + uint32_t _size434; + ::apache::thrift::protocol::TType _etype437; + xfer += iprot->readListBegin(_etype437, _size434); + (*(this->success)).resize(_size434); + uint32_t _i438; + for (_i438 = 0; _i438 < _size434; ++_i438) { - xfer += iprot->readString((*(this->success))[_i432]); + xfer += iprot->readString((*(this->success))[_i438]); } 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 _size433; - ::apache::thrift::protocol::TType _etype436; - xfer += iprot->readListBegin(_etype436, _size433); - this->success.resize(_size433); - uint32_t _i437; - for (_i437 = 0; _i437 < _size433; ++_i437) + uint32_t _size439; + ::apache::thrift::protocol::TType _etype442; + xfer += iprot->readListBegin(_etype442, _size439); + this->success.resize(_size439); + uint32_t _i443; + for (_i443 = 0; _i443 < _size439; ++_i443) { - xfer += iprot->readString(this->success[_i437]); + xfer += iprot->readString(this->success[_i443]); } 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 _iter438; - for (_iter438 = this->success.begin(); _iter438 != this->success.end(); ++_iter438) + std::vector ::const_iterator _iter444; + for (_iter444 = this->success.begin(); _iter444 != this->success.end(); ++_iter444) { - xfer += oprot->writeString((*_iter438)); + xfer += oprot->writeString((*_iter444)); } 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 _size439; - ::apache::thrift::protocol::TType _etype442; - xfer += iprot->readListBegin(_etype442, _size439); - (*(this->success)).resize(_size439); - uint32_t _i443; - for (_i443 = 0; _i443 < _size439; ++_i443) + uint32_t _size445; + ::apache::thrift::protocol::TType _etype448; + xfer += iprot->readListBegin(_etype448, _size445); + (*(this->success)).resize(_size445); + uint32_t _i449; + for (_i449 = 0; _i449 < _size445; ++_i449) { - xfer += iprot->readString((*(this->success))[_i443]); + xfer += iprot->readString((*(this->success))[_i449]); } 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 _size444; - ::apache::thrift::protocol::TType _etype447; - xfer += iprot->readListBegin(_etype447, _size444); - this->tbl_names.resize(_size444); - uint32_t _i448; - for (_i448 = 0; _i448 < _size444; ++_i448) + uint32_t _size450; + ::apache::thrift::protocol::TType _etype453; + xfer += iprot->readListBegin(_etype453, _size450); + this->tbl_names.resize(_size450); + uint32_t _i454; + for (_i454 = 0; _i454 < _size450; ++_i454) { - xfer += iprot->readString(this->tbl_names[_i448]); + xfer += iprot->readString(this->tbl_names[_i454]); } 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 _iter449; - for (_iter449 = this->tbl_names.begin(); _iter449 != this->tbl_names.end(); ++_iter449) + std::vector ::const_iterator _iter455; + for (_iter455 = this->tbl_names.begin(); _iter455 != this->tbl_names.end(); ++_iter455) { - xfer += oprot->writeString((*_iter449)); + xfer += oprot->writeString((*_iter455)); } 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 _iter450; - for (_iter450 = (*(this->tbl_names)).begin(); _iter450 != (*(this->tbl_names)).end(); ++_iter450) + std::vector ::const_iterator _iter456; + for (_iter456 = (*(this->tbl_names)).begin(); _iter456 != (*(this->tbl_names)).end(); ++_iter456) { - xfer += oprot->writeString((*_iter450)); + xfer += oprot->writeString((*_iter456)); } 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 _size451; - ::apache::thrift::protocol::TType _etype454; - xfer += iprot->readListBegin(_etype454, _size451); - this->success.resize(_size451); - uint32_t _i455; - for (_i455 = 0; _i455 < _size451; ++_i455) + uint32_t _size457; + ::apache::thrift::protocol::TType _etype460; + xfer += iprot->readListBegin(_etype460, _size457); + this->success.resize(_size457); + uint32_t _i461; + for (_i461 = 0; _i461 < _size457; ++_i461) { - xfer += this->success[_i455].read(iprot); + xfer += this->success[_i461].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 _iter456; - for (_iter456 = this->success.begin(); _iter456 != this->success.end(); ++_iter456) + std::vector
::const_iterator _iter462; + for (_iter462 = this->success.begin(); _iter462 != this->success.end(); ++_iter462) { - xfer += (*_iter456).write(oprot); + xfer += (*_iter462).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 _size457; - ::apache::thrift::protocol::TType _etype460; - xfer += iprot->readListBegin(_etype460, _size457); - (*(this->success)).resize(_size457); - uint32_t _i461; - for (_i461 = 0; _i461 < _size457; ++_i461) + uint32_t _size463; + ::apache::thrift::protocol::TType _etype466; + xfer += iprot->readListBegin(_etype466, _size463); + (*(this->success)).resize(_size463); + uint32_t _i467; + for (_i467 = 0; _i467 < _size463; ++_i467) { - xfer += (*(this->success))[_i461].read(iprot); + xfer += (*(this->success))[_i467].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 _size462; - ::apache::thrift::protocol::TType _etype465; - xfer += iprot->readListBegin(_etype465, _size462); - this->success.resize(_size462); - uint32_t _i466; - for (_i466 = 0; _i466 < _size462; ++_i466) + uint32_t _size468; + ::apache::thrift::protocol::TType _etype471; + xfer += iprot->readListBegin(_etype471, _size468); + this->success.resize(_size468); + uint32_t _i472; + for (_i472 = 0; _i472 < _size468; ++_i472) { - xfer += iprot->readString(this->success[_i466]); + xfer += iprot->readString(this->success[_i472]); } 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 _iter467; - for (_iter467 = this->success.begin(); _iter467 != this->success.end(); ++_iter467) + std::vector ::const_iterator _iter473; + for (_iter473 = this->success.begin(); _iter473 != this->success.end(); ++_iter473) { - xfer += oprot->writeString((*_iter467)); + xfer += oprot->writeString((*_iter473)); } 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 _size468; - ::apache::thrift::protocol::TType _etype471; - xfer += iprot->readListBegin(_etype471, _size468); - (*(this->success)).resize(_size468); - uint32_t _i472; - for (_i472 = 0; _i472 < _size468; ++_i472) + uint32_t _size474; + ::apache::thrift::protocol::TType _etype477; + xfer += iprot->readListBegin(_etype477, _size474); + (*(this->success)).resize(_size474); + uint32_t _i478; + for (_i478 = 0; _i478 < _size474; ++_i478) { - xfer += iprot->readString((*(this->success))[_i472]); + xfer += iprot->readString((*(this->success))[_i478]); } 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 _size473; - ::apache::thrift::protocol::TType _etype476; - xfer += iprot->readListBegin(_etype476, _size473); - this->new_parts.resize(_size473); - uint32_t _i477; - for (_i477 = 0; _i477 < _size473; ++_i477) + uint32_t _size479; + ::apache::thrift::protocol::TType _etype482; + xfer += iprot->readListBegin(_etype482, _size479); + this->new_parts.resize(_size479); + uint32_t _i483; + for (_i483 = 0; _i483 < _size479; ++_i483) { - xfer += this->new_parts[_i477].read(iprot); + xfer += this->new_parts[_i483].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 _iter478; - for (_iter478 = this->new_parts.begin(); _iter478 != this->new_parts.end(); ++_iter478) + std::vector ::const_iterator _iter484; + for (_iter484 = this->new_parts.begin(); _iter484 != this->new_parts.end(); ++_iter484) { - xfer += (*_iter478).write(oprot); + xfer += (*_iter484).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 _iter479; - for (_iter479 = (*(this->new_parts)).begin(); _iter479 != (*(this->new_parts)).end(); ++_iter479) + std::vector ::const_iterator _iter485; + for (_iter485 = (*(this->new_parts)).begin(); _iter485 != (*(this->new_parts)).end(); ++_iter485) { - xfer += (*_iter479).write(oprot); + xfer += (*_iter485).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 _size480; - ::apache::thrift::protocol::TType _etype483; - xfer += iprot->readListBegin(_etype483, _size480); - this->part_vals.resize(_size480); - uint32_t _i484; - for (_i484 = 0; _i484 < _size480; ++_i484) + uint32_t _size486; + ::apache::thrift::protocol::TType _etype489; + xfer += iprot->readListBegin(_etype489, _size486); + this->part_vals.resize(_size486); + uint32_t _i490; + for (_i490 = 0; _i490 < _size486; ++_i490) { - xfer += iprot->readString(this->part_vals[_i484]); + xfer += iprot->readString(this->part_vals[_i490]); } 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 _iter485; - for (_iter485 = this->part_vals.begin(); _iter485 != this->part_vals.end(); ++_iter485) + std::vector ::const_iterator _iter491; + for (_iter491 = this->part_vals.begin(); _iter491 != this->part_vals.end(); ++_iter491) { - xfer += oprot->writeString((*_iter485)); + xfer += oprot->writeString((*_iter491)); } 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 _iter486; - for (_iter486 = (*(this->part_vals)).begin(); _iter486 != (*(this->part_vals)).end(); ++_iter486) + std::vector ::const_iterator _iter492; + for (_iter492 = (*(this->part_vals)).begin(); _iter492 != (*(this->part_vals)).end(); ++_iter492) { - xfer += oprot->writeString((*_iter486)); + xfer += oprot->writeString((*_iter492)); } 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 _size487; - ::apache::thrift::protocol::TType _etype490; - xfer += iprot->readListBegin(_etype490, _size487); - this->part_vals.resize(_size487); - uint32_t _i491; - for (_i491 = 0; _i491 < _size487; ++_i491) + uint32_t _size493; + ::apache::thrift::protocol::TType _etype496; + xfer += iprot->readListBegin(_etype496, _size493); + this->part_vals.resize(_size493); + uint32_t _i497; + for (_i497 = 0; _i497 < _size493; ++_i497) { - xfer += iprot->readString(this->part_vals[_i491]); + xfer += iprot->readString(this->part_vals[_i497]); } 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 _iter492; - for (_iter492 = this->part_vals.begin(); _iter492 != this->part_vals.end(); ++_iter492) + std::vector ::const_iterator _iter498; + for (_iter498 = this->part_vals.begin(); _iter498 != this->part_vals.end(); ++_iter498) { - xfer += oprot->writeString((*_iter492)); + xfer += oprot->writeString((*_iter498)); } 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 _iter493; - for (_iter493 = (*(this->part_vals)).begin(); _iter493 != (*(this->part_vals)).end(); ++_iter493) + std::vector ::const_iterator _iter499; + for (_iter499 = (*(this->part_vals)).begin(); _iter499 != (*(this->part_vals)).end(); ++_iter499) { - xfer += oprot->writeString((*_iter493)); + xfer += oprot->writeString((*_iter499)); } 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 _size494; - ::apache::thrift::protocol::TType _etype497; - xfer += iprot->readListBegin(_etype497, _size494); - this->part_vals.resize(_size494); - uint32_t _i498; - for (_i498 = 0; _i498 < _size494; ++_i498) + uint32_t _size500; + ::apache::thrift::protocol::TType _etype503; + xfer += iprot->readListBegin(_etype503, _size500); + this->part_vals.resize(_size500); + uint32_t _i504; + for (_i504 = 0; _i504 < _size500; ++_i504) { - xfer += iprot->readString(this->part_vals[_i498]); + xfer += iprot->readString(this->part_vals[_i504]); } 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 _iter499; - for (_iter499 = this->part_vals.begin(); _iter499 != this->part_vals.end(); ++_iter499) + std::vector ::const_iterator _iter505; + for (_iter505 = this->part_vals.begin(); _iter505 != this->part_vals.end(); ++_iter505) { - xfer += oprot->writeString((*_iter499)); + xfer += oprot->writeString((*_iter505)); } 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 _iter500; - for (_iter500 = (*(this->part_vals)).begin(); _iter500 != (*(this->part_vals)).end(); ++_iter500) + std::vector ::const_iterator _iter506; + for (_iter506 = (*(this->part_vals)).begin(); _iter506 != (*(this->part_vals)).end(); ++_iter506) { - xfer += oprot->writeString((*_iter500)); + xfer += oprot->writeString((*_iter506)); } 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 _size501; - ::apache::thrift::protocol::TType _etype504; - xfer += iprot->readListBegin(_etype504, _size501); - this->part_vals.resize(_size501); - uint32_t _i505; - for (_i505 = 0; _i505 < _size501; ++_i505) + uint32_t _size507; + ::apache::thrift::protocol::TType _etype510; + xfer += iprot->readListBegin(_etype510, _size507); + this->part_vals.resize(_size507); + uint32_t _i511; + for (_i511 = 0; _i511 < _size507; ++_i511) { - xfer += iprot->readString(this->part_vals[_i505]); + xfer += iprot->readString(this->part_vals[_i511]); } 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 _iter506; - for (_iter506 = this->part_vals.begin(); _iter506 != this->part_vals.end(); ++_iter506) + std::vector ::const_iterator _iter512; + for (_iter512 = this->part_vals.begin(); _iter512 != this->part_vals.end(); ++_iter512) { - xfer += oprot->writeString((*_iter506)); + xfer += oprot->writeString((*_iter512)); } 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 _iter507; - for (_iter507 = (*(this->part_vals)).begin(); _iter507 != (*(this->part_vals)).end(); ++_iter507) + std::vector ::const_iterator _iter513; + for (_iter513 = (*(this->part_vals)).begin(); _iter513 != (*(this->part_vals)).end(); ++_iter513) { - xfer += oprot->writeString((*_iter507)); + xfer += oprot->writeString((*_iter513)); } 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 _size508; - ::apache::thrift::protocol::TType _etype511; - xfer += iprot->readListBegin(_etype511, _size508); - this->part_vals.resize(_size508); - uint32_t _i512; - for (_i512 = 0; _i512 < _size508; ++_i512) + uint32_t _size514; + ::apache::thrift::protocol::TType _etype517; + xfer += iprot->readListBegin(_etype517, _size514); + this->part_vals.resize(_size514); + uint32_t _i518; + for (_i518 = 0; _i518 < _size514; ++_i518) { - xfer += iprot->readString(this->part_vals[_i512]); + xfer += iprot->readString(this->part_vals[_i518]); } 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 _iter513; - for (_iter513 = this->part_vals.begin(); _iter513 != this->part_vals.end(); ++_iter513) + std::vector ::const_iterator _iter519; + for (_iter519 = this->part_vals.begin(); _iter519 != this->part_vals.end(); ++_iter519) { - xfer += oprot->writeString((*_iter513)); + xfer += oprot->writeString((*_iter519)); } 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 _iter514; - for (_iter514 = (*(this->part_vals)).begin(); _iter514 != (*(this->part_vals)).end(); ++_iter514) + std::vector ::const_iterator _iter520; + for (_iter520 = (*(this->part_vals)).begin(); _iter520 != (*(this->part_vals)).end(); ++_iter520) { - xfer += oprot->writeString((*_iter514)); + xfer += oprot->writeString((*_iter520)); } 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 _size515; - ::apache::thrift::protocol::TType _ktype516; - ::apache::thrift::protocol::TType _vtype517; - xfer += iprot->readMapBegin(_ktype516, _vtype517, _size515); - uint32_t _i519; - for (_i519 = 0; _i519 < _size515; ++_i519) + uint32_t _size521; + ::apache::thrift::protocol::TType _ktype522; + ::apache::thrift::protocol::TType _vtype523; + xfer += iprot->readMapBegin(_ktype522, _vtype523, _size521); + uint32_t _i525; + for (_i525 = 0; _i525 < _size521; ++_i525) { - std::string _key520; - xfer += iprot->readString(_key520); - std::string& _val521 = this->partitionSpecs[_key520]; - xfer += iprot->readString(_val521); + std::string _key526; + xfer += iprot->readString(_key526); + std::string& _val527 = this->partitionSpecs[_key526]; + xfer += iprot->readString(_val527); } 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 _iter522; - for (_iter522 = this->partitionSpecs.begin(); _iter522 != this->partitionSpecs.end(); ++_iter522) + std::map ::const_iterator _iter528; + for (_iter528 = this->partitionSpecs.begin(); _iter528 != this->partitionSpecs.end(); ++_iter528) { - xfer += oprot->writeString(_iter522->first); - xfer += oprot->writeString(_iter522->second); + xfer += oprot->writeString(_iter528->first); + xfer += oprot->writeString(_iter528->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 _iter523; - for (_iter523 = (*(this->partitionSpecs)).begin(); _iter523 != (*(this->partitionSpecs)).end(); ++_iter523) + std::map ::const_iterator _iter529; + for (_iter529 = (*(this->partitionSpecs)).begin(); _iter529 != (*(this->partitionSpecs)).end(); ++_iter529) { - xfer += oprot->writeString(_iter523->first); - xfer += oprot->writeString(_iter523->second); + xfer += oprot->writeString(_iter529->first); + xfer += oprot->writeString(_iter529->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 _size524; - ::apache::thrift::protocol::TType _etype527; - xfer += iprot->readListBegin(_etype527, _size524); - this->part_vals.resize(_size524); - uint32_t _i528; - for (_i528 = 0; _i528 < _size524; ++_i528) + uint32_t _size530; + ::apache::thrift::protocol::TType _etype533; + xfer += iprot->readListBegin(_etype533, _size530); + this->part_vals.resize(_size530); + uint32_t _i534; + for (_i534 = 0; _i534 < _size530; ++_i534) { - xfer += iprot->readString(this->part_vals[_i528]); + xfer += iprot->readString(this->part_vals[_i534]); } 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 _size529; - ::apache::thrift::protocol::TType _etype532; - xfer += iprot->readListBegin(_etype532, _size529); - this->group_names.resize(_size529); - uint32_t _i533; - for (_i533 = 0; _i533 < _size529; ++_i533) + uint32_t _size535; + ::apache::thrift::protocol::TType _etype538; + xfer += iprot->readListBegin(_etype538, _size535); + this->group_names.resize(_size535); + uint32_t _i539; + for (_i539 = 0; _i539 < _size535; ++_i539) { - xfer += iprot->readString(this->group_names[_i533]); + xfer += iprot->readString(this->group_names[_i539]); } 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 _iter534; - for (_iter534 = this->part_vals.begin(); _iter534 != this->part_vals.end(); ++_iter534) + std::vector ::const_iterator _iter540; + for (_iter540 = this->part_vals.begin(); _iter540 != this->part_vals.end(); ++_iter540) { - xfer += oprot->writeString((*_iter534)); + xfer += oprot->writeString((*_iter540)); } 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 _iter535; - for (_iter535 = this->group_names.begin(); _iter535 != this->group_names.end(); ++_iter535) + std::vector ::const_iterator _iter541; + for (_iter541 = this->group_names.begin(); _iter541 != this->group_names.end(); ++_iter541) { - xfer += oprot->writeString((*_iter535)); + xfer += oprot->writeString((*_iter541)); } 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 _iter536; - for (_iter536 = (*(this->part_vals)).begin(); _iter536 != (*(this->part_vals)).end(); ++_iter536) + std::vector ::const_iterator _iter542; + for (_iter542 = (*(this->part_vals)).begin(); _iter542 != (*(this->part_vals)).end(); ++_iter542) { - xfer += oprot->writeString((*_iter536)); + xfer += oprot->writeString((*_iter542)); } 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 _iter537; - for (_iter537 = (*(this->group_names)).begin(); _iter537 != (*(this->group_names)).end(); ++_iter537) + std::vector ::const_iterator _iter543; + for (_iter543 = (*(this->group_names)).begin(); _iter543 != (*(this->group_names)).end(); ++_iter543) { - xfer += oprot->writeString((*_iter537)); + xfer += oprot->writeString((*_iter543)); } 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 _size538; - ::apache::thrift::protocol::TType _etype541; - xfer += iprot->readListBegin(_etype541, _size538); - this->success.resize(_size538); - uint32_t _i542; - for (_i542 = 0; _i542 < _size538; ++_i542) + uint32_t _size544; + ::apache::thrift::protocol::TType _etype547; + xfer += iprot->readListBegin(_etype547, _size544); + this->success.resize(_size544); + uint32_t _i548; + for (_i548 = 0; _i548 < _size544; ++_i548) { - xfer += this->success[_i542].read(iprot); + xfer += this->success[_i548].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 _iter543; - for (_iter543 = this->success.begin(); _iter543 != this->success.end(); ++_iter543) + std::vector ::const_iterator _iter549; + for (_iter549 = this->success.begin(); _iter549 != this->success.end(); ++_iter549) { - xfer += (*_iter543).write(oprot); + xfer += (*_iter549).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 _size544; - ::apache::thrift::protocol::TType _etype547; - xfer += iprot->readListBegin(_etype547, _size544); - (*(this->success)).resize(_size544); - uint32_t _i548; - for (_i548 = 0; _i548 < _size544; ++_i548) + uint32_t _size550; + ::apache::thrift::protocol::TType _etype553; + xfer += iprot->readListBegin(_etype553, _size550); + (*(this->success)).resize(_size550); + uint32_t _i554; + for (_i554 = 0; _i554 < _size550; ++_i554) { - xfer += (*(this->success))[_i548].read(iprot); + xfer += (*(this->success))[_i554].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 _size549; - ::apache::thrift::protocol::TType _etype552; - xfer += iprot->readListBegin(_etype552, _size549); - this->group_names.resize(_size549); - uint32_t _i553; - for (_i553 = 0; _i553 < _size549; ++_i553) + uint32_t _size555; + ::apache::thrift::protocol::TType _etype558; + xfer += iprot->readListBegin(_etype558, _size555); + this->group_names.resize(_size555); + uint32_t _i559; + for (_i559 = 0; _i559 < _size555; ++_i559) { - xfer += iprot->readString(this->group_names[_i553]); + xfer += iprot->readString(this->group_names[_i559]); } 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 _iter554; - for (_iter554 = this->group_names.begin(); _iter554 != this->group_names.end(); ++_iter554) + std::vector ::const_iterator _iter560; + for (_iter560 = this->group_names.begin(); _iter560 != this->group_names.end(); ++_iter560) { - xfer += oprot->writeString((*_iter554)); + xfer += oprot->writeString((*_iter560)); } 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 _iter555; - for (_iter555 = (*(this->group_names)).begin(); _iter555 != (*(this->group_names)).end(); ++_iter555) + std::vector ::const_iterator _iter561; + for (_iter561 = (*(this->group_names)).begin(); _iter561 != (*(this->group_names)).end(); ++_iter561) { - xfer += oprot->writeString((*_iter555)); + xfer += oprot->writeString((*_iter561)); } 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 _size556; - ::apache::thrift::protocol::TType _etype559; - xfer += iprot->readListBegin(_etype559, _size556); - this->success.resize(_size556); - uint32_t _i560; - for (_i560 = 0; _i560 < _size556; ++_i560) + uint32_t _size562; + ::apache::thrift::protocol::TType _etype565; + xfer += iprot->readListBegin(_etype565, _size562); + this->success.resize(_size562); + uint32_t _i566; + for (_i566 = 0; _i566 < _size562; ++_i566) { - xfer += this->success[_i560].read(iprot); + xfer += this->success[_i566].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 _iter561; - for (_iter561 = this->success.begin(); _iter561 != this->success.end(); ++_iter561) + std::vector ::const_iterator _iter567; + for (_iter567 = this->success.begin(); _iter567 != this->success.end(); ++_iter567) { - xfer += (*_iter561).write(oprot); + xfer += (*_iter567).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 _size562; - ::apache::thrift::protocol::TType _etype565; - xfer += iprot->readListBegin(_etype565, _size562); - (*(this->success)).resize(_size562); - uint32_t _i566; - for (_i566 = 0; _i566 < _size562; ++_i566) + uint32_t _size568; + ::apache::thrift::protocol::TType _etype571; + xfer += iprot->readListBegin(_etype571, _size568); + (*(this->success)).resize(_size568); + uint32_t _i572; + for (_i572 = 0; _i572 < _size568; ++_i572) { - xfer += (*(this->success))[_i566].read(iprot); + xfer += (*(this->success))[_i572].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 _size567; - ::apache::thrift::protocol::TType _etype570; - xfer += iprot->readListBegin(_etype570, _size567); - this->success.resize(_size567); - uint32_t _i571; - for (_i571 = 0; _i571 < _size567; ++_i571) + uint32_t _size573; + ::apache::thrift::protocol::TType _etype576; + xfer += iprot->readListBegin(_etype576, _size573); + this->success.resize(_size573); + uint32_t _i577; + for (_i577 = 0; _i577 < _size573; ++_i577) { - xfer += iprot->readString(this->success[_i571]); + xfer += iprot->readString(this->success[_i577]); } 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 _iter572; - for (_iter572 = this->success.begin(); _iter572 != this->success.end(); ++_iter572) + std::vector ::const_iterator _iter578; + for (_iter578 = this->success.begin(); _iter578 != this->success.end(); ++_iter578) { - xfer += oprot->writeString((*_iter572)); + xfer += oprot->writeString((*_iter578)); } 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 _size573; - ::apache::thrift::protocol::TType _etype576; - xfer += iprot->readListBegin(_etype576, _size573); - (*(this->success)).resize(_size573); - uint32_t _i577; - for (_i577 = 0; _i577 < _size573; ++_i577) + uint32_t _size579; + ::apache::thrift::protocol::TType _etype582; + xfer += iprot->readListBegin(_etype582, _size579); + (*(this->success)).resize(_size579); + uint32_t _i583; + for (_i583 = 0; _i583 < _size579; ++_i583) { - xfer += iprot->readString((*(this->success))[_i577]); + xfer += iprot->readString((*(this->success))[_i583]); } 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 _size578; - ::apache::thrift::protocol::TType _etype581; - xfer += iprot->readListBegin(_etype581, _size578); - this->part_vals.resize(_size578); - uint32_t _i582; - for (_i582 = 0; _i582 < _size578; ++_i582) + uint32_t _size584; + ::apache::thrift::protocol::TType _etype587; + xfer += iprot->readListBegin(_etype587, _size584); + this->part_vals.resize(_size584); + uint32_t _i588; + for (_i588 = 0; _i588 < _size584; ++_i588) { - xfer += iprot->readString(this->part_vals[_i582]); + xfer += iprot->readString(this->part_vals[_i588]); } 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 _iter583; - for (_iter583 = this->part_vals.begin(); _iter583 != this->part_vals.end(); ++_iter583) + std::vector ::const_iterator _iter589; + for (_iter589 = this->part_vals.begin(); _iter589 != this->part_vals.end(); ++_iter589) { - xfer += oprot->writeString((*_iter583)); + xfer += oprot->writeString((*_iter589)); } 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 _iter584; - for (_iter584 = (*(this->part_vals)).begin(); _iter584 != (*(this->part_vals)).end(); ++_iter584) + std::vector ::const_iterator _iter590; + for (_iter590 = (*(this->part_vals)).begin(); _iter590 != (*(this->part_vals)).end(); ++_iter590) { - xfer += oprot->writeString((*_iter584)); + xfer += oprot->writeString((*_iter590)); } 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 _size585; - ::apache::thrift::protocol::TType _etype588; - xfer += iprot->readListBegin(_etype588, _size585); - this->success.resize(_size585); - uint32_t _i589; - for (_i589 = 0; _i589 < _size585; ++_i589) + uint32_t _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[_i589].read(iprot); + xfer += this->success[_i595].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 _iter590; - for (_iter590 = this->success.begin(); _iter590 != this->success.end(); ++_iter590) + std::vector ::const_iterator _iter596; + for (_iter596 = this->success.begin(); _iter596 != this->success.end(); ++_iter596) { - xfer += (*_iter590).write(oprot); + xfer += (*_iter596).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 _size591; - ::apache::thrift::protocol::TType _etype594; - xfer += iprot->readListBegin(_etype594, _size591); - (*(this->success)).resize(_size591); - uint32_t _i595; - for (_i595 = 0; _i595 < _size591; ++_i595) + uint32_t _size597; + ::apache::thrift::protocol::TType _etype600; + xfer += iprot->readListBegin(_etype600, _size597); + (*(this->success)).resize(_size597); + uint32_t _i601; + for (_i601 = 0; _i601 < _size597; ++_i601) { - xfer += (*(this->success))[_i595].read(iprot); + xfer += (*(this->success))[_i601].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 _size596; - ::apache::thrift::protocol::TType _etype599; - xfer += iprot->readListBegin(_etype599, _size596); - this->part_vals.resize(_size596); - uint32_t _i600; - for (_i600 = 0; _i600 < _size596; ++_i600) + uint32_t _size602; + ::apache::thrift::protocol::TType _etype605; + xfer += iprot->readListBegin(_etype605, _size602); + this->part_vals.resize(_size602); + uint32_t _i606; + for (_i606 = 0; _i606 < _size602; ++_i606) { - xfer += iprot->readString(this->part_vals[_i600]); + xfer += iprot->readString(this->part_vals[_i606]); } 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 _size601; - ::apache::thrift::protocol::TType _etype604; - xfer += iprot->readListBegin(_etype604, _size601); - this->group_names.resize(_size601); - uint32_t _i605; - for (_i605 = 0; _i605 < _size601; ++_i605) + uint32_t _size607; + ::apache::thrift::protocol::TType _etype610; + xfer += iprot->readListBegin(_etype610, _size607); + this->group_names.resize(_size607); + uint32_t _i611; + for (_i611 = 0; _i611 < _size607; ++_i611) { - xfer += iprot->readString(this->group_names[_i605]); + xfer += iprot->readString(this->group_names[_i611]); } 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 _iter606; - for (_iter606 = this->part_vals.begin(); _iter606 != this->part_vals.end(); ++_iter606) + std::vector ::const_iterator _iter612; + for (_iter612 = this->part_vals.begin(); _iter612 != this->part_vals.end(); ++_iter612) { - xfer += oprot->writeString((*_iter606)); + xfer += oprot->writeString((*_iter612)); } 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 _iter607; - for (_iter607 = this->group_names.begin(); _iter607 != this->group_names.end(); ++_iter607) + std::vector ::const_iterator _iter613; + for (_iter613 = this->group_names.begin(); _iter613 != this->group_names.end(); ++_iter613) { - xfer += oprot->writeString((*_iter607)); + xfer += oprot->writeString((*_iter613)); } 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 _iter608; - for (_iter608 = (*(this->part_vals)).begin(); _iter608 != (*(this->part_vals)).end(); ++_iter608) + std::vector ::const_iterator _iter614; + for (_iter614 = (*(this->part_vals)).begin(); _iter614 != (*(this->part_vals)).end(); ++_iter614) { - xfer += oprot->writeString((*_iter608)); + xfer += oprot->writeString((*_iter614)); } 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 _iter609; - for (_iter609 = (*(this->group_names)).begin(); _iter609 != (*(this->group_names)).end(); ++_iter609) + std::vector ::const_iterator _iter615; + for (_iter615 = (*(this->group_names)).begin(); _iter615 != (*(this->group_names)).end(); ++_iter615) { - xfer += oprot->writeString((*_iter609)); + xfer += oprot->writeString((*_iter615)); } 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 _size610; - ::apache::thrift::protocol::TType _etype613; - xfer += iprot->readListBegin(_etype613, _size610); - this->success.resize(_size610); - uint32_t _i614; - for (_i614 = 0; _i614 < _size610; ++_i614) + uint32_t _size616; + ::apache::thrift::protocol::TType _etype619; + xfer += iprot->readListBegin(_etype619, _size616); + this->success.resize(_size616); + uint32_t _i620; + for (_i620 = 0; _i620 < _size616; ++_i620) { - xfer += this->success[_i614].read(iprot); + xfer += this->success[_i620].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 _iter615; - for (_iter615 = this->success.begin(); _iter615 != this->success.end(); ++_iter615) + std::vector ::const_iterator _iter621; + for (_iter621 = this->success.begin(); _iter621 != this->success.end(); ++_iter621) { - xfer += (*_iter615).write(oprot); + xfer += (*_iter621).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 _size616; - ::apache::thrift::protocol::TType _etype619; - xfer += iprot->readListBegin(_etype619, _size616); - (*(this->success)).resize(_size616); - uint32_t _i620; - for (_i620 = 0; _i620 < _size616; ++_i620) + uint32_t _size622; + ::apache::thrift::protocol::TType _etype625; + xfer += iprot->readListBegin(_etype625, _size622); + (*(this->success)).resize(_size622); + uint32_t _i626; + for (_i626 = 0; _i626 < _size622; ++_i626) { - xfer += (*(this->success))[_i620].read(iprot); + xfer += (*(this->success))[_i626].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 _size621; - ::apache::thrift::protocol::TType _etype624; - xfer += iprot->readListBegin(_etype624, _size621); - this->part_vals.resize(_size621); - uint32_t _i625; - for (_i625 = 0; _i625 < _size621; ++_i625) + uint32_t _size627; + ::apache::thrift::protocol::TType _etype630; + xfer += iprot->readListBegin(_etype630, _size627); + this->part_vals.resize(_size627); + uint32_t _i631; + for (_i631 = 0; _i631 < _size627; ++_i631) { - xfer += iprot->readString(this->part_vals[_i625]); + xfer += iprot->readString(this->part_vals[_i631]); } 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 _iter626; - for (_iter626 = this->part_vals.begin(); _iter626 != this->part_vals.end(); ++_iter626) + std::vector ::const_iterator _iter632; + for (_iter632 = this->part_vals.begin(); _iter632 != this->part_vals.end(); ++_iter632) { - xfer += oprot->writeString((*_iter626)); + xfer += oprot->writeString((*_iter632)); } 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 _iter627; - for (_iter627 = (*(this->part_vals)).begin(); _iter627 != (*(this->part_vals)).end(); ++_iter627) + std::vector ::const_iterator _iter633; + for (_iter633 = (*(this->part_vals)).begin(); _iter633 != (*(this->part_vals)).end(); ++_iter633) { - xfer += oprot->writeString((*_iter627)); + xfer += oprot->writeString((*_iter633)); } 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 _size628; - ::apache::thrift::protocol::TType _etype631; - xfer += iprot->readListBegin(_etype631, _size628); - this->success.resize(_size628); - uint32_t _i632; - for (_i632 = 0; _i632 < _size628; ++_i632) + uint32_t _size634; + ::apache::thrift::protocol::TType _etype637; + xfer += iprot->readListBegin(_etype637, _size634); + this->success.resize(_size634); + uint32_t _i638; + for (_i638 = 0; _i638 < _size634; ++_i638) { - xfer += iprot->readString(this->success[_i632]); + xfer += iprot->readString(this->success[_i638]); } 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 _iter633; - for (_iter633 = this->success.begin(); _iter633 != this->success.end(); ++_iter633) + std::vector ::const_iterator _iter639; + for (_iter639 = this->success.begin(); _iter639 != this->success.end(); ++_iter639) { - xfer += oprot->writeString((*_iter633)); + xfer += oprot->writeString((*_iter639)); } 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 _size634; - ::apache::thrift::protocol::TType _etype637; - xfer += iprot->readListBegin(_etype637, _size634); - (*(this->success)).resize(_size634); - uint32_t _i638; - for (_i638 = 0; _i638 < _size634; ++_i638) + uint32_t _size640; + ::apache::thrift::protocol::TType _etype643; + xfer += iprot->readListBegin(_etype643, _size640); + (*(this->success)).resize(_size640); + uint32_t _i644; + for (_i644 = 0; _i644 < _size640; ++_i644) { - xfer += iprot->readString((*(this->success))[_i638]); + xfer += iprot->readString((*(this->success))[_i644]); } 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 _size639; - ::apache::thrift::protocol::TType _etype642; - xfer += iprot->readListBegin(_etype642, _size639); - this->success.resize(_size639); - uint32_t _i643; - for (_i643 = 0; _i643 < _size639; ++_i643) + uint32_t _size645; + ::apache::thrift::protocol::TType _etype648; + xfer += iprot->readListBegin(_etype648, _size645); + this->success.resize(_size645); + uint32_t _i649; + for (_i649 = 0; _i649 < _size645; ++_i649) { - xfer += this->success[_i643].read(iprot); + xfer += this->success[_i649].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 _iter644; - for (_iter644 = this->success.begin(); _iter644 != this->success.end(); ++_iter644) + std::vector ::const_iterator _iter650; + for (_iter650 = this->success.begin(); _iter650 != this->success.end(); ++_iter650) { - xfer += (*_iter644).write(oprot); + xfer += (*_iter650).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 _size645; - ::apache::thrift::protocol::TType _etype648; - xfer += iprot->readListBegin(_etype648, _size645); - (*(this->success)).resize(_size645); - uint32_t _i649; - for (_i649 = 0; _i649 < _size645; ++_i649) + uint32_t _size651; + ::apache::thrift::protocol::TType _etype654; + xfer += iprot->readListBegin(_etype654, _size651); + (*(this->success)).resize(_size651); + uint32_t _i655; + for (_i655 = 0; _i655 < _size651; ++_i655) { - xfer += (*(this->success))[_i649].read(iprot); + xfer += (*(this->success))[_i655].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 _size650; - ::apache::thrift::protocol::TType _etype653; - xfer += iprot->readListBegin(_etype653, _size650); - this->names.resize(_size650); - uint32_t _i654; - for (_i654 = 0; _i654 < _size650; ++_i654) + uint32_t _size656; + ::apache::thrift::protocol::TType _etype659; + xfer += iprot->readListBegin(_etype659, _size656); + this->names.resize(_size656); + uint32_t _i660; + for (_i660 = 0; _i660 < _size656; ++_i660) { - xfer += iprot->readString(this->names[_i654]); + xfer += iprot->readString(this->names[_i660]); } 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 _iter655; - for (_iter655 = this->names.begin(); _iter655 != this->names.end(); ++_iter655) + std::vector ::const_iterator _iter661; + for (_iter661 = this->names.begin(); _iter661 != this->names.end(); ++_iter661) { - xfer += oprot->writeString((*_iter655)); + xfer += oprot->writeString((*_iter661)); } 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 _iter656; - for (_iter656 = (*(this->names)).begin(); _iter656 != (*(this->names)).end(); ++_iter656) + std::vector ::const_iterator _iter662; + for (_iter662 = (*(this->names)).begin(); _iter662 != (*(this->names)).end(); ++_iter662) { - xfer += oprot->writeString((*_iter656)); + xfer += oprot->writeString((*_iter662)); } 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 _size657; - ::apache::thrift::protocol::TType _etype660; - xfer += iprot->readListBegin(_etype660, _size657); - this->success.resize(_size657); - uint32_t _i661; - for (_i661 = 0; _i661 < _size657; ++_i661) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + this->success.resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += this->success[_i661].read(iprot); + xfer += this->success[_i667].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 _iter662; - for (_iter662 = this->success.begin(); _iter662 != this->success.end(); ++_iter662) + std::vector ::const_iterator _iter668; + for (_iter668 = this->success.begin(); _iter668 != this->success.end(); ++_iter668) { - xfer += (*_iter662).write(oprot); + xfer += (*_iter668).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 _size663; - ::apache::thrift::protocol::TType _etype666; - xfer += iprot->readListBegin(_etype666, _size663); - (*(this->success)).resize(_size663); - uint32_t _i667; - for (_i667 = 0; _i667 < _size663; ++_i667) + uint32_t _size669; + ::apache::thrift::protocol::TType _etype672; + xfer += iprot->readListBegin(_etype672, _size669); + (*(this->success)).resize(_size669); + uint32_t _i673; + for (_i673 = 0; _i673 < _size669; ++_i673) { - xfer += (*(this->success))[_i667].read(iprot); + xfer += (*(this->success))[_i673].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 _size668; - ::apache::thrift::protocol::TType _etype671; - xfer += iprot->readListBegin(_etype671, _size668); - this->new_parts.resize(_size668); - uint32_t _i672; - for (_i672 = 0; _i672 < _size668; ++_i672) + uint32_t _size674; + ::apache::thrift::protocol::TType _etype677; + xfer += iprot->readListBegin(_etype677, _size674); + this->new_parts.resize(_size674); + uint32_t _i678; + for (_i678 = 0; _i678 < _size674; ++_i678) { - xfer += this->new_parts[_i672].read(iprot); + xfer += this->new_parts[_i678].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 _iter673; - for (_iter673 = this->new_parts.begin(); _iter673 != this->new_parts.end(); ++_iter673) + std::vector ::const_iterator _iter679; + for (_iter679 = this->new_parts.begin(); _iter679 != this->new_parts.end(); ++_iter679) { - xfer += (*_iter673).write(oprot); + xfer += (*_iter679).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 _iter674; - for (_iter674 = (*(this->new_parts)).begin(); _iter674 != (*(this->new_parts)).end(); ++_iter674) + std::vector ::const_iterator _iter680; + for (_iter680 = (*(this->new_parts)).begin(); _iter680 != (*(this->new_parts)).end(); ++_iter680) { - xfer += (*_iter674).write(oprot); + xfer += (*_iter680).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 _size675; - ::apache::thrift::protocol::TType _etype678; - xfer += iprot->readListBegin(_etype678, _size675); - this->part_vals.resize(_size675); - uint32_t _i679; - for (_i679 = 0; _i679 < _size675; ++_i679) + uint32_t _size681; + ::apache::thrift::protocol::TType _etype684; + xfer += iprot->readListBegin(_etype684, _size681); + this->part_vals.resize(_size681); + uint32_t _i685; + for (_i685 = 0; _i685 < _size681; ++_i685) { - xfer += iprot->readString(this->part_vals[_i679]); + xfer += iprot->readString(this->part_vals[_i685]); } 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 _iter680; - for (_iter680 = this->part_vals.begin(); _iter680 != this->part_vals.end(); ++_iter680) + std::vector ::const_iterator _iter686; + for (_iter686 = this->part_vals.begin(); _iter686 != this->part_vals.end(); ++_iter686) { - xfer += oprot->writeString((*_iter680)); + xfer += oprot->writeString((*_iter686)); } 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 _iter681; - for (_iter681 = (*(this->part_vals)).begin(); _iter681 != (*(this->part_vals)).end(); ++_iter681) + std::vector ::const_iterator _iter687; + for (_iter687 = (*(this->part_vals)).begin(); _iter687 != (*(this->part_vals)).end(); ++_iter687) { - xfer += oprot->writeString((*_iter681)); + xfer += oprot->writeString((*_iter687)); } 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 _size682; - ::apache::thrift::protocol::TType _etype685; - xfer += iprot->readListBegin(_etype685, _size682); - this->part_vals.resize(_size682); - uint32_t _i686; - for (_i686 = 0; _i686 < _size682; ++_i686) + uint32_t _size688; + ::apache::thrift::protocol::TType _etype691; + xfer += iprot->readListBegin(_etype691, _size688); + this->part_vals.resize(_size688); + uint32_t _i692; + for (_i692 = 0; _i692 < _size688; ++_i692) { - xfer += iprot->readString(this->part_vals[_i686]); + xfer += iprot->readString(this->part_vals[_i692]); } 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 _iter687; - for (_iter687 = this->part_vals.begin(); _iter687 != this->part_vals.end(); ++_iter687) + std::vector ::const_iterator _iter693; + for (_iter693 = this->part_vals.begin(); _iter693 != this->part_vals.end(); ++_iter693) { - xfer += oprot->writeString((*_iter687)); + xfer += oprot->writeString((*_iter693)); } 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 _iter688; - for (_iter688 = (*(this->part_vals)).begin(); _iter688 != (*(this->part_vals)).end(); ++_iter688) + std::vector ::const_iterator _iter694; + for (_iter694 = (*(this->part_vals)).begin(); _iter694 != (*(this->part_vals)).end(); ++_iter694) { - xfer += oprot->writeString((*_iter688)); + xfer += oprot->writeString((*_iter694)); } xfer += oprot->writeListEnd(); } @@ -13779,102 +13779,102 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->success.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) - { - xfer += iprot->readString(this->success[_i693]); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} - -uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thrift::protocol::TProtocol* oprot) const { - - uint32_t xfer = 0; - - xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_result"); - - if (this->__isset.success) { - 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 _iter694; - for (_iter694 = this->success.begin(); _iter694 != this->success.end(); ++_iter694) - { - xfer += oprot->writeString((*_iter694)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - -uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thrift::protocol::TProtocol* iprot) { - - uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); uint32_t _size695; ::apache::thrift::protocol::TType _etype698; xfer += iprot->readListBegin(_etype698, _size695); - (*(this->success)).resize(_size695); + this->success.resize(_size695); uint32_t _i699; for (_i699 = 0; _i699 < _size695; ++_i699) { - xfer += iprot->readString((*(this->success))[_i699]); + xfer += iprot->readString(this->success[_i699]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_partition_name_to_vals_result"); + + if (this->__isset.success) { + 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 _iter700; + for (_iter700 = this->success.begin(); _iter700 != this->success.end(); ++_iter700) + { + xfer += oprot->writeString((*_iter700)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size701; + ::apache::thrift::protocol::TType _etype704; + xfer += iprot->readListBegin(_etype704, _size701); + (*(this->success)).resize(_size701); + uint32_t _i705; + for (_i705 = 0; _i705 < _size701; ++_i705) + { + xfer += iprot->readString((*(this->success))[_i705]); } 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 _size700; - ::apache::thrift::protocol::TType _ktype701; - ::apache::thrift::protocol::TType _vtype702; - xfer += iprot->readMapBegin(_ktype701, _vtype702, _size700); - uint32_t _i704; - for (_i704 = 0; _i704 < _size700; ++_i704) + uint32_t _size706; + ::apache::thrift::protocol::TType _ktype707; + ::apache::thrift::protocol::TType _vtype708; + xfer += iprot->readMapBegin(_ktype707, _vtype708, _size706); + uint32_t _i710; + for (_i710 = 0; _i710 < _size706; ++_i710) { - std::string _key705; - xfer += iprot->readString(_key705); - std::string& _val706 = this->success[_key705]; - xfer += iprot->readString(_val706); + std::string _key711; + xfer += iprot->readString(_key711); + std::string& _val712 = this->success[_key711]; + xfer += iprot->readString(_val712); } 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 _iter707; - for (_iter707 = this->success.begin(); _iter707 != this->success.end(); ++_iter707) + std::map ::const_iterator _iter713; + for (_iter713 = this->success.begin(); _iter713 != this->success.end(); ++_iter713) { - xfer += oprot->writeString(_iter707->first); - xfer += oprot->writeString(_iter707->second); + xfer += oprot->writeString(_iter713->first); + xfer += oprot->writeString(_iter713->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 _size708; - ::apache::thrift::protocol::TType _ktype709; - ::apache::thrift::protocol::TType _vtype710; - xfer += iprot->readMapBegin(_ktype709, _vtype710, _size708); - uint32_t _i712; - for (_i712 = 0; _i712 < _size708; ++_i712) + uint32_t _size714; + ::apache::thrift::protocol::TType _ktype715; + ::apache::thrift::protocol::TType _vtype716; + xfer += iprot->readMapBegin(_ktype715, _vtype716, _size714); + uint32_t _i718; + for (_i718 = 0; _i718 < _size714; ++_i718) { - std::string _key713; - xfer += iprot->readString(_key713); - std::string& _val714 = (*(this->success))[_key713]; - xfer += iprot->readString(_val714); + std::string _key719; + xfer += iprot->readString(_key719); + std::string& _val720 = (*(this->success))[_key719]; + xfer += iprot->readString(_val720); } 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 _size715; - ::apache::thrift::protocol::TType _ktype716; - ::apache::thrift::protocol::TType _vtype717; - xfer += iprot->readMapBegin(_ktype716, _vtype717, _size715); - uint32_t _i719; - for (_i719 = 0; _i719 < _size715; ++_i719) + uint32_t _size721; + ::apache::thrift::protocol::TType _ktype722; + ::apache::thrift::protocol::TType _vtype723; + xfer += iprot->readMapBegin(_ktype722, _vtype723, _size721); + uint32_t _i725; + for (_i725 = 0; _i725 < _size721; ++_i725) { - std::string _key720; - xfer += iprot->readString(_key720); - std::string& _val721 = this->part_vals[_key720]; - xfer += iprot->readString(_val721); + std::string _key726; + xfer += iprot->readString(_key726); + std::string& _val727 = this->part_vals[_key726]; + xfer += iprot->readString(_val727); } 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 ecast722; - xfer += iprot->readI32(ecast722); - this->eventType = (PartitionEventType::type)ecast722; + int32_t ecast728; + xfer += iprot->readI32(ecast728); + this->eventType = (PartitionEventType::type)ecast728; 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 _iter723; - for (_iter723 = this->part_vals.begin(); _iter723 != this->part_vals.end(); ++_iter723) + std::map ::const_iterator _iter729; + for (_iter729 = this->part_vals.begin(); _iter729 != this->part_vals.end(); ++_iter729) { - xfer += oprot->writeString(_iter723->first); - xfer += oprot->writeString(_iter723->second); + xfer += oprot->writeString(_iter729->first); + xfer += oprot->writeString(_iter729->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 _iter724; - for (_iter724 = (*(this->part_vals)).begin(); _iter724 != (*(this->part_vals)).end(); ++_iter724) + std::map ::const_iterator _iter730; + for (_iter730 = (*(this->part_vals)).begin(); _iter730 != (*(this->part_vals)).end(); ++_iter730) { - xfer += oprot->writeString(_iter724->first); - xfer += oprot->writeString(_iter724->second); + xfer += oprot->writeString(_iter730->first); + xfer += oprot->writeString(_iter730->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 _size725; - ::apache::thrift::protocol::TType _ktype726; - ::apache::thrift::protocol::TType _vtype727; - xfer += iprot->readMapBegin(_ktype726, _vtype727, _size725); - uint32_t _i729; - for (_i729 = 0; _i729 < _size725; ++_i729) + uint32_t _size731; + ::apache::thrift::protocol::TType _ktype732; + ::apache::thrift::protocol::TType _vtype733; + xfer += iprot->readMapBegin(_ktype732, _vtype733, _size731); + uint32_t _i735; + for (_i735 = 0; _i735 < _size731; ++_i735) { - std::string _key730; - xfer += iprot->readString(_key730); - std::string& _val731 = this->part_vals[_key730]; - xfer += iprot->readString(_val731); + std::string _key736; + xfer += iprot->readString(_key736); + std::string& _val737 = this->part_vals[_key736]; + xfer += iprot->readString(_val737); } 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 ecast732; - xfer += iprot->readI32(ecast732); - this->eventType = (PartitionEventType::type)ecast732; + int32_t ecast738; + xfer += iprot->readI32(ecast738); + this->eventType = (PartitionEventType::type)ecast738; 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 _iter733; - for (_iter733 = this->part_vals.begin(); _iter733 != this->part_vals.end(); ++_iter733) + std::map ::const_iterator _iter739; + for (_iter739 = this->part_vals.begin(); _iter739 != this->part_vals.end(); ++_iter739) { - xfer += oprot->writeString(_iter733->first); - xfer += oprot->writeString(_iter733->second); + xfer += oprot->writeString(_iter739->first); + xfer += oprot->writeString(_iter739->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 _iter734; - for (_iter734 = (*(this->part_vals)).begin(); _iter734 != (*(this->part_vals)).end(); ++_iter734) + std::map ::const_iterator _iter740; + for (_iter740 = (*(this->part_vals)).begin(); _iter740 != (*(this->part_vals)).end(); ++_iter740) { - xfer += oprot->writeString(_iter734->first); - xfer += oprot->writeString(_iter734->second); + xfer += oprot->writeString(_iter740->first); + xfer += oprot->writeString(_iter740->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 _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 _size741; + ::apache::thrift::protocol::TType _etype744; + xfer += iprot->readListBegin(_etype744, _size741); + this->success.resize(_size741); + uint32_t _i745; + for (_i745 = 0; _i745 < _size741; ++_i745) { - xfer += this->success[_i739].read(iprot); + xfer += this->success[_i745].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 _iter740; - for (_iter740 = this->success.begin(); _iter740 != this->success.end(); ++_iter740) + std::vector ::const_iterator _iter746; + for (_iter746 = this->success.begin(); _iter746 != this->success.end(); ++_iter746) { - xfer += (*_iter740).write(oprot); + xfer += (*_iter746).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 _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 _size747; + ::apache::thrift::protocol::TType _etype750; + xfer += iprot->readListBegin(_etype750, _size747); + (*(this->success)).resize(_size747); + uint32_t _i751; + for (_i751 = 0; _i751 < _size747; ++_i751) { - xfer += (*(this->success))[_i745].read(iprot); + xfer += (*(this->success))[_i751].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 _size746; - ::apache::thrift::protocol::TType _etype749; - xfer += iprot->readListBegin(_etype749, _size746); - this->success.resize(_size746); - uint32_t _i750; - for (_i750 = 0; _i750 < _size746; ++_i750) + uint32_t _size752; + ::apache::thrift::protocol::TType _etype755; + xfer += iprot->readListBegin(_etype755, _size752); + this->success.resize(_size752); + uint32_t _i756; + for (_i756 = 0; _i756 < _size752; ++_i756) { - xfer += iprot->readString(this->success[_i750]); + xfer += iprot->readString(this->success[_i756]); } 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 _iter751; - for (_iter751 = this->success.begin(); _iter751 != this->success.end(); ++_iter751) + std::vector ::const_iterator _iter757; + for (_iter757 = this->success.begin(); _iter757 != this->success.end(); ++_iter757) { - xfer += oprot->writeString((*_iter751)); + xfer += oprot->writeString((*_iter757)); } 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 _size752; - ::apache::thrift::protocol::TType _etype755; - xfer += iprot->readListBegin(_etype755, _size752); - (*(this->success)).resize(_size752); - uint32_t _i756; - for (_i756 = 0; _i756 < _size752; ++_i756) + 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 += iprot->readString((*(this->success))[_i756]); + xfer += iprot->readString((*(this->success))[_i762]); } xfer += iprot->readListEnd(); } @@ -17750,6 +17750,208 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apach return xfer; } +uint32_t ThriftHiveMetastore_get_aggr_stats_for_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_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_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_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_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_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; @@ -19054,14 +19256,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size757; - ::apache::thrift::protocol::TType _etype760; - xfer += iprot->readListBegin(_etype760, _size757); - this->success.resize(_size757); - uint32_t _i761; - for (_i761 = 0; _i761 < _size757; ++_i761) + uint32_t _size763; + ::apache::thrift::protocol::TType _etype766; + xfer += iprot->readListBegin(_etype766, _size763); + this->success.resize(_size763); + uint32_t _i767; + for (_i767 = 0; _i767 < _size763; ++_i767) { - xfer += iprot->readString(this->success[_i761]); + xfer += iprot->readString(this->success[_i767]); } xfer += iprot->readListEnd(); } @@ -19100,10 +19302,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 _iter762; - for (_iter762 = this->success.begin(); _iter762 != this->success.end(); ++_iter762) + std::vector ::const_iterator _iter768; + for (_iter768 = this->success.begin(); _iter768 != this->success.end(); ++_iter768) { - xfer += oprot->writeString((*_iter762)); + xfer += oprot->writeString((*_iter768)); } xfer += oprot->writeListEnd(); } @@ -19142,14 +19344,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size763; - ::apache::thrift::protocol::TType _etype766; - xfer += iprot->readListBegin(_etype766, _size763); - (*(this->success)).resize(_size763); - uint32_t _i767; - for (_i767 = 0; _i767 < _size763; ++_i767) + 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) { - xfer += iprot->readString((*(this->success))[_i767]); + xfer += iprot->readString((*(this->success))[_i773]); } xfer += iprot->readListEnd(); } @@ -19829,14 +20031,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size768; - ::apache::thrift::protocol::TType _etype771; - xfer += iprot->readListBegin(_etype771, _size768); - this->success.resize(_size768); - uint32_t _i772; - for (_i772 = 0; _i772 < _size768; ++_i772) + uint32_t _size774; + ::apache::thrift::protocol::TType _etype777; + xfer += iprot->readListBegin(_etype777, _size774); + this->success.resize(_size774); + uint32_t _i778; + for (_i778 = 0; _i778 < _size774; ++_i778) { - xfer += iprot->readString(this->success[_i772]); + xfer += iprot->readString(this->success[_i778]); } xfer += iprot->readListEnd(); } @@ -19875,10 +20077,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 _iter773; - for (_iter773 = this->success.begin(); _iter773 != this->success.end(); ++_iter773) + std::vector ::const_iterator _iter779; + for (_iter779 = this->success.begin(); _iter779 != this->success.end(); ++_iter779) { - xfer += oprot->writeString((*_iter773)); + xfer += oprot->writeString((*_iter779)); } xfer += oprot->writeListEnd(); } @@ -19917,14 +20119,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size774; - ::apache::thrift::protocol::TType _etype777; - xfer += iprot->readListBegin(_etype777, _size774); - (*(this->success)).resize(_size774); - uint32_t _i778; - for (_i778 = 0; _i778 < _size774; ++_i778) + uint32_t _size780; + ::apache::thrift::protocol::TType _etype783; + xfer += iprot->readListBegin(_etype783, _size780); + (*(this->success)).resize(_size780); + uint32_t _i784; + for (_i784 = 0; _i784 < _size780; ++_i784) { - xfer += iprot->readString((*(this->success))[_i778]); + xfer += iprot->readString((*(this->success))[_i784]); } xfer += iprot->readListEnd(); } @@ -19991,9 +20193,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast779; - xfer += iprot->readI32(ecast779); - this->principal_type = (PrincipalType::type)ecast779; + int32_t ecast785; + xfer += iprot->readI32(ecast785); + this->principal_type = (PrincipalType::type)ecast785; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20009,9 +20211,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast780; - xfer += iprot->readI32(ecast780); - this->grantorType = (PrincipalType::type)ecast780; + int32_t ecast786; + xfer += iprot->readI32(ecast786); + this->grantorType = (PrincipalType::type)ecast786; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -20257,9 +20459,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast781; - xfer += iprot->readI32(ecast781); - this->principal_type = (PrincipalType::type)ecast781; + int32_t ecast787; + xfer += iprot->readI32(ecast787); + this->principal_type = (PrincipalType::type)ecast787; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20465,9 +20667,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast782; - xfer += iprot->readI32(ecast782); - this->principal_type = (PrincipalType::type)ecast782; + int32_t ecast788; + xfer += iprot->readI32(ecast788); + this->principal_type = (PrincipalType::type)ecast788; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -20543,14 +20745,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size783; - ::apache::thrift::protocol::TType _etype786; - xfer += iprot->readListBegin(_etype786, _size783); - this->success.resize(_size783); - uint32_t _i787; - for (_i787 = 0; _i787 < _size783; ++_i787) + uint32_t _size789; + ::apache::thrift::protocol::TType _etype792; + xfer += iprot->readListBegin(_etype792, _size789); + this->success.resize(_size789); + uint32_t _i793; + for (_i793 = 0; _i793 < _size789; ++_i793) { - xfer += this->success[_i787].read(iprot); + xfer += this->success[_i793].read(iprot); } xfer += iprot->readListEnd(); } @@ -20589,10 +20791,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 _iter788; - for (_iter788 = this->success.begin(); _iter788 != this->success.end(); ++_iter788) + std::vector ::const_iterator _iter794; + for (_iter794 = this->success.begin(); _iter794 != this->success.end(); ++_iter794) { - xfer += (*_iter788).write(oprot); + xfer += (*_iter794).write(oprot); } xfer += oprot->writeListEnd(); } @@ -20631,14 +20833,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size789; - ::apache::thrift::protocol::TType _etype792; - xfer += iprot->readListBegin(_etype792, _size789); - (*(this->success)).resize(_size789); - uint32_t _i793; - for (_i793 = 0; _i793 < _size789; ++_i793) + 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 += (*(this->success))[_i793].read(iprot); + xfer += (*(this->success))[_i799].read(iprot); } xfer += iprot->readListEnd(); } @@ -21253,14 +21455,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 _size794; - ::apache::thrift::protocol::TType _etype797; - xfer += iprot->readListBegin(_etype797, _size794); - this->group_names.resize(_size794); - uint32_t _i798; - for (_i798 = 0; _i798 < _size794; ++_i798) + uint32_t _size800; + ::apache::thrift::protocol::TType _etype803; + xfer += iprot->readListBegin(_etype803, _size800); + this->group_names.resize(_size800); + uint32_t _i804; + for (_i804 = 0; _i804 < _size800; ++_i804) { - xfer += iprot->readString(this->group_names[_i798]); + xfer += iprot->readString(this->group_names[_i804]); } xfer += iprot->readListEnd(); } @@ -21296,10 +21498,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 _iter799; - for (_iter799 = this->group_names.begin(); _iter799 != this->group_names.end(); ++_iter799) + std::vector ::const_iterator _iter805; + for (_iter805 = this->group_names.begin(); _iter805 != this->group_names.end(); ++_iter805) { - xfer += oprot->writeString((*_iter799)); + xfer += oprot->writeString((*_iter805)); } xfer += oprot->writeListEnd(); } @@ -21325,10 +21527,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 _iter800; - for (_iter800 = (*(this->group_names)).begin(); _iter800 != (*(this->group_names)).end(); ++_iter800) + std::vector ::const_iterator _iter806; + for (_iter806 = (*(this->group_names)).begin(); _iter806 != (*(this->group_names)).end(); ++_iter806) { - xfer += oprot->writeString((*_iter800)); + xfer += oprot->writeString((*_iter806)); } xfer += oprot->writeListEnd(); } @@ -21485,9 +21687,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast801; - xfer += iprot->readI32(ecast801); - this->principal_type = (PrincipalType::type)ecast801; + int32_t ecast807; + xfer += iprot->readI32(ecast807); + this->principal_type = (PrincipalType::type)ecast807; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -21579,14 +21781,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size802; - ::apache::thrift::protocol::TType _etype805; - xfer += iprot->readListBegin(_etype805, _size802); - this->success.resize(_size802); - uint32_t _i806; - for (_i806 = 0; _i806 < _size802; ++_i806) + uint32_t _size808; + ::apache::thrift::protocol::TType _etype811; + xfer += iprot->readListBegin(_etype811, _size808); + this->success.resize(_size808); + uint32_t _i812; + for (_i812 = 0; _i812 < _size808; ++_i812) { - xfer += this->success[_i806].read(iprot); + xfer += this->success[_i812].read(iprot); } xfer += iprot->readListEnd(); } @@ -21625,10 +21827,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 _iter807; - for (_iter807 = this->success.begin(); _iter807 != this->success.end(); ++_iter807) + std::vector ::const_iterator _iter813; + for (_iter813 = this->success.begin(); _iter813 != this->success.end(); ++_iter813) { - xfer += (*_iter807).write(oprot); + xfer += (*_iter813).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21667,14 +21869,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size808; - ::apache::thrift::protocol::TType _etype811; - xfer += iprot->readListBegin(_etype811, _size808); - (*(this->success)).resize(_size808); - uint32_t _i812; - for (_i812 = 0; _i812 < _size808; ++_i812) + uint32_t _size814; + ::apache::thrift::protocol::TType _etype817; + xfer += iprot->readListBegin(_etype817, _size814); + (*(this->success)).resize(_size814); + uint32_t _i818; + for (_i818 = 0; _i818 < _size814; ++_i818) { - xfer += (*(this->success))[_i812].read(iprot); + xfer += (*(this->success))[_i818].read(iprot); } xfer += iprot->readListEnd(); } @@ -22281,14 +22483,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 _size813; - ::apache::thrift::protocol::TType _etype816; - xfer += iprot->readListBegin(_etype816, _size813); - this->group_names.resize(_size813); - uint32_t _i817; - for (_i817 = 0; _i817 < _size813; ++_i817) + uint32_t _size819; + ::apache::thrift::protocol::TType _etype822; + xfer += iprot->readListBegin(_etype822, _size819); + this->group_names.resize(_size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - xfer += iprot->readString(this->group_names[_i817]); + xfer += iprot->readString(this->group_names[_i823]); } xfer += iprot->readListEnd(); } @@ -22320,10 +22522,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 _iter818; - for (_iter818 = this->group_names.begin(); _iter818 != this->group_names.end(); ++_iter818) + std::vector ::const_iterator _iter824; + for (_iter824 = this->group_names.begin(); _iter824 != this->group_names.end(); ++_iter824) { - xfer += oprot->writeString((*_iter818)); + xfer += oprot->writeString((*_iter824)); } xfer += oprot->writeListEnd(); } @@ -22345,10 +22547,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 _iter819; - for (_iter819 = (*(this->group_names)).begin(); _iter819 != (*(this->group_names)).end(); ++_iter819) + std::vector ::const_iterator _iter825; + for (_iter825 = (*(this->group_names)).begin(); _iter825 != (*(this->group_names)).end(); ++_iter825) { - xfer += oprot->writeString((*_iter819)); + xfer += oprot->writeString((*_iter825)); } xfer += oprot->writeListEnd(); } @@ -22383,14 +22585,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size820; - ::apache::thrift::protocol::TType _etype823; - xfer += iprot->readListBegin(_etype823, _size820); - this->success.resize(_size820); - uint32_t _i824; - for (_i824 = 0; _i824 < _size820; ++_i824) + uint32_t _size826; + ::apache::thrift::protocol::TType _etype829; + xfer += iprot->readListBegin(_etype829, _size826); + this->success.resize(_size826); + uint32_t _i830; + for (_i830 = 0; _i830 < _size826; ++_i830) { - xfer += iprot->readString(this->success[_i824]); + xfer += iprot->readString(this->success[_i830]); } xfer += iprot->readListEnd(); } @@ -22429,10 +22631,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 _iter825; - for (_iter825 = this->success.begin(); _iter825 != this->success.end(); ++_iter825) + std::vector ::const_iterator _iter831; + for (_iter831 = this->success.begin(); _iter831 != this->success.end(); ++_iter831) { - xfer += oprot->writeString((*_iter825)); + xfer += oprot->writeString((*_iter831)); } xfer += oprot->writeListEnd(); } @@ -22471,14 +22673,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size826; - ::apache::thrift::protocol::TType _etype829; - xfer += iprot->readListBegin(_etype829, _size826); - (*(this->success)).resize(_size826); - uint32_t _i830; - for (_i830 = 0; _i830 < _size826; ++_i830) + uint32_t _size832; + ::apache::thrift::protocol::TType _etype835; + xfer += iprot->readListBegin(_etype835, _size832); + (*(this->success)).resize(_size832); + uint32_t _i836; + for (_i836 = 0; _i836 < _size832; ++_i836) { - xfer += iprot->readString((*(this->success))[_i830]); + xfer += iprot->readString((*(this->success))[_i836]); } xfer += iprot->readListEnd(); } @@ -29929,6 +30131,70 @@ void ThriftHiveMetastoreClient::recv_get_partitions_statistics_req(PartitionsSta throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_partitions_statistics_req failed: unknown result"); } +void ThriftHiveMetastoreClient::get_aggr_stats_for(Aggr_Stats& _return, const PartitionsStatsRequest& request) +{ + send_get_aggr_stats_for(request); + recv_get_aggr_stats_for(_return); +} + +void ThriftHiveMetastoreClient::send_get_aggr_stats_for(const PartitionsStatsRequest& request) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_aggr_stats_for", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_aggr_stats_for_pargs args; + args.request = &request; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_aggr_stats_for(Aggr_Stats& _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_aggr_stats_for") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_aggr_stats_for_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_aggr_stats_for failed: unknown result"); +} + bool ThriftHiveMetastoreClient::delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) { send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name); @@ -36595,6 +36861,66 @@ void ThriftHiveMetastoreProcessor::process_get_partitions_statistics_req(int32_t } } +void ThriftHiveMetastoreProcessor::process_get_aggr_stats_for(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_aggr_stats_for", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_aggr_stats_for"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_aggr_stats_for"); + } + + ThriftHiveMetastore_get_aggr_stats_for_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_aggr_stats_for", bytes); + } + + ThriftHiveMetastore_get_aggr_stats_for_result result; + try { + iface_->get_aggr_stats_for(result.success, args.request); + result.__isset.success = true; + } catch (NoSuchObjectException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (MetaException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_aggr_stats_for"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_aggr_stats_for", ::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_aggr_stats_for"); + } + + oprot->writeMessageBegin("get_aggr_stats_for", ::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_aggr_stats_for", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_delete_partition_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 3b778ee..6823e28 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -87,6 +87,7 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_partition_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) = 0; virtual void get_table_statistics_req(TableStatsResult& _return, const TableStatsRequest& request) = 0; virtual void get_partitions_statistics_req(PartitionsStatsResult& _return, const PartitionsStatsRequest& request) = 0; + virtual void get_aggr_stats_for(Aggr_Stats& _return, const PartitionsStatsRequest& request) = 0; virtual bool delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) = 0; virtual bool delete_table_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& col_name) = 0; virtual void create_function(const Function& func) = 0; @@ -379,6 +380,9 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_partitions_statistics_req(PartitionsStatsResult& /* _return */, const PartitionsStatsRequest& /* request */) { return; } + void get_aggr_stats_for(Aggr_Stats& /* _return */, const PartitionsStatsRequest& /* request */) { + return; + } bool delete_partition_column_statistics(const std::string& /* db_name */, const std::string& /* tbl_name */, const std::string& /* part_name */, const std::string& /* col_name */) { bool _return = false; return _return; @@ -10760,6 +10764,134 @@ class ThriftHiveMetastore_get_partitions_statistics_req_presult { }; +typedef struct _ThriftHiveMetastore_get_aggr_stats_for_args__isset { + _ThriftHiveMetastore_get_aggr_stats_for_args__isset() : request(false) {} + bool request; +} _ThriftHiveMetastore_get_aggr_stats_for_args__isset; + +class ThriftHiveMetastore_get_aggr_stats_for_args { + public: + + ThriftHiveMetastore_get_aggr_stats_for_args() { + } + + virtual ~ThriftHiveMetastore_get_aggr_stats_for_args() throw() {} + + PartitionsStatsRequest request; + + _ThriftHiveMetastore_get_aggr_stats_for_args__isset __isset; + + void __set_request(const PartitionsStatsRequest& val) { + request = val; + } + + bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_args & rhs) const + { + if (!(request == rhs.request)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_aggr_stats_for_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_aggr_stats_for_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_aggr_stats_for_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() {} + + const PartitionsStatsRequest* request; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_aggr_stats_for_result__isset { + _ThriftHiveMetastore_get_aggr_stats_for_result__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_aggr_stats_for_result__isset; + +class ThriftHiveMetastore_get_aggr_stats_for_result { + public: + + ThriftHiveMetastore_get_aggr_stats_for_result() { + } + + virtual ~ThriftHiveMetastore_get_aggr_stats_for_result() throw() {} + + Aggr_Stats success; + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_get_aggr_stats_for_result__isset __isset; + + void __set_success(const Aggr_Stats& val) { + success = val; + } + + void __set_o1(const NoSuchObjectException& val) { + o1 = val; + } + + void __set_o2(const MetaException& val) { + o2 = val; + } + + bool operator == (const ThriftHiveMetastore_get_aggr_stats_for_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_aggr_stats_for_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_aggr_stats_for_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_aggr_stats_for_presult__isset { + _ThriftHiveMetastore_get_aggr_stats_for_presult__isset() : success(false), o1(false), o2(false) {} + bool success; + bool o1; + bool o2; +} _ThriftHiveMetastore_get_aggr_stats_for_presult__isset; + +class ThriftHiveMetastore_get_aggr_stats_for_presult { + public: + + + virtual ~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() {} + + Aggr_Stats* success; + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_get_aggr_stats_for_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_delete_partition_column_statistics_args__isset { _ThriftHiveMetastore_delete_partition_column_statistics_args__isset() : db_name(false), tbl_name(false), part_name(false), col_name(false) {} bool db_name; @@ -15663,6 +15795,9 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_partitions_statistics_req(PartitionsStatsResult& _return, const PartitionsStatsRequest& request); void send_get_partitions_statistics_req(const PartitionsStatsRequest& request); void recv_get_partitions_statistics_req(PartitionsStatsResult& _return); + void get_aggr_stats_for(Aggr_Stats& _return, const PartitionsStatsRequest& request); + void send_get_aggr_stats_for(const PartitionsStatsRequest& request); + void recv_get_aggr_stats_for(Aggr_Stats& _return); bool delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); void send_delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name); bool recv_delete_partition_column_statistics(); @@ -15858,6 +15993,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_partition_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_statistics_req(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_partitions_statistics_req(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_aggr_stats_for(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_delete_partition_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_delete_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_create_function(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -15971,6 +16107,7 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_partition_column_statistics"] = &ThriftHiveMetastoreProcessor::process_get_partition_column_statistics; processMap_["get_table_statistics_req"] = &ThriftHiveMetastoreProcessor::process_get_table_statistics_req; processMap_["get_partitions_statistics_req"] = &ThriftHiveMetastoreProcessor::process_get_partitions_statistics_req; + processMap_["get_aggr_stats_for"] = &ThriftHiveMetastoreProcessor::process_get_aggr_stats_for; processMap_["delete_partition_column_statistics"] = &ThriftHiveMetastoreProcessor::process_delete_partition_column_statistics; processMap_["delete_table_column_statistics"] = &ThriftHiveMetastoreProcessor::process_delete_table_column_statistics; processMap_["create_function"] = &ThriftHiveMetastoreProcessor::process_create_function; @@ -16725,6 +16862,16 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_aggr_stats_for(Aggr_Stats& _return, const PartitionsStatsRequest& request) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_aggr_stats_for(_return, request); + } + ifaces_[i]->get_aggr_stats_for(_return, request); + return; + } + bool delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) { size_t sz = ifaces_.size(); size_t i = 0; diff --git metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index 957b976..55ee035 100644 --- metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -377,6 +377,11 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_partitions_statistics_req\n"); } + void get_aggr_stats_for(Aggr_Stats& _return, const PartitionsStatsRequest& request) { + // Your implementation goes here + printf("get_aggr_stats_for\n"); + } + bool delete_partition_column_statistics(const std::string& db_name, const std::string& tbl_name, const std::string& part_name, const std::string& col_name) { // Your implementation goes here printf("delete_partition_column_statistics\n"); diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index a6a40fd..ec375ab 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -4668,10 +4668,10 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -const char* Schema::ascii_fingerprint = "5CFEE46C975F4E2368D905109B8E3B5B"; -const uint8_t Schema::binary_fingerprint[16] = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; +const char* Aggr_Stats::ascii_fingerprint = "399BDBAF7503E0BFB5E1D99C83D790CD"; +const uint8_t Aggr_Stats::binary_fingerprint[16] = {0x39,0x9B,0xDB,0xAF,0x75,0x03,0xE0,0xBF,0xB5,0xE1,0xD9,0x9C,0x83,0xD7,0x90,0xCD}; -uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t Aggr_Stats::read(::apache::thrift::protocol::TProtocol* iprot) { uint32_t xfer = 0; std::string fname; @@ -4682,6 +4682,8 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { using ::apache::thrift::protocol::TProtocolException; + bool isset_colStats = false; + bool isset_partsFound = false; while (true) { @@ -4694,15 +4696,113 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { case 1: if (ftype == ::apache::thrift::protocol::T_LIST) { { - this->fieldSchemas.clear(); + this->colStats.clear(); uint32_t _size199; ::apache::thrift::protocol::TType _etype202; xfer += iprot->readListBegin(_etype202, _size199); - this->fieldSchemas.resize(_size199); + this->colStats.resize(_size199); uint32_t _i203; for (_i203 = 0; _i203 < _size199; ++_i203) { - xfer += this->fieldSchemas[_i203].read(iprot); + xfer += this->colStats[_i203].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_colStats = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_I64) { + xfer += iprot->readI64(this->partsFound); + isset_partsFound = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_colStats) + throw TProtocolException(TProtocolException::INVALID_DATA); + if (!isset_partsFound) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t Aggr_Stats::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + xfer += oprot->writeStructBegin("Aggr_Stats"); + + xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); + std::vector ::const_iterator _iter204; + for (_iter204 = this->colStats.begin(); _iter204 != this->colStats.end(); ++_iter204) + { + xfer += (*_iter204).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("partsFound", ::apache::thrift::protocol::T_I64, 2); + xfer += oprot->writeI64(this->partsFound); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(Aggr_Stats &a, Aggr_Stats &b) { + using ::std::swap; + swap(a.colStats, b.colStats); + swap(a.partsFound, b.partsFound); +} + +const char* Schema::ascii_fingerprint = "5CFEE46C975F4E2368D905109B8E3B5B"; +const uint8_t Schema::binary_fingerprint[16] = {0x5C,0xFE,0xE4,0x6C,0x97,0x5F,0x4E,0x23,0x68,0xD9,0x05,0x10,0x9B,0x8E,0x3B,0x5B}; + +uint32_t Schema::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->fieldSchemas.clear(); + uint32_t _size205; + ::apache::thrift::protocol::TType _etype208; + xfer += iprot->readListBegin(_etype208, _size205); + this->fieldSchemas.resize(_size205); + uint32_t _i209; + for (_i209 = 0; _i209 < _size205; ++_i209) + { + xfer += this->fieldSchemas[_i209].read(iprot); } xfer += iprot->readListEnd(); } @@ -4715,17 +4815,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size204; - ::apache::thrift::protocol::TType _ktype205; - ::apache::thrift::protocol::TType _vtype206; - xfer += iprot->readMapBegin(_ktype205, _vtype206, _size204); - uint32_t _i208; - for (_i208 = 0; _i208 < _size204; ++_i208) + uint32_t _size210; + ::apache::thrift::protocol::TType _ktype211; + ::apache::thrift::protocol::TType _vtype212; + xfer += iprot->readMapBegin(_ktype211, _vtype212, _size210); + uint32_t _i214; + for (_i214 = 0; _i214 < _size210; ++_i214) { - std::string _key209; - xfer += iprot->readString(_key209); - std::string& _val210 = this->properties[_key209]; - xfer += iprot->readString(_val210); + std::string _key215; + xfer += iprot->readString(_key215); + std::string& _val216 = this->properties[_key215]; + xfer += iprot->readString(_val216); } xfer += iprot->readMapEnd(); } @@ -4753,10 +4853,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 _iter211; - for (_iter211 = this->fieldSchemas.begin(); _iter211 != this->fieldSchemas.end(); ++_iter211) + std::vector ::const_iterator _iter217; + for (_iter217 = this->fieldSchemas.begin(); _iter217 != this->fieldSchemas.end(); ++_iter217) { - xfer += (*_iter211).write(oprot); + xfer += (*_iter217).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4765,11 +4865,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 _iter212; - for (_iter212 = this->properties.begin(); _iter212 != this->properties.end(); ++_iter212) + std::map ::const_iterator _iter218; + for (_iter218 = this->properties.begin(); _iter218 != this->properties.end(); ++_iter218) { - xfer += oprot->writeString(_iter212->first); - xfer += oprot->writeString(_iter212->second); + xfer += oprot->writeString(_iter218->first); + xfer += oprot->writeString(_iter218->second); } xfer += oprot->writeMapEnd(); } @@ -4814,17 +4914,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size213; - ::apache::thrift::protocol::TType _ktype214; - ::apache::thrift::protocol::TType _vtype215; - xfer += iprot->readMapBegin(_ktype214, _vtype215, _size213); - uint32_t _i217; - for (_i217 = 0; _i217 < _size213; ++_i217) + uint32_t _size219; + ::apache::thrift::protocol::TType _ktype220; + ::apache::thrift::protocol::TType _vtype221; + xfer += iprot->readMapBegin(_ktype220, _vtype221, _size219); + uint32_t _i223; + for (_i223 = 0; _i223 < _size219; ++_i223) { - std::string _key218; - xfer += iprot->readString(_key218); - std::string& _val219 = this->properties[_key218]; - xfer += iprot->readString(_val219); + std::string _key224; + xfer += iprot->readString(_key224); + std::string& _val225 = this->properties[_key224]; + xfer += iprot->readString(_val225); } xfer += iprot->readMapEnd(); } @@ -4852,11 +4952,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 _iter220; - for (_iter220 = this->properties.begin(); _iter220 != this->properties.end(); ++_iter220) + std::map ::const_iterator _iter226; + for (_iter226 = this->properties.begin(); _iter226 != this->properties.end(); ++_iter226) { - xfer += oprot->writeString(_iter220->first); - xfer += oprot->writeString(_iter220->second); + xfer += oprot->writeString(_iter226->first); + xfer += oprot->writeString(_iter226->second); } xfer += oprot->writeMapEnd(); } @@ -4902,14 +5002,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size221; - ::apache::thrift::protocol::TType _etype224; - xfer += iprot->readListBegin(_etype224, _size221); - this->partitions.resize(_size221); - uint32_t _i225; - for (_i225 = 0; _i225 < _size221; ++_i225) + uint32_t _size227; + ::apache::thrift::protocol::TType _etype230; + xfer += iprot->readListBegin(_etype230, _size227); + this->partitions.resize(_size227); + uint32_t _i231; + for (_i231 = 0; _i231 < _size227; ++_i231) { - xfer += this->partitions[_i225].read(iprot); + xfer += this->partitions[_i231].read(iprot); } xfer += iprot->readListEnd(); } @@ -4949,10 +5049,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 _iter226; - for (_iter226 = this->partitions.begin(); _iter226 != this->partitions.end(); ++_iter226) + std::vector ::const_iterator _iter232; + for (_iter232 = this->partitions.begin(); _iter232 != this->partitions.end(); ++_iter232) { - xfer += (*_iter226).write(oprot); + xfer += (*_iter232).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5126,14 +5226,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size227; - ::apache::thrift::protocol::TType _etype230; - xfer += iprot->readListBegin(_etype230, _size227); - this->tableStats.resize(_size227); - uint32_t _i231; - for (_i231 = 0; _i231 < _size227; ++_i231) + uint32_t _size233; + ::apache::thrift::protocol::TType _etype236; + xfer += iprot->readListBegin(_etype236, _size233); + this->tableStats.resize(_size233); + uint32_t _i237; + for (_i237 = 0; _i237 < _size233; ++_i237) { - xfer += this->tableStats[_i231].read(iprot); + xfer += this->tableStats[_i237].read(iprot); } xfer += iprot->readListEnd(); } @@ -5163,10 +5263,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 _iter232; - for (_iter232 = this->tableStats.begin(); _iter232 != this->tableStats.end(); ++_iter232) + std::vector ::const_iterator _iter238; + for (_iter238 = this->tableStats.begin(); _iter238 != this->tableStats.end(); ++_iter238) { - xfer += (*_iter232).write(oprot); + xfer += (*_iter238).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5210,26 +5310,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size233; - ::apache::thrift::protocol::TType _ktype234; - ::apache::thrift::protocol::TType _vtype235; - xfer += iprot->readMapBegin(_ktype234, _vtype235, _size233); - uint32_t _i237; - for (_i237 = 0; _i237 < _size233; ++_i237) + uint32_t _size239; + ::apache::thrift::protocol::TType _ktype240; + ::apache::thrift::protocol::TType _vtype241; + xfer += iprot->readMapBegin(_ktype240, _vtype241, _size239); + uint32_t _i243; + for (_i243 = 0; _i243 < _size239; ++_i243) { - std::string _key238; - xfer += iprot->readString(_key238); - std::vector & _val239 = this->partStats[_key238]; + std::string _key244; + xfer += iprot->readString(_key244); + std::vector & _val245 = this->partStats[_key244]; { - _val239.clear(); - uint32_t _size240; - ::apache::thrift::protocol::TType _etype243; - xfer += iprot->readListBegin(_etype243, _size240); - _val239.resize(_size240); - uint32_t _i244; - for (_i244 = 0; _i244 < _size240; ++_i244) + _val245.clear(); + uint32_t _size246; + ::apache::thrift::protocol::TType _etype249; + xfer += iprot->readListBegin(_etype249, _size246); + _val245.resize(_size246); + uint32_t _i250; + for (_i250 = 0; _i250 < _size246; ++_i250) { - xfer += _val239[_i244].read(iprot); + xfer += _val245[_i250].read(iprot); } xfer += iprot->readListEnd(); } @@ -5262,16 +5362,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 _iter245; - for (_iter245 = this->partStats.begin(); _iter245 != this->partStats.end(); ++_iter245) + std::map > ::const_iterator _iter251; + for (_iter251 = this->partStats.begin(); _iter251 != this->partStats.end(); ++_iter251) { - xfer += oprot->writeString(_iter245->first); + xfer += oprot->writeString(_iter251->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter245->second.size())); - std::vector ::const_iterator _iter246; - for (_iter246 = _iter245->second.begin(); _iter246 != _iter245->second.end(); ++_iter246) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter251->second.size())); + std::vector ::const_iterator _iter252; + for (_iter252 = _iter251->second.begin(); _iter252 != _iter251->second.end(); ++_iter252) { - xfer += (*_iter246).write(oprot); + xfer += (*_iter252).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5336,14 +5436,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size247; - ::apache::thrift::protocol::TType _etype250; - xfer += iprot->readListBegin(_etype250, _size247); - this->colNames.resize(_size247); - uint32_t _i251; - for (_i251 = 0; _i251 < _size247; ++_i251) + uint32_t _size253; + ::apache::thrift::protocol::TType _etype256; + xfer += iprot->readListBegin(_etype256, _size253); + this->colNames.resize(_size253); + uint32_t _i257; + for (_i257 = 0; _i257 < _size253; ++_i257) { - xfer += iprot->readString(this->colNames[_i251]); + xfer += iprot->readString(this->colNames[_i257]); } xfer += iprot->readListEnd(); } @@ -5385,10 +5485,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 _iter252; - for (_iter252 = this->colNames.begin(); _iter252 != this->colNames.end(); ++_iter252) + std::vector ::const_iterator _iter258; + for (_iter258 = this->colNames.begin(); _iter258 != this->colNames.end(); ++_iter258) { - xfer += oprot->writeString((*_iter252)); + xfer += oprot->writeString((*_iter258)); } xfer += oprot->writeListEnd(); } @@ -5453,14 +5553,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size253; - ::apache::thrift::protocol::TType _etype256; - xfer += iprot->readListBegin(_etype256, _size253); - this->colNames.resize(_size253); - uint32_t _i257; - for (_i257 = 0; _i257 < _size253; ++_i257) + uint32_t _size259; + ::apache::thrift::protocol::TType _etype262; + xfer += iprot->readListBegin(_etype262, _size259); + this->colNames.resize(_size259); + uint32_t _i263; + for (_i263 = 0; _i263 < _size259; ++_i263) { - xfer += iprot->readString(this->colNames[_i257]); + xfer += iprot->readString(this->colNames[_i263]); } xfer += iprot->readListEnd(); } @@ -5473,14 +5573,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size258; - ::apache::thrift::protocol::TType _etype261; - xfer += iprot->readListBegin(_etype261, _size258); - this->partNames.resize(_size258); - uint32_t _i262; - for (_i262 = 0; _i262 < _size258; ++_i262) + uint32_t _size264; + ::apache::thrift::protocol::TType _etype267; + xfer += iprot->readListBegin(_etype267, _size264); + this->partNames.resize(_size264); + uint32_t _i268; + for (_i268 = 0; _i268 < _size264; ++_i268) { - xfer += iprot->readString(this->partNames[_i262]); + xfer += iprot->readString(this->partNames[_i268]); } xfer += iprot->readListEnd(); } @@ -5524,10 +5624,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 _iter263; - for (_iter263 = this->colNames.begin(); _iter263 != this->colNames.end(); ++_iter263) + std::vector ::const_iterator _iter269; + for (_iter269 = this->colNames.begin(); _iter269 != this->colNames.end(); ++_iter269) { - xfer += oprot->writeString((*_iter263)); + xfer += oprot->writeString((*_iter269)); } xfer += oprot->writeListEnd(); } @@ -5536,10 +5636,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 _iter264; - for (_iter264 = this->partNames.begin(); _iter264 != this->partNames.end(); ++_iter264) + std::vector ::const_iterator _iter270; + for (_iter270 = this->partNames.begin(); _iter270 != this->partNames.end(); ++_iter270) { - xfer += oprot->writeString((*_iter264)); + xfer += oprot->writeString((*_iter270)); } xfer += oprot->writeListEnd(); } @@ -5585,14 +5685,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size265; - ::apache::thrift::protocol::TType _etype268; - xfer += iprot->readListBegin(_etype268, _size265); - this->partitions.resize(_size265); - uint32_t _i269; - for (_i269 = 0; _i269 < _size265; ++_i269) + uint32_t _size271; + ::apache::thrift::protocol::TType _etype274; + xfer += iprot->readListBegin(_etype274, _size271); + this->partitions.resize(_size271); + uint32_t _i275; + for (_i275 = 0; _i275 < _size271; ++_i275) { - xfer += this->partitions[_i269].read(iprot); + xfer += this->partitions[_i275].read(iprot); } xfer += iprot->readListEnd(); } @@ -5621,10 +5721,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 _iter270; - for (_iter270 = this->partitions.begin(); _iter270 != this->partitions.end(); ++_iter270) + std::vector ::const_iterator _iter276; + for (_iter276 = this->partitions.begin(); _iter276 != this->partitions.end(); ++_iter276) { - xfer += (*_iter270).write(oprot); + xfer += (*_iter276).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5688,14 +5788,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size271; - ::apache::thrift::protocol::TType _etype274; - xfer += iprot->readListBegin(_etype274, _size271); - this->parts.resize(_size271); - uint32_t _i275; - for (_i275 = 0; _i275 < _size271; ++_i275) + uint32_t _size277; + ::apache::thrift::protocol::TType _etype280; + xfer += iprot->readListBegin(_etype280, _size277); + this->parts.resize(_size277); + uint32_t _i281; + for (_i281 = 0; _i281 < _size277; ++_i281) { - xfer += this->parts[_i275].read(iprot); + xfer += this->parts[_i281].read(iprot); } xfer += iprot->readListEnd(); } @@ -5755,10 +5855,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 _iter276; - for (_iter276 = this->parts.begin(); _iter276 != this->parts.end(); ++_iter276) + std::vector ::const_iterator _iter282; + for (_iter282 = this->parts.begin(); _iter282 != this->parts.end(); ++_iter282) { - xfer += (*_iter276).write(oprot); + xfer += (*_iter282).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5815,14 +5915,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size277; - ::apache::thrift::protocol::TType _etype280; - xfer += iprot->readListBegin(_etype280, _size277); - this->partitions.resize(_size277); - uint32_t _i281; - for (_i281 = 0; _i281 < _size277; ++_i281) + uint32_t _size283; + ::apache::thrift::protocol::TType _etype286; + xfer += iprot->readListBegin(_etype286, _size283); + this->partitions.resize(_size283); + uint32_t _i287; + for (_i287 = 0; _i287 < _size283; ++_i287) { - xfer += this->partitions[_i281].read(iprot); + xfer += this->partitions[_i287].read(iprot); } xfer += iprot->readListEnd(); } @@ -5851,10 +5951,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 _iter282; - for (_iter282 = this->partitions.begin(); _iter282 != this->partitions.end(); ++_iter282) + std::vector ::const_iterator _iter288; + for (_iter288 = this->partitions.begin(); _iter288 != this->partitions.end(); ++_iter288) { - xfer += (*_iter282).write(oprot); + xfer += (*_iter288).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5977,14 +6077,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size283; - ::apache::thrift::protocol::TType _etype286; - xfer += iprot->readListBegin(_etype286, _size283); - this->names.resize(_size283); - uint32_t _i287; - for (_i287 = 0; _i287 < _size283; ++_i287) + uint32_t _size289; + ::apache::thrift::protocol::TType _etype292; + xfer += iprot->readListBegin(_etype292, _size289); + this->names.resize(_size289); + uint32_t _i293; + for (_i293 = 0; _i293 < _size289; ++_i293) { - xfer += iprot->readString(this->names[_i287]); + xfer += iprot->readString(this->names[_i293]); } xfer += iprot->readListEnd(); } @@ -5997,14 +6097,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size288; - ::apache::thrift::protocol::TType _etype291; - xfer += iprot->readListBegin(_etype291, _size288); - this->exprs.resize(_size288); - uint32_t _i292; - for (_i292 = 0; _i292 < _size288; ++_i292) + uint32_t _size294; + ::apache::thrift::protocol::TType _etype297; + xfer += iprot->readListBegin(_etype297, _size294); + this->exprs.resize(_size294); + uint32_t _i298; + for (_i298 = 0; _i298 < _size294; ++_i298) { - xfer += this->exprs[_i292].read(iprot); + xfer += this->exprs[_i298].read(iprot); } xfer += iprot->readListEnd(); } @@ -6032,10 +6132,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 _iter293; - for (_iter293 = this->names.begin(); _iter293 != this->names.end(); ++_iter293) + std::vector ::const_iterator _iter299; + for (_iter299 = this->names.begin(); _iter299 != this->names.end(); ++_iter299) { - xfer += oprot->writeString((*_iter293)); + xfer += oprot->writeString((*_iter299)); } xfer += oprot->writeListEnd(); } @@ -6044,10 +6144,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 _iter294; - for (_iter294 = this->exprs.begin(); _iter294 != this->exprs.end(); ++_iter294) + std::vector ::const_iterator _iter300; + for (_iter300 = this->exprs.begin(); _iter300 != this->exprs.end(); ++_iter300) { - xfer += (*_iter294).write(oprot); + xfer += (*_iter300).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6257,9 +6357,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast295; - xfer += iprot->readI32(ecast295); - this->resourceType = (ResourceType::type)ecast295; + int32_t ecast301; + xfer += iprot->readI32(ecast301); + this->resourceType = (ResourceType::type)ecast301; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -6366,9 +6466,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast296; - xfer += iprot->readI32(ecast296); - this->ownerType = (PrincipalType::type)ecast296; + int32_t ecast302; + xfer += iprot->readI32(ecast302); + this->ownerType = (PrincipalType::type)ecast302; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -6384,9 +6484,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast297; - xfer += iprot->readI32(ecast297); - this->functionType = (FunctionType::type)ecast297; + int32_t ecast303; + xfer += iprot->readI32(ecast303); + this->functionType = (FunctionType::type)ecast303; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -6396,14 +6496,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size298; - ::apache::thrift::protocol::TType _etype301; - xfer += iprot->readListBegin(_etype301, _size298); - this->resourceUris.resize(_size298); - uint32_t _i302; - for (_i302 = 0; _i302 < _size298; ++_i302) + uint32_t _size304; + ::apache::thrift::protocol::TType _etype307; + xfer += iprot->readListBegin(_etype307, _size304); + this->resourceUris.resize(_size304); + uint32_t _i308; + for (_i308 = 0; _i308 < _size304; ++_i308) { - xfer += this->resourceUris[_i302].read(iprot); + xfer += this->resourceUris[_i308].read(iprot); } xfer += iprot->readListEnd(); } @@ -6459,10 +6559,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 _iter303; - for (_iter303 = this->resourceUris.begin(); _iter303 != this->resourceUris.end(); ++_iter303) + std::vector ::const_iterator _iter309; + for (_iter309 = this->resourceUris.begin(); _iter309 != this->resourceUris.end(); ++_iter309) { - xfer += (*_iter303).write(oprot); + xfer += (*_iter309).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6523,9 +6623,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast304; - xfer += iprot->readI32(ecast304); - this->state = (TxnState::type)ecast304; + int32_t ecast310; + xfer += iprot->readI32(ecast310); + this->state = (TxnState::type)ecast310; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -6637,14 +6737,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size305; - ::apache::thrift::protocol::TType _etype308; - xfer += iprot->readListBegin(_etype308, _size305); - this->open_txns.resize(_size305); - uint32_t _i309; - for (_i309 = 0; _i309 < _size305; ++_i309) + uint32_t _size311; + ::apache::thrift::protocol::TType _etype314; + xfer += iprot->readListBegin(_etype314, _size311); + this->open_txns.resize(_size311); + uint32_t _i315; + for (_i315 = 0; _i315 < _size311; ++_i315) { - xfer += this->open_txns[_i309].read(iprot); + xfer += this->open_txns[_i315].read(iprot); } xfer += iprot->readListEnd(); } @@ -6680,10 +6780,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 _iter310; - for (_iter310 = this->open_txns.begin(); _iter310 != this->open_txns.end(); ++_iter310) + std::vector ::const_iterator _iter316; + for (_iter316 = this->open_txns.begin(); _iter316 != this->open_txns.end(); ++_iter316) { - xfer += (*_iter310).write(oprot); + xfer += (*_iter316).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6737,15 +6837,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size311; - ::apache::thrift::protocol::TType _etype314; - xfer += iprot->readSetBegin(_etype314, _size311); - uint32_t _i315; - for (_i315 = 0; _i315 < _size311; ++_i315) + uint32_t _size317; + ::apache::thrift::protocol::TType _etype320; + xfer += iprot->readSetBegin(_etype320, _size317); + uint32_t _i321; + for (_i321 = 0; _i321 < _size317; ++_i321) { - int64_t _elem316; - xfer += iprot->readI64(_elem316); - this->open_txns.insert(_elem316); + int64_t _elem322; + xfer += iprot->readI64(_elem322); + this->open_txns.insert(_elem322); } xfer += iprot->readSetEnd(); } @@ -6781,10 +6881,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 _iter317; - for (_iter317 = this->open_txns.begin(); _iter317 != this->open_txns.end(); ++_iter317) + std::set ::const_iterator _iter323; + for (_iter323 = this->open_txns.begin(); _iter323 != this->open_txns.end(); ++_iter323) { - xfer += oprot->writeI64((*_iter317)); + xfer += oprot->writeI64((*_iter323)); } xfer += oprot->writeSetEnd(); } @@ -6925,14 +7025,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size318; - ::apache::thrift::protocol::TType _etype321; - xfer += iprot->readListBegin(_etype321, _size318); - this->txn_ids.resize(_size318); - uint32_t _i322; - for (_i322 = 0; _i322 < _size318; ++_i322) + uint32_t _size324; + ::apache::thrift::protocol::TType _etype327; + xfer += iprot->readListBegin(_etype327, _size324); + this->txn_ids.resize(_size324); + uint32_t _i328; + for (_i328 = 0; _i328 < _size324; ++_i328) { - xfer += iprot->readI64(this->txn_ids[_i322]); + xfer += iprot->readI64(this->txn_ids[_i328]); } xfer += iprot->readListEnd(); } @@ -6962,10 +7062,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 _iter323; - for (_iter323 = this->txn_ids.begin(); _iter323 != this->txn_ids.end(); ++_iter323) + std::vector ::const_iterator _iter329; + for (_iter329 = this->txn_ids.begin(); _iter329 != this->txn_ids.end(); ++_iter329) { - xfer += oprot->writeI64((*_iter323)); + xfer += oprot->writeI64((*_iter329)); } xfer += oprot->writeListEnd(); } @@ -7137,9 +7237,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast324; - xfer += iprot->readI32(ecast324); - this->type = (LockType::type)ecast324; + int32_t ecast330; + xfer += iprot->readI32(ecast330); + this->type = (LockType::type)ecast330; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7147,9 +7247,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast325; - xfer += iprot->readI32(ecast325); - this->level = (LockLevel::type)ecast325; + int32_t ecast331; + xfer += iprot->readI32(ecast331); + this->level = (LockLevel::type)ecast331; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -7268,14 +7368,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size326; - ::apache::thrift::protocol::TType _etype329; - xfer += iprot->readListBegin(_etype329, _size326); - this->component.resize(_size326); - uint32_t _i330; - for (_i330 = 0; _i330 < _size326; ++_i330) + uint32_t _size332; + ::apache::thrift::protocol::TType _etype335; + xfer += iprot->readListBegin(_etype335, _size332); + this->component.resize(_size332); + uint32_t _i336; + for (_i336 = 0; _i336 < _size332; ++_i336) { - xfer += this->component[_i330].read(iprot); + xfer += this->component[_i336].read(iprot); } xfer += iprot->readListEnd(); } @@ -7333,10 +7433,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 _iter331; - for (_iter331 = this->component.begin(); _iter331 != this->component.end(); ++_iter331) + std::vector ::const_iterator _iter337; + for (_iter337 = this->component.begin(); _iter337 != this->component.end(); ++_iter337) { - xfer += (*_iter331).write(oprot); + xfer += (*_iter337).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7404,9 +7504,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast332; - xfer += iprot->readI32(ecast332); - this->state = (LockState::type)ecast332; + int32_t ecast338; + xfer += iprot->readI32(ecast338); + this->state = (LockState::type)ecast338; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -7688,9 +7788,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast333; - xfer += iprot->readI32(ecast333); - this->state = (LockState::type)ecast333; + int32_t ecast339; + xfer += iprot->readI32(ecast339); + this->state = (LockState::type)ecast339; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -7698,9 +7798,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast334; - xfer += iprot->readI32(ecast334); - this->type = (LockType::type)ecast334; + int32_t ecast340; + xfer += iprot->readI32(ecast340); + this->type = (LockType::type)ecast340; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -7872,14 +7972,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size335; - ::apache::thrift::protocol::TType _etype338; - xfer += iprot->readListBegin(_etype338, _size335); - this->locks.resize(_size335); - uint32_t _i339; - for (_i339 = 0; _i339 < _size335; ++_i339) + uint32_t _size341; + ::apache::thrift::protocol::TType _etype344; + xfer += iprot->readListBegin(_etype344, _size341); + this->locks.resize(_size341); + uint32_t _i345; + for (_i345 = 0; _i345 < _size341; ++_i345) { - xfer += this->locks[_i339].read(iprot); + xfer += this->locks[_i345].read(iprot); } xfer += iprot->readListEnd(); } @@ -7907,10 +8007,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 _iter340; - for (_iter340 = this->locks.begin(); _iter340 != this->locks.end(); ++_iter340) + std::vector ::const_iterator _iter346; + for (_iter346 = this->locks.begin(); _iter346 != this->locks.end(); ++_iter346) { - xfer += (*_iter340).write(oprot); + xfer += (*_iter346).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8113,15 +8213,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size341; - ::apache::thrift::protocol::TType _etype344; - xfer += iprot->readSetBegin(_etype344, _size341); - uint32_t _i345; - for (_i345 = 0; _i345 < _size341; ++_i345) + uint32_t _size347; + ::apache::thrift::protocol::TType _etype350; + xfer += iprot->readSetBegin(_etype350, _size347); + uint32_t _i351; + for (_i351 = 0; _i351 < _size347; ++_i351) { - int64_t _elem346; - xfer += iprot->readI64(_elem346); - this->aborted.insert(_elem346); + int64_t _elem352; + xfer += iprot->readI64(_elem352); + this->aborted.insert(_elem352); } xfer += iprot->readSetEnd(); } @@ -8134,15 +8234,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size347; - ::apache::thrift::protocol::TType _etype350; - xfer += iprot->readSetBegin(_etype350, _size347); - uint32_t _i351; - for (_i351 = 0; _i351 < _size347; ++_i351) + uint32_t _size353; + ::apache::thrift::protocol::TType _etype356; + xfer += iprot->readSetBegin(_etype356, _size353); + uint32_t _i357; + for (_i357 = 0; _i357 < _size353; ++_i357) { - int64_t _elem352; - xfer += iprot->readI64(_elem352); - this->nosuch.insert(_elem352); + int64_t _elem358; + xfer += iprot->readI64(_elem358); + this->nosuch.insert(_elem358); } xfer += iprot->readSetEnd(); } @@ -8174,10 +8274,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("aborted", ::apache::thrift::protocol::T_SET, 1); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->aborted.size())); - std::set ::const_iterator _iter353; - for (_iter353 = this->aborted.begin(); _iter353 != this->aborted.end(); ++_iter353) + std::set ::const_iterator _iter359; + for (_iter359 = this->aborted.begin(); _iter359 != this->aborted.end(); ++_iter359) { - xfer += oprot->writeI64((*_iter353)); + xfer += oprot->writeI64((*_iter359)); } xfer += oprot->writeSetEnd(); } @@ -8186,10 +8286,10 @@ uint32_t HeartbeatTxnRangeResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("nosuch", ::apache::thrift::protocol::T_SET, 2); { xfer += oprot->writeSetBegin(::apache::thrift::protocol::T_I64, static_cast(this->nosuch.size())); - std::set ::const_iterator _iter354; - for (_iter354 = this->nosuch.begin(); _iter354 != this->nosuch.end(); ++_iter354) + std::set ::const_iterator _iter360; + for (_iter360 = this->nosuch.begin(); _iter360 != this->nosuch.end(); ++_iter360) { - xfer += oprot->writeI64((*_iter354)); + xfer += oprot->writeI64((*_iter360)); } xfer += oprot->writeSetEnd(); } @@ -8258,9 +8358,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast355; - xfer += iprot->readI32(ecast355); - this->type = (CompactionType::type)ecast355; + int32_t ecast361; + xfer += iprot->readI32(ecast361); + this->type = (CompactionType::type)ecast361; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -8435,9 +8535,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast356; - xfer += iprot->readI32(ecast356); - this->type = (CompactionType::type)ecast356; + int32_t ecast362; + xfer += iprot->readI32(ecast362); + this->type = (CompactionType::type)ecast362; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -8584,14 +8684,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size357; - ::apache::thrift::protocol::TType _etype360; - xfer += iprot->readListBegin(_etype360, _size357); - this->compacts.resize(_size357); - uint32_t _i361; - for (_i361 = 0; _i361 < _size357; ++_i361) + uint32_t _size363; + ::apache::thrift::protocol::TType _etype366; + xfer += iprot->readListBegin(_etype366, _size363); + this->compacts.resize(_size363); + uint32_t _i367; + for (_i367 = 0; _i367 < _size363; ++_i367) { - xfer += this->compacts[_i361].read(iprot); + xfer += this->compacts[_i367].read(iprot); } xfer += iprot->readListEnd(); } @@ -8621,10 +8721,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 _iter362; - for (_iter362 = this->compacts.begin(); _iter362 != this->compacts.end(); ++_iter362) + std::vector ::const_iterator _iter368; + for (_iter368 = this->compacts.begin(); _iter368 != this->compacts.end(); ++_iter368) { - xfer += (*_iter362).write(oprot); + xfer += (*_iter368).write(oprot); } xfer += oprot->writeListEnd(); } diff --git metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index f352cd5..fe6f983 100644 --- metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -2637,6 +2637,50 @@ class ColumnStatistics { void swap(ColumnStatistics &a, ColumnStatistics &b); + +class Aggr_Stats { + public: + + static const char* ascii_fingerprint; // = "399BDBAF7503E0BFB5E1D99C83D790CD"; + static const uint8_t binary_fingerprint[16]; // = {0x39,0x9B,0xDB,0xAF,0x75,0x03,0xE0,0xBF,0xB5,0xE1,0xD9,0x9C,0x83,0xD7,0x90,0xCD}; + + Aggr_Stats() : partsFound(0) { + } + + virtual ~Aggr_Stats() throw() {} + + std::vector colStats; + int64_t partsFound; + + void __set_colStats(const std::vector & val) { + colStats = val; + } + + void __set_partsFound(const int64_t val) { + partsFound = val; + } + + bool operator == (const Aggr_Stats & rhs) const + { + if (!(colStats == rhs.colStats)) + return false; + if (!(partsFound == rhs.partsFound)) + return false; + return true; + } + bool operator != (const Aggr_Stats &rhs) const { + return !(*this == rhs); + } + + bool operator < (const Aggr_Stats & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +void swap(Aggr_Stats &a, Aggr_Stats &b); + typedef struct _Schema__isset { _Schema__isset() : fieldSchemas(false), properties(false) {} bool fieldSchemas; diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index 4547970..96caab6 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ 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 _list338 = iprot.readListBegin(); - struct.parts = new ArrayList(_list338.size); - for (int _i339 = 0; _i339 < _list338.size; ++_i339) + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.parts = new ArrayList(_list346.size); + for (int _i347 = 0; _i347 < _list346.size; ++_i347) { - Partition _elem340; // optional - _elem340 = new Partition(); - _elem340.read(iprot); - struct.parts.add(_elem340); + Partition _elem348; // required + _elem348 = new Partition(); + _elem348.read(iprot); + struct.parts.add(_elem348); } 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 _iter341 : struct.parts) + for (Partition _iter349 : struct.parts) { - _iter341.write(oprot); + _iter349.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 _iter342 : struct.parts) + for (Partition _iter350 : struct.parts) { - _iter342.write(oprot); + _iter350.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 _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list343.size); - for (int _i344 = 0; _i344 < _list343.size; ++_i344) + org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list351.size); + for (int _i352 = 0; _i352 < _list351.size; ++_i352) { - Partition _elem345; // optional - _elem345 = new Partition(); - _elem345.read(iprot); - struct.parts.add(_elem345); + Partition _elem353; // required + _elem353 = new Partition(); + _elem353.read(iprot); + struct.parts.add(_elem353); } } struct.setPartsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 68a4219..ba65da6 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ 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 _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; // optional - _elem332 = new Partition(); - _elem332.read(iprot); - struct.partitions.add(_elem332); + Partition _elem340; // required + _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, 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 _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, AddPartitionsResult 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, AddPartitionsResult 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; // optional - _elem337 = new Partition(); - _elem337.read(iprot); - struct.partitions.add(_elem337); + Partition _elem345; // required + _elem345 = new Partition(); + _elem345.read(iprot); + struct.partitions.add(_elem345); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Aggr_Stats.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Aggr_Stats.java new file mode 100644 index 0000000..62ac769 --- /dev/null +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Aggr_Stats.java @@ -0,0 +1,538 @@ +/** + * 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 Aggr_Stats 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("Aggr_Stats"); + + private static final org.apache.thrift.protocol.TField COL_STATS_FIELD_DESC = new org.apache.thrift.protocol.TField("colStats", org.apache.thrift.protocol.TType.LIST, (short)1); + private static final org.apache.thrift.protocol.TField PARTS_FOUND_FIELD_DESC = new org.apache.thrift.protocol.TField("partsFound", org.apache.thrift.protocol.TType.I64, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new Aggr_StatsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new Aggr_StatsTupleSchemeFactory()); + } + + private List colStats; // required + private long partsFound; // 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 { + COL_STATS((short)1, "colStats"), + PARTS_FOUND((short)2, "partsFound"); + + 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: // COL_STATS + return COL_STATS; + case 2: // PARTS_FOUND + return PARTS_FOUND; + 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 __PARTSFOUND_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.COL_STATS, new org.apache.thrift.meta_data.FieldMetaData("colStats", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ColumnStatisticsObj.class)))); + tmpMap.put(_Fields.PARTS_FOUND, new org.apache.thrift.meta_data.FieldMetaData("partsFound", org.apache.thrift.TFieldRequirementType.REQUIRED, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Aggr_Stats.class, metaDataMap); + } + + public Aggr_Stats() { + } + + public Aggr_Stats( + List colStats, + long partsFound) + { + this(); + this.colStats = colStats; + this.partsFound = partsFound; + setPartsFoundIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public Aggr_Stats(Aggr_Stats other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetColStats()) { + List __this__colStats = new ArrayList(); + for (ColumnStatisticsObj other_element : other.colStats) { + __this__colStats.add(new ColumnStatisticsObj(other_element)); + } + this.colStats = __this__colStats; + } + this.partsFound = other.partsFound; + } + + public Aggr_Stats deepCopy() { + return new Aggr_Stats(this); + } + + @Override + public void clear() { + this.colStats = null; + setPartsFoundIsSet(false); + this.partsFound = 0; + } + + public int getColStatsSize() { + return (this.colStats == null) ? 0 : this.colStats.size(); + } + + public java.util.Iterator getColStatsIterator() { + return (this.colStats == null) ? null : this.colStats.iterator(); + } + + public void addToColStats(ColumnStatisticsObj elem) { + if (this.colStats == null) { + this.colStats = new ArrayList(); + } + this.colStats.add(elem); + } + + public List getColStats() { + return this.colStats; + } + + public void setColStats(List colStats) { + this.colStats = colStats; + } + + public void unsetColStats() { + this.colStats = null; + } + + /** Returns true if field colStats is set (has been assigned a value) and false otherwise */ + public boolean isSetColStats() { + return this.colStats != null; + } + + public void setColStatsIsSet(boolean value) { + if (!value) { + this.colStats = null; + } + } + + public long getPartsFound() { + return this.partsFound; + } + + public void setPartsFound(long partsFound) { + this.partsFound = partsFound; + setPartsFoundIsSet(true); + } + + public void unsetPartsFound() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PARTSFOUND_ISSET_ID); + } + + /** Returns true if field partsFound is set (has been assigned a value) and false otherwise */ + public boolean isSetPartsFound() { + return EncodingUtils.testBit(__isset_bitfield, __PARTSFOUND_ISSET_ID); + } + + public void setPartsFoundIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PARTSFOUND_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case COL_STATS: + if (value == null) { + unsetColStats(); + } else { + setColStats((List)value); + } + break; + + case PARTS_FOUND: + if (value == null) { + unsetPartsFound(); + } else { + setPartsFound((Long)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case COL_STATS: + return getColStats(); + + case PARTS_FOUND: + return Long.valueOf(getPartsFound()); + + } + 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 COL_STATS: + return isSetColStats(); + case PARTS_FOUND: + return isSetPartsFound(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof Aggr_Stats) + return this.equals((Aggr_Stats)that); + return false; + } + + public boolean equals(Aggr_Stats that) { + if (that == null) + return false; + + boolean this_present_colStats = true && this.isSetColStats(); + boolean that_present_colStats = true && that.isSetColStats(); + if (this_present_colStats || that_present_colStats) { + if (!(this_present_colStats && that_present_colStats)) + return false; + if (!this.colStats.equals(that.colStats)) + return false; + } + + boolean this_present_partsFound = true; + boolean that_present_partsFound = true; + if (this_present_partsFound || that_present_partsFound) { + if (!(this_present_partsFound && that_present_partsFound)) + return false; + if (this.partsFound != that.partsFound) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_colStats = true && (isSetColStats()); + builder.append(present_colStats); + if (present_colStats) + builder.append(colStats); + + boolean present_partsFound = true; + builder.append(present_partsFound); + if (present_partsFound) + builder.append(partsFound); + + return builder.toHashCode(); + } + + public int compareTo(Aggr_Stats other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + Aggr_Stats typedOther = (Aggr_Stats)other; + + lastComparison = Boolean.valueOf(isSetColStats()).compareTo(typedOther.isSetColStats()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetColStats()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.colStats, typedOther.colStats); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPartsFound()).compareTo(typedOther.isSetPartsFound()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPartsFound()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.partsFound, typedOther.partsFound); + 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("Aggr_Stats("); + boolean first = true; + + sb.append("colStats:"); + if (this.colStats == null) { + sb.append("null"); + } else { + sb.append(this.colStats); + } + first = false; + if (!first) sb.append(", "); + sb.append("partsFound:"); + sb.append(this.partsFound); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetColStats()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'colStats' is unset! Struct:" + toString()); + } + + if (!isSetPartsFound()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'partsFound' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // 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 Aggr_StatsStandardSchemeFactory implements SchemeFactory { + public Aggr_StatsStandardScheme getScheme() { + return new Aggr_StatsStandardScheme(); + } + } + + private static class Aggr_StatsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, Aggr_Stats 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: // COL_STATS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list244 = iprot.readListBegin(); + struct.colStats = new ArrayList(_list244.size); + for (int _i245 = 0; _i245 < _list244.size; ++_i245) + { + ColumnStatisticsObj _elem246; // required + _elem246 = new ColumnStatisticsObj(); + _elem246.read(iprot); + struct.colStats.add(_elem246); + } + iprot.readListEnd(); + } + struct.setColStatsIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PARTS_FOUND + if (schemeField.type == org.apache.thrift.protocol.TType.I64) { + struct.partsFound = iprot.readI64(); + struct.setPartsFoundIsSet(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, Aggr_Stats struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.colStats != null) { + oprot.writeFieldBegin(COL_STATS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.colStats.size())); + for (ColumnStatisticsObj _iter247 : struct.colStats) + { + _iter247.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(PARTS_FOUND_FIELD_DESC); + oprot.writeI64(struct.partsFound); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class Aggr_StatsTupleSchemeFactory implements SchemeFactory { + public Aggr_StatsTupleScheme getScheme() { + return new Aggr_StatsTupleScheme(); + } + } + + private static class Aggr_StatsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, Aggr_Stats struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.colStats.size()); + for (ColumnStatisticsObj _iter248 : struct.colStats) + { + _iter248.write(oprot); + } + } + oprot.writeI64(struct.partsFound); + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, Aggr_Stats struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list249 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.colStats = new ArrayList(_list249.size); + for (int _i250 = 0; _i250 < _list249.size; ++_i250) + { + ColumnStatisticsObj _elem251; // required + _elem251 = new ColumnStatisticsObj(); + _elem251.read(iprot); + struct.colStats.add(_elem251); + } + } + struct.setColStatsIsSet(true); + struct.partsFound = iprot.readI64(); + struct.setPartsFoundIsSet(true); + } + } + +} + diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java index 6aecf26..aa647d4 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ColumnStatistics.java @@ -451,7 +451,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ColumnStatistics st struct.statsObj = new ArrayList(_list236.size); for (int _i237 = 0; _i237 < _list236.size; ++_i237) { - ColumnStatisticsObj _elem238; // optional + ColumnStatisticsObj _elem238; // required _elem238 = new ColumnStatisticsObj(); _elem238.read(iprot); struct.statsObj.add(_elem238); @@ -531,7 +531,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, ColumnStatistics str struct.statsObj = new ArrayList(_list241.size); for (int _i242 = 0; _i242 < _list241.size; ++_i242) { - ColumnStatisticsObj _elem243; // optional + ColumnStatisticsObj _elem243; // required _elem243 = new ColumnStatisticsObj(); _elem243.read(iprot); struct.statsObj.add(_elem243); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index a4ae892..87444d2 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ 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 _list346 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list346.size); - for (int _i347 = 0; _i347 < _list346.size; ++_i347) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list354.size); + for (int _i355 = 0; _i355 < _list354.size; ++_i355) { - Partition _elem348; // optional - _elem348 = new Partition(); - _elem348.read(iprot); - struct.partitions.add(_elem348); + Partition _elem356; // required + _elem356 = new Partition(); + _elem356.read(iprot); + struct.partitions.add(_elem356); } 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 _iter349 : struct.partitions) + for (Partition _iter357 : struct.partitions) { - _iter349.write(oprot); + _iter357.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 _iter350 : struct.partitions) + for (Partition _iter358 : struct.partitions) { - _iter350.write(oprot); + _iter358.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 _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list351.size); - for (int _i352 = 0; _i352 < _list351.size; ++_i352) + org.apache.thrift.protocol.TList _list359 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list359.size); + for (int _i360 = 0; _i360 < _list359.size; ++_i360) { - Partition _elem353; // optional - _elem353 = new Partition(); - _elem353.read(iprot); - struct.partitions.add(_elem353); + Partition _elem361; // required + _elem361 = new Partition(); + _elem361.read(iprot); + struct.partitions.add(_elem361); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java index ed464d6..3a38950 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/EnvironmentContext.java +++ 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 _map262 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map262.size); - for (int _i263 = 0; _i263 < _map262.size; ++_i263) + org.apache.thrift.protocol.TMap _map270 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map270.size); + for (int _i271 = 0; _i271 < _map270.size; ++_i271) { - String _key264; // required - String _val265; // required - _key264 = iprot.readString(); - _val265 = iprot.readString(); - struct.properties.put(_key264, _val265); + String _key272; // required + String _val273; // required + _key272 = iprot.readString(); + _val273 = iprot.readString(); + struct.properties.put(_key272, _val273); } 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 _iter266 : struct.properties.entrySet()) + for (Map.Entry _iter274 : struct.properties.entrySet()) { - oprot.writeString(_iter266.getKey()); - oprot.writeString(_iter266.getValue()); + oprot.writeString(_iter274.getKey()); + oprot.writeString(_iter274.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 _iter267 : struct.properties.entrySet()) + for (Map.Entry _iter275 : struct.properties.entrySet()) { - oprot.writeString(_iter267.getKey()); - oprot.writeString(_iter267.getValue()); + oprot.writeString(_iter275.getKey()); + oprot.writeString(_iter275.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 _map268 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map268.size); - for (int _i269 = 0; _i269 < _map268.size; ++_i269) + org.apache.thrift.protocol.TMap _map276 = 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*_map276.size); + for (int _i277 = 0; _i277 < _map276.size; ++_i277) { - String _key270; // required - String _val271; // required - _key270 = iprot.readString(); - _val271 = iprot.readString(); - struct.properties.put(_key270, _val271); + String _key278; // required + String _val279; // required + _key278 = iprot.readString(); + _val279 = iprot.readString(); + struct.properties.put(_key278, _val279); } } struct.setPropertiesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 781281a..813d5f5 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ 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 _list370 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list370.size); - for (int _i371 = 0; _i371 < _list370.size; ++_i371) + org.apache.thrift.protocol.TList _list378 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list378.size); + for (int _i379 = 0; _i379 < _list378.size; ++_i379) { - ResourceUri _elem372; // optional - _elem372 = new ResourceUri(); - _elem372.read(iprot); - struct.resourceUris.add(_elem372); + ResourceUri _elem380; // required + _elem380 = new ResourceUri(); + _elem380.read(iprot); + struct.resourceUris.add(_elem380); } 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 _iter373 : struct.resourceUris) + for (ResourceUri _iter381 : struct.resourceUris) { - _iter373.write(oprot); + _iter381.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 _iter374 : struct.resourceUris) + for (ResourceUri _iter382 : struct.resourceUris) { - _iter374.write(oprot); + _iter382.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 _list375 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list375.size); - for (int _i376 = 0; _i376 < _list375.size; ++_i376) + org.apache.thrift.protocol.TList _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list383.size); + for (int _i384 = 0; _i384 < _list383.size; ++_i384) { - ResourceUri _elem377; // optional - _elem377 = new ResourceUri(); - _elem377.read(iprot); - struct.resourceUris.add(_elem377); + ResourceUri _elem385; // required + _elem385 = new ResourceUri(); + _elem385.read(iprot); + struct.resourceUris.add(_elem385); } } struct.setResourceUrisIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index b782d32..5d3bf75 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ 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 _list378 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list378.size); - for (int _i379 = 0; _i379 < _list378.size; ++_i379) + org.apache.thrift.protocol.TList _list386 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list386.size); + for (int _i387 = 0; _i387 < _list386.size; ++_i387) { - TxnInfo _elem380; // optional - _elem380 = new TxnInfo(); - _elem380.read(iprot); - struct.open_txns.add(_elem380); + TxnInfo _elem388; // required + _elem388 = new TxnInfo(); + _elem388.read(iprot); + struct.open_txns.add(_elem388); } 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 _iter381 : struct.open_txns) + for (TxnInfo _iter389 : struct.open_txns) { - _iter381.write(oprot); + _iter389.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 _iter382 : struct.open_txns) + for (TxnInfo _iter390 : struct.open_txns) { - _iter382.write(oprot); + _iter390.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 _list383 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list383.size); - for (int _i384 = 0; _i384 < _list383.size; ++_i384) + org.apache.thrift.protocol.TList _list391 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list391.size); + for (int _i392 = 0; _i392 < _list391.size; ++_i392) { - TxnInfo _elem385; // optional - _elem385 = new TxnInfo(); - _elem385.read(iprot); - struct.open_txns.add(_elem385); + TxnInfo _elem393; // required + _elem393 = new TxnInfo(); + _elem393.read(iprot); + struct.open_txns.add(_elem393); } } struct.setOpen_txnsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index d549ce9..b938d7d 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ 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 _set386 = iprot.readSetBegin(); - struct.open_txns = new HashSet(2*_set386.size); - for (int _i387 = 0; _i387 < _set386.size; ++_i387) + org.apache.thrift.protocol.TSet _set394 = iprot.readSetBegin(); + struct.open_txns = new HashSet(2*_set394.size); + for (int _i395 = 0; _i395 < _set394.size; ++_i395) { - long _elem388; // optional - _elem388 = iprot.readI64(); - struct.open_txns.add(_elem388); + long _elem396; // required + _elem396 = iprot.readI64(); + struct.open_txns.add(_elem396); } 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 _iter389 : struct.open_txns) + for (long _iter397 : struct.open_txns) { - oprot.writeI64(_iter389); + oprot.writeI64(_iter397); } 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 _iter390 : struct.open_txns) + for (long _iter398 : struct.open_txns) { - oprot.writeI64(_iter390); + oprot.writeI64(_iter398); } } } @@ -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 _set391 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet(2*_set391.size); - for (int _i392 = 0; _i392 < _set391.size; ++_i392) + org.apache.thrift.protocol.TSet _set399 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new HashSet(2*_set399.size); + for (int _i400 = 0; _i400 < _set399.size; ++_i400) { - long _elem393; // optional - _elem393 = iprot.readI64(); - struct.open_txns.add(_elem393); + long _elem401; // required + _elem401 = iprot.readI64(); + struct.open_txns.add(_elem401); } } struct.setOpen_txnsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java index 3ef6224..083699b 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetPrincipalsInRoleResponse.java @@ -354,7 +354,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetPrincipalsInRole struct.principalGrants = new ArrayList(_list86.size); for (int _i87 = 0; _i87 < _list86.size; ++_i87) { - RolePrincipalGrant _elem88; // optional + RolePrincipalGrant _elem88; // required _elem88 = new RolePrincipalGrant(); _elem88.read(iprot); struct.principalGrants.add(_elem88); @@ -425,7 +425,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetPrincipalsInRoleR struct.principalGrants = new ArrayList(_list91.size); for (int _i92 = 0; _i92 < _list91.size; ++_i92) { - RolePrincipalGrant _elem93; // optional + RolePrincipalGrant _elem93; // required _elem93 = new RolePrincipalGrant(); _elem93.read(iprot); struct.principalGrants.add(_elem93); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java index 3ddc1ac..f745c08 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetRoleGrantsForPrincipalResponse.java @@ -354,7 +354,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetRoleGrantsForPri struct.principalGrants = new ArrayList(_list78.size); for (int _i79 = 0; _i79 < _list78.size; ++_i79) { - RolePrincipalGrant _elem80; // optional + RolePrincipalGrant _elem80; // required _elem80 = new RolePrincipalGrant(); _elem80.read(iprot); struct.principalGrants.add(_elem80); @@ -425,7 +425,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetRoleGrantsForPrin struct.principalGrants = new ArrayList(_list83.size); for (int _i84 = 0; _i84 < _list83.size; ++_i84) { - RolePrincipalGrant _elem85; // optional + RolePrincipalGrant _elem85; // required _elem85 = new RolePrincipalGrant(); _elem85.read(iprot); struct.principalGrants.add(_elem85); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index f3e3c07..49f4e56 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -455,13 +455,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 1: // ABORTED if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set418 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set418.size); - for (int _i419 = 0; _i419 < _set418.size; ++_i419) + org.apache.thrift.protocol.TSet _set426 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set426.size); + for (int _i427 = 0; _i427 < _set426.size; ++_i427) { - long _elem420; // optional - _elem420 = iprot.readI64(); - struct.aborted.add(_elem420); + long _elem428; // required + _elem428 = iprot.readI64(); + struct.aborted.add(_elem428); } iprot.readSetEnd(); } @@ -473,13 +473,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, HeartbeatTxnRangeRe case 2: // NOSUCH if (schemeField.type == org.apache.thrift.protocol.TType.SET) { { - org.apache.thrift.protocol.TSet _set421 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set421.size); - for (int _i422 = 0; _i422 < _set421.size; ++_i422) + org.apache.thrift.protocol.TSet _set429 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set429.size); + for (int _i430 = 0; _i430 < _set429.size; ++_i430) { - long _elem423; // optional - _elem423 = iprot.readI64(); - struct.nosuch.add(_elem423); + long _elem431; // required + _elem431 = iprot.readI64(); + struct.nosuch.add(_elem431); } iprot.readSetEnd(); } @@ -505,9 +505,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(ABORTED_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.aborted.size())); - for (long _iter424 : struct.aborted) + for (long _iter432 : struct.aborted) { - oprot.writeI64(_iter424); + oprot.writeI64(_iter432); } oprot.writeSetEnd(); } @@ -517,9 +517,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, HeartbeatTxnRangeR oprot.writeFieldBegin(NOSUCH_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, struct.nosuch.size())); - for (long _iter425 : struct.nosuch) + for (long _iter433 : struct.nosuch) { - oprot.writeI64(_iter425); + oprot.writeI64(_iter433); } oprot.writeSetEnd(); } @@ -544,16 +544,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter426 : struct.aborted) + for (long _iter434 : struct.aborted) { - oprot.writeI64(_iter426); + oprot.writeI64(_iter434); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter427 : struct.nosuch) + for (long _iter435 : struct.nosuch) { - oprot.writeI64(_iter427); + oprot.writeI64(_iter435); } } } @@ -562,24 +562,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe public void read(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TSet _set428 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set428.size); - for (int _i429 = 0; _i429 < _set428.size; ++_i429) + org.apache.thrift.protocol.TSet _set436 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set436.size); + for (int _i437 = 0; _i437 < _set436.size; ++_i437) { - long _elem430; // optional - _elem430 = iprot.readI64(); - struct.aborted.add(_elem430); + long _elem438; // required + _elem438 = iprot.readI64(); + struct.aborted.add(_elem438); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set431 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set431.size); - for (int _i432 = 0; _i432 < _set431.size; ++_i432) + org.apache.thrift.protocol.TSet _set439 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set439.size); + for (int _i440 = 0; _i440 < _set439.size; ++_i440) { - long _elem433; // optional - _elem433 = iprot.readI64(); - struct.nosuch.add(_elem433); + long _elem441; // required + _elem441 = iprot.readI64(); + struct.nosuch.add(_elem441); } } struct.setNosuchIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java index b22b211..997060f 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HiveObjectRef.java +++ 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; // optional + String _elem10; // required _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; // optional + String _elem15; // required _elem15 = iprot.readString(); struct.partValues.add(_elem15); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index cdf6f30..f860028 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ 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 _list402 = iprot.readListBegin(); - struct.component = new ArrayList(_list402.size); - for (int _i403 = 0; _i403 < _list402.size; ++_i403) + org.apache.thrift.protocol.TList _list410 = iprot.readListBegin(); + struct.component = new ArrayList(_list410.size); + for (int _i411 = 0; _i411 < _list410.size; ++_i411) { - LockComponent _elem404; // optional - _elem404 = new LockComponent(); - _elem404.read(iprot); - struct.component.add(_elem404); + LockComponent _elem412; // required + _elem412 = new LockComponent(); + _elem412.read(iprot); + struct.component.add(_elem412); } 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 _iter405 : struct.component) + for (LockComponent _iter413 : struct.component) { - _iter405.write(oprot); + _iter413.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 _iter406 : struct.component) + for (LockComponent _iter414 : struct.component) { - _iter406.write(oprot); + _iter414.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 _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list407.size); - for (int _i408 = 0; _i408 < _list407.size; ++_i408) + org.apache.thrift.protocol.TList _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list415.size); + for (int _i416 = 0; _i416 < _list415.size; ++_i416) { - LockComponent _elem409; // optional - _elem409 = new LockComponent(); - _elem409.read(iprot); - struct.component.add(_elem409); + LockComponent _elem417; // required + _elem417 = new LockComponent(); + _elem417.read(iprot); + struct.component.add(_elem417); } } struct.setComponentIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index 54955c6..1a99948 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ 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 _list394 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list394.size); - for (int _i395 = 0; _i395 < _list394.size; ++_i395) + org.apache.thrift.protocol.TList _list402 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list402.size); + for (int _i403 = 0; _i403 < _list402.size; ++_i403) { - long _elem396; // optional - _elem396 = iprot.readI64(); - struct.txn_ids.add(_elem396); + long _elem404; // required + _elem404 = iprot.readI64(); + struct.txn_ids.add(_elem404); } 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 _iter397 : struct.txn_ids) + for (long _iter405 : struct.txn_ids) { - oprot.writeI64(_iter397); + oprot.writeI64(_iter405); } 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 _iter398 : struct.txn_ids) + for (long _iter406 : struct.txn_ids) { - oprot.writeI64(_iter398); + oprot.writeI64(_iter406); } } } @@ -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 _list399 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list399.size); - for (int _i400 = 0; _i400 < _list399.size; ++_i400) + org.apache.thrift.protocol.TList _list407 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list407.size); + for (int _i408 = 0; _i408 < _list407.size; ++_i408) { - long _elem401; // optional - _elem401 = iprot.readI64(); - struct.txn_ids.add(_elem401); + long _elem409; // required + _elem409 = iprot.readI64(); + struct.txn_ids.add(_elem409); } } struct.setTxn_idsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java index 7d29d09..312807e 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Partition.java @@ -945,7 +945,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Partition struct) t struct.values = new ArrayList(_list208.size); for (int _i209 = 0; _i209 < _list208.size; ++_i209) { - String _elem210; // optional + String _elem210; // required _elem210 = iprot.readString(); struct.values.add(_elem210); } @@ -1184,7 +1184,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Partition struct) th struct.values = new ArrayList(_list219.size); for (int _i220 = 0; _i220 < _list219.size; ++_i220) { - String _elem221; // optional + String _elem221; // required _elem221 = iprot.readString(); struct.values.add(_elem221); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 5ea5a1b..33d5435 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ 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 _list272 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list272.size); - for (int _i273 = 0; _i273 < _list272.size; ++_i273) + org.apache.thrift.protocol.TList _list280 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list280.size); + for (int _i281 = 0; _i281 < _list280.size; ++_i281) { - Partition _elem274; // optional - _elem274 = new Partition(); - _elem274.read(iprot); - struct.partitions.add(_elem274); + Partition _elem282; // required + _elem282 = new Partition(); + _elem282.read(iprot); + struct.partitions.add(_elem282); } 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 _iter275 : struct.partitions) + for (Partition _iter283 : struct.partitions) { - _iter275.write(oprot); + _iter283.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 _iter276 : struct.partitions) + for (Partition _iter284 : struct.partitions) { - _iter276.write(oprot); + _iter284.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 _list277 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list277.size); - for (int _i278 = 0; _i278 < _list277.size; ++_i278) + org.apache.thrift.protocol.TList _list285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list285.size); + for (int _i286 = 0; _i286 < _list285.size; ++_i286) { - Partition _elem279; // optional - _elem279 = new Partition(); - _elem279.read(iprot); - struct.partitions.add(_elem279); + Partition _elem287; // required + _elem287 = new Partition(); + _elem287.read(iprot); + struct.partitions.add(_elem287); } } struct.setPartitionsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 80a151a..ec451ad 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ 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 _list314 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list314.size); - for (int _i315 = 0; _i315 < _list314.size; ++_i315) + org.apache.thrift.protocol.TList _list322 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list322.size); + for (int _i323 = 0; _i323 < _list322.size; ++_i323) { - String _elem316; // optional - _elem316 = iprot.readString(); - struct.colNames.add(_elem316); + String _elem324; // required + _elem324 = iprot.readString(); + struct.colNames.add(_elem324); } 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 _list317 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list317.size); - for (int _i318 = 0; _i318 < _list317.size; ++_i318) + org.apache.thrift.protocol.TList _list325 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list325.size); + for (int _i326 = 0; _i326 < _list325.size; ++_i326) { - String _elem319; // optional - _elem319 = iprot.readString(); - struct.partNames.add(_elem319); + String _elem327; // required + _elem327 = iprot.readString(); + struct.partNames.add(_elem327); } 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 _iter320 : struct.colNames) + for (String _iter328 : struct.colNames) { - oprot.writeString(_iter320); + oprot.writeString(_iter328); } 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 _iter321 : struct.partNames) + for (String _iter329 : struct.partNames) { - oprot.writeString(_iter321); + oprot.writeString(_iter329); } 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 _iter322 : struct.colNames) + for (String _iter330 : struct.colNames) { - oprot.writeString(_iter322); + oprot.writeString(_iter330); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter323 : struct.partNames) + for (String _iter331 : struct.partNames) { - oprot.writeString(_iter323); + oprot.writeString(_iter331); } } } @@ -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 _list324 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list324.size); - for (int _i325 = 0; _i325 < _list324.size; ++_i325) + org.apache.thrift.protocol.TList _list332 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list332.size); + for (int _i333 = 0; _i333 < _list332.size; ++_i333) { - String _elem326; // optional - _elem326 = iprot.readString(); - struct.colNames.add(_elem326); + String _elem334; // required + _elem334 = iprot.readString(); + struct.colNames.add(_elem334); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list327 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list327.size); - for (int _i328 = 0; _i328 < _list327.size; ++_i328) + org.apache.thrift.protocol.TList _list335 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list335.size); + for (int _i336 = 0; _i336 < _list335.size; ++_i336) { - String _elem329; // optional - _elem329 = iprot.readString(); - struct.partNames.add(_elem329); + String _elem337; // required + _elem337 = iprot.readString(); + struct.partNames.add(_elem337); } } struct.setPartNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 537db47..916d4b4 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ 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 _map288 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map288.size); - for (int _i289 = 0; _i289 < _map288.size; ++_i289) + org.apache.thrift.protocol.TMap _map296 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map296.size); + for (int _i297 = 0; _i297 < _map296.size; ++_i297) { - String _key290; // required - List _val291; // required - _key290 = iprot.readString(); + String _key298; // required + List _val299; // required + _key298 = iprot.readString(); { - org.apache.thrift.protocol.TList _list292 = iprot.readListBegin(); - _val291 = new ArrayList(_list292.size); - for (int _i293 = 0; _i293 < _list292.size; ++_i293) + org.apache.thrift.protocol.TList _list300 = iprot.readListBegin(); + _val299 = new ArrayList(_list300.size); + for (int _i301 = 0; _i301 < _list300.size; ++_i301) { - ColumnStatisticsObj _elem294; // optional - _elem294 = new ColumnStatisticsObj(); - _elem294.read(iprot); - _val291.add(_elem294); + ColumnStatisticsObj _elem302; // required + _elem302 = new ColumnStatisticsObj(); + _elem302.read(iprot); + _val299.add(_elem302); } iprot.readListEnd(); } - struct.partStats.put(_key290, _val291); + struct.partStats.put(_key298, _val299); } 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> _iter295 : struct.partStats.entrySet()) + for (Map.Entry> _iter303 : struct.partStats.entrySet()) { - oprot.writeString(_iter295.getKey()); + oprot.writeString(_iter303.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter295.getValue().size())); - for (ColumnStatisticsObj _iter296 : _iter295.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter303.getValue().size())); + for (ColumnStatisticsObj _iter304 : _iter303.getValue()) { - _iter296.write(oprot); + _iter304.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> _iter297 : struct.partStats.entrySet()) + for (Map.Entry> _iter305 : struct.partStats.entrySet()) { - oprot.writeString(_iter297.getKey()); + oprot.writeString(_iter305.getKey()); { - oprot.writeI32(_iter297.getValue().size()); - for (ColumnStatisticsObj _iter298 : _iter297.getValue()) + oprot.writeI32(_iter305.getValue().size()); + for (ColumnStatisticsObj _iter306 : _iter305.getValue()) { - _iter298.write(oprot); + _iter306.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 _map299 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.LIST, iprot.readI32()); - struct.partStats = new HashMap>(2*_map299.size); - for (int _i300 = 0; _i300 < _map299.size; ++_i300) + org.apache.thrift.protocol.TMap _map307 = 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*_map307.size); + for (int _i308 = 0; _i308 < _map307.size; ++_i308) { - String _key301; // required - List _val302; // required - _key301 = iprot.readString(); + String _key309; // required + List _val310; // required + _key309 = iprot.readString(); { - org.apache.thrift.protocol.TList _list303 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val302 = new ArrayList(_list303.size); - for (int _i304 = 0; _i304 < _list303.size; ++_i304) + org.apache.thrift.protocol.TList _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val310 = new ArrayList(_list311.size); + for (int _i312 = 0; _i312 < _list311.size; ++_i312) { - ColumnStatisticsObj _elem305; // optional - _elem305 = new ColumnStatisticsObj(); - _elem305.read(iprot); - _val302.add(_elem305); + ColumnStatisticsObj _elem313; // required + _elem313 = new ColumnStatisticsObj(); + _elem313.read(iprot); + _val310.add(_elem313); } } - struct.partStats.put(_key301, _val302); + struct.partStats.put(_key309, _val310); } } struct.setPartStatsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java index 0c9518a..eea86e5 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrincipalPrivilegeSet.java +++ 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; // optional + PrivilegeGrantInfo _elem30; // required _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; // optional + PrivilegeGrantInfo _elem37; // required _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; // optional + PrivilegeGrantInfo _elem44; // required _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; // optional + PrivilegeGrantInfo _elem63; // required _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; // optional + PrivilegeGrantInfo _elem70; // required _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; // optional + PrivilegeGrantInfo _elem77; // required _elem77 = new PrivilegeGrantInfo(); _elem77.read(iprot); _val74.add(_elem77); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java index 4285ed8..a4687ad 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PrivilegeBag.java +++ 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; // optional + HiveObjectPrivilege _elem18; // required _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; // optional + HiveObjectPrivilege _elem23; // required _elem23 = new HiveObjectPrivilege(); _elem23.read(iprot); struct.privileges.add(_elem23); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 2fcb216..217a3c1 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ 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 _list354 = iprot.readListBegin(); - names = new ArrayList(_list354.size); - for (int _i355 = 0; _i355 < _list354.size; ++_i355) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + names = new ArrayList(_list362.size); + for (int _i363 = 0; _i363 < _list362.size; ++_i363) { - String _elem356; // optional - _elem356 = iprot.readString(); - names.add(_elem356); + String _elem364; // required + _elem364 = iprot.readString(); + names.add(_elem364); } 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 _list357 = iprot.readListBegin(); - exprs = new ArrayList(_list357.size); - for (int _i358 = 0; _i358 < _list357.size; ++_i358) + org.apache.thrift.protocol.TList _list365 = iprot.readListBegin(); + exprs = new ArrayList(_list365.size); + for (int _i366 = 0; _i366 < _list365.size; ++_i366) { - DropPartitionsExpr _elem359; // optional - _elem359 = new DropPartitionsExpr(); - _elem359.read(iprot); - exprs.add(_elem359); + DropPartitionsExpr _elem367; // required + _elem367 = new DropPartitionsExpr(); + _elem367.read(iprot); + exprs.add(_elem367); } 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 _iter360 : names) + for (String _iter368 : names) { - oprot.writeString(_iter360); + oprot.writeString(_iter368); } 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 _iter361 : exprs) + for (DropPartitionsExpr _iter369 : exprs) { - _iter361.write(oprot); + _iter369.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 _list362 = iprot.readListBegin(); - names = new ArrayList(_list362.size); - for (int _i363 = 0; _i363 < _list362.size; ++_i363) + org.apache.thrift.protocol.TList _list370 = iprot.readListBegin(); + names = new ArrayList(_list370.size); + for (int _i371 = 0; _i371 < _list370.size; ++_i371) { - String _elem364; // optional - _elem364 = iprot.readString(); - names.add(_elem364); + String _elem372; // required + _elem372 = iprot.readString(); + names.add(_elem372); } iprot.readListEnd(); } @@ -260,14 +260,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list365 = iprot.readListBegin(); - exprs = new ArrayList(_list365.size); - for (int _i366 = 0; _i366 < _list365.size; ++_i366) + org.apache.thrift.protocol.TList _list373 = iprot.readListBegin(); + exprs = new ArrayList(_list373.size); + for (int _i374 = 0; _i374 < _list373.size; ++_i374) { - DropPartitionsExpr _elem367; // optional - _elem367 = new DropPartitionsExpr(); - _elem367.read(iprot); - exprs.add(_elem367); + DropPartitionsExpr _elem375; // required + _elem375 = new DropPartitionsExpr(); + _elem375.read(iprot); + exprs.add(_elem375); } 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 _iter368 : names) + for (String _iter376 : names) { - oprot.writeString(_iter368); + oprot.writeString(_iter376); } 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 _iter369 : exprs) + for (DropPartitionsExpr _iter377 : exprs) { - _iter369.write(oprot); + _iter377.write(oprot); } oprot.writeListEnd(); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java index 58e9028..0c200c5 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Schema.java +++ 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 _list244 = iprot.readListBegin(); - struct.fieldSchemas = new ArrayList(_list244.size); - for (int _i245 = 0; _i245 < _list244.size; ++_i245) + org.apache.thrift.protocol.TList _list252 = iprot.readListBegin(); + struct.fieldSchemas = new ArrayList(_list252.size); + for (int _i253 = 0; _i253 < _list252.size; ++_i253) { - FieldSchema _elem246; // optional - _elem246 = new FieldSchema(); - _elem246.read(iprot); - struct.fieldSchemas.add(_elem246); + FieldSchema _elem254; // required + _elem254 = new FieldSchema(); + _elem254.read(iprot); + struct.fieldSchemas.add(_elem254); } 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 _map247 = iprot.readMapBegin(); - struct.properties = new HashMap(2*_map247.size); - for (int _i248 = 0; _i248 < _map247.size; ++_i248) + org.apache.thrift.protocol.TMap _map255 = iprot.readMapBegin(); + struct.properties = new HashMap(2*_map255.size); + for (int _i256 = 0; _i256 < _map255.size; ++_i256) { - String _key249; // required - String _val250; // required - _key249 = iprot.readString(); - _val250 = iprot.readString(); - struct.properties.put(_key249, _val250); + String _key257; // required + String _val258; // required + _key257 = iprot.readString(); + _val258 = iprot.readString(); + struct.properties.put(_key257, _val258); } 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 _iter251 : struct.fieldSchemas) + for (FieldSchema _iter259 : struct.fieldSchemas) { - _iter251.write(oprot); + _iter259.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 _iter252 : struct.properties.entrySet()) + for (Map.Entry _iter260 : struct.properties.entrySet()) { - oprot.writeString(_iter252.getKey()); - oprot.writeString(_iter252.getValue()); + oprot.writeString(_iter260.getKey()); + oprot.writeString(_iter260.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 _iter253 : struct.fieldSchemas) + for (FieldSchema _iter261 : struct.fieldSchemas) { - _iter253.write(oprot); + _iter261.write(oprot); } } } if (struct.isSetProperties()) { { oprot.writeI32(struct.properties.size()); - for (Map.Entry _iter254 : struct.properties.entrySet()) + for (Map.Entry _iter262 : struct.properties.entrySet()) { - oprot.writeString(_iter254.getKey()); - oprot.writeString(_iter254.getValue()); + oprot.writeString(_iter262.getKey()); + oprot.writeString(_iter262.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 _list255 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.fieldSchemas = new ArrayList(_list255.size); - for (int _i256 = 0; _i256 < _list255.size; ++_i256) + org.apache.thrift.protocol.TList _list263 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.fieldSchemas = new ArrayList(_list263.size); + for (int _i264 = 0; _i264 < _list263.size; ++_i264) { - FieldSchema _elem257; // optional - _elem257 = new FieldSchema(); - _elem257.read(iprot); - struct.fieldSchemas.add(_elem257); + FieldSchema _elem265; // required + _elem265 = new FieldSchema(); + _elem265.read(iprot); + struct.fieldSchemas.add(_elem265); } } struct.setFieldSchemasIsSet(true); } if (incoming.get(1)) { { - org.apache.thrift.protocol.TMap _map258 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.STRING, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.properties = new HashMap(2*_map258.size); - for (int _i259 = 0; _i259 < _map258.size; ++_i259) + org.apache.thrift.protocol.TMap _map266 = 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*_map266.size); + for (int _i267 = 0; _i267 < _map266.size; ++_i267) { - String _key260; // required - String _val261; // required - _key260 = iprot.readString(); - _val261 = iprot.readString(); - struct.properties.put(_key260, _val261); + String _key268; // required + String _val269; // required + _key268 = iprot.readString(); + _val269 = iprot.readString(); + struct.properties.put(_key268, _val269); } } struct.setPropertiesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index b962e27..6da732e 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ 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 _list434 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list434.size); - for (int _i435 = 0; _i435 < _list434.size; ++_i435) + org.apache.thrift.protocol.TList _list442 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list442.size); + for (int _i443 = 0; _i443 < _list442.size; ++_i443) { - ShowCompactResponseElement _elem436; // optional - _elem436 = new ShowCompactResponseElement(); - _elem436.read(iprot); - struct.compacts.add(_elem436); + ShowCompactResponseElement _elem444; // required + _elem444 = new ShowCompactResponseElement(); + _elem444.read(iprot); + struct.compacts.add(_elem444); } 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 _iter437 : struct.compacts) + for (ShowCompactResponseElement _iter445 : struct.compacts) { - _iter437.write(oprot); + _iter445.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 _iter438 : struct.compacts) + for (ShowCompactResponseElement _iter446 : struct.compacts) { - _iter438.write(oprot); + _iter446.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 _list439 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list439.size); - for (int _i440 = 0; _i440 < _list439.size; ++_i440) + org.apache.thrift.protocol.TList _list447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list447.size); + for (int _i448 = 0; _i448 < _list447.size; ++_i448) { - ShowCompactResponseElement _elem441; // optional - _elem441 = new ShowCompactResponseElement(); - _elem441.read(iprot); - struct.compacts.add(_elem441); + ShowCompactResponseElement _elem449; // required + _elem449 = new ShowCompactResponseElement(); + _elem449.read(iprot); + struct.compacts.add(_elem449); } } struct.setCompactsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index 1399f8b..554601a 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ 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 _list410 = iprot.readListBegin(); - struct.locks = new ArrayList(_list410.size); - for (int _i411 = 0; _i411 < _list410.size; ++_i411) + org.apache.thrift.protocol.TList _list418 = iprot.readListBegin(); + struct.locks = new ArrayList(_list418.size); + for (int _i419 = 0; _i419 < _list418.size; ++_i419) { - ShowLocksResponseElement _elem412; // optional - _elem412 = new ShowLocksResponseElement(); - _elem412.read(iprot); - struct.locks.add(_elem412); + ShowLocksResponseElement _elem420; // required + _elem420 = new ShowLocksResponseElement(); + _elem420.read(iprot); + struct.locks.add(_elem420); } 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 _iter413 : struct.locks) + for (ShowLocksResponseElement _iter421 : struct.locks) { - _iter413.write(oprot); + _iter421.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 _iter414 : struct.locks) + for (ShowLocksResponseElement _iter422 : struct.locks) { - _iter414.write(oprot); + _iter422.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 _list415 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list415.size); - for (int _i416 = 0; _i416 < _list415.size; ++_i416) + org.apache.thrift.protocol.TList _list423 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list423.size); + for (int _i424 = 0; _i424 < _list423.size; ++_i424) { - ShowLocksResponseElement _elem417; // optional - _elem417 = new ShowLocksResponseElement(); - _elem417.read(iprot); - struct.locks.add(_elem417); + ShowLocksResponseElement _elem425; // required + _elem425 = new ShowLocksResponseElement(); + _elem425.read(iprot); + struct.locks.add(_elem425); } } struct.setLocksIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java index ab5c0ed..83438c7 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SkewedInfo.java @@ -566,7 +566,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) struct.skewedColNames = new ArrayList(_list114.size); for (int _i115 = 0; _i115 < _list114.size; ++_i115) { - String _elem116; // optional + String _elem116; // required _elem116 = iprot.readString(); struct.skewedColNames.add(_elem116); } @@ -584,13 +584,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) struct.skewedColValues = new ArrayList>(_list117.size); for (int _i118 = 0; _i118 < _list117.size; ++_i118) { - List _elem119; // optional + List _elem119; // required { org.apache.thrift.protocol.TList _list120 = iprot.readListBegin(); _elem119 = new ArrayList(_list120.size); for (int _i121 = 0; _i121 < _list120.size; ++_i121) { - String _elem122; // optional + String _elem122; // required _elem122 = iprot.readString(); _elem119.add(_elem122); } @@ -619,7 +619,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, SkewedInfo struct) _key125 = new ArrayList(_list127.size); for (int _i128 = 0; _i128 < _list127.size; ++_i128) { - String _elem129; // optional + String _elem129; // required _elem129 = iprot.readString(); _key125.add(_elem129); } @@ -779,7 +779,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t struct.skewedColNames = new ArrayList(_list140.size); for (int _i141 = 0; _i141 < _list140.size; ++_i141) { - String _elem142; // optional + String _elem142; // required _elem142 = iprot.readString(); struct.skewedColNames.add(_elem142); } @@ -792,13 +792,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t struct.skewedColValues = new ArrayList>(_list143.size); for (int _i144 = 0; _i144 < _list143.size; ++_i144) { - List _elem145; // optional + List _elem145; // required { org.apache.thrift.protocol.TList _list146 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); _elem145 = new ArrayList(_list146.size); for (int _i147 = 0; _i147 < _list146.size; ++_i147) { - String _elem148; // optional + String _elem148; // required _elem148 = iprot.readString(); _elem145.add(_elem148); } @@ -821,7 +821,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, SkewedInfo struct) t _key151 = new ArrayList(_list153.size); for (int _i154 = 0; _i154 < _list153.size; ++_i154) { - String _elem155; // optional + String _elem155; // required _elem155 = iprot.readString(); _key151.add(_elem155); } diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java index 813b4f0..d0b9843 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/StorageDescriptor.java @@ -1304,7 +1304,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s struct.cols = new ArrayList(_list156.size); for (int _i157 = 0; _i157 < _list156.size; ++_i157) { - FieldSchema _elem158; // optional + FieldSchema _elem158; // required _elem158 = new FieldSchema(); _elem158.read(iprot); struct.cols.add(_elem158); @@ -1372,7 +1372,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s struct.bucketCols = new ArrayList(_list159.size); for (int _i160 = 0; _i160 < _list159.size; ++_i160) { - String _elem161; // optional + String _elem161; // required _elem161 = iprot.readString(); struct.bucketCols.add(_elem161); } @@ -1390,7 +1390,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, StorageDescriptor s struct.sortCols = new ArrayList(_list162.size); for (int _i163 = 0; _i163 < _list162.size; ++_i163) { - Order _elem164; // optional + Order _elem164; // required _elem164 = new Order(); _elem164.read(iprot); struct.sortCols.add(_elem164); @@ -1667,7 +1667,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st struct.cols = new ArrayList(_list177.size); for (int _i178 = 0; _i178 < _list177.size; ++_i178) { - FieldSchema _elem179; // optional + FieldSchema _elem179; // required _elem179 = new FieldSchema(); _elem179.read(iprot); struct.cols.add(_elem179); @@ -1706,7 +1706,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st struct.bucketCols = new ArrayList(_list180.size); for (int _i181 = 0; _i181 < _list180.size; ++_i181) { - String _elem182; // optional + String _elem182; // required _elem182 = iprot.readString(); struct.bucketCols.add(_elem182); } @@ -1719,7 +1719,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, StorageDescriptor st struct.sortCols = new ArrayList(_list183.size); for (int _i184 = 0; _i184 < _list183.size; ++_i184) { - Order _elem185; // optional + Order _elem185; // required _elem185 = new Order(); _elem185.read(iprot); struct.sortCols.add(_elem185); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java index 484bd6a..229a819 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Table.java @@ -1481,7 +1481,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, Table struct) throw struct.partitionKeys = new ArrayList(_list190.size); for (int _i191 = 0; _i191 < _list190.size; ++_i191) { - FieldSchema _elem192; // optional + FieldSchema _elem192; // required _elem192 = new FieldSchema(); _elem192.read(iprot); struct.partitionKeys.add(_elem192); @@ -1805,7 +1805,7 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Table struct) throws struct.partitionKeys = new ArrayList(_list201.size); for (int _i202 = 0; _i202 < _list201.size; ++_i202) { - FieldSchema _elem203; // optional + FieldSchema _elem203; // required _elem203 = new FieldSchema(); _elem203.read(iprot); struct.partitionKeys.add(_elem203); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index ddfcccc..23711f8 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ 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 _list306 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list306.size); - for (int _i307 = 0; _i307 < _list306.size; ++_i307) + org.apache.thrift.protocol.TList _list314 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list314.size); + for (int _i315 = 0; _i315 < _list314.size; ++_i315) { - String _elem308; // optional - _elem308 = iprot.readString(); - struct.colNames.add(_elem308); + String _elem316; // required + _elem316 = iprot.readString(); + struct.colNames.add(_elem316); } 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 _iter309 : struct.colNames) + for (String _iter317 : struct.colNames) { - oprot.writeString(_iter309); + oprot.writeString(_iter317); } 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 _iter310 : struct.colNames) + for (String _iter318 : struct.colNames) { - oprot.writeString(_iter310); + oprot.writeString(_iter318); } } } @@ -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 _list311 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list311.size); - for (int _i312 = 0; _i312 < _list311.size; ++_i312) + org.apache.thrift.protocol.TList _list319 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list319.size); + for (int _i320 = 0; _i320 < _list319.size; ++_i320) { - String _elem313; // optional - _elem313 = iprot.readString(); - struct.colNames.add(_elem313); + String _elem321; // required + _elem321 = iprot.readString(); + struct.colNames.add(_elem321); } } struct.setColNamesIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index e37b75c..a61d363 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ 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 _list280 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list280.size); - for (int _i281 = 0; _i281 < _list280.size; ++_i281) + org.apache.thrift.protocol.TList _list288 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list288.size); + for (int _i289 = 0; _i289 < _list288.size; ++_i289) { - ColumnStatisticsObj _elem282; // optional - _elem282 = new ColumnStatisticsObj(); - _elem282.read(iprot); - struct.tableStats.add(_elem282); + ColumnStatisticsObj _elem290; // required + _elem290 = new ColumnStatisticsObj(); + _elem290.read(iprot); + struct.tableStats.add(_elem290); } 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 _iter283 : struct.tableStats) + for (ColumnStatisticsObj _iter291 : struct.tableStats) { - _iter283.write(oprot); + _iter291.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 _iter284 : struct.tableStats) + for (ColumnStatisticsObj _iter292 : struct.tableStats) { - _iter284.write(oprot); + _iter292.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 _list285 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list285.size); - for (int _i286 = 0; _i286 < _list285.size; ++_i286) + org.apache.thrift.protocol.TList _list293 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list293.size); + for (int _i294 = 0; _i294 < _list293.size; ++_i294) { - ColumnStatisticsObj _elem287; // optional - _elem287 = new ColumnStatisticsObj(); - _elem287.read(iprot); - struct.tableStats.add(_elem287); + ColumnStatisticsObj _elem295; // required + _elem295 = new ColumnStatisticsObj(); + _elem295.read(iprot); + struct.tableStats.add(_elem295); } } struct.setTableStatsIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index 1e0cdea..6fa0e60 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -180,6 +180,8 @@ public PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public Aggr_Stats get_aggr_stats_for(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public boolean delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; public boolean delete_table_column_statistics(String db_name, String tbl_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException; @@ -402,6 +404,8 @@ public void get_partitions_statistics_req(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void delete_table_column_statistics(String db_name, String tbl_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2712,6 +2716,35 @@ public PartitionsStatsResult recv_get_partitions_statistics_req() throws NoSuchO throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result"); } + public Aggr_Stats get_aggr_stats_for(PartitionsStatsRequest request) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_get_aggr_stats_for(request); + return recv_get_aggr_stats_for(); + } + + public void send_get_aggr_stats_for(PartitionsStatsRequest request) throws org.apache.thrift.TException + { + get_aggr_stats_for_args args = new get_aggr_stats_for_args(); + args.setRequest(request); + sendBase("get_aggr_stats_for", args); + } + + public Aggr_Stats recv_get_aggr_stats_for() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + get_aggr_stats_for_result result = new get_aggr_stats_for_result(); + receiveBase(result, "get_aggr_stats_for"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result"); + } + public boolean delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name) throws NoSuchObjectException, MetaException, InvalidObjectException, InvalidInputException, org.apache.thrift.TException { send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name); @@ -6371,6 +6404,38 @@ public PartitionsStatsResult getResult() throws NoSuchObjectException, MetaExcep } } + public void get_aggr_stats_for(PartitionsStatsRequest request, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_aggr_stats_for_call method_call = new get_aggr_stats_for_call(request, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_aggr_stats_for_call extends org.apache.thrift.async.TAsyncMethodCall { + private PartitionsStatsRequest request; + public get_aggr_stats_for_call(PartitionsStatsRequest 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_aggr_stats_for", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_aggr_stats_for_args args = new get_aggr_stats_for_args(); + args.setRequest(request); + args.write(prot); + prot.writeMessageEnd(); + } + + public Aggr_Stats getResult() throws NoSuchObjectException, 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_aggr_stats_for(); + } + } + public void delete_partition_column_statistics(String db_name, String tbl_name, String part_name, String col_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); delete_partition_column_statistics_call method_call = new delete_partition_column_statistics_call(db_name, tbl_name, part_name, col_name, resultHandler, this, ___protocolFactory, ___transport); @@ -7734,6 +7799,7 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_aggr_stats_for() { + super("get_aggr_stats_for"); + } + + public get_aggr_stats_for_args getEmptyArgsInstance() { + return new get_aggr_stats_for_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_aggr_stats_for_result getResult(I iface, get_aggr_stats_for_args args) throws org.apache.thrift.TException { + get_aggr_stats_for_result result = new get_aggr_stats_for_result(); + try { + result.success = iface.get_aggr_stats_for(args.request); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + public static class delete_partition_column_statistics extends org.apache.thrift.ProcessFunction { public delete_partition_column_statistics() { super("delete_partition_column_statistics"); @@ -14372,13 +14464,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 _list442 = iprot.readListBegin(); - struct.success = new ArrayList(_list442.size); - for (int _i443 = 0; _i443 < _list442.size; ++_i443) + org.apache.thrift.protocol.TList _list450 = iprot.readListBegin(); + struct.success = new ArrayList(_list450.size); + for (int _i451 = 0; _i451 < _list450.size; ++_i451) { - String _elem444; // optional - _elem444 = iprot.readString(); - struct.success.add(_elem444); + String _elem452; // required + _elem452 = iprot.readString(); + struct.success.add(_elem452); } iprot.readListEnd(); } @@ -14413,9 +14505,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 _iter445 : struct.success) + for (String _iter453 : struct.success) { - oprot.writeString(_iter445); + oprot.writeString(_iter453); } oprot.writeListEnd(); } @@ -14454,9 +14546,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter446 : struct.success) + for (String _iter454 : struct.success) { - oprot.writeString(_iter446); + oprot.writeString(_iter454); } } } @@ -14471,13 +14563,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 _list447 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list447.size); - for (int _i448 = 0; _i448 < _list447.size; ++_i448) + org.apache.thrift.protocol.TList _list455 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list455.size); + for (int _i456 = 0; _i456 < _list455.size; ++_i456) { - String _elem449; // optional - _elem449 = iprot.readString(); - struct.success.add(_elem449); + String _elem457; // required + _elem457 = iprot.readString(); + struct.success.add(_elem457); } } struct.setSuccessIsSet(true); @@ -15134,13 +15226,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 _list450 = iprot.readListBegin(); - struct.success = new ArrayList(_list450.size); - for (int _i451 = 0; _i451 < _list450.size; ++_i451) + org.apache.thrift.protocol.TList _list458 = iprot.readListBegin(); + struct.success = new ArrayList(_list458.size); + for (int _i459 = 0; _i459 < _list458.size; ++_i459) { - String _elem452; // optional - _elem452 = iprot.readString(); - struct.success.add(_elem452); + String _elem460; // required + _elem460 = iprot.readString(); + struct.success.add(_elem460); } iprot.readListEnd(); } @@ -15175,9 +15267,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 _iter453 : struct.success) + for (String _iter461 : struct.success) { - oprot.writeString(_iter453); + oprot.writeString(_iter461); } oprot.writeListEnd(); } @@ -15216,9 +15308,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter454 : struct.success) + for (String _iter462 : struct.success) { - oprot.writeString(_iter454); + oprot.writeString(_iter462); } } } @@ -15233,13 +15325,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 _list455 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list455.size); - for (int _i456 = 0; _i456 < _list455.size; ++_i456) + org.apache.thrift.protocol.TList _list463 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list463.size); + for (int _i464 = 0; _i464 < _list463.size; ++_i464) { - String _elem457; // optional - _elem457 = iprot.readString(); - struct.success.add(_elem457); + String _elem465; // required + _elem465 = iprot.readString(); + struct.success.add(_elem465); } } struct.setSuccessIsSet(true); @@ -19846,16 +19938,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 _map458 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map458.size); - for (int _i459 = 0; _i459 < _map458.size; ++_i459) + org.apache.thrift.protocol.TMap _map466 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map466.size); + for (int _i467 = 0; _i467 < _map466.size; ++_i467) { - String _key460; // required - Type _val461; // required - _key460 = iprot.readString(); - _val461 = new Type(); - _val461.read(iprot); - struct.success.put(_key460, _val461); + String _key468; // required + Type _val469; // required + _key468 = iprot.readString(); + _val469 = new Type(); + _val469.read(iprot); + struct.success.put(_key468, _val469); } iprot.readMapEnd(); } @@ -19890,10 +19982,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 _iter462 : struct.success.entrySet()) + for (Map.Entry _iter470 : struct.success.entrySet()) { - oprot.writeString(_iter462.getKey()); - _iter462.getValue().write(oprot); + oprot.writeString(_iter470.getKey()); + _iter470.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -19932,10 +20024,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 _iter463 : struct.success.entrySet()) + for (Map.Entry _iter471 : struct.success.entrySet()) { - oprot.writeString(_iter463.getKey()); - _iter463.getValue().write(oprot); + oprot.writeString(_iter471.getKey()); + _iter471.getValue().write(oprot); } } } @@ -19950,16 +20042,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 _map464 = 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*_map464.size); - for (int _i465 = 0; _i465 < _map464.size; ++_i465) + org.apache.thrift.protocol.TMap _map472 = 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*_map472.size); + for (int _i473 = 0; _i473 < _map472.size; ++_i473) { - String _key466; // required - Type _val467; // required - _key466 = iprot.readString(); - _val467 = new Type(); - _val467.read(iprot); - struct.success.put(_key466, _val467); + String _key474; // required + Type _val475; // required + _key474 = iprot.readString(); + _val475 = new Type(); + _val475.read(iprot); + struct.success.put(_key474, _val475); } } struct.setSuccessIsSet(true); @@ -20994,14 +21086,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 _list468 = iprot.readListBegin(); - struct.success = new ArrayList(_list468.size); - for (int _i469 = 0; _i469 < _list468.size; ++_i469) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.success = new ArrayList(_list476.size); + for (int _i477 = 0; _i477 < _list476.size; ++_i477) { - FieldSchema _elem470; // optional - _elem470 = new FieldSchema(); - _elem470.read(iprot); - struct.success.add(_elem470); + FieldSchema _elem478; // required + _elem478 = new FieldSchema(); + _elem478.read(iprot); + struct.success.add(_elem478); } iprot.readListEnd(); } @@ -21054,9 +21146,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 _iter471 : struct.success) + for (FieldSchema _iter479 : struct.success) { - _iter471.write(oprot); + _iter479.write(oprot); } oprot.writeListEnd(); } @@ -21111,9 +21203,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter472 : struct.success) + for (FieldSchema _iter480 : struct.success) { - _iter472.write(oprot); + _iter480.write(oprot); } } } @@ -21134,14 +21226,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 _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list473.size); - for (int _i474 = 0; _i474 < _list473.size; ++_i474) + org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list481.size); + for (int _i482 = 0; _i482 < _list481.size; ++_i482) { - FieldSchema _elem475; // optional - _elem475 = new FieldSchema(); - _elem475.read(iprot); - struct.success.add(_elem475); + FieldSchema _elem483; // required + _elem483 = new FieldSchema(); + _elem483.read(iprot); + struct.success.add(_elem483); } } struct.setSuccessIsSet(true); @@ -22186,14 +22278,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 _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) { - FieldSchema _elem478; // optional - _elem478 = new FieldSchema(); - _elem478.read(iprot); - struct.success.add(_elem478); + FieldSchema _elem486; // required + _elem486 = new FieldSchema(); + _elem486.read(iprot); + struct.success.add(_elem486); } iprot.readListEnd(); } @@ -22246,9 +22338,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 _iter479 : struct.success) + for (FieldSchema _iter487 : struct.success) { - _iter479.write(oprot); + _iter487.write(oprot); } oprot.writeListEnd(); } @@ -22303,9 +22395,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter480 : struct.success) + for (FieldSchema _iter488 : struct.success) { - _iter480.write(oprot); + _iter488.write(oprot); } } } @@ -22326,14 +22418,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 _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) { - FieldSchema _elem483; // optional - _elem483 = new FieldSchema(); - _elem483.read(iprot); - struct.success.add(_elem483); + FieldSchema _elem491; // required + _elem491 = new FieldSchema(); + _elem491.read(iprot); + struct.success.add(_elem491); } } struct.setSuccessIsSet(true); @@ -27576,13 +27668,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 _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; // optional - _elem486 = iprot.readString(); - struct.success.add(_elem486); + String _elem494; // required + _elem494 = iprot.readString(); + struct.success.add(_elem494); } iprot.readListEnd(); } @@ -27617,9 +27709,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 _iter487 : struct.success) + for (String _iter495 : struct.success) { - oprot.writeString(_iter487); + oprot.writeString(_iter495); } oprot.writeListEnd(); } @@ -27658,9 +27750,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter488 : struct.success) + for (String _iter496 : struct.success) { - oprot.writeString(_iter488); + oprot.writeString(_iter496); } } } @@ -27675,13 +27767,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 _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; // optional - _elem491 = iprot.readString(); - struct.success.add(_elem491); + String _elem499; // required + _elem499 = iprot.readString(); + struct.success.add(_elem499); } } struct.setSuccessIsSet(true); @@ -28450,13 +28542,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 _list492 = iprot.readListBegin(); - struct.success = new ArrayList(_list492.size); - for (int _i493 = 0; _i493 < _list492.size; ++_i493) + org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); + struct.success = new ArrayList(_list500.size); + for (int _i501 = 0; _i501 < _list500.size; ++_i501) { - String _elem494; // optional - _elem494 = iprot.readString(); - struct.success.add(_elem494); + String _elem502; // required + _elem502 = iprot.readString(); + struct.success.add(_elem502); } iprot.readListEnd(); } @@ -28491,9 +28583,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 _iter495 : struct.success) + for (String _iter503 : struct.success) { - oprot.writeString(_iter495); + oprot.writeString(_iter503); } oprot.writeListEnd(); } @@ -28532,9 +28624,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter496 : struct.success) + for (String _iter504 : struct.success) { - oprot.writeString(_iter496); + oprot.writeString(_iter504); } } } @@ -28549,13 +28641,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 _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list497.size); - for (int _i498 = 0; _i498 < _list497.size; ++_i498) + org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list505.size); + for (int _i506 = 0; _i506 < _list505.size; ++_i506) { - String _elem499; // optional - _elem499 = iprot.readString(); - struct.success.add(_elem499); + String _elem507; // required + _elem507 = iprot.readString(); + struct.success.add(_elem507); } } struct.setSuccessIsSet(true); @@ -30011,13 +30103,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 _list500 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list500.size); - for (int _i501 = 0; _i501 < _list500.size; ++_i501) + org.apache.thrift.protocol.TList _list508 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list508.size); + for (int _i509 = 0; _i509 < _list508.size; ++_i509) { - String _elem502; // optional - _elem502 = iprot.readString(); - struct.tbl_names.add(_elem502); + String _elem510; // required + _elem510 = iprot.readString(); + struct.tbl_names.add(_elem510); } iprot.readListEnd(); } @@ -30048,9 +30140,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 _iter503 : struct.tbl_names) + for (String _iter511 : struct.tbl_names) { - oprot.writeString(_iter503); + oprot.writeString(_iter511); } oprot.writeListEnd(); } @@ -30087,9 +30179,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 _iter504 : struct.tbl_names) + for (String _iter512 : struct.tbl_names) { - oprot.writeString(_iter504); + oprot.writeString(_iter512); } } } @@ -30105,13 +30197,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = 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.tbl_names = new ArrayList(_list513.size); + for (int _i514 = 0; _i514 < _list513.size; ++_i514) { - String _elem507; // optional - _elem507 = iprot.readString(); - struct.tbl_names.add(_elem507); + String _elem515; // required + _elem515 = iprot.readString(); + struct.tbl_names.add(_elem515); } } struct.setTbl_namesIsSet(true); @@ -30679,14 +30771,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 _list508 = iprot.readListBegin(); - struct.success = new ArrayList
(_list508.size); - for (int _i509 = 0; _i509 < _list508.size; ++_i509) + org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); + struct.success = new ArrayList
(_list516.size); + for (int _i517 = 0; _i517 < _list516.size; ++_i517) { - Table _elem510; // optional - _elem510 = new Table(); - _elem510.read(iprot); - struct.success.add(_elem510); + Table _elem518; // required + _elem518 = new Table(); + _elem518.read(iprot); + struct.success.add(_elem518); } iprot.readListEnd(); } @@ -30739,9 +30831,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 _iter511 : struct.success) + for (Table _iter519 : struct.success) { - _iter511.write(oprot); + _iter519.write(oprot); } oprot.writeListEnd(); } @@ -30796,9 +30888,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter512 : struct.success) + for (Table _iter520 : struct.success) { - _iter512.write(oprot); + _iter520.write(oprot); } } } @@ -30819,14 +30911,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 _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list521.size); + for (int _i522 = 0; _i522 < _list521.size; ++_i522) { - Table _elem515; // optional - _elem515 = new Table(); - _elem515.read(iprot); - struct.success.add(_elem515); + Table _elem523; // required + _elem523 = new Table(); + _elem523.read(iprot); + struct.success.add(_elem523); } } struct.setSuccessIsSet(true); @@ -31975,13 +32067,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 _list516 = iprot.readListBegin(); - struct.success = new ArrayList(_list516.size); - for (int _i517 = 0; _i517 < _list516.size; ++_i517) + org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); + struct.success = new ArrayList(_list524.size); + for (int _i525 = 0; _i525 < _list524.size; ++_i525) { - String _elem518; // optional - _elem518 = iprot.readString(); - struct.success.add(_elem518); + String _elem526; // required + _elem526 = iprot.readString(); + struct.success.add(_elem526); } iprot.readListEnd(); } @@ -32034,9 +32126,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 _iter519 : struct.success) + for (String _iter527 : struct.success) { - oprot.writeString(_iter519); + oprot.writeString(_iter527); } oprot.writeListEnd(); } @@ -32091,9 +32183,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter520 : struct.success) + for (String _iter528 : struct.success) { - oprot.writeString(_iter520); + oprot.writeString(_iter528); } } } @@ -32114,13 +32206,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 _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list529.size); + for (int _i530 = 0; _i530 < _list529.size; ++_i530) { - String _elem523; // optional - _elem523 = iprot.readString(); - struct.success.add(_elem523); + String _elem531; // required + _elem531 = iprot.readString(); + struct.success.add(_elem531); } } struct.setSuccessIsSet(true); @@ -36840,14 +36932,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 _list524 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list524.size); - for (int _i525 = 0; _i525 < _list524.size; ++_i525) + org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list532.size); + for (int _i533 = 0; _i533 < _list532.size; ++_i533) { - Partition _elem526; // optional - _elem526 = new Partition(); - _elem526.read(iprot); - struct.new_parts.add(_elem526); + Partition _elem534; // required + _elem534 = new Partition(); + _elem534.read(iprot); + struct.new_parts.add(_elem534); } iprot.readListEnd(); } @@ -36873,9 +36965,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 _iter527 : struct.new_parts) + for (Partition _iter535 : struct.new_parts) { - _iter527.write(oprot); + _iter535.write(oprot); } oprot.writeListEnd(); } @@ -36906,9 +36998,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 _iter528 : struct.new_parts) + for (Partition _iter536 : struct.new_parts) { - _iter528.write(oprot); + _iter536.write(oprot); } } } @@ -36920,14 +37012,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 _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = 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.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list537.size); + for (int _i538 = 0; _i538 < _list537.size; ++_i538) { - Partition _elem531; // optional - _elem531 = new Partition(); - _elem531.read(iprot); - struct.new_parts.add(_elem531); + Partition _elem539; // required + _elem539 = new Partition(); + _elem539.read(iprot); + struct.new_parts.add(_elem539); } } struct.setNew_partsIsSet(true); @@ -38106,13 +38198,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 _list532 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list532.size); - for (int _i533 = 0; _i533 < _list532.size; ++_i533) + org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list540.size); + for (int _i541 = 0; _i541 < _list540.size; ++_i541) { - String _elem534; // optional - _elem534 = iprot.readString(); - struct.part_vals.add(_elem534); + String _elem542; // required + _elem542 = iprot.readString(); + struct.part_vals.add(_elem542); } iprot.readListEnd(); } @@ -38148,9 +38240,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 _iter535 : struct.part_vals) + for (String _iter543 : struct.part_vals) { - oprot.writeString(_iter535); + oprot.writeString(_iter543); } oprot.writeListEnd(); } @@ -38193,9 +38285,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 _iter536 : struct.part_vals) + for (String _iter544 : struct.part_vals) { - oprot.writeString(_iter536); + oprot.writeString(_iter544); } } } @@ -38215,13 +38307,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list537.size); - for (int _i538 = 0; _i538 < _list537.size; ++_i538) + org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list545.size); + for (int _i546 = 0; _i546 < _list545.size; ++_i546) { - String _elem539; // optional - _elem539 = iprot.readString(); - struct.part_vals.add(_elem539); + String _elem547; // required + _elem547 = iprot.readString(); + struct.part_vals.add(_elem547); } } struct.setPart_valsIsSet(true); @@ -40533,13 +40625,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 _list540 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list540.size); - for (int _i541 = 0; _i541 < _list540.size; ++_i541) + org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list548.size); + for (int _i549 = 0; _i549 < _list548.size; ++_i549) { - String _elem542; // optional - _elem542 = iprot.readString(); - struct.part_vals.add(_elem542); + String _elem550; // required + _elem550 = iprot.readString(); + struct.part_vals.add(_elem550); } iprot.readListEnd(); } @@ -40584,9 +40676,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 _iter543 : struct.part_vals) + for (String _iter551 : struct.part_vals) { - oprot.writeString(_iter543); + oprot.writeString(_iter551); } oprot.writeListEnd(); } @@ -40637,9 +40729,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 _iter544 : struct.part_vals) + for (String _iter552 : struct.part_vals) { - oprot.writeString(_iter544); + oprot.writeString(_iter552); } } } @@ -40662,13 +40754,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list545.size); - for (int _i546 = 0; _i546 < _list545.size; ++_i546) + org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list553.size); + for (int _i554 = 0; _i554 < _list553.size; ++_i554) { - String _elem547; // optional - _elem547 = iprot.readString(); - struct.part_vals.add(_elem547); + String _elem555; // required + _elem555 = iprot.readString(); + struct.part_vals.add(_elem555); } } struct.setPart_valsIsSet(true); @@ -44541,13 +44633,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 _list548 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list548.size); - for (int _i549 = 0; _i549 < _list548.size; ++_i549) + org.apache.thrift.protocol.TList _list556 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list556.size); + for (int _i557 = 0; _i557 < _list556.size; ++_i557) { - String _elem550; // optional - _elem550 = iprot.readString(); - struct.part_vals.add(_elem550); + String _elem558; // required + _elem558 = iprot.readString(); + struct.part_vals.add(_elem558); } iprot.readListEnd(); } @@ -44591,9 +44683,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 _iter551 : struct.part_vals) + for (String _iter559 : struct.part_vals) { - oprot.writeString(_iter551); + oprot.writeString(_iter559); } oprot.writeListEnd(); } @@ -44642,9 +44734,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 _iter552 : struct.part_vals) + for (String _iter560 : struct.part_vals) { - oprot.writeString(_iter552); + oprot.writeString(_iter560); } } } @@ -44667,13 +44759,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list553.size); - for (int _i554 = 0; _i554 < _list553.size; ++_i554) + org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list561.size); + for (int _i562 = 0; _i562 < _list561.size; ++_i562) { - String _elem555; // optional - _elem555 = iprot.readString(); - struct.part_vals.add(_elem555); + String _elem563; // required + _elem563 = iprot.readString(); + struct.part_vals.add(_elem563); } } struct.setPart_valsIsSet(true); @@ -45915,13 +46007,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 _list556 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list556.size); - for (int _i557 = 0; _i557 < _list556.size; ++_i557) + org.apache.thrift.protocol.TList _list564 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list564.size); + for (int _i565 = 0; _i565 < _list564.size; ++_i565) { - String _elem558; // optional - _elem558 = iprot.readString(); - struct.part_vals.add(_elem558); + String _elem566; // required + _elem566 = iprot.readString(); + struct.part_vals.add(_elem566); } iprot.readListEnd(); } @@ -45974,9 +46066,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 _iter559 : struct.part_vals) + for (String _iter567 : struct.part_vals) { - oprot.writeString(_iter559); + oprot.writeString(_iter567); } oprot.writeListEnd(); } @@ -46033,9 +46125,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 _iter560 : struct.part_vals) + for (String _iter568 : struct.part_vals) { - oprot.writeString(_iter560); + oprot.writeString(_iter568); } } } @@ -46061,13 +46153,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list561.size); - for (int _i562 = 0; _i562 < _list561.size; ++_i562) + org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list569.size); + for (int _i570 = 0; _i570 < _list569.size; ++_i570) { - String _elem563; // optional - _elem563 = iprot.readString(); - struct.part_vals.add(_elem563); + String _elem571; // required + _elem571 = iprot.readString(); + struct.part_vals.add(_elem571); } } struct.setPart_valsIsSet(true); @@ -50672,13 +50764,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 _list564 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list564.size); - for (int _i565 = 0; _i565 < _list564.size; ++_i565) + org.apache.thrift.protocol.TList _list572 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list572.size); + for (int _i573 = 0; _i573 < _list572.size; ++_i573) { - String _elem566; // optional - _elem566 = iprot.readString(); - struct.part_vals.add(_elem566); + String _elem574; // required + _elem574 = iprot.readString(); + struct.part_vals.add(_elem574); } iprot.readListEnd(); } @@ -50714,9 +50806,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 _iter567 : struct.part_vals) + for (String _iter575 : struct.part_vals) { - oprot.writeString(_iter567); + oprot.writeString(_iter575); } oprot.writeListEnd(); } @@ -50759,9 +50851,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 _iter568 : struct.part_vals) + for (String _iter576 : struct.part_vals) { - oprot.writeString(_iter568); + oprot.writeString(_iter576); } } } @@ -50781,13 +50873,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list569 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list569.size); - for (int _i570 = 0; _i570 < _list569.size; ++_i570) + org.apache.thrift.protocol.TList _list577 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list577.size); + for (int _i578 = 0; _i578 < _list577.size; ++_i578) { - String _elem571; // optional - _elem571 = iprot.readString(); - struct.part_vals.add(_elem571); + String _elem579; // required + _elem579 = iprot.readString(); + struct.part_vals.add(_elem579); } } struct.setPart_valsIsSet(true); @@ -52016,15 +52108,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 _map572 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map572.size); - for (int _i573 = 0; _i573 < _map572.size; ++_i573) + org.apache.thrift.protocol.TMap _map580 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map580.size); + for (int _i581 = 0; _i581 < _map580.size; ++_i581) { - String _key574; // required - String _val575; // required - _key574 = iprot.readString(); - _val575 = iprot.readString(); - struct.partitionSpecs.put(_key574, _val575); + String _key582; // required + String _val583; // required + _key582 = iprot.readString(); + _val583 = iprot.readString(); + struct.partitionSpecs.put(_key582, _val583); } iprot.readMapEnd(); } @@ -52082,10 +52174,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 _iter576 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter584 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter576.getKey()); - oprot.writeString(_iter576.getValue()); + oprot.writeString(_iter584.getKey()); + oprot.writeString(_iter584.getValue()); } oprot.writeMapEnd(); } @@ -52148,10 +52240,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter577 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter585 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter577.getKey()); - oprot.writeString(_iter577.getValue()); + oprot.writeString(_iter585.getKey()); + oprot.writeString(_iter585.getValue()); } } } @@ -52175,15 +52267,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 _map578 = 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*_map578.size); - for (int _i579 = 0; _i579 < _map578.size; ++_i579) + org.apache.thrift.protocol.TMap _map586 = 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*_map586.size); + for (int _i587 = 0; _i587 < _map586.size; ++_i587) { - String _key580; // required - String _val581; // required - _key580 = iprot.readString(); - _val581 = iprot.readString(); - struct.partitionSpecs.put(_key580, _val581); + String _key588; // required + String _val589; // required + _key588 = iprot.readString(); + _val589 = iprot.readString(); + struct.partitionSpecs.put(_key588, _val589); } } struct.setPartitionSpecsIsSet(true); @@ -53671,13 +53763,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 _list582 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list582.size); - for (int _i583 = 0; _i583 < _list582.size; ++_i583) + org.apache.thrift.protocol.TList _list590 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list590.size); + for (int _i591 = 0; _i591 < _list590.size; ++_i591) { - String _elem584; // optional - _elem584 = iprot.readString(); - struct.part_vals.add(_elem584); + String _elem592; // required + _elem592 = iprot.readString(); + struct.part_vals.add(_elem592); } iprot.readListEnd(); } @@ -53697,13 +53789,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 _list585 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list585.size); - for (int _i586 = 0; _i586 < _list585.size; ++_i586) + org.apache.thrift.protocol.TList _list593 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list593.size); + for (int _i594 = 0; _i594 < _list593.size; ++_i594) { - String _elem587; // optional - _elem587 = iprot.readString(); - struct.group_names.add(_elem587); + String _elem595; // required + _elem595 = iprot.readString(); + struct.group_names.add(_elem595); } iprot.readListEnd(); } @@ -53739,9 +53831,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 _iter588 : struct.part_vals) + for (String _iter596 : struct.part_vals) { - oprot.writeString(_iter588); + oprot.writeString(_iter596); } oprot.writeListEnd(); } @@ -53756,9 +53848,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 _iter589 : struct.group_names) + for (String _iter597 : struct.group_names) { - oprot.writeString(_iter589); + oprot.writeString(_iter597); } oprot.writeListEnd(); } @@ -53807,9 +53899,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 _iter590 : struct.part_vals) + for (String _iter598 : struct.part_vals) { - oprot.writeString(_iter590); + oprot.writeString(_iter598); } } } @@ -53819,9 +53911,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 _iter591 : struct.group_names) + for (String _iter599 : struct.group_names) { - oprot.writeString(_iter591); + oprot.writeString(_iter599); } } } @@ -53841,13 +53933,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list592 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list592.size); - for (int _i593 = 0; _i593 < _list592.size; ++_i593) + org.apache.thrift.protocol.TList _list600 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list600.size); + for (int _i601 = 0; _i601 < _list600.size; ++_i601) { - String _elem594; // optional - _elem594 = iprot.readString(); - struct.part_vals.add(_elem594); + String _elem602; // required + _elem602 = iprot.readString(); + struct.part_vals.add(_elem602); } } struct.setPart_valsIsSet(true); @@ -53858,13 +53950,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list595 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list595.size); - for (int _i596 = 0; _i596 < _list595.size; ++_i596) + org.apache.thrift.protocol.TList _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list603.size); + for (int _i604 = 0; _i604 < _list603.size; ++_i604) { - String _elem597; // optional - _elem597 = iprot.readString(); - struct.group_names.add(_elem597); + String _elem605; // required + _elem605 = iprot.readString(); + struct.group_names.add(_elem605); } } struct.setGroup_namesIsSet(true); @@ -56633,14 +56725,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 _list598 = iprot.readListBegin(); - struct.success = new ArrayList(_list598.size); - for (int _i599 = 0; _i599 < _list598.size; ++_i599) + org.apache.thrift.protocol.TList _list606 = iprot.readListBegin(); + struct.success = new ArrayList(_list606.size); + for (int _i607 = 0; _i607 < _list606.size; ++_i607) { - Partition _elem600; // optional - _elem600 = new Partition(); - _elem600.read(iprot); - struct.success.add(_elem600); + Partition _elem608; // required + _elem608 = new Partition(); + _elem608.read(iprot); + struct.success.add(_elem608); } iprot.readListEnd(); } @@ -56684,9 +56776,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 _iter601 : struct.success) + for (Partition _iter609 : struct.success) { - _iter601.write(oprot); + _iter609.write(oprot); } oprot.writeListEnd(); } @@ -56733,9 +56825,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter602 : struct.success) + for (Partition _iter610 : struct.success) { - _iter602.write(oprot); + _iter610.write(oprot); } } } @@ -56753,14 +56845,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 _list603 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list603.size); - for (int _i604 = 0; _i604 < _list603.size; ++_i604) + 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) { - Partition _elem605; // optional - _elem605 = new Partition(); - _elem605.read(iprot); - struct.success.add(_elem605); + Partition _elem613; // required + _elem613 = new Partition(); + _elem613.read(iprot); + struct.success.add(_elem613); } } struct.setSuccessIsSet(true); @@ -57453,13 +57545,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 _list606 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list606.size); - for (int _i607 = 0; _i607 < _list606.size; ++_i607) + org.apache.thrift.protocol.TList _list614 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list614.size); + for (int _i615 = 0; _i615 < _list614.size; ++_i615) { - String _elem608; // optional - _elem608 = iprot.readString(); - struct.group_names.add(_elem608); + String _elem616; // required + _elem616 = iprot.readString(); + struct.group_names.add(_elem616); } iprot.readListEnd(); } @@ -57503,9 +57595,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 _iter609 : struct.group_names) + for (String _iter617 : struct.group_names) { - oprot.writeString(_iter609); + oprot.writeString(_iter617); } oprot.writeListEnd(); } @@ -57560,9 +57652,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 _iter610 : struct.group_names) + for (String _iter618 : struct.group_names) { - oprot.writeString(_iter610); + oprot.writeString(_iter618); } } } @@ -57590,13 +57682,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list611 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list611.size); - for (int _i612 = 0; _i612 < _list611.size; ++_i612) + org.apache.thrift.protocol.TList _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list619.size); + for (int _i620 = 0; _i620 < _list619.size; ++_i620) { - String _elem613; // optional - _elem613 = iprot.readString(); - struct.group_names.add(_elem613); + String _elem621; // required + _elem621 = iprot.readString(); + struct.group_names.add(_elem621); } } struct.setGroup_namesIsSet(true); @@ -58083,14 +58175,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 _list614 = iprot.readListBegin(); - struct.success = new ArrayList(_list614.size); - for (int _i615 = 0; _i615 < _list614.size; ++_i615) + org.apache.thrift.protocol.TList _list622 = iprot.readListBegin(); + struct.success = new ArrayList(_list622.size); + for (int _i623 = 0; _i623 < _list622.size; ++_i623) { - Partition _elem616; // optional - _elem616 = new Partition(); - _elem616.read(iprot); - struct.success.add(_elem616); + Partition _elem624; // required + _elem624 = new Partition(); + _elem624.read(iprot); + struct.success.add(_elem624); } iprot.readListEnd(); } @@ -58134,9 +58226,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 _iter617 : struct.success) + for (Partition _iter625 : struct.success) { - _iter617.write(oprot); + _iter625.write(oprot); } oprot.writeListEnd(); } @@ -58183,9 +58275,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter618 : struct.success) + for (Partition _iter626 : struct.success) { - _iter618.write(oprot); + _iter626.write(oprot); } } } @@ -58203,14 +58295,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 _list619 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list619.size); - for (int _i620 = 0; _i620 < _list619.size; ++_i620) + org.apache.thrift.protocol.TList _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list627.size); + for (int _i628 = 0; _i628 < _list627.size; ++_i628) { - Partition _elem621; // optional - _elem621 = new Partition(); - _elem621.read(iprot); - struct.success.add(_elem621); + Partition _elem629; // required + _elem629 = new Partition(); + _elem629.read(iprot); + struct.success.add(_elem629); } } struct.setSuccessIsSet(true); @@ -59192,13 +59284,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 _list622 = iprot.readListBegin(); - struct.success = new ArrayList(_list622.size); - for (int _i623 = 0; _i623 < _list622.size; ++_i623) + org.apache.thrift.protocol.TList _list630 = iprot.readListBegin(); + struct.success = new ArrayList(_list630.size); + for (int _i631 = 0; _i631 < _list630.size; ++_i631) { - String _elem624; // optional - _elem624 = iprot.readString(); - struct.success.add(_elem624); + String _elem632; // required + _elem632 = iprot.readString(); + struct.success.add(_elem632); } iprot.readListEnd(); } @@ -59233,9 +59325,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 _iter625 : struct.success) + for (String _iter633 : struct.success) { - oprot.writeString(_iter625); + oprot.writeString(_iter633); } oprot.writeListEnd(); } @@ -59274,9 +59366,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter626 : struct.success) + for (String _iter634 : struct.success) { - oprot.writeString(_iter626); + oprot.writeString(_iter634); } } } @@ -59291,13 +59383,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 _list627 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = 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.success = new ArrayList(_list635.size); + for (int _i636 = 0; _i636 < _list635.size; ++_i636) { - String _elem629; // optional - _elem629 = iprot.readString(); - struct.success.add(_elem629); + String _elem637; // required + _elem637 = iprot.readString(); + struct.success.add(_elem637); } } struct.setSuccessIsSet(true); @@ -59888,13 +59980,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 _list630 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list630.size); - for (int _i631 = 0; _i631 < _list630.size; ++_i631) + org.apache.thrift.protocol.TList _list638 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list638.size); + for (int _i639 = 0; _i639 < _list638.size; ++_i639) { - String _elem632; // optional - _elem632 = iprot.readString(); - struct.part_vals.add(_elem632); + String _elem640; // required + _elem640 = iprot.readString(); + struct.part_vals.add(_elem640); } iprot.readListEnd(); } @@ -59938,9 +60030,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 _iter633 : struct.part_vals) + for (String _iter641 : struct.part_vals) { - oprot.writeString(_iter633); + oprot.writeString(_iter641); } oprot.writeListEnd(); } @@ -59989,9 +60081,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 _iter634 : struct.part_vals) + for (String _iter642 : struct.part_vals) { - oprot.writeString(_iter634); + oprot.writeString(_iter642); } } } @@ -60014,13 +60106,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list635 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list635.size); - for (int _i636 = 0; _i636 < _list635.size; ++_i636) + org.apache.thrift.protocol.TList _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list643.size); + for (int _i644 = 0; _i644 < _list643.size; ++_i644) { - String _elem637; // optional - _elem637 = iprot.readString(); - struct.part_vals.add(_elem637); + String _elem645; // required + _elem645 = iprot.readString(); + struct.part_vals.add(_elem645); } } struct.setPart_valsIsSet(true); @@ -60511,14 +60603,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 _list638 = iprot.readListBegin(); - struct.success = new ArrayList(_list638.size); - for (int _i639 = 0; _i639 < _list638.size; ++_i639) + org.apache.thrift.protocol.TList _list646 = iprot.readListBegin(); + struct.success = new ArrayList(_list646.size); + for (int _i647 = 0; _i647 < _list646.size; ++_i647) { - Partition _elem640; // optional - _elem640 = new Partition(); - _elem640.read(iprot); - struct.success.add(_elem640); + Partition _elem648; // required + _elem648 = new Partition(); + _elem648.read(iprot); + struct.success.add(_elem648); } iprot.readListEnd(); } @@ -60562,9 +60654,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_ps_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter641 : struct.success) + for (Partition _iter649 : struct.success) { - _iter641.write(oprot); + _iter649.write(oprot); } oprot.writeListEnd(); } @@ -60611,9 +60703,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter642 : struct.success) + for (Partition _iter650 : struct.success) { - _iter642.write(oprot); + _iter650.write(oprot); } } } @@ -60631,14 +60723,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 _list643 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list643.size); - for (int _i644 = 0; _i644 < _list643.size; ++_i644) + org.apache.thrift.protocol.TList _list651 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list651.size); + for (int _i652 = 0; _i652 < _list651.size; ++_i652) { - Partition _elem645; // optional - _elem645 = new Partition(); - _elem645.read(iprot); - struct.success.add(_elem645); + Partition _elem653; // required + _elem653 = new Partition(); + _elem653.read(iprot); + struct.success.add(_elem653); } } struct.setSuccessIsSet(true); @@ -61416,13 +61508,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 _list646 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list646.size); - for (int _i647 = 0; _i647 < _list646.size; ++_i647) + org.apache.thrift.protocol.TList _list654 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list654.size); + for (int _i655 = 0; _i655 < _list654.size; ++_i655) { - String _elem648; // optional - _elem648 = iprot.readString(); - struct.part_vals.add(_elem648); + String _elem656; // required + _elem656 = iprot.readString(); + struct.part_vals.add(_elem656); } iprot.readListEnd(); } @@ -61450,13 +61542,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 _list649 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list649.size); - for (int _i650 = 0; _i650 < _list649.size; ++_i650) + org.apache.thrift.protocol.TList _list657 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list657.size); + for (int _i658 = 0; _i658 < _list657.size; ++_i658) { - String _elem651; // optional - _elem651 = iprot.readString(); - struct.group_names.add(_elem651); + String _elem659; // required + _elem659 = iprot.readString(); + struct.group_names.add(_elem659); } iprot.readListEnd(); } @@ -61492,9 +61584,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 _iter652 : struct.part_vals) + for (String _iter660 : struct.part_vals) { - oprot.writeString(_iter652); + oprot.writeString(_iter660); } oprot.writeListEnd(); } @@ -61512,9 +61604,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 _iter653 : struct.group_names) + for (String _iter661 : struct.group_names) { - oprot.writeString(_iter653); + oprot.writeString(_iter661); } oprot.writeListEnd(); } @@ -61566,9 +61658,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 _iter654 : struct.part_vals) + for (String _iter662 : struct.part_vals) { - oprot.writeString(_iter654); + oprot.writeString(_iter662); } } } @@ -61581,9 +61673,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 _iter655 : struct.group_names) + for (String _iter663 : struct.group_names) { - oprot.writeString(_iter655); + oprot.writeString(_iter663); } } } @@ -61603,13 +61695,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list656 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list656.size); - for (int _i657 = 0; _i657 < _list656.size; ++_i657) + org.apache.thrift.protocol.TList _list664 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list664.size); + for (int _i665 = 0; _i665 < _list664.size; ++_i665) { - String _elem658; // optional - _elem658 = iprot.readString(); - struct.part_vals.add(_elem658); + String _elem666; // required + _elem666 = iprot.readString(); + struct.part_vals.add(_elem666); } } struct.setPart_valsIsSet(true); @@ -61624,13 +61716,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list659 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list659.size); - for (int _i660 = 0; _i660 < _list659.size; ++_i660) + org.apache.thrift.protocol.TList _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list667.size); + for (int _i668 = 0; _i668 < _list667.size; ++_i668) { - String _elem661; // optional - _elem661 = iprot.readString(); - struct.group_names.add(_elem661); + String _elem669; // required + _elem669 = iprot.readString(); + struct.group_names.add(_elem669); } } struct.setGroup_namesIsSet(true); @@ -62117,14 +62209,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 _list662 = iprot.readListBegin(); - struct.success = new ArrayList(_list662.size); - for (int _i663 = 0; _i663 < _list662.size; ++_i663) + org.apache.thrift.protocol.TList _list670 = iprot.readListBegin(); + struct.success = new ArrayList(_list670.size); + for (int _i671 = 0; _i671 < _list670.size; ++_i671) { - Partition _elem664; // optional - _elem664 = new Partition(); - _elem664.read(iprot); - struct.success.add(_elem664); + Partition _elem672; // required + _elem672 = new Partition(); + _elem672.read(iprot); + struct.success.add(_elem672); } iprot.readListEnd(); } @@ -62168,9 +62260,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 _iter665 : struct.success) + for (Partition _iter673 : struct.success) { - _iter665.write(oprot); + _iter673.write(oprot); } oprot.writeListEnd(); } @@ -62217,9 +62309,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter666 : struct.success) + for (Partition _iter674 : struct.success) { - _iter666.write(oprot); + _iter674.write(oprot); } } } @@ -62237,14 +62329,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 _list667 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list667.size); - for (int _i668 = 0; _i668 < _list667.size; ++_i668) + org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list675.size); + for (int _i676 = 0; _i676 < _list675.size; ++_i676) { - Partition _elem669; // optional - _elem669 = new Partition(); - _elem669.read(iprot); - struct.success.add(_elem669); + Partition _elem677; // required + _elem677 = new Partition(); + _elem677.read(iprot); + struct.success.add(_elem677); } } struct.setSuccessIsSet(true); @@ -62840,13 +62932,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 _list670 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list670.size); - for (int _i671 = 0; _i671 < _list670.size; ++_i671) + org.apache.thrift.protocol.TList _list678 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list678.size); + for (int _i679 = 0; _i679 < _list678.size; ++_i679) { - String _elem672; // optional - _elem672 = iprot.readString(); - struct.part_vals.add(_elem672); + String _elem680; // required + _elem680 = iprot.readString(); + struct.part_vals.add(_elem680); } iprot.readListEnd(); } @@ -62890,9 +62982,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 _iter673 : struct.part_vals) + for (String _iter681 : struct.part_vals) { - oprot.writeString(_iter673); + oprot.writeString(_iter681); } oprot.writeListEnd(); } @@ -62941,9 +63033,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 _iter674 : struct.part_vals) + for (String _iter682 : struct.part_vals) { - oprot.writeString(_iter674); + oprot.writeString(_iter682); } } } @@ -62966,13 +63058,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list675 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list675.size); - for (int _i676 = 0; _i676 < _list675.size; ++_i676) + org.apache.thrift.protocol.TList _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list683.size); + for (int _i684 = 0; _i684 < _list683.size; ++_i684) { - String _elem677; // optional - _elem677 = iprot.readString(); - struct.part_vals.add(_elem677); + String _elem685; // required + _elem685 = iprot.readString(); + struct.part_vals.add(_elem685); } } struct.setPart_valsIsSet(true); @@ -63463,13 +63555,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 _list678 = iprot.readListBegin(); - struct.success = new ArrayList(_list678.size); - for (int _i679 = 0; _i679 < _list678.size; ++_i679) + org.apache.thrift.protocol.TList _list686 = iprot.readListBegin(); + struct.success = new ArrayList(_list686.size); + for (int _i687 = 0; _i687 < _list686.size; ++_i687) { - String _elem680; // optional - _elem680 = iprot.readString(); - struct.success.add(_elem680); + String _elem688; // required + _elem688 = iprot.readString(); + struct.success.add(_elem688); } iprot.readListEnd(); } @@ -63513,9 +63605,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 _iter681 : struct.success) + for (String _iter689 : struct.success) { - oprot.writeString(_iter681); + oprot.writeString(_iter689); } oprot.writeListEnd(); } @@ -63562,9 +63654,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter682 : struct.success) + for (String _iter690 : struct.success) { - oprot.writeString(_iter682); + oprot.writeString(_iter690); } } } @@ -63582,13 +63674,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 _list683 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list683.size); - for (int _i684 = 0; _i684 < _list683.size; ++_i684) + org.apache.thrift.protocol.TList _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list691.size); + for (int _i692 = 0; _i692 < _list691.size; ++_i692) { - String _elem685; // optional - _elem685 = iprot.readString(); - struct.success.add(_elem685); + String _elem693; // required + _elem693 = iprot.readString(); + struct.success.add(_elem693); } } struct.setSuccessIsSet(true); @@ -64755,14 +64847,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 _list686 = iprot.readListBegin(); - struct.success = new ArrayList(_list686.size); - for (int _i687 = 0; _i687 < _list686.size; ++_i687) + org.apache.thrift.protocol.TList _list694 = iprot.readListBegin(); + struct.success = new ArrayList(_list694.size); + for (int _i695 = 0; _i695 < _list694.size; ++_i695) { - Partition _elem688; // optional - _elem688 = new Partition(); - _elem688.read(iprot); - struct.success.add(_elem688); + Partition _elem696; // required + _elem696 = new Partition(); + _elem696.read(iprot); + struct.success.add(_elem696); } iprot.readListEnd(); } @@ -64806,9 +64898,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 _iter689 : struct.success) + for (Partition _iter697 : struct.success) { - _iter689.write(oprot); + _iter697.write(oprot); } oprot.writeListEnd(); } @@ -64855,9 +64947,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter690 : struct.success) + for (Partition _iter698 : struct.success) { - _iter690.write(oprot); + _iter698.write(oprot); } } } @@ -64875,14 +64967,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 _list691 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list691.size); - for (int _i692 = 0; _i692 < _list691.size; ++_i692) + org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list699.size); + for (int _i700 = 0; _i700 < _list699.size; ++_i700) { - Partition _elem693; // optional - _elem693 = new Partition(); - _elem693.read(iprot); - struct.success.add(_elem693); + Partition _elem701; // required + _elem701 = new Partition(); + _elem701.read(iprot); + struct.success.add(_elem701); } } struct.setSuccessIsSet(true); @@ -66333,13 +66425,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 _list694 = iprot.readListBegin(); - struct.names = new ArrayList(_list694.size); - for (int _i695 = 0; _i695 < _list694.size; ++_i695) + org.apache.thrift.protocol.TList _list702 = iprot.readListBegin(); + struct.names = new ArrayList(_list702.size); + for (int _i703 = 0; _i703 < _list702.size; ++_i703) { - String _elem696; // optional - _elem696 = iprot.readString(); - struct.names.add(_elem696); + String _elem704; // required + _elem704 = iprot.readString(); + struct.names.add(_elem704); } iprot.readListEnd(); } @@ -66375,9 +66467,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 _iter697 : struct.names) + for (String _iter705 : struct.names) { - oprot.writeString(_iter697); + oprot.writeString(_iter705); } oprot.writeListEnd(); } @@ -66420,9 +66512,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter698 : struct.names) + for (String _iter706 : struct.names) { - oprot.writeString(_iter698); + oprot.writeString(_iter706); } } } @@ -66442,13 +66534,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list699 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = 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.names = new ArrayList(_list707.size); + for (int _i708 = 0; _i708 < _list707.size; ++_i708) { - String _elem701; // optional - _elem701 = iprot.readString(); - struct.names.add(_elem701); + String _elem709; // required + _elem709 = iprot.readString(); + struct.names.add(_elem709); } } struct.setNamesIsSet(true); @@ -66935,14 +67027,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 _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) { - Partition _elem704; // optional - _elem704 = new Partition(); - _elem704.read(iprot); - struct.success.add(_elem704); + Partition _elem712; // required + _elem712 = new Partition(); + _elem712.read(iprot); + struct.success.add(_elem712); } iprot.readListEnd(); } @@ -66986,9 +67078,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 _iter705 : struct.success) + for (Partition _iter713 : struct.success) { - _iter705.write(oprot); + _iter713.write(oprot); } oprot.writeListEnd(); } @@ -67035,9 +67127,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter706 : struct.success) + for (Partition _iter714 : struct.success) { - _iter706.write(oprot); + _iter714.write(oprot); } } } @@ -67055,14 +67147,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 _list707 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list715.size); + for (int _i716 = 0; _i716 < _list715.size; ++_i716) { - Partition _elem709; // optional - _elem709 = new Partition(); - _elem709.read(iprot); - struct.success.add(_elem709); + Partition _elem717; // required + _elem717 = new Partition(); + _elem717.read(iprot); + struct.success.add(_elem717); } } struct.setSuccessIsSet(true); @@ -68612,14 +68704,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 _list710 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list710.size); - for (int _i711 = 0; _i711 < _list710.size; ++_i711) + org.apache.thrift.protocol.TList _list718 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list718.size); + for (int _i719 = 0; _i719 < _list718.size; ++_i719) { - Partition _elem712; // optional - _elem712 = new Partition(); - _elem712.read(iprot); - struct.new_parts.add(_elem712); + Partition _elem720; // required + _elem720 = new Partition(); + _elem720.read(iprot); + struct.new_parts.add(_elem720); } iprot.readListEnd(); } @@ -68655,9 +68747,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 _iter713 : struct.new_parts) + for (Partition _iter721 : struct.new_parts) { - _iter713.write(oprot); + _iter721.write(oprot); } oprot.writeListEnd(); } @@ -68700,9 +68792,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 _iter714 : struct.new_parts) + for (Partition _iter722 : struct.new_parts) { - _iter714.write(oprot); + _iter722.write(oprot); } } } @@ -68722,14 +68814,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list715 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list715.size); - for (int _i716 = 0; _i716 < _list715.size; ++_i716) + org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list723.size); + for (int _i724 = 0; _i724 < _list723.size; ++_i724) { - Partition _elem717; // optional - _elem717 = new Partition(); - _elem717.read(iprot); - struct.new_parts.add(_elem717); + Partition _elem725; // required + _elem725 = new Partition(); + _elem725.read(iprot); + struct.new_parts.add(_elem725); } } struct.setNew_partsIsSet(true); @@ -70928,13 +71020,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 _list718 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list718.size); - for (int _i719 = 0; _i719 < _list718.size; ++_i719) + org.apache.thrift.protocol.TList _list726 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list726.size); + for (int _i727 = 0; _i727 < _list726.size; ++_i727) { - String _elem720; // optional - _elem720 = iprot.readString(); - struct.part_vals.add(_elem720); + String _elem728; // required + _elem728 = iprot.readString(); + struct.part_vals.add(_elem728); } iprot.readListEnd(); } @@ -70979,9 +71071,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 _iter721 : struct.part_vals) + for (String _iter729 : struct.part_vals) { - oprot.writeString(_iter721); + oprot.writeString(_iter729); } oprot.writeListEnd(); } @@ -71032,9 +71124,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 _iter722 : struct.part_vals) + for (String _iter730 : struct.part_vals) { - oprot.writeString(_iter722); + oprot.writeString(_iter730); } } } @@ -71057,13 +71149,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list723 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list723.size); - for (int _i724 = 0; _i724 < _list723.size; ++_i724) + org.apache.thrift.protocol.TList _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list731.size); + for (int _i732 = 0; _i732 < _list731.size; ++_i732) { - String _elem725; // optional - _elem725 = iprot.readString(); - struct.part_vals.add(_elem725); + String _elem733; // required + _elem733 = iprot.readString(); + struct.part_vals.add(_elem733); } } struct.setPart_valsIsSet(true); @@ -71940,13 +72032,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 _list726 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list726.size); - for (int _i727 = 0; _i727 < _list726.size; ++_i727) + org.apache.thrift.protocol.TList _list734 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list734.size); + for (int _i735 = 0; _i735 < _list734.size; ++_i735) { - String _elem728; // optional - _elem728 = iprot.readString(); - struct.part_vals.add(_elem728); + String _elem736; // required + _elem736 = iprot.readString(); + struct.part_vals.add(_elem736); } iprot.readListEnd(); } @@ -71980,9 +72072,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 _iter729 : struct.part_vals) + for (String _iter737 : struct.part_vals) { - oprot.writeString(_iter729); + oprot.writeString(_iter737); } oprot.writeListEnd(); } @@ -72019,9 +72111,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 _iter730 : struct.part_vals) + for (String _iter738 : struct.part_vals) { - oprot.writeString(_iter730); + oprot.writeString(_iter738); } } } @@ -72036,13 +72128,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 _list731 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list731.size); - for (int _i732 = 0; _i732 < _list731.size; ++_i732) + org.apache.thrift.protocol.TList _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list739.size); + for (int _i740 = 0; _i740 < _list739.size; ++_i740) { - String _elem733; // optional - _elem733 = iprot.readString(); - struct.part_vals.add(_elem733); + String _elem741; // required + _elem741 = iprot.readString(); + struct.part_vals.add(_elem741); } } struct.setPart_valsIsSet(true); @@ -74200,13 +74292,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 _list734 = iprot.readListBegin(); - struct.success = new ArrayList(_list734.size); - for (int _i735 = 0; _i735 < _list734.size; ++_i735) + org.apache.thrift.protocol.TList _list742 = iprot.readListBegin(); + struct.success = new ArrayList(_list742.size); + for (int _i743 = 0; _i743 < _list742.size; ++_i743) { - String _elem736; // optional - _elem736 = iprot.readString(); - struct.success.add(_elem736); + String _elem744; // required + _elem744 = iprot.readString(); + struct.success.add(_elem744); } iprot.readListEnd(); } @@ -74241,9 +74333,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 _iter737 : struct.success) + for (String _iter745 : struct.success) { - oprot.writeString(_iter737); + oprot.writeString(_iter745); } oprot.writeListEnd(); } @@ -74282,9 +74374,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter738 : struct.success) + for (String _iter746 : struct.success) { - oprot.writeString(_iter738); + oprot.writeString(_iter746); } } } @@ -74299,13 +74391,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 _list739 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list739.size); - for (int _i740 = 0; _i740 < _list739.size; ++_i740) + org.apache.thrift.protocol.TList _list747 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list747.size); + for (int _i748 = 0; _i748 < _list747.size; ++_i748) { - String _elem741; // optional - _elem741 = iprot.readString(); - struct.success.add(_elem741); + String _elem749; // required + _elem749 = iprot.readString(); + struct.success.add(_elem749); } } struct.setSuccessIsSet(true); @@ -75079,15 +75171,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 _map742 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map742.size); - for (int _i743 = 0; _i743 < _map742.size; ++_i743) + org.apache.thrift.protocol.TMap _map750 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map750.size); + for (int _i751 = 0; _i751 < _map750.size; ++_i751) { - String _key744; // required - String _val745; // required - _key744 = iprot.readString(); - _val745 = iprot.readString(); - struct.success.put(_key744, _val745); + String _key752; // required + String _val753; // required + _key752 = iprot.readString(); + _val753 = iprot.readString(); + struct.success.put(_key752, _val753); } iprot.readMapEnd(); } @@ -75122,10 +75214,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 _iter746 : struct.success.entrySet()) + for (Map.Entry _iter754 : struct.success.entrySet()) { - oprot.writeString(_iter746.getKey()); - oprot.writeString(_iter746.getValue()); + oprot.writeString(_iter754.getKey()); + oprot.writeString(_iter754.getValue()); } oprot.writeMapEnd(); } @@ -75164,10 +75256,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 _iter747 : struct.success.entrySet()) + for (Map.Entry _iter755 : struct.success.entrySet()) { - oprot.writeString(_iter747.getKey()); - oprot.writeString(_iter747.getValue()); + oprot.writeString(_iter755.getKey()); + oprot.writeString(_iter755.getValue()); } } } @@ -75182,15 +75274,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 _map748 = 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*_map748.size); - for (int _i749 = 0; _i749 < _map748.size; ++_i749) + org.apache.thrift.protocol.TMap _map756 = 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*_map756.size); + for (int _i757 = 0; _i757 < _map756.size; ++_i757) { - String _key750; // required - String _val751; // required - _key750 = iprot.readString(); - _val751 = iprot.readString(); - struct.success.put(_key750, _val751); + String _key758; // required + String _val759; // required + _key758 = iprot.readString(); + _val759 = iprot.readString(); + struct.success.put(_key758, _val759); } } struct.setSuccessIsSet(true); @@ -75796,15 +75888,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 _map752 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map752.size); - for (int _i753 = 0; _i753 < _map752.size; ++_i753) + org.apache.thrift.protocol.TMap _map760 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map760.size); + for (int _i761 = 0; _i761 < _map760.size; ++_i761) { - String _key754; // required - String _val755; // required - _key754 = iprot.readString(); - _val755 = iprot.readString(); - struct.part_vals.put(_key754, _val755); + String _key762; // required + String _val763; // required + _key762 = iprot.readString(); + _val763 = iprot.readString(); + struct.part_vals.put(_key762, _val763); } iprot.readMapEnd(); } @@ -75848,10 +75940,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 _iter756 : struct.part_vals.entrySet()) + for (Map.Entry _iter764 : struct.part_vals.entrySet()) { - oprot.writeString(_iter756.getKey()); - oprot.writeString(_iter756.getValue()); + oprot.writeString(_iter764.getKey()); + oprot.writeString(_iter764.getValue()); } oprot.writeMapEnd(); } @@ -75902,10 +75994,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter757 : struct.part_vals.entrySet()) + for (Map.Entry _iter765 : struct.part_vals.entrySet()) { - oprot.writeString(_iter757.getKey()); - oprot.writeString(_iter757.getValue()); + oprot.writeString(_iter765.getKey()); + oprot.writeString(_iter765.getValue()); } } } @@ -75928,15 +76020,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map758 = 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*_map758.size); - for (int _i759 = 0; _i759 < _map758.size; ++_i759) + org.apache.thrift.protocol.TMap _map766 = 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*_map766.size); + for (int _i767 = 0; _i767 < _map766.size; ++_i767) { - String _key760; // required - String _val761; // required - _key760 = iprot.readString(); - _val761 = iprot.readString(); - struct.part_vals.put(_key760, _val761); + String _key768; // required + String _val769; // required + _key768 = iprot.readString(); + _val769 = iprot.readString(); + struct.part_vals.put(_key768, _val769); } } struct.setPart_valsIsSet(true); @@ -77431,15 +77523,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 _map762 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map762.size); - for (int _i763 = 0; _i763 < _map762.size; ++_i763) + org.apache.thrift.protocol.TMap _map770 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map770.size); + for (int _i771 = 0; _i771 < _map770.size; ++_i771) { - String _key764; // required - String _val765; // required - _key764 = iprot.readString(); - _val765 = iprot.readString(); - struct.part_vals.put(_key764, _val765); + String _key772; // required + String _val773; // required + _key772 = iprot.readString(); + _val773 = iprot.readString(); + struct.part_vals.put(_key772, _val773); } iprot.readMapEnd(); } @@ -77483,10 +77575,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 _iter766 : struct.part_vals.entrySet()) + for (Map.Entry _iter774 : struct.part_vals.entrySet()) { - oprot.writeString(_iter766.getKey()); - oprot.writeString(_iter766.getValue()); + oprot.writeString(_iter774.getKey()); + oprot.writeString(_iter774.getValue()); } oprot.writeMapEnd(); } @@ -77537,10 +77629,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter767 : struct.part_vals.entrySet()) + for (Map.Entry _iter775 : struct.part_vals.entrySet()) { - oprot.writeString(_iter767.getKey()); - oprot.writeString(_iter767.getValue()); + oprot.writeString(_iter775.getKey()); + oprot.writeString(_iter775.getValue()); } } } @@ -77563,15 +77655,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map768 = 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*_map768.size); - for (int _i769 = 0; _i769 < _map768.size; ++_i769) + org.apache.thrift.protocol.TMap _map776 = 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*_map776.size); + for (int _i777 = 0; _i777 < _map776.size; ++_i777) { - String _key770; // required - String _val771; // required - _key770 = iprot.readString(); - _val771 = iprot.readString(); - struct.part_vals.put(_key770, _val771); + String _key778; // required + String _val779; // required + _key778 = iprot.readString(); + _val779 = iprot.readString(); + struct.part_vals.put(_key778, _val779); } } struct.setPart_valsIsSet(true); @@ -84295,14 +84387,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 _list772 = iprot.readListBegin(); - struct.success = new ArrayList(_list772.size); - for (int _i773 = 0; _i773 < _list772.size; ++_i773) + org.apache.thrift.protocol.TList _list780 = iprot.readListBegin(); + struct.success = new ArrayList(_list780.size); + for (int _i781 = 0; _i781 < _list780.size; ++_i781) { - Index _elem774; // optional - _elem774 = new Index(); - _elem774.read(iprot); - struct.success.add(_elem774); + Index _elem782; // required + _elem782 = new Index(); + _elem782.read(iprot); + struct.success.add(_elem782); } iprot.readListEnd(); } @@ -84346,9 +84438,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 _iter775 : struct.success) + for (Index _iter783 : struct.success) { - _iter775.write(oprot); + _iter783.write(oprot); } oprot.writeListEnd(); } @@ -84395,9 +84487,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter776 : struct.success) + for (Index _iter784 : struct.success) { - _iter776.write(oprot); + _iter784.write(oprot); } } } @@ -84415,14 +84507,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 _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) + 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) { - Index _elem779; // optional - _elem779 = new Index(); - _elem779.read(iprot); - struct.success.add(_elem779); + Index _elem787; // required + _elem787 = new Index(); + _elem787.read(iprot); + struct.success.add(_elem787); } } struct.setSuccessIsSet(true); @@ -85404,13 +85496,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 _list780 = iprot.readListBegin(); - struct.success = new ArrayList(_list780.size); - for (int _i781 = 0; _i781 < _list780.size; ++_i781) + org.apache.thrift.protocol.TList _list788 = iprot.readListBegin(); + struct.success = new ArrayList(_list788.size); + for (int _i789 = 0; _i789 < _list788.size; ++_i789) { - String _elem782; // optional - _elem782 = iprot.readString(); - struct.success.add(_elem782); + String _elem790; // required + _elem790 = iprot.readString(); + struct.success.add(_elem790); } iprot.readListEnd(); } @@ -85445,9 +85537,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 _iter783 : struct.success) + for (String _iter791 : struct.success) { - oprot.writeString(_iter783); + oprot.writeString(_iter791); } oprot.writeListEnd(); } @@ -85486,9 +85578,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter784 : struct.success) + for (String _iter792 : struct.success) { - oprot.writeString(_iter784); + oprot.writeString(_iter792); } } } @@ -85503,13 +85595,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 _list785 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list785.size); - for (int _i786 = 0; _i786 < _list785.size; ++_i786) + org.apache.thrift.protocol.TList _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list793.size); + for (int _i794 = 0; _i794 < _list793.size; ++_i794) { - String _elem787; // optional - _elem787 = iprot.readString(); - struct.success.add(_elem787); + String _elem795; // required + _elem795 = iprot.readString(); + struct.success.add(_elem795); } } struct.setSuccessIsSet(true); @@ -90067,59 +90159,1137 @@ public void setO2IsSet(boolean value) { } } - public InvalidInputException getO3() { - return this.o3; - } - - public void setO3(InvalidInputException o3) { - this.o3 = o3; - } - - public void unsetO3() { - this.o3 = null; - } - - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != null; - } - - public void setO3IsSet(boolean value) { - if (!value) { - this.o3 = null; - } - } - - public InvalidObjectException getO4() { - return this.o4; - } - - public void setO4(InvalidObjectException o4) { - this.o4 = o4; - } - - public void unsetO4() { - this.o4 = null; - } - - /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ - public boolean isSetO4() { - return this.o4 != null; - } - - public void setO4IsSet(boolean value) { - if (!value) { - this.o4 = null; - } - } - + public InvalidInputException getO3() { + return this.o3; + } + + public void setO3(InvalidInputException o3) { + this.o3 = o3; + } + + public void unsetO3() { + this.o3 = null; + } + + /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ + public boolean isSetO3() { + return this.o3 != null; + } + + public void setO3IsSet(boolean value) { + if (!value) { + this.o3 = null; + } + } + + public InvalidObjectException getO4() { + return this.o4; + } + + public void setO4(InvalidObjectException o4) { + this.o4 = o4; + } + + public void unsetO4() { + this.o4 = null; + } + + /** Returns true if field o4 is set (has been assigned a value) and false otherwise */ + public boolean isSetO4() { + return this.o4 != null; + } + + public void setO4IsSet(boolean value) { + if (!value) { + this.o4 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((ColumnStatistics)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((InvalidInputException)value); + } + break; + + case O4: + if (value == null) { + unsetO4(); + } else { + setO4((InvalidObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + case O1: + return getO1(); + + case O2: + return getO2(); + + case O3: + return getO3(); + + case O4: + return getO4(); + + } + 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(); + case O2: + return isSetO2(); + case O3: + return isSetO3(); + case O4: + return isSetO4(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_partition_column_statistics_result) + return this.equals((get_partition_column_statistics_result)that); + return false; + } + + public boolean equals(get_partition_column_statistics_result that) { + if (that == null) + return false; + + 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.equals(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; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + boolean this_present_o3 = true && this.isSetO3(); + boolean that_present_o3 = true && that.isSetO3(); + if (this_present_o3 || that_present_o3) { + if (!(this_present_o3 && that_present_o3)) + return false; + if (!this.o3.equals(that.o3)) + return false; + } + + boolean this_present_o4 = true && this.isSetO4(); + boolean that_present_o4 = true && that.isSetO4(); + if (this_present_o4 || that_present_o4) { + if (!(this_present_o4 && that_present_o4)) + return false; + if (!this.o4.equals(that.o4)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_success = true && (isSetSuccess()); + 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); + + boolean present_o2 = true && (isSetO2()); + builder.append(present_o2); + if (present_o2) + builder.append(o2); + + boolean present_o3 = true && (isSetO3()); + builder.append(present_o3); + if (present_o3) + builder.append(o3); + + boolean present_o4 = true && (isSetO4()); + builder.append(present_o4); + if (present_o4) + builder.append(o4); + + return builder.toHashCode(); + } + + public int compareTo(get_partition_column_statistics_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_partition_column_statistics_result typedOther = (get_partition_column_statistics_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; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(typedOther.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, typedOther.o2); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO4()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); + 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("get_partition_column_statistics_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + 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; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + if (!first) sb.append(", "); + sb.append("o4:"); + if (this.o4 == null) { + sb.append("null"); + } else { + sb.append(this.o4); + } + first = false; + sb.append(")"); + return sb.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 { + 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 get_partition_column_statistics_resultStandardSchemeFactory implements SchemeFactory { + public get_partition_column_statistics_resultStandardScheme getScheme() { + return new get_partition_column_statistics_resultStandardScheme(); + } + } + + private static class get_partition_column_statistics_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_column_statistics_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.STRUCT) { + struct.success = new ColumnStatistics(); + struct.success.read(iprot); + 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 NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // O2 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new InvalidInputException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // O4 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o4 = new InvalidObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(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, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o4 != null) { + oprot.writeFieldBegin(O4_FIELD_DESC); + struct.o4.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_partition_column_statistics_resultTupleSchemeFactory implements SchemeFactory { + public get_partition_column_statistics_resultTupleScheme getScheme() { + return new get_partition_column_statistics_resultTupleScheme(); + } + } + + private static class get_partition_column_statistics_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_column_statistics_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); + } + if (struct.isSetO2()) { + optionals.set(2); + } + if (struct.isSetO3()) { + optionals.set(3); + } + if (struct.isSetO4()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + if (struct.isSetO4()) { + struct.o4.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.success = new ColumnStatistics(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + if (incoming.get(3)) { + struct.o3 = new InvalidInputException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + if (incoming.get(4)) { + struct.o4 = new InvalidObjectException(); + struct.o4.read(iprot); + struct.setO4IsSet(true); + } + } + } + + } + + public static class get_table_statistics_req_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_table_statistics_req_args"); + + private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_table_statistics_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_statistics_req_argsTupleSchemeFactory()); + } + + private TableStatsRequest 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 { + REQUEST((short)1, "request"); + + 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: // REQUEST + return REQUEST; + 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.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, TableStatsRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_statistics_req_args.class, metaDataMap); + } + + public get_table_statistics_req_args() { + } + + public get_table_statistics_req_args( + TableStatsRequest request) + { + this(); + this.request = request; + } + + /** + * Performs a deep copy on other. + */ + public get_table_statistics_req_args(get_table_statistics_req_args other) { + if (other.isSetRequest()) { + this.request = new TableStatsRequest(other.request); + } + } + + public get_table_statistics_req_args deepCopy() { + return new get_table_statistics_req_args(this); + } + + @Override + public void clear() { + this.request = null; + } + + public TableStatsRequest getRequest() { + return this.request; + } + + public void setRequest(TableStatsRequest request) { + this.request = request; + } + + public void unsetRequest() { + this.request = 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 setRequestIsSet(boolean value) { + if (!value) { + this.request = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQUEST: + if (value == null) { + unsetRequest(); + } else { + setRequest((TableStatsRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQUEST: + return getRequest(); + + } + 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 REQUEST: + return isSetRequest(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_table_statistics_req_args) + return this.equals((get_table_statistics_req_args)that); + return false; + } + + public boolean equals(get_table_statistics_req_args that) { + if (that == null) + return false; + + 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.request.equals(that.request)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + HashCodeBuilder builder = new HashCodeBuilder(); + + boolean present_request = true && (isSetRequest()); + builder.append(present_request); + if (present_request) + builder.append(request); + + return builder.toHashCode(); + } + + public int compareTo(get_table_statistics_req_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + get_table_statistics_req_args typedOther = (get_table_statistics_req_args)other; + + lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetRequest()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.request, typedOther.request); + 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("get_table_statistics_req_args("); + boolean first = true; + + sb.append("request:"); + if (this.request == null) { + sb.append("null"); + } else { + sb.append(this.request); + } + first = false; + sb.append(")"); + return sb.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 { + 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 get_table_statistics_req_argsStandardSchemeFactory implements SchemeFactory { + public get_table_statistics_req_argsStandardScheme getScheme() { + return new get_table_statistics_req_argsStandardScheme(); + } + } + + private static class get_table_statistics_req_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistics_req_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: // REQUEST + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.request = new TableStatsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(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, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.request != null) { + oprot.writeFieldBegin(REQUEST_FIELD_DESC); + struct.request.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_table_statistics_req_argsTupleSchemeFactory implements SchemeFactory { + public get_table_statistics_req_argsTupleScheme getScheme() { + return new get_table_statistics_req_argsTupleScheme(); + } + } + + private static class get_table_statistics_req_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetRequest()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetRequest()) { + struct.request.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.request = new TableStatsRequest(); + struct.request.read(iprot); + struct.setRequestIsSet(true); + } + } + } + + } + + public static class get_table_statistics_req_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_table_statistics_req_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_table_statistics_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_table_statistics_req_resultTupleSchemeFactory()); + } + + private TableStatsResult success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // 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"), + O2((short)2, "o2"); + + 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; + case 2: // O2 + return O2; + 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableStatsResult.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))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_statistics_req_result.class, metaDataMap); + } + + public get_table_statistics_req_result() { + } + + public get_table_statistics_req_result( + TableStatsResult success, + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_table_statistics_req_result(get_table_statistics_req_result other) { + if (other.isSetSuccess()) { + this.success = new TableStatsResult(other.success); + } + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public get_table_statistics_req_result deepCopy() { + return new get_table_statistics_req_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public TableStatsResult getSuccess() { + return this.success; + } + + public void setSuccess(TableStatsResult success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException 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 MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + public void setFieldValue(_Fields field, Object value) { switch (field) { case SUCCESS: if (value == null) { unsetSuccess(); } else { - setSuccess((ColumnStatistics)value); + setSuccess((TableStatsResult)value); } break; @@ -90139,22 +91309,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: - if (value == null) { - unsetO3(); - } else { - setO3((InvalidInputException)value); - } - break; - - case O4: - if (value == null) { - unsetO4(); - } else { - setO4((InvalidObjectException)value); - } - break; - } } @@ -90169,12 +91323,6 @@ public Object getFieldValue(_Fields field) { case O2: return getO2(); - case O3: - return getO3(); - - case O4: - return getO4(); - } throw new IllegalStateException(); } @@ -90192,10 +91340,6 @@ public boolean isSet(_Fields field) { return isSetO1(); case O2: return isSetO2(); - case O3: - return isSetO3(); - case O4: - return isSetO4(); } throw new IllegalStateException(); } @@ -90204,12 +91348,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partition_column_statistics_result) - return this.equals((get_partition_column_statistics_result)that); + if (that instanceof get_table_statistics_req_result) + return this.equals((get_table_statistics_req_result)that); return false; } - public boolean equals(get_partition_column_statistics_result that) { + public boolean equals(get_table_statistics_req_result that) { if (that == null) return false; @@ -90240,24 +91384,6 @@ public boolean equals(get_partition_column_statistics_result that) { return false; } - boolean this_present_o3 = true && this.isSetO3(); - boolean that_present_o3 = true && that.isSetO3(); - if (this_present_o3 || that_present_o3) { - if (!(this_present_o3 && that_present_o3)) - return false; - if (!this.o3.equals(that.o3)) - return false; - } - - boolean this_present_o4 = true && this.isSetO4(); - boolean that_present_o4 = true && that.isSetO4(); - if (this_present_o4 || that_present_o4) { - if (!(this_present_o4 && that_present_o4)) - return false; - if (!this.o4.equals(that.o4)) - return false; - } - return true; } @@ -90280,26 +91406,16 @@ public int hashCode() { if (present_o2) builder.append(o2); - boolean present_o3 = true && (isSetO3()); - builder.append(present_o3); - if (present_o3) - builder.append(o3); - - boolean present_o4 = true && (isSetO4()); - builder.append(present_o4); - if (present_o4) - builder.append(o4); - return builder.toHashCode(); } - public int compareTo(get_partition_column_statistics_result other) { + public int compareTo(get_table_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partition_column_statistics_result typedOther = (get_partition_column_statistics_result)other; + get_table_statistics_req_result typedOther = (get_table_statistics_req_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -90331,26 +91447,6 @@ public int compareTo(get_partition_column_statistics_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(typedOther.isSetO3()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, typedOther.o3); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetO4()).compareTo(typedOther.isSetO4()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetO4()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o4, typedOther.o4); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -90368,7 +91464,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partition_column_statistics_result("); + StringBuilder sb = new StringBuilder("get_table_statistics_req_result("); boolean first = true; sb.append("success:"); @@ -90394,22 +91490,6 @@ public String toString() { sb.append(this.o2); } first = false; - if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { - sb.append("null"); - } else { - sb.append(this.o3); - } - first = false; - if (!first) sb.append(", "); - sb.append("o4:"); - if (this.o4 == null) { - sb.append("null"); - } else { - sb.append(this.o4); - } - first = false; sb.append(")"); return sb.toString(); } @@ -90438,15 +91518,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partition_column_statistics_resultStandardSchemeFactory implements SchemeFactory { - public get_partition_column_statistics_resultStandardScheme getScheme() { - return new get_partition_column_statistics_resultStandardScheme(); + private static class get_table_statistics_req_resultStandardSchemeFactory implements SchemeFactory { + public get_table_statistics_req_resultStandardScheme getScheme() { + return new get_table_statistics_req_resultStandardScheme(); } } - private static class get_partition_column_statistics_resultStandardScheme extends StandardScheme { + private static class get_table_statistics_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90458,7 +91538,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_colum switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new ColumnStatistics(); + struct.success = new TableStatsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -90483,24 +91563,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_colum org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // O3 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new InvalidInputException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // O4 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o4 = new InvalidObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -90510,7 +91572,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partition_colum struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -90529,32 +91591,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partition_colu struct.o2.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o4 != null) { - oprot.writeFieldBegin(O4_FIELD_DESC); - struct.o4.write(oprot); - oprot.writeFieldEnd(); - } oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_partition_column_statistics_resultTupleSchemeFactory implements SchemeFactory { - public get_partition_column_statistics_resultTupleScheme getScheme() { - return new get_partition_column_statistics_resultTupleScheme(); + private static class get_table_statistics_req_resultTupleSchemeFactory implements SchemeFactory { + public get_table_statistics_req_resultTupleScheme getScheme() { + return new get_table_statistics_req_resultTupleScheme(); } } - private static class get_partition_column_statistics_resultTupleScheme extends TupleScheme { + private static class get_table_statistics_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -90566,13 +91618,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_colum if (struct.isSetO2()) { optionals.set(2); } - if (struct.isSetO3()) { - optionals.set(3); - } - if (struct.isSetO4()) { - optionals.set(4); - } - oprot.writeBitSet(optionals, 5); + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { struct.success.write(oprot); } @@ -90582,20 +91628,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_colum if (struct.isSetO2()) { struct.o2.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); - } - if (struct.isSetO4()) { - struct.o4.write(oprot); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column_statistics_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(5); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new ColumnStatistics(); + struct.success = new TableStatsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -90609,33 +91649,23 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_column struct.o2.read(iprot); struct.setO2IsSet(true); } - if (incoming.get(3)) { - struct.o3 = new InvalidInputException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); - } - if (incoming.get(4)) { - struct.o4 = new InvalidObjectException(); - struct.o4.read(iprot); - struct.setO4IsSet(true); - } } } } - public static class get_table_statistics_req_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_table_statistics_req_args"); + public static class get_partitions_statistics_req_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_partitions_statistics_req_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_statistics_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_statistics_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_statistics_req_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_statistics_req_argsTupleSchemeFactory()); } - private TableStatsRequest request; // required + private PartitionsStatsRequest 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 { @@ -90700,16 +91730,16 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.REQUEST, new org.apache.thrift.meta_data.FieldMetaData("request", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableStatsRequest.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsStatsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_statistics_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_statistics_req_args.class, metaDataMap); } - public get_table_statistics_req_args() { + public get_partitions_statistics_req_args() { } - public get_table_statistics_req_args( - TableStatsRequest request) + public get_partitions_statistics_req_args( + PartitionsStatsRequest request) { this(); this.request = request; @@ -90718,14 +91748,14 @@ public get_table_statistics_req_args( /** * Performs a deep copy on other. */ - public get_table_statistics_req_args(get_table_statistics_req_args other) { + public get_partitions_statistics_req_args(get_partitions_statistics_req_args other) { if (other.isSetRequest()) { - this.request = new TableStatsRequest(other.request); + this.request = new PartitionsStatsRequest(other.request); } } - public get_table_statistics_req_args deepCopy() { - return new get_table_statistics_req_args(this); + public get_partitions_statistics_req_args deepCopy() { + return new get_partitions_statistics_req_args(this); } @Override @@ -90733,11 +91763,11 @@ public void clear() { this.request = null; } - public TableStatsRequest getRequest() { + public PartitionsStatsRequest getRequest() { return this.request; } - public void setRequest(TableStatsRequest request) { + public void setRequest(PartitionsStatsRequest request) { this.request = request; } @@ -90762,7 +91792,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetRequest(); } else { - setRequest((TableStatsRequest)value); + setRequest((PartitionsStatsRequest)value); } break; @@ -90795,12 +91825,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_statistics_req_args) - return this.equals((get_table_statistics_req_args)that); + if (that instanceof get_partitions_statistics_req_args) + return this.equals((get_partitions_statistics_req_args)that); return false; } - public boolean equals(get_table_statistics_req_args that) { + public boolean equals(get_partitions_statistics_req_args that) { if (that == null) return false; @@ -90828,13 +91858,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_table_statistics_req_args other) { + public int compareTo(get_partitions_statistics_req_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_table_statistics_req_args typedOther = (get_table_statistics_req_args)other; + get_partitions_statistics_req_args typedOther = (get_partitions_statistics_req_args)other; lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { @@ -90863,7 +91893,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_statistics_req_args("); + StringBuilder sb = new StringBuilder("get_partitions_statistics_req_args("); boolean first = true; sb.append("request:"); @@ -90901,15 +91931,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_statistics_req_argsStandardSchemeFactory implements SchemeFactory { - public get_table_statistics_req_argsStandardScheme getScheme() { - return new get_table_statistics_req_argsStandardScheme(); + private static class get_partitions_statistics_req_argsStandardSchemeFactory implements SchemeFactory { + public get_partitions_statistics_req_argsStandardScheme getScheme() { + return new get_partitions_statistics_req_argsStandardScheme(); } } - private static class get_table_statistics_req_argsStandardScheme extends StandardScheme { + private static class get_partitions_statistics_req_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -90921,7 +91951,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistic switch (schemeField.id) { case 1: // REQUEST if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.request = new TableStatsRequest(); + struct.request = new PartitionsStatsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } else { @@ -90937,7 +91967,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistic struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -90952,16 +91982,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_statisti } - private static class get_table_statistics_req_argsTupleSchemeFactory implements SchemeFactory { - public get_table_statistics_req_argsTupleScheme getScheme() { - return new get_table_statistics_req_argsTupleScheme(); + private static class get_partitions_statistics_req_argsTupleSchemeFactory implements SchemeFactory { + public get_partitions_statistics_req_argsTupleScheme getScheme() { + return new get_partitions_statistics_req_argsTupleScheme(); } } - private static class get_table_statistics_req_argsTupleScheme extends TupleScheme { + private static class get_partitions_statistics_req_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -90974,11 +92004,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistic } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.request = new TableStatsRequest(); + struct.request = new PartitionsStatsRequest(); struct.request.read(iprot); struct.setRequestIsSet(true); } @@ -90987,8 +92017,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_table_statistics_req_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_table_statistics_req_result"); + public static class get_partitions_statistics_req_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_partitions_statistics_req_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -90996,11 +92026,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_table_statistics_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_table_statistics_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_partitions_statistics_req_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_partitions_statistics_req_resultTupleSchemeFactory()); } - private TableStatsResult success; // required + private PartitionsStatsResult success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -91073,20 +92103,20 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, TableStatsResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsStatsResult.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))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_table_statistics_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_statistics_req_result.class, metaDataMap); } - public get_table_statistics_req_result() { + public get_partitions_statistics_req_result() { } - public get_table_statistics_req_result( - TableStatsResult success, + public get_partitions_statistics_req_result( + PartitionsStatsResult success, NoSuchObjectException o1, MetaException o2) { @@ -91099,9 +92129,9 @@ public get_table_statistics_req_result( /** * Performs a deep copy on other. */ - public get_table_statistics_req_result(get_table_statistics_req_result other) { + public get_partitions_statistics_req_result(get_partitions_statistics_req_result other) { if (other.isSetSuccess()) { - this.success = new TableStatsResult(other.success); + this.success = new PartitionsStatsResult(other.success); } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); @@ -91111,8 +92141,8 @@ public get_table_statistics_req_result(get_table_statistics_req_result other) { } } - public get_table_statistics_req_result deepCopy() { - return new get_table_statistics_req_result(this); + public get_partitions_statistics_req_result deepCopy() { + return new get_partitions_statistics_req_result(this); } @Override @@ -91122,11 +92152,11 @@ public void clear() { this.o2 = null; } - public TableStatsResult getSuccess() { + public PartitionsStatsResult getSuccess() { return this.success; } - public void setSuccess(TableStatsResult success) { + public void setSuccess(PartitionsStatsResult success) { this.success = success; } @@ -91197,7 +92227,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((TableStatsResult)value); + setSuccess((PartitionsStatsResult)value); } break; @@ -91256,12 +92286,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_table_statistics_req_result) - return this.equals((get_table_statistics_req_result)that); + if (that instanceof get_partitions_statistics_req_result) + return this.equals((get_partitions_statistics_req_result)that); return false; } - public boolean equals(get_table_statistics_req_result that) { + public boolean equals(get_partitions_statistics_req_result that) { if (that == null) return false; @@ -91317,13 +92347,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_table_statistics_req_result other) { + public int compareTo(get_partitions_statistics_req_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_table_statistics_req_result typedOther = (get_table_statistics_req_result)other; + get_partitions_statistics_req_result typedOther = (get_partitions_statistics_req_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -91372,7 +92402,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_table_statistics_req_result("); + StringBuilder sb = new StringBuilder("get_partitions_statistics_req_result("); boolean first = true; sb.append("success:"); @@ -91426,15 +92456,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_table_statistics_req_resultStandardSchemeFactory implements SchemeFactory { - public get_table_statistics_req_resultStandardScheme getScheme() { - return new get_table_statistics_req_resultStandardScheme(); + private static class get_partitions_statistics_req_resultStandardSchemeFactory implements SchemeFactory { + public get_partitions_statistics_req_resultStandardScheme getScheme() { + return new get_partitions_statistics_req_resultStandardScheme(); } } - private static class get_table_statistics_req_resultStandardScheme extends StandardScheme { + private static class get_partitions_statistics_req_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -91446,7 +92476,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistic switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new TableStatsResult(); + struct.success = new PartitionsStatsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -91480,7 +92510,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_statistic struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -91505,16 +92535,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_statisti } - private static class get_table_statistics_req_resultTupleSchemeFactory implements SchemeFactory { - public get_table_statistics_req_resultTupleScheme getScheme() { - return new get_table_statistics_req_resultTupleScheme(); + private static class get_partitions_statistics_req_resultTupleSchemeFactory implements SchemeFactory { + public get_partitions_statistics_req_resultTupleScheme getScheme() { + return new get_partitions_statistics_req_resultTupleScheme(); } } - private static class get_table_statistics_req_resultTupleScheme extends TupleScheme { + private static class get_partitions_statistics_req_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -91539,11 +92569,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_statistic } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new TableStatsResult(); + struct.success = new PartitionsStatsResult(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -91562,15 +92592,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_statistics } - public static class get_partitions_statistics_req_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_partitions_statistics_req_args"); + public static class get_aggr_stats_for_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_aggr_stats_for_args"); private static final org.apache.thrift.protocol.TField REQUEST_FIELD_DESC = new org.apache.thrift.protocol.TField("request", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_statistics_req_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_statistics_req_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_aggr_stats_for_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_aggr_stats_for_argsTupleSchemeFactory()); } private PartitionsStatsRequest request; // required @@ -91640,13 +92670,13 @@ public String getFieldName() { 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, PartitionsStatsRequest.class))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_statistics_req_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_aggr_stats_for_args.class, metaDataMap); } - public get_partitions_statistics_req_args() { + public get_aggr_stats_for_args() { } - public get_partitions_statistics_req_args( + public get_aggr_stats_for_args( PartitionsStatsRequest request) { this(); @@ -91656,14 +92686,14 @@ public get_partitions_statistics_req_args( /** * Performs a deep copy on other. */ - public get_partitions_statistics_req_args(get_partitions_statistics_req_args other) { + public get_aggr_stats_for_args(get_aggr_stats_for_args other) { if (other.isSetRequest()) { this.request = new PartitionsStatsRequest(other.request); } } - public get_partitions_statistics_req_args deepCopy() { - return new get_partitions_statistics_req_args(this); + public get_aggr_stats_for_args deepCopy() { + return new get_aggr_stats_for_args(this); } @Override @@ -91733,12 +92763,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_statistics_req_args) - return this.equals((get_partitions_statistics_req_args)that); + if (that instanceof get_aggr_stats_for_args) + return this.equals((get_aggr_stats_for_args)that); return false; } - public boolean equals(get_partitions_statistics_req_args that) { + public boolean equals(get_aggr_stats_for_args that) { if (that == null) return false; @@ -91766,13 +92796,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_partitions_statistics_req_args other) { + public int compareTo(get_aggr_stats_for_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partitions_statistics_req_args typedOther = (get_partitions_statistics_req_args)other; + get_aggr_stats_for_args typedOther = (get_aggr_stats_for_args)other; lastComparison = Boolean.valueOf(isSetRequest()).compareTo(typedOther.isSetRequest()); if (lastComparison != 0) { @@ -91801,7 +92831,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_statistics_req_args("); + StringBuilder sb = new StringBuilder("get_aggr_stats_for_args("); boolean first = true; sb.append("request:"); @@ -91839,15 +92869,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_statistics_req_argsStandardSchemeFactory implements SchemeFactory { - public get_partitions_statistics_req_argsStandardScheme getScheme() { - return new get_partitions_statistics_req_argsStandardScheme(); + private static class get_aggr_stats_for_argsStandardSchemeFactory implements SchemeFactory { + public get_aggr_stats_for_argsStandardScheme getScheme() { + return new get_aggr_stats_for_argsStandardScheme(); } } - private static class get_partitions_statistics_req_argsStandardScheme extends StandardScheme { + private static class get_aggr_stats_for_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_aggr_stats_for_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -91875,7 +92905,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_stat struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_aggr_stats_for_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -91890,16 +92920,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_sta } - private static class get_partitions_statistics_req_argsTupleSchemeFactory implements SchemeFactory { - public get_partitions_statistics_req_argsTupleScheme getScheme() { - return new get_partitions_statistics_req_argsTupleScheme(); + private static class get_aggr_stats_for_argsTupleSchemeFactory implements SchemeFactory { + public get_aggr_stats_for_argsTupleScheme getScheme() { + return new get_aggr_stats_for_argsTupleScheme(); } } - private static class get_partitions_statistics_req_argsTupleScheme extends TupleScheme { + private static class get_aggr_stats_for_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequest()) { @@ -91912,7 +92942,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_stat } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { @@ -91925,8 +92955,8 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati } - public static class get_partitions_statistics_req_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_partitions_statistics_req_result"); + public static class get_aggr_stats_for_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_aggr_stats_for_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -91934,11 +92964,11 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_stati private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_partitions_statistics_req_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_partitions_statistics_req_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_aggr_stats_for_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_aggr_stats_for_resultTupleSchemeFactory()); } - private PartitionsStatsResult success; // required + private Aggr_Stats success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -92011,20 +93041,20 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, PartitionsStatsResult.class))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Aggr_Stats.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))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_partitions_statistics_req_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_aggr_stats_for_result.class, metaDataMap); } - public get_partitions_statistics_req_result() { + public get_aggr_stats_for_result() { } - public get_partitions_statistics_req_result( - PartitionsStatsResult success, + public get_aggr_stats_for_result( + Aggr_Stats success, NoSuchObjectException o1, MetaException o2) { @@ -92037,9 +93067,9 @@ public get_partitions_statistics_req_result( /** * Performs a deep copy on other. */ - public get_partitions_statistics_req_result(get_partitions_statistics_req_result other) { + public get_aggr_stats_for_result(get_aggr_stats_for_result other) { if (other.isSetSuccess()) { - this.success = new PartitionsStatsResult(other.success); + this.success = new Aggr_Stats(other.success); } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); @@ -92049,8 +93079,8 @@ public get_partitions_statistics_req_result(get_partitions_statistics_req_result } } - public get_partitions_statistics_req_result deepCopy() { - return new get_partitions_statistics_req_result(this); + public get_aggr_stats_for_result deepCopy() { + return new get_aggr_stats_for_result(this); } @Override @@ -92060,11 +93090,11 @@ public void clear() { this.o2 = null; } - public PartitionsStatsResult getSuccess() { + public Aggr_Stats getSuccess() { return this.success; } - public void setSuccess(PartitionsStatsResult success) { + public void setSuccess(Aggr_Stats success) { this.success = success; } @@ -92135,7 +93165,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((PartitionsStatsResult)value); + setSuccess((Aggr_Stats)value); } break; @@ -92194,12 +93224,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_partitions_statistics_req_result) - return this.equals((get_partitions_statistics_req_result)that); + if (that instanceof get_aggr_stats_for_result) + return this.equals((get_aggr_stats_for_result)that); return false; } - public boolean equals(get_partitions_statistics_req_result that) { + public boolean equals(get_aggr_stats_for_result that) { if (that == null) return false; @@ -92255,13 +93285,13 @@ public int hashCode() { return builder.toHashCode(); } - public int compareTo(get_partitions_statistics_req_result other) { + public int compareTo(get_aggr_stats_for_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - get_partitions_statistics_req_result typedOther = (get_partitions_statistics_req_result)other; + get_aggr_stats_for_result typedOther = (get_aggr_stats_for_result)other; lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess()); if (lastComparison != 0) { @@ -92310,7 +93340,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_partitions_statistics_req_result("); + StringBuilder sb = new StringBuilder("get_aggr_stats_for_result("); boolean first = true; sb.append("success:"); @@ -92364,15 +93394,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_partitions_statistics_req_resultStandardSchemeFactory implements SchemeFactory { - public get_partitions_statistics_req_resultStandardScheme getScheme() { - return new get_partitions_statistics_req_resultStandardScheme(); + private static class get_aggr_stats_for_resultStandardSchemeFactory implements SchemeFactory { + public get_aggr_stats_for_resultStandardScheme getScheme() { + return new get_aggr_stats_for_resultStandardScheme(); } } - private static class get_partitions_statistics_req_resultStandardScheme extends StandardScheme { + private static class get_aggr_stats_for_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_aggr_stats_for_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -92384,7 +93414,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_stat switch (schemeField.id) { case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new PartitionsStatsResult(); + struct.success = new Aggr_Stats(); struct.success.read(iprot); struct.setSuccessIsSet(true); } else { @@ -92418,7 +93448,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_stat struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_aggr_stats_for_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -92443,16 +93473,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_sta } - private static class get_partitions_statistics_req_resultTupleSchemeFactory implements SchemeFactory { - public get_partitions_statistics_req_resultTupleScheme getScheme() { - return new get_partitions_statistics_req_resultTupleScheme(); + private static class get_aggr_stats_for_resultTupleSchemeFactory implements SchemeFactory { + public get_aggr_stats_for_resultTupleScheme getScheme() { + return new get_aggr_stats_for_resultTupleScheme(); } } - private static class get_partitions_statistics_req_resultTupleScheme extends TupleScheme { + private static class get_aggr_stats_for_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -92477,11 +93507,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_stat } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_statistics_req_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_aggr_stats_for_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = new PartitionsStatsResult(); + struct.success = new Aggr_Stats(); struct.success.read(iprot); struct.setSuccessIsSet(true); } @@ -99164,13 +100194,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 _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) { - String _elem790; // optional - _elem790 = iprot.readString(); - struct.success.add(_elem790); + String _elem798; // required + _elem798 = iprot.readString(); + struct.success.add(_elem798); } iprot.readListEnd(); } @@ -99205,9 +100235,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 _iter791 : struct.success) + for (String _iter799 : struct.success) { - oprot.writeString(_iter791); + oprot.writeString(_iter799); } oprot.writeListEnd(); } @@ -99246,9 +100276,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter792 : struct.success) + for (String _iter800 : struct.success) { - oprot.writeString(_iter792); + oprot.writeString(_iter800); } } } @@ -99263,13 +100293,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 _list793 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, 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.STRING, iprot.readI32()); + struct.success = new ArrayList(_list801.size); + for (int _i802 = 0; _i802 < _list801.size; ++_i802) { - String _elem795; // optional - _elem795 = iprot.readString(); - struct.success.add(_elem795); + String _elem803; // required + _elem803 = iprot.readString(); + struct.success.add(_elem803); } } struct.setSuccessIsSet(true); @@ -102612,13 +103642,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 _list796 = iprot.readListBegin(); - struct.success = new ArrayList(_list796.size); - for (int _i797 = 0; _i797 < _list796.size; ++_i797) + org.apache.thrift.protocol.TList _list804 = iprot.readListBegin(); + struct.success = new ArrayList(_list804.size); + for (int _i805 = 0; _i805 < _list804.size; ++_i805) { - String _elem798; // optional - _elem798 = iprot.readString(); - struct.success.add(_elem798); + String _elem806; // required + _elem806 = iprot.readString(); + struct.success.add(_elem806); } iprot.readListEnd(); } @@ -102653,9 +103683,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 _iter799 : struct.success) + for (String _iter807 : struct.success) { - oprot.writeString(_iter799); + oprot.writeString(_iter807); } oprot.writeListEnd(); } @@ -102694,9 +103724,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter800 : struct.success) + for (String _iter808 : struct.success) { - oprot.writeString(_iter800); + oprot.writeString(_iter808); } } } @@ -102711,13 +103741,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 _list801 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list801.size); - for (int _i802 = 0; _i802 < _list801.size; ++_i802) + org.apache.thrift.protocol.TList _list809 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list809.size); + for (int _i810 = 0; _i810 < _list809.size; ++_i810) { - String _elem803; // optional - _elem803 = iprot.readString(); - struct.success.add(_elem803); + String _elem811; // required + _elem811 = iprot.readString(); + struct.success.add(_elem811); } } struct.setSuccessIsSet(true); @@ -106008,14 +107038,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, list_roles_result s 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) { - Role _elem806; // optional - _elem806 = new Role(); - _elem806.read(iprot); - struct.success.add(_elem806); + Role _elem814; // required + _elem814 = new Role(); + _elem814.read(iprot); + struct.success.add(_elem814); } iprot.readListEnd(); } @@ -106050,9 +107080,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, list_roles_result oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Role _iter807 : struct.success) + for (Role _iter815 : struct.success) { - _iter807.write(oprot); + _iter815.write(oprot); } oprot.writeListEnd(); } @@ -106091,9 +107121,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter808 : struct.success) + for (Role _iter816 : struct.success) { - _iter808.write(oprot); + _iter816.write(oprot); } } } @@ -106108,14 +107138,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, list_roles_result st 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.STRUCT, 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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list817.size); + for (int _i818 = 0; _i818 < _list817.size; ++_i818) { - Role _elem811; // optional - _elem811 = new Role(); - _elem811.read(iprot); - struct.success.add(_elem811); + Role _elem819; // required + _elem819 = new Role(); + _elem819.read(iprot); + struct.success.add(_elem819); } } struct.setSuccessIsSet(true); @@ -109123,13 +110153,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 _list812 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list812.size); - for (int _i813 = 0; _i813 < _list812.size; ++_i813) + org.apache.thrift.protocol.TList _list820 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list820.size); + for (int _i821 = 0; _i821 < _list820.size; ++_i821) { - String _elem814; // optional - _elem814 = iprot.readString(); - struct.group_names.add(_elem814); + String _elem822; // required + _elem822 = iprot.readString(); + struct.group_names.add(_elem822); } iprot.readListEnd(); } @@ -109165,9 +110195,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 _iter815 : struct.group_names) + for (String _iter823 : struct.group_names) { - oprot.writeString(_iter815); + oprot.writeString(_iter823); } oprot.writeListEnd(); } @@ -109210,9 +110240,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 _iter816 : struct.group_names) + for (String _iter824 : struct.group_names) { - oprot.writeString(_iter816); + oprot.writeString(_iter824); } } } @@ -109233,13 +110263,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list817 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list817.size); - for (int _i818 = 0; _i818 < _list817.size; ++_i818) + org.apache.thrift.protocol.TList _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list825.size); + for (int _i826 = 0; _i826 < _list825.size; ++_i826) { - String _elem819; // optional - _elem819 = iprot.readString(); - struct.group_names.add(_elem819); + String _elem827; // required + _elem827 = iprot.readString(); + struct.group_names.add(_elem827); } } struct.setGroup_namesIsSet(true); @@ -110697,14 +111727,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 _list820 = iprot.readListBegin(); - struct.success = new ArrayList(_list820.size); - for (int _i821 = 0; _i821 < _list820.size; ++_i821) + org.apache.thrift.protocol.TList _list828 = iprot.readListBegin(); + struct.success = new ArrayList(_list828.size); + for (int _i829 = 0; _i829 < _list828.size; ++_i829) { - HiveObjectPrivilege _elem822; // optional - _elem822 = new HiveObjectPrivilege(); - _elem822.read(iprot); - struct.success.add(_elem822); + HiveObjectPrivilege _elem830; // required + _elem830 = new HiveObjectPrivilege(); + _elem830.read(iprot); + struct.success.add(_elem830); } iprot.readListEnd(); } @@ -110739,9 +111769,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 _iter823 : struct.success) + for (HiveObjectPrivilege _iter831 : struct.success) { - _iter823.write(oprot); + _iter831.write(oprot); } oprot.writeListEnd(); } @@ -110780,9 +111810,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter824 : struct.success) + for (HiveObjectPrivilege _iter832 : struct.success) { - _iter824.write(oprot); + _iter832.write(oprot); } } } @@ -110797,14 +111827,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 _list825 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list825.size); - for (int _i826 = 0; _i826 < _list825.size; ++_i826) + org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list833.size); + for (int _i834 = 0; _i834 < _list833.size; ++_i834) { - HiveObjectPrivilege _elem827; // optional - _elem827 = new HiveObjectPrivilege(); - _elem827.read(iprot); - struct.success.add(_elem827); + HiveObjectPrivilege _elem835; // required + _elem835 = new HiveObjectPrivilege(); + _elem835.read(iprot); + struct.success.add(_elem835); } } struct.setSuccessIsSet(true); @@ -113709,13 +114739,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 _list828 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list828.size); - for (int _i829 = 0; _i829 < _list828.size; ++_i829) + org.apache.thrift.protocol.TList _list836 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list836.size); + for (int _i837 = 0; _i837 < _list836.size; ++_i837) { - String _elem830; // optional - _elem830 = iprot.readString(); - struct.group_names.add(_elem830); + String _elem838; // required + _elem838 = iprot.readString(); + struct.group_names.add(_elem838); } iprot.readListEnd(); } @@ -113746,9 +114776,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 _iter831 : struct.group_names) + for (String _iter839 : struct.group_names) { - oprot.writeString(_iter831); + oprot.writeString(_iter839); } oprot.writeListEnd(); } @@ -113785,9 +114815,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 _iter832 : struct.group_names) + for (String _iter840 : struct.group_names) { - oprot.writeString(_iter832); + oprot.writeString(_iter840); } } } @@ -113803,13 +114833,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list833 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list833.size); - for (int _i834 = 0; _i834 < _list833.size; ++_i834) + org.apache.thrift.protocol.TList _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list841.size); + for (int _i842 = 0; _i842 < _list841.size; ++_i842) { - String _elem835; // optional - _elem835 = iprot.readString(); - struct.group_names.add(_elem835); + String _elem843; // required + _elem843 = iprot.readString(); + struct.group_names.add(_elem843); } } struct.setGroup_namesIsSet(true); @@ -114215,13 +115245,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 _list836 = iprot.readListBegin(); - struct.success = new ArrayList(_list836.size); - for (int _i837 = 0; _i837 < _list836.size; ++_i837) + org.apache.thrift.protocol.TList _list844 = iprot.readListBegin(); + struct.success = new ArrayList(_list844.size); + for (int _i845 = 0; _i845 < _list844.size; ++_i845) { - String _elem838; // optional - _elem838 = iprot.readString(); - struct.success.add(_elem838); + String _elem846; // required + _elem846 = iprot.readString(); + struct.success.add(_elem846); } iprot.readListEnd(); } @@ -114256,9 +115286,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 _iter839 : struct.success) + for (String _iter847 : struct.success) { - oprot.writeString(_iter839); + oprot.writeString(_iter847); } oprot.writeListEnd(); } @@ -114297,9 +115327,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter840 : struct.success) + for (String _iter848 : struct.success) { - oprot.writeString(_iter840); + oprot.writeString(_iter848); } } } @@ -114314,13 +115344,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 _list841 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list841.size); - for (int _i842 = 0; _i842 < _list841.size; ++_i842) + org.apache.thrift.protocol.TList _list849 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list849.size); + for (int _i850 = 0; _i850 < _list849.size; ++_i850) { - String _elem843; // optional - _elem843 = iprot.readString(); - struct.success.add(_elem843); + String _elem851; // required + _elem851 = iprot.readString(); + struct.success.add(_elem851); } } struct.setSuccessIsSet(true); diff --git metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java index 1882b57..bb81e3c 100644 --- metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Type.java +++ 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; // optional + FieldSchema _elem2; // required _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; // optional + FieldSchema _elem7; // required _elem7 = new FieldSchema(); _elem7.read(iprot); struct.fields.add(_elem7); diff --git metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index b74e54e..6580fd7 100644 --- metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -87,6 +87,7 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { public function get_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name); public function get_table_statistics_req(\metastore\TableStatsRequest $request); public function get_partitions_statistics_req(\metastore\PartitionsStatsRequest $request); + public function get_aggr_stats_for(\metastore\PartitionsStatsRequest $request); public function delete_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name); public function delete_table_column_statistics($db_name, $tbl_name, $col_name); public function create_function(\metastore\Function $func); @@ -4332,6 +4333,63 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_partitions_statistics_req failed: unknown result"); } + public function get_aggr_stats_for(\metastore\PartitionsStatsRequest $request) + { + $this->send_get_aggr_stats_for($request); + return $this->recv_get_aggr_stats_for(); + } + + public function send_get_aggr_stats_for(\metastore\PartitionsStatsRequest $request) + { + $args = new \metastore\ThriftHiveMetastore_get_aggr_stats_for_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_aggr_stats_for', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_aggr_stats_for', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_aggr_stats_for() + { + $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_aggr_stats_for_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_aggr_stats_for_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_aggr_stats_for failed: unknown result"); + } + public function delete_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name) { $this->send_delete_partition_column_statistics($db_name, $tbl_name, $part_name, $col_name); @@ -7164,14 +7222,14 @@ class ThriftHiveMetastore_get_databases_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; - $xfer += $input->readString($elem398); - $this->success []= $elem398; + $elem405 = null; + $xfer += $input->readString($elem405); + $this->success []= $elem405; } $xfer += $input->readListEnd(); } else { @@ -7207,9 +7265,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter399) + foreach ($this->success as $iter406) { - $xfer += $output->writeString($iter399); + $xfer += $output->writeString($iter406); } } $output->writeListEnd(); @@ -7334,14 +7392,14 @@ class ThriftHiveMetastore_get_all_databases_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 { @@ -7377,9 +7435,9 @@ class ThriftHiveMetastore_get_all_databases_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(); @@ -8320,18 +8378,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size407 = 0; - $_ktype408 = 0; - $_vtype409 = 0; - $xfer += $input->readMapBegin($_ktype408, $_vtype409, $_size407); - for ($_i411 = 0; $_i411 < $_size407; ++$_i411) + $_size414 = 0; + $_ktype415 = 0; + $_vtype416 = 0; + $xfer += $input->readMapBegin($_ktype415, $_vtype416, $_size414); + for ($_i418 = 0; $_i418 < $_size414; ++$_i418) { - $key412 = ''; - $val413 = new \metastore\Type(); - $xfer += $input->readString($key412); - $val413 = new \metastore\Type(); - $xfer += $val413->read($input); - $this->success[$key412] = $val413; + $key419 = ''; + $val420 = new \metastore\Type(); + $xfer += $input->readString($key419); + $val420 = new \metastore\Type(); + $xfer += $val420->read($input); + $this->success[$key419] = $val420; } $xfer += $input->readMapEnd(); } else { @@ -8367,10 +8425,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter414 => $viter415) + foreach ($this->success as $kiter421 => $viter422) { - $xfer += $output->writeString($kiter414); - $xfer += $viter415->write($output); + $xfer += $output->writeString($kiter421); + $xfer += $viter422->write($output); } } $output->writeMapEnd(); @@ -8556,15 +8614,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size416 = 0; - $_etype419 = 0; - $xfer += $input->readListBegin($_etype419, $_size416); - for ($_i420 = 0; $_i420 < $_size416; ++$_i420) + $_size423 = 0; + $_etype426 = 0; + $xfer += $input->readListBegin($_etype426, $_size423); + for ($_i427 = 0; $_i427 < $_size423; ++$_i427) { - $elem421 = null; - $elem421 = new \metastore\FieldSchema(); - $xfer += $elem421->read($input); - $this->success []= $elem421; + $elem428 = null; + $elem428 = new \metastore\FieldSchema(); + $xfer += $elem428->read($input); + $this->success []= $elem428; } $xfer += $input->readListEnd(); } else { @@ -8616,9 +8674,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter422) + foreach ($this->success as $iter429) { - $xfer += $iter422->write($output); + $xfer += $iter429->write($output); } } $output->writeListEnd(); @@ -8814,15 +8872,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size423 = 0; - $_etype426 = 0; - $xfer += $input->readListBegin($_etype426, $_size423); - for ($_i427 = 0; $_i427 < $_size423; ++$_i427) + $_size430 = 0; + $_etype433 = 0; + $xfer += $input->readListBegin($_etype433, $_size430); + for ($_i434 = 0; $_i434 < $_size430; ++$_i434) { - $elem428 = null; - $elem428 = new \metastore\FieldSchema(); - $xfer += $elem428->read($input); - $this->success []= $elem428; + $elem435 = null; + $elem435 = new \metastore\FieldSchema(); + $xfer += $elem435->read($input); + $this->success []= $elem435; } $xfer += $input->readListEnd(); } else { @@ -8874,9 +8932,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter429) + foreach ($this->success as $iter436) { - $xfer += $iter429->write($output); + $xfer += $iter436->write($output); } } $output->writeListEnd(); @@ -9953,14 +10011,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size430 = 0; - $_etype433 = 0; - $xfer += $input->readListBegin($_etype433, $_size430); - for ($_i434 = 0; $_i434 < $_size430; ++$_i434) + $_size437 = 0; + $_etype440 = 0; + $xfer += $input->readListBegin($_etype440, $_size437); + for ($_i441 = 0; $_i441 < $_size437; ++$_i441) { - $elem435 = null; - $xfer += $input->readString($elem435); - $this->success []= $elem435; + $elem442 = null; + $xfer += $input->readString($elem442); + $this->success []= $elem442; } $xfer += $input->readListEnd(); } else { @@ -9996,9 +10054,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter436) + foreach ($this->success as $iter443) { - $xfer += $output->writeString($iter436); + $xfer += $output->writeString($iter443); } } $output->writeListEnd(); @@ -10145,14 +10203,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size437 = 0; - $_etype440 = 0; - $xfer += $input->readListBegin($_etype440, $_size437); - for ($_i441 = 0; $_i441 < $_size437; ++$_i441) + $_size444 = 0; + $_etype447 = 0; + $xfer += $input->readListBegin($_etype447, $_size444); + for ($_i448 = 0; $_i448 < $_size444; ++$_i448) { - $elem442 = null; - $xfer += $input->readString($elem442); - $this->success []= $elem442; + $elem449 = null; + $xfer += $input->readString($elem449); + $this->success []= $elem449; } $xfer += $input->readListEnd(); } else { @@ -10188,9 +10246,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter443) + foreach ($this->success as $iter450) { - $xfer += $output->writeString($iter443); + $xfer += $output->writeString($iter450); } } $output->writeListEnd(); @@ -10484,14 +10542,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size444 = 0; - $_etype447 = 0; - $xfer += $input->readListBegin($_etype447, $_size444); - for ($_i448 = 0; $_i448 < $_size444; ++$_i448) + $_size451 = 0; + $_etype454 = 0; + $xfer += $input->readListBegin($_etype454, $_size451); + for ($_i455 = 0; $_i455 < $_size451; ++$_i455) { - $elem449 = null; - $xfer += $input->readString($elem449); - $this->tbl_names []= $elem449; + $elem456 = null; + $xfer += $input->readString($elem456); + $this->tbl_names []= $elem456; } $xfer += $input->readListEnd(); } else { @@ -10524,9 +10582,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter450) + foreach ($this->tbl_names as $iter457) { - $xfer += $output->writeString($iter450); + $xfer += $output->writeString($iter457); } } $output->writeListEnd(); @@ -10615,15 +10673,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size451 = 0; - $_etype454 = 0; - $xfer += $input->readListBegin($_etype454, $_size451); - for ($_i455 = 0; $_i455 < $_size451; ++$_i455) + $_size458 = 0; + $_etype461 = 0; + $xfer += $input->readListBegin($_etype461, $_size458); + for ($_i462 = 0; $_i462 < $_size458; ++$_i462) { - $elem456 = null; - $elem456 = new \metastore\Table(); - $xfer += $elem456->read($input); - $this->success []= $elem456; + $elem463 = null; + $elem463 = new \metastore\Table(); + $xfer += $elem463->read($input); + $this->success []= $elem463; } $xfer += $input->readListEnd(); } else { @@ -10675,9 +10733,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter457) + foreach ($this->success as $iter464) { - $xfer += $iter457->write($output); + $xfer += $iter464->write($output); } } $output->writeListEnd(); @@ -10892,14 +10950,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size458 = 0; - $_etype461 = 0; - $xfer += $input->readListBegin($_etype461, $_size458); - for ($_i462 = 0; $_i462 < $_size458; ++$_i462) + $_size465 = 0; + $_etype468 = 0; + $xfer += $input->readListBegin($_etype468, $_size465); + for ($_i469 = 0; $_i469 < $_size465; ++$_i469) { - $elem463 = null; - $xfer += $input->readString($elem463); - $this->success []= $elem463; + $elem470 = null; + $xfer += $input->readString($elem470); + $this->success []= $elem470; } $xfer += $input->readListEnd(); } else { @@ -10951,9 +11009,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter464) + foreach ($this->success as $iter471) { - $xfer += $output->writeString($iter464); + $xfer += $output->writeString($iter471); } } $output->writeListEnd(); @@ -11946,15 +12004,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size465 = 0; - $_etype468 = 0; - $xfer += $input->readListBegin($_etype468, $_size465); - for ($_i469 = 0; $_i469 < $_size465; ++$_i469) + $_size472 = 0; + $_etype475 = 0; + $xfer += $input->readListBegin($_etype475, $_size472); + for ($_i476 = 0; $_i476 < $_size472; ++$_i476) { - $elem470 = null; - $elem470 = new \metastore\Partition(); - $xfer += $elem470->read($input); - $this->new_parts []= $elem470; + $elem477 = null; + $elem477 = new \metastore\Partition(); + $xfer += $elem477->read($input); + $this->new_parts []= $elem477; } $xfer += $input->readListEnd(); } else { @@ -11982,9 +12040,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter471) + foreach ($this->new_parts as $iter478) { - $xfer += $iter471->write($output); + $xfer += $iter478->write($output); } } $output->writeListEnd(); @@ -12213,14 +12271,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size472 = 0; - $_etype475 = 0; - $xfer += $input->readListBegin($_etype475, $_size472); - for ($_i476 = 0; $_i476 < $_size472; ++$_i476) + $_size479 = 0; + $_etype482 = 0; + $xfer += $input->readListBegin($_etype482, $_size479); + for ($_i483 = 0; $_i483 < $_size479; ++$_i483) { - $elem477 = null; - $xfer += $input->readString($elem477); - $this->part_vals []= $elem477; + $elem484 = null; + $xfer += $input->readString($elem484); + $this->part_vals []= $elem484; } $xfer += $input->readListEnd(); } else { @@ -12258,9 +12316,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter478) + foreach ($this->part_vals as $iter485) { - $xfer += $output->writeString($iter478); + $xfer += $output->writeString($iter485); } } $output->writeListEnd(); @@ -12723,14 +12781,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size479 = 0; - $_etype482 = 0; - $xfer += $input->readListBegin($_etype482, $_size479); - for ($_i483 = 0; $_i483 < $_size479; ++$_i483) + $_size486 = 0; + $_etype489 = 0; + $xfer += $input->readListBegin($_etype489, $_size486); + for ($_i490 = 0; $_i490 < $_size486; ++$_i490) { - $elem484 = null; - $xfer += $input->readString($elem484); - $this->part_vals []= $elem484; + $elem491 = null; + $xfer += $input->readString($elem491); + $this->part_vals []= $elem491; } $xfer += $input->readListEnd(); } else { @@ -12776,9 +12834,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter485) + foreach ($this->part_vals as $iter492) { - $xfer += $output->writeString($iter485); + $xfer += $output->writeString($iter492); } } $output->writeListEnd(); @@ -13563,14 +13621,14 @@ class ThriftHiveMetastore_drop_partition_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 { @@ -13615,9 +13673,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter492) + foreach ($this->part_vals as $iter499) { - $xfer += $output->writeString($iter492); + $xfer += $output->writeString($iter499); } } $output->writeListEnd(); @@ -13846,14 +13904,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size493 = 0; - $_etype496 = 0; - $xfer += $input->readListBegin($_etype496, $_size493); - for ($_i497 = 0; $_i497 < $_size493; ++$_i497) + $_size500 = 0; + $_etype503 = 0; + $xfer += $input->readListBegin($_etype503, $_size500); + for ($_i504 = 0; $_i504 < $_size500; ++$_i504) { - $elem498 = null; - $xfer += $input->readString($elem498); - $this->part_vals []= $elem498; + $elem505 = null; + $xfer += $input->readString($elem505); + $this->part_vals []= $elem505; } $xfer += $input->readListEnd(); } else { @@ -13906,9 +13964,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter499) + foreach ($this->part_vals as $iter506) { - $xfer += $output->writeString($iter499); + $xfer += $output->writeString($iter506); } } $output->writeListEnd(); @@ -14847,14 +14905,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = 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; - $xfer += $input->readString($elem505); - $this->part_vals []= $elem505; + $elem512 = null; + $xfer += $input->readString($elem512); + $this->part_vals []= $elem512; } $xfer += $input->readListEnd(); } else { @@ -14892,9 +14950,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter506) + foreach ($this->part_vals as $iter513) { - $xfer += $output->writeString($iter506); + $xfer += $output->writeString($iter513); } } $output->writeListEnd(); @@ -15112,17 +15170,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size507 = 0; - $_ktype508 = 0; - $_vtype509 = 0; - $xfer += $input->readMapBegin($_ktype508, $_vtype509, $_size507); - for ($_i511 = 0; $_i511 < $_size507; ++$_i511) + $_size514 = 0; + $_ktype515 = 0; + $_vtype516 = 0; + $xfer += $input->readMapBegin($_ktype515, $_vtype516, $_size514); + for ($_i518 = 0; $_i518 < $_size514; ++$_i518) { - $key512 = ''; - $val513 = ''; - $xfer += $input->readString($key512); - $xfer += $input->readString($val513); - $this->partitionSpecs[$key512] = $val513; + $key519 = ''; + $val520 = ''; + $xfer += $input->readString($key519); + $xfer += $input->readString($val520); + $this->partitionSpecs[$key519] = $val520; } $xfer += $input->readMapEnd(); } else { @@ -15178,10 +15236,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter514 => $viter515) + foreach ($this->partitionSpecs as $kiter521 => $viter522) { - $xfer += $output->writeString($kiter514); - $xfer += $output->writeString($viter515); + $xfer += $output->writeString($kiter521); + $xfer += $output->writeString($viter522); } } $output->writeMapEnd(); @@ -15477,14 +15535,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size516 = 0; - $_etype519 = 0; - $xfer += $input->readListBegin($_etype519, $_size516); - for ($_i520 = 0; $_i520 < $_size516; ++$_i520) + $_size523 = 0; + $_etype526 = 0; + $xfer += $input->readListBegin($_etype526, $_size523); + for ($_i527 = 0; $_i527 < $_size523; ++$_i527) { - $elem521 = null; - $xfer += $input->readString($elem521); - $this->part_vals []= $elem521; + $elem528 = null; + $xfer += $input->readString($elem528); + $this->part_vals []= $elem528; } $xfer += $input->readListEnd(); } else { @@ -15501,14 +15559,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size522 = 0; - $_etype525 = 0; - $xfer += $input->readListBegin($_etype525, $_size522); - for ($_i526 = 0; $_i526 < $_size522; ++$_i526) + $_size529 = 0; + $_etype532 = 0; + $xfer += $input->readListBegin($_etype532, $_size529); + for ($_i533 = 0; $_i533 < $_size529; ++$_i533) { - $elem527 = null; - $xfer += $input->readString($elem527); - $this->group_names []= $elem527; + $elem534 = null; + $xfer += $input->readString($elem534); + $this->group_names []= $elem534; } $xfer += $input->readListEnd(); } else { @@ -15546,9 +15604,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter528) + foreach ($this->part_vals as $iter535) { - $xfer += $output->writeString($iter528); + $xfer += $output->writeString($iter535); } } $output->writeListEnd(); @@ -15568,9 +15626,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter529) + foreach ($this->group_names as $iter536) { - $xfer += $output->writeString($iter529); + $xfer += $output->writeString($iter536); } } $output->writeListEnd(); @@ -16116,16 +16174,16 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size530 = 0; - $_etype533 = 0; - $xfer += $input->readListBegin($_etype533, $_size530); - for ($_i534 = 0; $_i534 < $_size530; ++$_i534) - { - $elem535 = null; - $elem535 = new \metastore\Partition(); - $xfer += $elem535->read($input); - $this->success []= $elem535; - } + $_size537 = 0; + $_etype540 = 0; + $xfer += $input->readListBegin($_etype540, $_size537); + for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + { + $elem542 = null; + $elem542 = new \metastore\Partition(); + $xfer += $elem542->read($input); + $this->success []= $elem542; + } $xfer += $input->readListEnd(); } else { $xfer += $input->skip($ftype); @@ -16168,9 +16226,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter536) + foreach ($this->success as $iter543) { - $xfer += $iter536->write($output); + $xfer += $iter543->write($output); } } $output->writeListEnd(); @@ -16301,14 +16359,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size537 = 0; - $_etype540 = 0; - $xfer += $input->readListBegin($_etype540, $_size537); - for ($_i541 = 0; $_i541 < $_size537; ++$_i541) + $_size544 = 0; + $_etype547 = 0; + $xfer += $input->readListBegin($_etype547, $_size544); + for ($_i548 = 0; $_i548 < $_size544; ++$_i548) { - $elem542 = null; - $xfer += $input->readString($elem542); - $this->group_names []= $elem542; + $elem549 = null; + $xfer += $input->readString($elem549); + $this->group_names []= $elem549; } $xfer += $input->readListEnd(); } else { @@ -16356,9 +16414,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter543) + foreach ($this->group_names as $iter550) { - $xfer += $output->writeString($iter543); + $xfer += $output->writeString($iter550); } } $output->writeListEnd(); @@ -16438,15 +16496,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size544 = 0; - $_etype547 = 0; - $xfer += $input->readListBegin($_etype547, $_size544); - for ($_i548 = 0; $_i548 < $_size544; ++$_i548) + $_size551 = 0; + $_etype554 = 0; + $xfer += $input->readListBegin($_etype554, $_size551); + for ($_i555 = 0; $_i555 < $_size551; ++$_i555) { - $elem549 = null; - $elem549 = new \metastore\Partition(); - $xfer += $elem549->read($input); - $this->success []= $elem549; + $elem556 = null; + $elem556 = new \metastore\Partition(); + $xfer += $elem556->read($input); + $this->success []= $elem556; } $xfer += $input->readListEnd(); } else { @@ -16490,9 +16548,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter550) + foreach ($this->success as $iter557) { - $xfer += $iter550->write($output); + $xfer += $iter557->write($output); } } $output->writeListEnd(); @@ -16684,14 +16742,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size551 = 0; - $_etype554 = 0; - $xfer += $input->readListBegin($_etype554, $_size551); - for ($_i555 = 0; $_i555 < $_size551; ++$_i555) + $_size558 = 0; + $_etype561 = 0; + $xfer += $input->readListBegin($_etype561, $_size558); + for ($_i562 = 0; $_i562 < $_size558; ++$_i562) { - $elem556 = null; - $xfer += $input->readString($elem556); - $this->success []= $elem556; + $elem563 = null; + $xfer += $input->readString($elem563); + $this->success []= $elem563; } $xfer += $input->readListEnd(); } else { @@ -16727,9 +16785,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter557) + foreach ($this->success as $iter564) { - $xfer += $output->writeString($iter557); + $xfer += $output->writeString($iter564); } } $output->writeListEnd(); @@ -16833,14 +16891,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size558 = 0; - $_etype561 = 0; - $xfer += $input->readListBegin($_etype561, $_size558); - for ($_i562 = 0; $_i562 < $_size558; ++$_i562) + $_size565 = 0; + $_etype568 = 0; + $xfer += $input->readListBegin($_etype568, $_size565); + for ($_i569 = 0; $_i569 < $_size565; ++$_i569) { - $elem563 = null; - $xfer += $input->readString($elem563); - $this->part_vals []= $elem563; + $elem570 = null; + $xfer += $input->readString($elem570); + $this->part_vals []= $elem570; } $xfer += $input->readListEnd(); } else { @@ -16885,9 +16943,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter564) + foreach ($this->part_vals as $iter571) { - $xfer += $output->writeString($iter564); + $xfer += $output->writeString($iter571); } } $output->writeListEnd(); @@ -16972,15 +17030,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size565 = 0; - $_etype568 = 0; - $xfer += $input->readListBegin($_etype568, $_size565); - for ($_i569 = 0; $_i569 < $_size565; ++$_i569) + $_size572 = 0; + $_etype575 = 0; + $xfer += $input->readListBegin($_etype575, $_size572); + for ($_i576 = 0; $_i576 < $_size572; ++$_i576) { - $elem570 = null; - $elem570 = new \metastore\Partition(); - $xfer += $elem570->read($input); - $this->success []= $elem570; + $elem577 = null; + $elem577 = new \metastore\Partition(); + $xfer += $elem577->read($input); + $this->success []= $elem577; } $xfer += $input->readListEnd(); } else { @@ -17024,9 +17082,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter571) + foreach ($this->success as $iter578) { - $xfer += $iter571->write($output); + $xfer += $iter578->write($output); } } $output->writeListEnd(); @@ -17155,14 +17213,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size572 = 0; - $_etype575 = 0; - $xfer += $input->readListBegin($_etype575, $_size572); - for ($_i576 = 0; $_i576 < $_size572; ++$_i576) + $_size579 = 0; + $_etype582 = 0; + $xfer += $input->readListBegin($_etype582, $_size579); + for ($_i583 = 0; $_i583 < $_size579; ++$_i583) { - $elem577 = null; - $xfer += $input->readString($elem577); - $this->part_vals []= $elem577; + $elem584 = null; + $xfer += $input->readString($elem584); + $this->part_vals []= $elem584; } $xfer += $input->readListEnd(); } else { @@ -17186,14 +17244,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size578 = 0; - $_etype581 = 0; - $xfer += $input->readListBegin($_etype581, $_size578); - for ($_i582 = 0; $_i582 < $_size578; ++$_i582) + $_size585 = 0; + $_etype588 = 0; + $xfer += $input->readListBegin($_etype588, $_size585); + for ($_i589 = 0; $_i589 < $_size585; ++$_i589) { - $elem583 = null; - $xfer += $input->readString($elem583); - $this->group_names []= $elem583; + $elem590 = null; + $xfer += $input->readString($elem590); + $this->group_names []= $elem590; } $xfer += $input->readListEnd(); } else { @@ -17231,9 +17289,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter584) + foreach ($this->part_vals as $iter591) { - $xfer += $output->writeString($iter584); + $xfer += $output->writeString($iter591); } } $output->writeListEnd(); @@ -17258,9 +17316,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter585) + foreach ($this->group_names as $iter592) { - $xfer += $output->writeString($iter585); + $xfer += $output->writeString($iter592); } } $output->writeListEnd(); @@ -17340,15 +17398,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size586 = 0; - $_etype589 = 0; - $xfer += $input->readListBegin($_etype589, $_size586); - for ($_i590 = 0; $_i590 < $_size586; ++$_i590) + $_size593 = 0; + $_etype596 = 0; + $xfer += $input->readListBegin($_etype596, $_size593); + for ($_i597 = 0; $_i597 < $_size593; ++$_i597) { - $elem591 = null; - $elem591 = new \metastore\Partition(); - $xfer += $elem591->read($input); - $this->success []= $elem591; + $elem598 = null; + $elem598 = new \metastore\Partition(); + $xfer += $elem598->read($input); + $this->success []= $elem598; } $xfer += $input->readListEnd(); } else { @@ -17392,9 +17450,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter592) + foreach ($this->success as $iter599) { - $xfer += $iter592->write($output); + $xfer += $iter599->write($output); } } $output->writeListEnd(); @@ -17503,14 +17561,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size593 = 0; - $_etype596 = 0; - $xfer += $input->readListBegin($_etype596, $_size593); - for ($_i597 = 0; $_i597 < $_size593; ++$_i597) + $_size600 = 0; + $_etype603 = 0; + $xfer += $input->readListBegin($_etype603, $_size600); + for ($_i604 = 0; $_i604 < $_size600; ++$_i604) { - $elem598 = null; - $xfer += $input->readString($elem598); - $this->part_vals []= $elem598; + $elem605 = null; + $xfer += $input->readString($elem605); + $this->part_vals []= $elem605; } $xfer += $input->readListEnd(); } else { @@ -17555,9 +17613,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter599) + foreach ($this->part_vals as $iter606) { - $xfer += $output->writeString($iter599); + $xfer += $output->writeString($iter606); } } $output->writeListEnd(); @@ -17641,14 +17699,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size600 = 0; - $_etype603 = 0; - $xfer += $input->readListBegin($_etype603, $_size600); - for ($_i604 = 0; $_i604 < $_size600; ++$_i604) + $_size607 = 0; + $_etype610 = 0; + $xfer += $input->readListBegin($_etype610, $_size607); + for ($_i611 = 0; $_i611 < $_size607; ++$_i611) { - $elem605 = null; - $xfer += $input->readString($elem605); - $this->success []= $elem605; + $elem612 = null; + $xfer += $input->readString($elem612); + $this->success []= $elem612; } $xfer += $input->readListEnd(); } else { @@ -17692,9 +17750,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter606) + foreach ($this->success as $iter613) { - $xfer += $output->writeString($iter606); + $xfer += $output->writeString($iter613); } } $output->writeListEnd(); @@ -17916,15 +17974,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size607 = 0; - $_etype610 = 0; - $xfer += $input->readListBegin($_etype610, $_size607); - for ($_i611 = 0; $_i611 < $_size607; ++$_i611) + $_size614 = 0; + $_etype617 = 0; + $xfer += $input->readListBegin($_etype617, $_size614); + for ($_i618 = 0; $_i618 < $_size614; ++$_i618) { - $elem612 = null; - $elem612 = new \metastore\Partition(); - $xfer += $elem612->read($input); - $this->success []= $elem612; + $elem619 = null; + $elem619 = new \metastore\Partition(); + $xfer += $elem619->read($input); + $this->success []= $elem619; } $xfer += $input->readListEnd(); } else { @@ -17968,9 +18026,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter613) + foreach ($this->success as $iter620) { - $xfer += $iter613->write($output); + $xfer += $iter620->write($output); } } $output->writeListEnd(); @@ -18269,14 +18327,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size614 = 0; - $_etype617 = 0; - $xfer += $input->readListBegin($_etype617, $_size614); - for ($_i618 = 0; $_i618 < $_size614; ++$_i618) + $_size621 = 0; + $_etype624 = 0; + $xfer += $input->readListBegin($_etype624, $_size621); + for ($_i625 = 0; $_i625 < $_size621; ++$_i625) { - $elem619 = null; - $xfer += $input->readString($elem619); - $this->names []= $elem619; + $elem626 = null; + $xfer += $input->readString($elem626); + $this->names []= $elem626; } $xfer += $input->readListEnd(); } else { @@ -18314,9 +18372,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter620) + foreach ($this->names as $iter627) { - $xfer += $output->writeString($iter620); + $xfer += $output->writeString($iter627); } } $output->writeListEnd(); @@ -18396,15 +18454,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size621 = 0; - $_etype624 = 0; - $xfer += $input->readListBegin($_etype624, $_size621); - for ($_i625 = 0; $_i625 < $_size621; ++$_i625) + $_size628 = 0; + $_etype631 = 0; + $xfer += $input->readListBegin($_etype631, $_size628); + for ($_i632 = 0; $_i632 < $_size628; ++$_i632) { - $elem626 = null; - $elem626 = new \metastore\Partition(); - $xfer += $elem626->read($input); - $this->success []= $elem626; + $elem633 = null; + $elem633 = new \metastore\Partition(); + $xfer += $elem633->read($input); + $this->success []= $elem633; } $xfer += $input->readListEnd(); } else { @@ -18448,9 +18506,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter627) + foreach ($this->success as $iter634) { - $xfer += $iter627->write($output); + $xfer += $iter634->write($output); } } $output->writeListEnd(); @@ -18765,15 +18823,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size628 = 0; - $_etype631 = 0; - $xfer += $input->readListBegin($_etype631, $_size628); - for ($_i632 = 0; $_i632 < $_size628; ++$_i632) + $_size635 = 0; + $_etype638 = 0; + $xfer += $input->readListBegin($_etype638, $_size635); + for ($_i639 = 0; $_i639 < $_size635; ++$_i639) { - $elem633 = null; - $elem633 = new \metastore\Partition(); - $xfer += $elem633->read($input); - $this->new_parts []= $elem633; + $elem640 = null; + $elem640 = new \metastore\Partition(); + $xfer += $elem640->read($input); + $this->new_parts []= $elem640; } $xfer += $input->readListEnd(); } else { @@ -18811,9 +18869,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter634) + foreach ($this->new_parts as $iter641) { - $xfer += $iter634->write($output); + $xfer += $iter641->write($output); } } $output->writeListEnd(); @@ -19247,14 +19305,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size635 = 0; - $_etype638 = 0; - $xfer += $input->readListBegin($_etype638, $_size635); - for ($_i639 = 0; $_i639 < $_size635; ++$_i639) + $_size642 = 0; + $_etype645 = 0; + $xfer += $input->readListBegin($_etype645, $_size642); + for ($_i646 = 0; $_i646 < $_size642; ++$_i646) { - $elem640 = null; - $xfer += $input->readString($elem640); - $this->part_vals []= $elem640; + $elem647 = null; + $xfer += $input->readString($elem647); + $this->part_vals []= $elem647; } $xfer += $input->readListEnd(); } else { @@ -19300,9 +19358,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter641) + foreach ($this->part_vals as $iter648) { - $xfer += $output->writeString($iter641); + $xfer += $output->writeString($iter648); } } $output->writeListEnd(); @@ -19475,14 +19533,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size642 = 0; - $_etype645 = 0; - $xfer += $input->readListBegin($_etype645, $_size642); - for ($_i646 = 0; $_i646 < $_size642; ++$_i646) + $_size649 = 0; + $_etype652 = 0; + $xfer += $input->readListBegin($_etype652, $_size649); + for ($_i653 = 0; $_i653 < $_size649; ++$_i653) { - $elem647 = null; - $xfer += $input->readString($elem647); - $this->part_vals []= $elem647; + $elem654 = null; + $xfer += $input->readString($elem654); + $this->part_vals []= $elem654; } $xfer += $input->readListEnd(); } else { @@ -19517,9 +19575,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter648) + foreach ($this->part_vals as $iter655) { - $xfer += $output->writeString($iter648); + $xfer += $output->writeString($iter655); } } $output->writeListEnd(); @@ -19946,14 +20004,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size649 = 0; - $_etype652 = 0; - $xfer += $input->readListBegin($_etype652, $_size649); - for ($_i653 = 0; $_i653 < $_size649; ++$_i653) + $_size656 = 0; + $_etype659 = 0; + $xfer += $input->readListBegin($_etype659, $_size656); + for ($_i660 = 0; $_i660 < $_size656; ++$_i660) { - $elem654 = null; - $xfer += $input->readString($elem654); - $this->success []= $elem654; + $elem661 = null; + $xfer += $input->readString($elem661); + $this->success []= $elem661; } $xfer += $input->readListEnd(); } else { @@ -19989,9 +20047,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter655) + foreach ($this->success as $iter662) { - $xfer += $output->writeString($iter655); + $xfer += $output->writeString($iter662); } } $output->writeListEnd(); @@ -20142,17 +20200,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size656 = 0; - $_ktype657 = 0; - $_vtype658 = 0; - $xfer += $input->readMapBegin($_ktype657, $_vtype658, $_size656); - for ($_i660 = 0; $_i660 < $_size656; ++$_i660) + $_size663 = 0; + $_ktype664 = 0; + $_vtype665 = 0; + $xfer += $input->readMapBegin($_ktype664, $_vtype665, $_size663); + for ($_i667 = 0; $_i667 < $_size663; ++$_i667) { - $key661 = ''; - $val662 = ''; - $xfer += $input->readString($key661); - $xfer += $input->readString($val662); - $this->success[$key661] = $val662; + $key668 = ''; + $val669 = ''; + $xfer += $input->readString($key668); + $xfer += $input->readString($val669); + $this->success[$key668] = $val669; } $xfer += $input->readMapEnd(); } else { @@ -20188,10 +20246,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter663 => $viter664) + foreach ($this->success as $kiter670 => $viter671) { - $xfer += $output->writeString($kiter663); - $xfer += $output->writeString($viter664); + $xfer += $output->writeString($kiter670); + $xfer += $output->writeString($viter671); } } $output->writeMapEnd(); @@ -20299,17 +20357,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size665 = 0; - $_ktype666 = 0; - $_vtype667 = 0; - $xfer += $input->readMapBegin($_ktype666, $_vtype667, $_size665); - for ($_i669 = 0; $_i669 < $_size665; ++$_i669) + $_size672 = 0; + $_ktype673 = 0; + $_vtype674 = 0; + $xfer += $input->readMapBegin($_ktype673, $_vtype674, $_size672); + for ($_i676 = 0; $_i676 < $_size672; ++$_i676) { - $key670 = ''; - $val671 = ''; - $xfer += $input->readString($key670); - $xfer += $input->readString($val671); - $this->part_vals[$key670] = $val671; + $key677 = ''; + $val678 = ''; + $xfer += $input->readString($key677); + $xfer += $input->readString($val678); + $this->part_vals[$key677] = $val678; } $xfer += $input->readMapEnd(); } else { @@ -20354,10 +20412,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter672 => $viter673) + foreach ($this->part_vals as $kiter679 => $viter680) { - $xfer += $output->writeString($kiter672); - $xfer += $output->writeString($viter673); + $xfer += $output->writeString($kiter679); + $xfer += $output->writeString($viter680); } } $output->writeMapEnd(); @@ -20649,17 +20707,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size674 = 0; - $_ktype675 = 0; - $_vtype676 = 0; - $xfer += $input->readMapBegin($_ktype675, $_vtype676, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size681 = 0; + $_ktype682 = 0; + $_vtype683 = 0; + $xfer += $input->readMapBegin($_ktype682, $_vtype683, $_size681); + for ($_i685 = 0; $_i685 < $_size681; ++$_i685) { - $key679 = ''; - $val680 = ''; - $xfer += $input->readString($key679); - $xfer += $input->readString($val680); - $this->part_vals[$key679] = $val680; + $key686 = ''; + $val687 = ''; + $xfer += $input->readString($key686); + $xfer += $input->readString($val687); + $this->part_vals[$key686] = $val687; } $xfer += $input->readMapEnd(); } else { @@ -20704,10 +20762,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter681 => $viter682) + foreach ($this->part_vals as $kiter688 => $viter689) { - $xfer += $output->writeString($kiter681); - $xfer += $output->writeString($viter682); + $xfer += $output->writeString($kiter688); + $xfer += $output->writeString($viter689); } } $output->writeMapEnd(); @@ -22067,15 +22125,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size683 = 0; - $_etype686 = 0; - $xfer += $input->readListBegin($_etype686, $_size683); - for ($_i687 = 0; $_i687 < $_size683; ++$_i687) + $_size690 = 0; + $_etype693 = 0; + $xfer += $input->readListBegin($_etype693, $_size690); + for ($_i694 = 0; $_i694 < $_size690; ++$_i694) { - $elem688 = null; - $elem688 = new \metastore\Index(); - $xfer += $elem688->read($input); - $this->success []= $elem688; + $elem695 = null; + $elem695 = new \metastore\Index(); + $xfer += $elem695->read($input); + $this->success []= $elem695; } $xfer += $input->readListEnd(); } else { @@ -22119,9 +22177,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter689) + foreach ($this->success as $iter696) { - $xfer += $iter689->write($output); + $xfer += $iter696->write($output); } } $output->writeListEnd(); @@ -22313,14 +22371,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size690 = 0; - $_etype693 = 0; - $xfer += $input->readListBegin($_etype693, $_size690); - for ($_i694 = 0; $_i694 < $_size690; ++$_i694) + $_size697 = 0; + $_etype700 = 0; + $xfer += $input->readListBegin($_etype700, $_size697); + for ($_i701 = 0; $_i701 < $_size697; ++$_i701) { - $elem695 = null; - $xfer += $input->readString($elem695); - $this->success []= $elem695; + $elem702 = null; + $xfer += $input->readString($elem702); + $this->success []= $elem702; } $xfer += $input->readListEnd(); } else { @@ -22356,9 +22414,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter696) + foreach ($this->success as $iter703) { - $xfer += $output->writeString($iter696); + $xfer += $output->writeString($iter703); } } $output->writeListEnd(); @@ -23821,6 +23879,204 @@ class ThriftHiveMetastore_get_partitions_statistics_req_result { } +class ThriftHiveMetastore_get_aggr_stats_for_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\PartitionsStatsRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['request'])) { + $this->request = $vals['request']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_aggr_stats_for_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\PartitionsStatsRequest(); + $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_aggr_stats_for_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_aggr_stats_for_result { + static $_TSPEC; + + public $success = null; + public $o1 = null; + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::STRUCT, + 'class' => '\metastore\Aggr_Stats', + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + 2 => array( + 'var' => 'o2', + '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']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_aggr_stats_for_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\Aggr_Stats(); + $xfer += $this->success->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\NoSuchObjectException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\MetaException(); + $xfer += $this->o2->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_aggr_stats_for_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(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_delete_partition_column_statistics_args { static $_TSPEC; @@ -25151,14 +25407,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size697 = 0; - $_etype700 = 0; - $xfer += $input->readListBegin($_etype700, $_size697); - for ($_i701 = 0; $_i701 < $_size697; ++$_i701) + $_size704 = 0; + $_etype707 = 0; + $xfer += $input->readListBegin($_etype707, $_size704); + for ($_i708 = 0; $_i708 < $_size704; ++$_i708) { - $elem702 = null; - $xfer += $input->readString($elem702); - $this->success []= $elem702; + $elem709 = null; + $xfer += $input->readString($elem709); + $this->success []= $elem709; } $xfer += $input->readListEnd(); } else { @@ -25194,9 +25450,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter703) + foreach ($this->success as $iter710) { - $xfer += $output->writeString($iter703); + $xfer += $output->writeString($iter710); } } $output->writeListEnd(); @@ -25871,14 +26127,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size704 = 0; - $_etype707 = 0; - $xfer += $input->readListBegin($_etype707, $_size704); - for ($_i708 = 0; $_i708 < $_size704; ++$_i708) + $_size711 = 0; + $_etype714 = 0; + $xfer += $input->readListBegin($_etype714, $_size711); + for ($_i715 = 0; $_i715 < $_size711; ++$_i715) { - $elem709 = null; - $xfer += $input->readString($elem709); - $this->success []= $elem709; + $elem716 = null; + $xfer += $input->readString($elem716); + $this->success []= $elem716; } $xfer += $input->readListEnd(); } else { @@ -25914,9 +26170,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter710) + foreach ($this->success as $iter717) { - $xfer += $output->writeString($iter710); + $xfer += $output->writeString($iter717); } } $output->writeListEnd(); @@ -26556,15 +26812,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size711 = 0; - $_etype714 = 0; - $xfer += $input->readListBegin($_etype714, $_size711); - for ($_i715 = 0; $_i715 < $_size711; ++$_i715) + $_size718 = 0; + $_etype721 = 0; + $xfer += $input->readListBegin($_etype721, $_size718); + for ($_i722 = 0; $_i722 < $_size718; ++$_i722) { - $elem716 = null; - $elem716 = new \metastore\Role(); - $xfer += $elem716->read($input); - $this->success []= $elem716; + $elem723 = null; + $elem723 = new \metastore\Role(); + $xfer += $elem723->read($input); + $this->success []= $elem723; } $xfer += $input->readListEnd(); } else { @@ -26600,9 +26856,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter717) + foreach ($this->success as $iter724) { - $xfer += $iter717->write($output); + $xfer += $iter724->write($output); } } $output->writeListEnd(); @@ -27228,14 +27484,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size718 = 0; - $_etype721 = 0; - $xfer += $input->readListBegin($_etype721, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size725 = 0; + $_etype728 = 0; + $xfer += $input->readListBegin($_etype728, $_size725); + for ($_i729 = 0; $_i729 < $_size725; ++$_i729) { - $elem723 = null; - $xfer += $input->readString($elem723); - $this->group_names []= $elem723; + $elem730 = null; + $xfer += $input->readString($elem730); + $this->group_names []= $elem730; } $xfer += $input->readListEnd(); } else { @@ -27276,9 +27532,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter724) + foreach ($this->group_names as $iter731) { - $xfer += $output->writeString($iter724); + $xfer += $output->writeString($iter731); } } $output->writeListEnd(); @@ -27565,15 +27821,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size725 = 0; - $_etype728 = 0; - $xfer += $input->readListBegin($_etype728, $_size725); - for ($_i729 = 0; $_i729 < $_size725; ++$_i729) + $_size732 = 0; + $_etype735 = 0; + $xfer += $input->readListBegin($_etype735, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $elem730 = null; - $elem730 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem730->read($input); - $this->success []= $elem730; + $elem737 = null; + $elem737 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem737->read($input); + $this->success []= $elem737; } $xfer += $input->readListEnd(); } else { @@ -27609,9 +27865,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter731) + foreach ($this->success as $iter738) { - $xfer += $iter731->write($output); + $xfer += $iter738->write($output); } } $output->writeListEnd(); @@ -28210,14 +28466,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size732 = 0; - $_etype735 = 0; - $xfer += $input->readListBegin($_etype735, $_size732); - for ($_i736 = 0; $_i736 < $_size732; ++$_i736) + $_size739 = 0; + $_etype742 = 0; + $xfer += $input->readListBegin($_etype742, $_size739); + for ($_i743 = 0; $_i743 < $_size739; ++$_i743) { - $elem737 = null; - $xfer += $input->readString($elem737); - $this->group_names []= $elem737; + $elem744 = null; + $xfer += $input->readString($elem744); + $this->group_names []= $elem744; } $xfer += $input->readListEnd(); } else { @@ -28250,9 +28506,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter738) + foreach ($this->group_names as $iter745) { - $xfer += $output->writeString($iter738); + $xfer += $output->writeString($iter745); } } $output->writeListEnd(); @@ -28322,14 +28578,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size739 = 0; - $_etype742 = 0; - $xfer += $input->readListBegin($_etype742, $_size739); - for ($_i743 = 0; $_i743 < $_size739; ++$_i743) + $_size746 = 0; + $_etype749 = 0; + $xfer += $input->readListBegin($_etype749, $_size746); + for ($_i750 = 0; $_i750 < $_size746; ++$_i750) { - $elem744 = null; - $xfer += $input->readString($elem744); - $this->success []= $elem744; + $elem751 = null; + $xfer += $input->readString($elem751); + $this->success []= $elem751; } $xfer += $input->readListEnd(); } else { @@ -28365,9 +28621,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter745) + foreach ($this->success as $iter752) { - $xfer += $output->writeString($iter745); + $xfer += $output->writeString($iter752); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-php/metastore/Types.php metastore/src/gen/thrift/gen-php/metastore/Types.php index 4d4ab84..27974c4 100644 --- metastore/src/gen/thrift/gen-php/metastore/Types.php +++ metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -6035,6 +6035,126 @@ class ColumnStatistics { } +class Aggr_Stats { + static $_TSPEC; + + public $colStats = null; + public $partsFound = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'colStats', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\ColumnStatisticsObj', + ), + ), + 2 => array( + 'var' => 'partsFound', + 'type' => TType::I64, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['colStats'])) { + $this->colStats = $vals['colStats']; + } + if (isset($vals['partsFound'])) { + $this->partsFound = $vals['partsFound']; + } + } + } + + public function getName() { + return 'Aggr_Stats'; + } + + 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->colStats = array(); + $_size216 = 0; + $_etype219 = 0; + $xfer += $input->readListBegin($_etype219, $_size216); + for ($_i220 = 0; $_i220 < $_size216; ++$_i220) + { + $elem221 = null; + $elem221 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem221->read($input); + $this->colStats []= $elem221; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::I64) { + $xfer += $input->readI64($this->partsFound); + } 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('Aggr_Stats'); + if ($this->colStats !== null) { + if (!is_array($this->colStats)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('colStats', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->colStats)); + { + foreach ($this->colStats as $iter222) + { + $xfer += $iter222->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->partsFound !== null) { + $xfer += $output->writeFieldBegin('partsFound', TType::I64, 2); + $xfer += $output->writeI64($this->partsFound); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class Schema { static $_TSPEC; @@ -6099,15 +6219,15 @@ class Schema { case 1: if ($ftype == TType::LST) { $this->fieldSchemas = array(); - $_size216 = 0; - $_etype219 = 0; - $xfer += $input->readListBegin($_etype219, $_size216); - for ($_i220 = 0; $_i220 < $_size216; ++$_i220) + $_size223 = 0; + $_etype226 = 0; + $xfer += $input->readListBegin($_etype226, $_size223); + for ($_i227 = 0; $_i227 < $_size223; ++$_i227) { - $elem221 = null; - $elem221 = new \metastore\FieldSchema(); - $xfer += $elem221->read($input); - $this->fieldSchemas []= $elem221; + $elem228 = null; + $elem228 = new \metastore\FieldSchema(); + $xfer += $elem228->read($input); + $this->fieldSchemas []= $elem228; } $xfer += $input->readListEnd(); } else { @@ -6117,17 +6237,17 @@ class Schema { case 2: if ($ftype == TType::MAP) { $this->properties = array(); - $_size222 = 0; - $_ktype223 = 0; - $_vtype224 = 0; - $xfer += $input->readMapBegin($_ktype223, $_vtype224, $_size222); - for ($_i226 = 0; $_i226 < $_size222; ++$_i226) + $_size229 = 0; + $_ktype230 = 0; + $_vtype231 = 0; + $xfer += $input->readMapBegin($_ktype230, $_vtype231, $_size229); + for ($_i233 = 0; $_i233 < $_size229; ++$_i233) { - $key227 = ''; - $val228 = ''; - $xfer += $input->readString($key227); - $xfer += $input->readString($val228); - $this->properties[$key227] = $val228; + $key234 = ''; + $val235 = ''; + $xfer += $input->readString($key234); + $xfer += $input->readString($val235); + $this->properties[$key234] = $val235; } $xfer += $input->readMapEnd(); } else { @@ -6155,9 +6275,9 @@ class Schema { { $output->writeListBegin(TType::STRUCT, count($this->fieldSchemas)); { - foreach ($this->fieldSchemas as $iter229) + foreach ($this->fieldSchemas as $iter236) { - $xfer += $iter229->write($output); + $xfer += $iter236->write($output); } } $output->writeListEnd(); @@ -6172,10 +6292,10 @@ class Schema { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter230 => $viter231) + foreach ($this->properties as $kiter237 => $viter238) { - $xfer += $output->writeString($kiter230); - $xfer += $output->writeString($viter231); + $xfer += $output->writeString($kiter237); + $xfer += $output->writeString($viter238); } } $output->writeMapEnd(); @@ -6240,17 +6360,17 @@ class EnvironmentContext { case 1: if ($ftype == TType::MAP) { $this->properties = array(); - $_size232 = 0; - $_ktype233 = 0; - $_vtype234 = 0; - $xfer += $input->readMapBegin($_ktype233, $_vtype234, $_size232); - for ($_i236 = 0; $_i236 < $_size232; ++$_i236) + $_size239 = 0; + $_ktype240 = 0; + $_vtype241 = 0; + $xfer += $input->readMapBegin($_ktype240, $_vtype241, $_size239); + for ($_i243 = 0; $_i243 < $_size239; ++$_i243) { - $key237 = ''; - $val238 = ''; - $xfer += $input->readString($key237); - $xfer += $input->readString($val238); - $this->properties[$key237] = $val238; + $key244 = ''; + $val245 = ''; + $xfer += $input->readString($key244); + $xfer += $input->readString($val245); + $this->properties[$key244] = $val245; } $xfer += $input->readMapEnd(); } else { @@ -6278,10 +6398,10 @@ class EnvironmentContext { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->properties)); { - foreach ($this->properties as $kiter239 => $viter240) + foreach ($this->properties as $kiter246 => $viter247) { - $xfer += $output->writeString($kiter239); - $xfer += $output->writeString($viter240); + $xfer += $output->writeString($kiter246); + $xfer += $output->writeString($viter247); } } $output->writeMapEnd(); @@ -6351,15 +6471,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size241 = 0; - $_etype244 = 0; - $xfer += $input->readListBegin($_etype244, $_size241); - for ($_i245 = 0; $_i245 < $_size241; ++$_i245) + $_size248 = 0; + $_etype251 = 0; + $xfer += $input->readListBegin($_etype251, $_size248); + for ($_i252 = 0; $_i252 < $_size248; ++$_i252) { - $elem246 = null; - $elem246 = new \metastore\Partition(); - $xfer += $elem246->read($input); - $this->partitions []= $elem246; + $elem253 = null; + $elem253 = new \metastore\Partition(); + $xfer += $elem253->read($input); + $this->partitions []= $elem253; } $xfer += $input->readListEnd(); } else { @@ -6394,9 +6514,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter247) + foreach ($this->partitions as $iter254) { - $xfer += $iter247->write($output); + $xfer += $iter254->write($output); } } $output->writeListEnd(); @@ -6615,15 +6735,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size248 = 0; - $_etype251 = 0; - $xfer += $input->readListBegin($_etype251, $_size248); - for ($_i252 = 0; $_i252 < $_size248; ++$_i252) + $_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); - $this->tableStats []= $elem253; + $elem260 = null; + $elem260 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem260->read($input); + $this->tableStats []= $elem260; } $xfer += $input->readListEnd(); } else { @@ -6651,9 +6771,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter254) + foreach ($this->tableStats as $iter261) { - $xfer += $iter254->write($output); + $xfer += $iter261->write($output); } } $output->writeListEnd(); @@ -6723,28 +6843,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size255 = 0; - $_ktype256 = 0; - $_vtype257 = 0; - $xfer += $input->readMapBegin($_ktype256, $_vtype257, $_size255); - for ($_i259 = 0; $_i259 < $_size255; ++$_i259) + $_size262 = 0; + $_ktype263 = 0; + $_vtype264 = 0; + $xfer += $input->readMapBegin($_ktype263, $_vtype264, $_size262); + for ($_i266 = 0; $_i266 < $_size262; ++$_i266) { - $key260 = ''; - $val261 = array(); - $xfer += $input->readString($key260); - $val261 = array(); - $_size262 = 0; - $_etype265 = 0; - $xfer += $input->readListBegin($_etype265, $_size262); - for ($_i266 = 0; $_i266 < $_size262; ++$_i266) + $key267 = ''; + $val268 = array(); + $xfer += $input->readString($key267); + $val268 = array(); + $_size269 = 0; + $_etype272 = 0; + $xfer += $input->readListBegin($_etype272, $_size269); + for ($_i273 = 0; $_i273 < $_size269; ++$_i273) { - $elem267 = null; - $elem267 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem267->read($input); - $val261 []= $elem267; + $elem274 = null; + $elem274 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem274->read($input); + $val268 []= $elem274; } $xfer += $input->readListEnd(); - $this->partStats[$key260] = $val261; + $this->partStats[$key267] = $val268; } $xfer += $input->readMapEnd(); } else { @@ -6772,15 +6892,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter268 => $viter269) + foreach ($this->partStats as $kiter275 => $viter276) { - $xfer += $output->writeString($kiter268); + $xfer += $output->writeString($kiter275); { - $output->writeListBegin(TType::STRUCT, count($viter269)); + $output->writeListBegin(TType::STRUCT, count($viter276)); { - foreach ($viter269 as $iter270) + foreach ($viter276 as $iter277) { - $xfer += $iter270->write($output); + $xfer += $iter277->write($output); } } $output->writeListEnd(); @@ -6875,14 +6995,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size271 = 0; - $_etype274 = 0; - $xfer += $input->readListBegin($_etype274, $_size271); - for ($_i275 = 0; $_i275 < $_size271; ++$_i275) + $_size278 = 0; + $_etype281 = 0; + $xfer += $input->readListBegin($_etype281, $_size278); + for ($_i282 = 0; $_i282 < $_size278; ++$_i282) { - $elem276 = null; - $xfer += $input->readString($elem276); - $this->colNames []= $elem276; + $elem283 = null; + $xfer += $input->readString($elem283); + $this->colNames []= $elem283; } $xfer += $input->readListEnd(); } else { @@ -6920,9 +7040,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter277) + foreach ($this->colNames as $iter284) { - $xfer += $output->writeString($iter277); + $xfer += $output->writeString($iter284); } } $output->writeListEnd(); @@ -7025,14 +7145,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = 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; - $xfer += $input->readString($elem283); - $this->colNames []= $elem283; + $elem290 = null; + $xfer += $input->readString($elem290); + $this->colNames []= $elem290; } $xfer += $input->readListEnd(); } else { @@ -7042,14 +7162,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size284 = 0; - $_etype287 = 0; - $xfer += $input->readListBegin($_etype287, $_size284); - for ($_i288 = 0; $_i288 < $_size284; ++$_i288) + $_size291 = 0; + $_etype294 = 0; + $xfer += $input->readListBegin($_etype294, $_size291); + for ($_i295 = 0; $_i295 < $_size291; ++$_i295) { - $elem289 = null; - $xfer += $input->readString($elem289); - $this->partNames []= $elem289; + $elem296 = null; + $xfer += $input->readString($elem296); + $this->partNames []= $elem296; } $xfer += $input->readListEnd(); } else { @@ -7087,9 +7207,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter290) + foreach ($this->colNames as $iter297) { - $xfer += $output->writeString($iter290); + $xfer += $output->writeString($iter297); } } $output->writeListEnd(); @@ -7104,9 +7224,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter291) + foreach ($this->partNames as $iter298) { - $xfer += $output->writeString($iter291); + $xfer += $output->writeString($iter298); } } $output->writeListEnd(); @@ -7168,15 +7288,15 @@ class AddPartitionsResult { 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 { @@ -7204,9 +7324,9 @@ class AddPartitionsResult { { $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(); @@ -7314,15 +7434,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size299 = 0; - $_etype302 = 0; - $xfer += $input->readListBegin($_etype302, $_size299); - for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + $_size306 = 0; + $_etype309 = 0; + $xfer += $input->readListBegin($_etype309, $_size306); + for ($_i310 = 0; $_i310 < $_size306; ++$_i310) { - $elem304 = null; - $elem304 = new \metastore\Partition(); - $xfer += $elem304->read($input); - $this->parts []= $elem304; + $elem311 = null; + $elem311 = new \metastore\Partition(); + $xfer += $elem311->read($input); + $this->parts []= $elem311; } $xfer += $input->readListEnd(); } else { @@ -7374,9 +7494,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter305) + foreach ($this->parts as $iter312) { - $xfer += $iter305->write($output); + $xfer += $iter312->write($output); } } $output->writeListEnd(); @@ -7448,15 +7568,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size306 = 0; - $_etype309 = 0; - $xfer += $input->readListBegin($_etype309, $_size306); - for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) { - $elem311 = null; - $elem311 = new \metastore\Partition(); - $xfer += $elem311->read($input); - $this->partitions []= $elem311; + $elem318 = null; + $elem318 = new \metastore\Partition(); + $xfer += $elem318->read($input); + $this->partitions []= $elem318; } $xfer += $input->readListEnd(); } else { @@ -7484,9 +7604,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter312) + foreach ($this->partitions as $iter319) { - $xfer += $iter312->write($output); + $xfer += $iter319->write($output); } } $output->writeListEnd(); @@ -7652,14 +7772,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = 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; - $xfer += $input->readString($elem318); - $this->names []= $elem318; + $elem325 = null; + $xfer += $input->readString($elem325); + $this->names []= $elem325; } $xfer += $input->readListEnd(); } else { @@ -7669,15 +7789,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size319 = 0; - $_etype322 = 0; - $xfer += $input->readListBegin($_etype322, $_size319); - for ($_i323 = 0; $_i323 < $_size319; ++$_i323) + $_size326 = 0; + $_etype329 = 0; + $xfer += $input->readListBegin($_etype329, $_size326); + for ($_i330 = 0; $_i330 < $_size326; ++$_i330) { - $elem324 = null; - $elem324 = new \metastore\DropPartitionsExpr(); - $xfer += $elem324->read($input); - $this->exprs []= $elem324; + $elem331 = null; + $elem331 = new \metastore\DropPartitionsExpr(); + $xfer += $elem331->read($input); + $this->exprs []= $elem331; } $xfer += $input->readListEnd(); } else { @@ -7705,9 +7825,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter325) + foreach ($this->names as $iter332) { - $xfer += $output->writeString($iter325); + $xfer += $output->writeString($iter332); } } $output->writeListEnd(); @@ -7722,9 +7842,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter326) + foreach ($this->exprs as $iter333) { - $xfer += $iter326->write($output); + $xfer += $iter333->write($output); } } $output->writeListEnd(); @@ -8205,15 +8325,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size327 = 0; - $_etype330 = 0; - $xfer += $input->readListBegin($_etype330, $_size327); - for ($_i331 = 0; $_i331 < $_size327; ++$_i331) + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readListBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem332 = null; - $elem332 = new \metastore\ResourceUri(); - $xfer += $elem332->read($input); - $this->resourceUris []= $elem332; + $elem339 = null; + $elem339 = new \metastore\ResourceUri(); + $xfer += $elem339->read($input); + $this->resourceUris []= $elem339; } $xfer += $input->readListEnd(); } else { @@ -8276,9 +8396,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter333) + foreach ($this->resourceUris as $iter340) { - $xfer += $iter333->write($output); + $xfer += $iter340->write($output); } } $output->writeListEnd(); @@ -8487,15 +8607,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size334 = 0; - $_etype337 = 0; - $xfer += $input->readListBegin($_etype337, $_size334); - for ($_i338 = 0; $_i338 < $_size334; ++$_i338) + $_size341 = 0; + $_etype344 = 0; + $xfer += $input->readListBegin($_etype344, $_size341); + for ($_i345 = 0; $_i345 < $_size341; ++$_i345) { - $elem339 = null; - $elem339 = new \metastore\TxnInfo(); - $xfer += $elem339->read($input); - $this->open_txns []= $elem339; + $elem346 = null; + $elem346 = new \metastore\TxnInfo(); + $xfer += $elem346->read($input); + $this->open_txns []= $elem346; } $xfer += $input->readListEnd(); } else { @@ -8528,9 +8648,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter340) + foreach ($this->open_txns as $iter347) { - $xfer += $iter340->write($output); + $xfer += $iter347->write($output); } } $output->writeListEnd(); @@ -8606,17 +8726,17 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::SET) { $this->open_txns = array(); - $_size341 = 0; - $_etype344 = 0; - $xfer += $input->readSetBegin($_etype344, $_size341); - for ($_i345 = 0; $_i345 < $_size341; ++$_i345) + $_size348 = 0; + $_etype351 = 0; + $xfer += $input->readSetBegin($_etype351, $_size348); + for ($_i352 = 0; $_i352 < $_size348; ++$_i352) { - $elem346 = null; - $xfer += $input->readI64($elem346); - if (is_scalar($elem346)) { - $this->open_txns[$elem346] = true; + $elem353 = null; + $xfer += $input->readI64($elem353); + if (is_scalar($elem353)) { + $this->open_txns[$elem353] = true; } else { - $this->open_txns []= $elem346; + $this->open_txns []= $elem353; } } $xfer += $input->readSetEnd(); @@ -8650,12 +8770,12 @@ class GetOpenTxnsResponse { { $output->writeSetBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter347 => $iter348) + foreach ($this->open_txns as $iter354 => $iter355) { - if (is_scalar($iter348)) { - $xfer += $output->writeI64($iter347); + if (is_scalar($iter355)) { + $xfer += $output->writeI64($iter354); } else { - $xfer += $output->writeI64($iter348); + $xfer += $output->writeI64($iter355); } } } @@ -8829,14 +8949,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = 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; - $xfer += $input->readI64($elem354); - $this->txn_ids []= $elem354; + $elem361 = null; + $xfer += $input->readI64($elem361); + $this->txn_ids []= $elem361; } $xfer += $input->readListEnd(); } else { @@ -8864,9 +8984,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter355) + foreach ($this->txn_ids as $iter362) { - $xfer += $output->writeI64($iter355); + $xfer += $output->writeI64($iter362); } } $output->writeListEnd(); @@ -9248,15 +9368,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = 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\LockComponent(); - $xfer += $elem361->read($input); - $this->component []= $elem361; + $elem368 = null; + $elem368 = new \metastore\LockComponent(); + $xfer += $elem368->read($input); + $this->component []= $elem368; } $xfer += $input->readListEnd(); } else { @@ -9305,9 +9425,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter362) + foreach ($this->component as $iter369) { - $xfer += $iter362->write($output); + $xfer += $iter369->write($output); } } $output->writeListEnd(); @@ -9942,15 +10062,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size363 = 0; - $_etype366 = 0; - $xfer += $input->readListBegin($_etype366, $_size363); - for ($_i367 = 0; $_i367 < $_size363; ++$_i367) + $_size370 = 0; + $_etype373 = 0; + $xfer += $input->readListBegin($_etype373, $_size370); + for ($_i374 = 0; $_i374 < $_size370; ++$_i374) { - $elem368 = null; - $elem368 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem368->read($input); - $this->locks []= $elem368; + $elem375 = null; + $elem375 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem375->read($input); + $this->locks []= $elem375; } $xfer += $input->readListEnd(); } else { @@ -9978,9 +10098,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter369) + foreach ($this->locks as $iter376) { - $xfer += $iter369->write($output); + $xfer += $iter376->write($output); } } $output->writeListEnd(); @@ -10237,17 +10357,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size370 = 0; - $_etype373 = 0; - $xfer += $input->readSetBegin($_etype373, $_size370); - for ($_i374 = 0; $_i374 < $_size370; ++$_i374) + $_size377 = 0; + $_etype380 = 0; + $xfer += $input->readSetBegin($_etype380, $_size377); + for ($_i381 = 0; $_i381 < $_size377; ++$_i381) { - $elem375 = null; - $xfer += $input->readI64($elem375); - if (is_scalar($elem375)) { - $this->aborted[$elem375] = true; + $elem382 = null; + $xfer += $input->readI64($elem382); + if (is_scalar($elem382)) { + $this->aborted[$elem382] = true; } else { - $this->aborted []= $elem375; + $this->aborted []= $elem382; } } $xfer += $input->readSetEnd(); @@ -10258,17 +10378,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size376 = 0; - $_etype379 = 0; - $xfer += $input->readSetBegin($_etype379, $_size376); - for ($_i380 = 0; $_i380 < $_size376; ++$_i380) + $_size383 = 0; + $_etype386 = 0; + $xfer += $input->readSetBegin($_etype386, $_size383); + for ($_i387 = 0; $_i387 < $_size383; ++$_i387) { - $elem381 = null; - $xfer += $input->readI64($elem381); - if (is_scalar($elem381)) { - $this->nosuch[$elem381] = true; + $elem388 = null; + $xfer += $input->readI64($elem388); + if (is_scalar($elem388)) { + $this->nosuch[$elem388] = true; } else { - $this->nosuch []= $elem381; + $this->nosuch []= $elem388; } } $xfer += $input->readSetEnd(); @@ -10297,12 +10417,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter382 => $iter383) + foreach ($this->aborted as $iter389 => $iter390) { - if (is_scalar($iter383)) { - $xfer += $output->writeI64($iter382); + if (is_scalar($iter390)) { + $xfer += $output->writeI64($iter389); } else { - $xfer += $output->writeI64($iter383); + $xfer += $output->writeI64($iter390); } } } @@ -10318,12 +10438,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter384 => $iter385) + foreach ($this->nosuch as $iter391 => $iter392) { - if (is_scalar($iter385)) { - $xfer += $output->writeI64($iter384); + if (is_scalar($iter392)) { + $xfer += $output->writeI64($iter391); } else { - $xfer += $output->writeI64($iter385); + $xfer += $output->writeI64($iter392); } } } @@ -10800,15 +10920,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = 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\ShowCompactResponseElement(); - $xfer += $elem391->read($input); - $this->compacts []= $elem391; + $elem398 = null; + $elem398 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem398->read($input); + $this->compacts []= $elem398; } $xfer += $input->readListEnd(); } else { @@ -10836,9 +10956,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter392) + foreach ($this->compacts as $iter399) { - $xfer += $iter392->write($output); + $xfer += $iter399->write($output); } } $output->writeListEnd(); diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote old mode 100644 new mode 100755 index 6fef2cf..f88f296 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -94,6 +94,7 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print ' ColumnStatistics get_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' print ' TableStatsResult get_table_statistics_req(TableStatsRequest request)' print ' PartitionsStatsResult get_partitions_statistics_req(PartitionsStatsRequest request)' + print ' Aggr_Stats get_aggr_stats_for(PartitionsStatsRequest request)' print ' bool delete_partition_column_statistics(string db_name, string tbl_name, string part_name, string col_name)' print ' bool delete_table_column_statistics(string db_name, string tbl_name, string col_name)' print ' void create_function(Function func)' @@ -609,6 +610,12 @@ elif cmd == 'get_partitions_statistics_req': sys.exit(1) pp.pprint(client.get_partitions_statistics_req(eval(args[0]),)) +elif cmd == 'get_aggr_stats_for': + if len(args) != 1: + print 'get_aggr_stats_for requires 1 args' + sys.exit(1) + pp.pprint(client.get_aggr_stats_for(eval(args[0]),)) + elif cmd == 'delete_partition_column_statistics': if len(args) != 4: print 'delete_partition_column_statistics requires 4 args' diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 2a2e443..d87f1eb 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -633,6 +633,13 @@ def get_partitions_statistics_req(self, request): """ pass + def get_aggr_stats_for(self, request): + """ + Parameters: + - request + """ + pass + def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name): """ Parameters: @@ -3588,6 +3595,40 @@ def recv_get_partitions_statistics_req(self, ): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_partitions_statistics_req failed: unknown result"); + def get_aggr_stats_for(self, request): + """ + Parameters: + - request + """ + self.send_get_aggr_stats_for(request) + return self.recv_get_aggr_stats_for() + + def send_get_aggr_stats_for(self, request): + self._oprot.writeMessageBegin('get_aggr_stats_for', TMessageType.CALL, self._seqid) + args = get_aggr_stats_for_args() + args.request = request + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_aggr_stats_for(self, ): + (fname, mtype, rseqid) = self._iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(self._iprot) + self._iprot.readMessageEnd() + raise x + result = get_aggr_stats_for_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 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_aggr_stats_for failed: unknown result"); + def delete_partition_column_statistics(self, db_name, tbl_name, part_name, col_name): """ Parameters: @@ -4918,6 +4959,7 @@ def __init__(self, handler): self._processMap["get_partition_column_statistics"] = Processor.process_get_partition_column_statistics self._processMap["get_table_statistics_req"] = Processor.process_get_table_statistics_req self._processMap["get_partitions_statistics_req"] = Processor.process_get_partitions_statistics_req + self._processMap["get_aggr_stats_for"] = Processor.process_get_aggr_stats_for self._processMap["delete_partition_column_statistics"] = Processor.process_delete_partition_column_statistics self._processMap["delete_table_column_statistics"] = Processor.process_delete_table_column_statistics self._processMap["create_function"] = Processor.process_create_function @@ -6162,6 +6204,22 @@ def process_get_partitions_statistics_req(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_aggr_stats_for(self, seqid, iprot, oprot): + args = get_aggr_stats_for_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_aggr_stats_for_result() + try: + result.success = self._handler.get_aggr_stats_for(args.request) + except NoSuchObjectException as o1: + result.o1 = o1 + except MetaException as o2: + result.o2 = o2 + oprot.writeMessageBegin("get_aggr_stats_for", TMessageType.REPLY, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_delete_partition_column_statistics(self, seqid, iprot, oprot): args = delete_partition_column_statistics_args() args.read(iprot) @@ -7267,10 +7325,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype393, _size390) = iprot.readListBegin() - for _i394 in xrange(_size390): - _elem395 = iprot.readString(); - self.success.append(_elem395) + (_etype400, _size397) = iprot.readListBegin() + for _i401 in xrange(_size397): + _elem402 = iprot.readString(); + self.success.append(_elem402) iprot.readListEnd() else: iprot.skip(ftype) @@ -7293,8 +7351,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 iter396 in self.success: - oprot.writeString(iter396) + for iter403 in self.success: + oprot.writeString(iter403) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -7389,10 +7447,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype400, _size397) = iprot.readListBegin() - for _i401 in xrange(_size397): - _elem402 = iprot.readString(); - self.success.append(_elem402) + (_etype407, _size404) = iprot.readListBegin() + for _i408 in xrange(_size404): + _elem409 = iprot.readString(); + self.success.append(_elem409) iprot.readListEnd() else: iprot.skip(ftype) @@ -7415,8 +7473,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 iter403 in self.success: - oprot.writeString(iter403) + for iter410 in self.success: + oprot.writeString(iter410) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8126,12 +8184,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype405, _vtype406, _size404 ) = iprot.readMapBegin() - for _i408 in xrange(_size404): - _key409 = iprot.readString(); - _val410 = Type() - _val410.read(iprot) - self.success[_key409] = _val410 + (_ktype412, _vtype413, _size411 ) = iprot.readMapBegin() + for _i415 in xrange(_size411): + _key416 = iprot.readString(); + _val417 = Type() + _val417.read(iprot) + self.success[_key416] = _val417 iprot.readMapEnd() else: iprot.skip(ftype) @@ -8154,9 +8212,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 kiter411,viter412 in self.success.items(): - oprot.writeString(kiter411) - viter412.write(oprot) + for kiter418,viter419 in self.success.items(): + oprot.writeString(kiter418) + viter419.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -8287,11 +8345,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = FieldSchema() - _elem418.read(iprot) - self.success.append(_elem418) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = FieldSchema() + _elem425.read(iprot) + self.success.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -8326,8 +8384,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 iter419 in self.success: - iter419.write(oprot) + for iter426 in self.success: + iter426.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -8466,11 +8524,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = FieldSchema() - _elem425.read(iprot) - self.success.append(_elem425) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = FieldSchema() + _elem432.read(iprot) + self.success.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -8505,8 +8563,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: @@ -9303,10 +9361,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) @@ -9329,8 +9387,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: @@ -9443,10 +9501,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype437, _size434) = iprot.readListBegin() - for _i438 in xrange(_size434): - _elem439 = iprot.readString(); - self.success.append(_elem439) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = iprot.readString(); + self.success.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -9469,8 +9527,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRING, len(self.success)) - for iter440 in self.success: - oprot.writeString(iter440) + for iter447 in self.success: + oprot.writeString(iter447) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9687,10 +9745,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype444, _size441) = iprot.readListBegin() - for _i445 in xrange(_size441): - _elem446 = iprot.readString(); - self.tbl_names.append(_elem446) + (_etype451, _size448) = iprot.readListBegin() + for _i452 in xrange(_size448): + _elem453 = iprot.readString(); + self.tbl_names.append(_elem453) iprot.readListEnd() else: iprot.skip(ftype) @@ -9711,8 +9769,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 iter447 in self.tbl_names: - oprot.writeString(iter447) + for iter454 in self.tbl_names: + oprot.writeString(iter454) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9767,11 +9825,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype451, _size448) = iprot.readListBegin() - for _i452 in xrange(_size448): - _elem453 = Table() - _elem453.read(iprot) - self.success.append(_elem453) + (_etype458, _size455) = iprot.readListBegin() + for _i459 in xrange(_size455): + _elem460 = Table() + _elem460.read(iprot) + self.success.append(_elem460) iprot.readListEnd() else: iprot.skip(ftype) @@ -9806,8 +9864,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 iter454 in self.success: - iter454.write(oprot) + for iter461 in self.success: + iter461.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -9958,10 +10016,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype458, _size455) = iprot.readListBegin() - for _i459 in xrange(_size455): - _elem460 = iprot.readString(); - self.success.append(_elem460) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = iprot.readString(); + self.success.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -9996,8 +10054,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 iter461 in self.success: - oprot.writeString(iter461) + for iter468 in self.success: + oprot.writeString(iter468) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -10720,11 +10778,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype465, _size462) = iprot.readListBegin() - for _i466 in xrange(_size462): - _elem467 = Partition() - _elem467.read(iprot) - self.new_parts.append(_elem467) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = Partition() + _elem474.read(iprot) + self.new_parts.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -10741,8 +10799,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 iter468 in self.new_parts: - iter468.write(oprot) + for iter475 in self.new_parts: + iter475.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10903,10 +10961,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) @@ -10931,8 +10989,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() @@ -11257,10 +11315,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype479, _size476) = iprot.readListBegin() - for _i480 in xrange(_size476): - _elem481 = iprot.readString(); - self.part_vals.append(_elem481) + (_etype486, _size483) = iprot.readListBegin() + for _i487 in xrange(_size483): + _elem488 = iprot.readString(); + self.part_vals.append(_elem488) iprot.readListEnd() else: iprot.skip(ftype) @@ -11291,8 +11349,8 @@ def write(self, oprot): if self.part_vals is not None: oprot.writeFieldBegin('part_vals', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.part_vals)) - for iter482 in self.part_vals: - oprot.writeString(iter482) + for iter489 in self.part_vals: + oprot.writeString(iter489) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -11840,10 +11898,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype486, _size483) = iprot.readListBegin() - for _i487 in xrange(_size483): - _elem488 = iprot.readString(); - self.part_vals.append(_elem488) + (_etype493, _size490) = iprot.readListBegin() + for _i494 in xrange(_size490): + _elem495 = iprot.readString(); + self.part_vals.append(_elem495) iprot.readListEnd() else: iprot.skip(ftype) @@ -11873,8 +11931,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 iter489 in self.part_vals: - oprot.writeString(iter489) + for iter496 in self.part_vals: + oprot.writeString(iter496) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -12032,10 +12090,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype493, _size490) = iprot.readListBegin() - for _i494 in xrange(_size490): - _elem495 = iprot.readString(); - self.part_vals.append(_elem495) + (_etype500, _size497) = iprot.readListBegin() + for _i501 in xrange(_size497): + _elem502 = iprot.readString(); + self.part_vals.append(_elem502) iprot.readListEnd() else: iprot.skip(ftype) @@ -12071,8 +12129,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 iter496 in self.part_vals: - oprot.writeString(iter496) + for iter503 in self.part_vals: + oprot.writeString(iter503) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -12750,10 +12808,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype500, _size497) = iprot.readListBegin() - for _i501 in xrange(_size497): - _elem502 = iprot.readString(); - self.part_vals.append(_elem502) + (_etype507, _size504) = iprot.readListBegin() + for _i508 in xrange(_size504): + _elem509 = iprot.readString(); + self.part_vals.append(_elem509) iprot.readListEnd() else: iprot.skip(ftype) @@ -12778,8 +12836,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 iter503 in self.part_vals: - oprot.writeString(iter503) + for iter510 in self.part_vals: + oprot.writeString(iter510) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -12924,11 +12982,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype505, _vtype506, _size504 ) = iprot.readMapBegin() - for _i508 in xrange(_size504): - _key509 = iprot.readString(); - _val510 = iprot.readString(); - self.partitionSpecs[_key509] = _val510 + (_ktype512, _vtype513, _size511 ) = iprot.readMapBegin() + for _i515 in xrange(_size511): + _key516 = iprot.readString(); + _val517 = iprot.readString(); + self.partitionSpecs[_key516] = _val517 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12965,9 +13023,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 kiter511,viter512 in self.partitionSpecs.items(): - oprot.writeString(kiter511) - oprot.writeString(viter512) + for kiter518,viter519 in self.partitionSpecs.items(): + oprot.writeString(kiter518) + oprot.writeString(viter519) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -13164,10 +13222,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype516, _size513) = iprot.readListBegin() - for _i517 in xrange(_size513): - _elem518 = iprot.readString(); - self.part_vals.append(_elem518) + (_etype523, _size520) = iprot.readListBegin() + for _i524 in xrange(_size520): + _elem525 = iprot.readString(); + self.part_vals.append(_elem525) iprot.readListEnd() else: iprot.skip(ftype) @@ -13179,10 +13237,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype522, _size519) = iprot.readListBegin() - for _i523 in xrange(_size519): - _elem524 = iprot.readString(); - self.group_names.append(_elem524) + (_etype529, _size526) = iprot.readListBegin() + for _i530 in xrange(_size526): + _elem531 = iprot.readString(); + self.group_names.append(_elem531) iprot.readListEnd() else: iprot.skip(ftype) @@ -13207,8 +13265,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 iter525 in self.part_vals: - oprot.writeString(iter525) + for iter532 in self.part_vals: + oprot.writeString(iter532) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -13218,8 +13276,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 iter526 in self.group_names: - oprot.writeString(iter526) + for iter533 in self.group_names: + oprot.writeString(iter533) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13611,11 +13669,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype530, _size527) = iprot.readListBegin() - for _i531 in xrange(_size527): - _elem532 = Partition() - _elem532.read(iprot) - self.success.append(_elem532) + (_etype537, _size534) = iprot.readListBegin() + for _i538 in xrange(_size534): + _elem539 = Partition() + _elem539.read(iprot) + self.success.append(_elem539) iprot.readListEnd() else: iprot.skip(ftype) @@ -13644,8 +13702,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 iter533 in self.success: - iter533.write(oprot) + for iter540 in self.success: + iter540.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13732,10 +13790,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype537, _size534) = iprot.readListBegin() - for _i538 in xrange(_size534): - _elem539 = iprot.readString(); - self.group_names.append(_elem539) + (_etype544, _size541) = iprot.readListBegin() + for _i545 in xrange(_size541): + _elem546 = iprot.readString(); + self.group_names.append(_elem546) iprot.readListEnd() else: iprot.skip(ftype) @@ -13768,8 +13826,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 iter540 in self.group_names: - oprot.writeString(iter540) + for iter547 in self.group_names: + oprot.writeString(iter547) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13821,11 +13879,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype544, _size541) = iprot.readListBegin() - for _i545 in xrange(_size541): - _elem546 = Partition() - _elem546.read(iprot) - self.success.append(_elem546) + (_etype551, _size548) = iprot.readListBegin() + for _i552 in xrange(_size548): + _elem553 = Partition() + _elem553.read(iprot) + self.success.append(_elem553) iprot.readListEnd() else: iprot.skip(ftype) @@ -13854,8 +13912,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter547 in self.success: - iter547.write(oprot) + for iter554 in self.success: + iter554.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13996,10 +14054,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype551, _size548) = iprot.readListBegin() - for _i552 in xrange(_size548): - _elem553 = iprot.readString(); - self.success.append(_elem553) + (_etype558, _size555) = iprot.readListBegin() + for _i559 in xrange(_size555): + _elem560 = iprot.readString(); + self.success.append(_elem560) iprot.readListEnd() else: iprot.skip(ftype) @@ -14022,8 +14080,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 iter554 in self.success: - oprot.writeString(iter554) + for iter561 in self.success: + oprot.writeString(iter561) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -14093,10 +14151,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype558, _size555) = iprot.readListBegin() - for _i559 in xrange(_size555): - _elem560 = iprot.readString(); - self.part_vals.append(_elem560) + (_etype565, _size562) = iprot.readListBegin() + for _i566 in xrange(_size562): + _elem567 = iprot.readString(); + self.part_vals.append(_elem567) iprot.readListEnd() else: iprot.skip(ftype) @@ -14126,8 +14184,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 iter561 in self.part_vals: - oprot.writeString(iter561) + for iter568 in self.part_vals: + oprot.writeString(iter568) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14183,11 +14241,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype565, _size562) = iprot.readListBegin() - for _i566 in xrange(_size562): - _elem567 = Partition() - _elem567.read(iprot) - self.success.append(_elem567) + (_etype572, _size569) = iprot.readListBegin() + for _i573 in xrange(_size569): + _elem574 = Partition() + _elem574.read(iprot) + self.success.append(_elem574) iprot.readListEnd() else: iprot.skip(ftype) @@ -14216,8 +14274,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter568 in self.success: - iter568.write(oprot) + for iter575 in self.success: + iter575.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14297,10 +14355,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype572, _size569) = iprot.readListBegin() - for _i573 in xrange(_size569): - _elem574 = iprot.readString(); - self.part_vals.append(_elem574) + (_etype579, _size576) = iprot.readListBegin() + for _i580 in xrange(_size576): + _elem581 = iprot.readString(); + self.part_vals.append(_elem581) iprot.readListEnd() else: iprot.skip(ftype) @@ -14317,10 +14375,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype578, _size575) = iprot.readListBegin() - for _i579 in xrange(_size575): - _elem580 = iprot.readString(); - self.group_names.append(_elem580) + (_etype585, _size582) = iprot.readListBegin() + for _i586 in xrange(_size582): + _elem587 = iprot.readString(); + self.group_names.append(_elem587) iprot.readListEnd() else: iprot.skip(ftype) @@ -14345,8 +14403,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 iter581 in self.part_vals: - oprot.writeString(iter581) + for iter588 in self.part_vals: + oprot.writeString(iter588) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14360,8 +14418,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 iter582 in self.group_names: - oprot.writeString(iter582) + for iter589 in self.group_names: + oprot.writeString(iter589) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14413,11 +14471,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype586, _size583) = iprot.readListBegin() - for _i587 in xrange(_size583): - _elem588 = Partition() - _elem588.read(iprot) - self.success.append(_elem588) + (_etype593, _size590) = iprot.readListBegin() + for _i594 in xrange(_size590): + _elem595 = Partition() + _elem595.read(iprot) + self.success.append(_elem595) iprot.readListEnd() else: iprot.skip(ftype) @@ -14446,8 +14504,8 @@ def write(self, oprot): if self.success is not None: oprot.writeFieldBegin('success', TType.LIST, 0) oprot.writeListBegin(TType.STRUCT, len(self.success)) - for iter589 in self.success: - iter589.write(oprot) + for iter596 in self.success: + iter596.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14521,10 +14579,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype593, _size590) = iprot.readListBegin() - for _i594 in xrange(_size590): - _elem595 = iprot.readString(); - self.part_vals.append(_elem595) + (_etype600, _size597) = iprot.readListBegin() + for _i601 in xrange(_size597): + _elem602 = iprot.readString(); + self.part_vals.append(_elem602) iprot.readListEnd() else: iprot.skip(ftype) @@ -14554,8 +14612,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 iter596 in self.part_vals: - oprot.writeString(iter596) + for iter603 in self.part_vals: + oprot.writeString(iter603) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -14611,10 +14669,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype600, _size597) = iprot.readListBegin() - for _i601 in xrange(_size597): - _elem602 = iprot.readString(); - self.success.append(_elem602) + (_etype607, _size604) = iprot.readListBegin() + for _i608 in xrange(_size604): + _elem609 = iprot.readString(); + self.success.append(_elem609) iprot.readListEnd() else: iprot.skip(ftype) @@ -14643,8 +14701,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 iter603 in self.success: - oprot.writeString(iter603) + for iter610 in self.success: + oprot.writeString(iter610) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14800,11 +14858,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype607, _size604) = iprot.readListBegin() - for _i608 in xrange(_size604): - _elem609 = Partition() - _elem609.read(iprot) - self.success.append(_elem609) + (_etype614, _size611) = iprot.readListBegin() + for _i615 in xrange(_size611): + _elem616 = Partition() + _elem616.read(iprot) + self.success.append(_elem616) iprot.readListEnd() else: iprot.skip(ftype) @@ -14833,8 +14891,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 iter610 in self.success: - iter610.write(oprot) + for iter617 in self.success: + iter617.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15052,10 +15110,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype614, _size611) = iprot.readListBegin() - for _i615 in xrange(_size611): - _elem616 = iprot.readString(); - self.names.append(_elem616) + (_etype621, _size618) = iprot.readListBegin() + for _i622 in xrange(_size618): + _elem623 = iprot.readString(); + self.names.append(_elem623) iprot.readListEnd() else: iprot.skip(ftype) @@ -15080,8 +15138,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 iter617 in self.names: - oprot.writeString(iter617) + for iter624 in self.names: + oprot.writeString(iter624) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15133,11 +15191,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype621, _size618) = iprot.readListBegin() - for _i622 in xrange(_size618): - _elem623 = Partition() - _elem623.read(iprot) - self.success.append(_elem623) + (_etype628, _size625) = iprot.readListBegin() + for _i629 in xrange(_size625): + _elem630 = Partition() + _elem630.read(iprot) + self.success.append(_elem630) iprot.readListEnd() else: iprot.skip(ftype) @@ -15166,8 +15224,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 iter624 in self.success: - iter624.write(oprot) + for iter631 in self.success: + iter631.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15397,11 +15455,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype628, _size625) = iprot.readListBegin() - for _i629 in xrange(_size625): - _elem630 = Partition() - _elem630.read(iprot) - self.new_parts.append(_elem630) + (_etype635, _size632) = iprot.readListBegin() + for _i636 in xrange(_size632): + _elem637 = Partition() + _elem637.read(iprot) + self.new_parts.append(_elem637) iprot.readListEnd() else: iprot.skip(ftype) @@ -15426,8 +15484,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 iter631 in self.new_parts: - iter631.write(oprot) + for iter638 in self.new_parts: + iter638.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -15739,10 +15797,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype635, _size632) = iprot.readListBegin() - for _i636 in xrange(_size632): - _elem637 = iprot.readString(); - self.part_vals.append(_elem637) + (_etype642, _size639) = iprot.readListBegin() + for _i643 in xrange(_size639): + _elem644 = iprot.readString(); + self.part_vals.append(_elem644) iprot.readListEnd() else: iprot.skip(ftype) @@ -15773,8 +15831,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 iter638 in self.part_vals: - oprot.writeString(iter638) + for iter645 in self.part_vals: + oprot.writeString(iter645) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -15902,10 +15960,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype642, _size639) = iprot.readListBegin() - for _i643 in xrange(_size639): - _elem644 = iprot.readString(); - self.part_vals.append(_elem644) + (_etype649, _size646) = iprot.readListBegin() + for _i650 in xrange(_size646): + _elem651 = iprot.readString(); + self.part_vals.append(_elem651) iprot.readListEnd() else: iprot.skip(ftype) @@ -15927,8 +15985,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 iter645 in self.part_vals: - oprot.writeString(iter645) + for iter652 in self.part_vals: + oprot.writeString(iter652) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -16257,10 +16315,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype649, _size646) = iprot.readListBegin() - for _i650 in xrange(_size646): - _elem651 = iprot.readString(); - self.success.append(_elem651) + (_etype656, _size653) = iprot.readListBegin() + for _i657 in xrange(_size653): + _elem658 = iprot.readString(); + self.success.append(_elem658) iprot.readListEnd() else: iprot.skip(ftype) @@ -16283,8 +16341,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 iter652 in self.success: - oprot.writeString(iter652) + for iter659 in self.success: + oprot.writeString(iter659) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16397,11 +16455,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype654, _vtype655, _size653 ) = iprot.readMapBegin() - for _i657 in xrange(_size653): - _key658 = iprot.readString(); - _val659 = iprot.readString(); - self.success[_key658] = _val659 + (_ktype661, _vtype662, _size660 ) = iprot.readMapBegin() + for _i664 in xrange(_size660): + _key665 = iprot.readString(); + _val666 = iprot.readString(); + self.success[_key665] = _val666 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16424,9 +16482,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 kiter660,viter661 in self.success.items(): - oprot.writeString(kiter660) - oprot.writeString(viter661) + for kiter667,viter668 in self.success.items(): + oprot.writeString(kiter667) + oprot.writeString(viter668) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16496,11 +16554,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype663, _vtype664, _size662 ) = iprot.readMapBegin() - for _i666 in xrange(_size662): - _key667 = iprot.readString(); - _val668 = iprot.readString(); - self.part_vals[_key667] = _val668 + (_ktype670, _vtype671, _size669 ) = iprot.readMapBegin() + for _i673 in xrange(_size669): + _key674 = iprot.readString(); + _val675 = iprot.readString(); + self.part_vals[_key674] = _val675 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16530,9 +16588,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 kiter669,viter670 in self.part_vals.items(): - oprot.writeString(kiter669) - oprot.writeString(viter670) + for kiter676,viter677 in self.part_vals.items(): + oprot.writeString(kiter676) + oprot.writeString(viter677) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -16728,11 +16786,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype672, _vtype673, _size671 ) = iprot.readMapBegin() - for _i675 in xrange(_size671): - _key676 = iprot.readString(); - _val677 = iprot.readString(); - self.part_vals[_key676] = _val677 + (_ktype679, _vtype680, _size678 ) = iprot.readMapBegin() + for _i682 in xrange(_size678): + _key683 = iprot.readString(); + _val684 = iprot.readString(); + self.part_vals[_key683] = _val684 iprot.readMapEnd() else: iprot.skip(ftype) @@ -16762,9 +16820,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 kiter678,viter679 in self.part_vals.items(): - oprot.writeString(kiter678) - oprot.writeString(viter679) + for kiter685,viter686 in self.part_vals.items(): + oprot.writeString(kiter685) + oprot.writeString(viter686) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -17736,11 +17794,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype683, _size680) = iprot.readListBegin() - for _i684 in xrange(_size680): - _elem685 = Index() - _elem685.read(iprot) - self.success.append(_elem685) + (_etype690, _size687) = iprot.readListBegin() + for _i691 in xrange(_size687): + _elem692 = Index() + _elem692.read(iprot) + self.success.append(_elem692) iprot.readListEnd() else: iprot.skip(ftype) @@ -17769,8 +17827,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: @@ -17911,10 +17969,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype690, _size687) = iprot.readListBegin() - for _i691 in xrange(_size687): - _elem692 = iprot.readString(); - self.success.append(_elem692) + (_etype697, _size694) = iprot.readListBegin() + for _i698 in xrange(_size694): + _elem699 = iprot.readString(); + self.success.append(_elem699) iprot.readListEnd() else: iprot.skip(ftype) @@ -17937,8 +17995,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 iter693 in self.success: - oprot.writeString(iter693) + for iter700 in self.success: + oprot.writeString(iter700) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -19005,6 +19063,153 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_aggr_stats_for_args: + """ + Attributes: + - request + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'request', (PartitionsStatsRequest, PartitionsStatsRequest.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 = PartitionsStatsRequest() + 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_aggr_stats_for_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_aggr_stats_for_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.STRUCT, 'success', (Aggr_Stats, Aggr_Stats.thrift_spec), None, ), # 0 + (1, TType.STRUCT, 'o1', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (MetaException, MetaException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + 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 = Aggr_Stats() + self.success.read(iprot) + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = NoSuchObjectException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = MetaException() + self.o2.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_aggr_stats_for_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() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.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 delete_partition_column_statistics_args: """ Attributes: @@ -19973,10 +20178,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype697, _size694) = iprot.readListBegin() - for _i698 in xrange(_size694): - _elem699 = iprot.readString(); - self.success.append(_elem699) + (_etype704, _size701) = iprot.readListBegin() + for _i705 in xrange(_size701): + _elem706 = iprot.readString(); + self.success.append(_elem706) iprot.readListEnd() else: iprot.skip(ftype) @@ -19999,8 +20204,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 iter700 in self.success: - oprot.writeString(iter700) + for iter707 in self.success: + oprot.writeString(iter707) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20518,10 +20723,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype704, _size701) = iprot.readListBegin() - for _i705 in xrange(_size701): - _elem706 = iprot.readString(); - self.success.append(_elem706) + (_etype711, _size708) = iprot.readListBegin() + for _i712 in xrange(_size708): + _elem713 = iprot.readString(); + self.success.append(_elem713) iprot.readListEnd() else: iprot.skip(ftype) @@ -20544,8 +20749,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 iter707 in self.success: - oprot.writeString(iter707) + for iter714 in self.success: + oprot.writeString(iter714) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21018,11 +21223,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype711, _size708) = iprot.readListBegin() - for _i712 in xrange(_size708): - _elem713 = Role() - _elem713.read(iprot) - self.success.append(_elem713) + (_etype718, _size715) = iprot.readListBegin() + for _i719 in xrange(_size715): + _elem720 = Role() + _elem720.read(iprot) + self.success.append(_elem720) iprot.readListEnd() else: iprot.skip(ftype) @@ -21045,8 +21250,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 iter714 in self.success: - iter714.write(oprot) + for iter721 in self.success: + iter721.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21516,10 +21721,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype718, _size715) = iprot.readListBegin() - for _i719 in xrange(_size715): - _elem720 = iprot.readString(); - self.group_names.append(_elem720) + (_etype725, _size722) = iprot.readListBegin() + for _i726 in xrange(_size722): + _elem727 = iprot.readString(); + self.group_names.append(_elem727) iprot.readListEnd() else: iprot.skip(ftype) @@ -21544,8 +21749,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 iter721 in self.group_names: - oprot.writeString(iter721) + for iter728 in self.group_names: + oprot.writeString(iter728) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21752,11 +21957,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype725, _size722) = iprot.readListBegin() - for _i726 in xrange(_size722): - _elem727 = HiveObjectPrivilege() - _elem727.read(iprot) - self.success.append(_elem727) + (_etype732, _size729) = iprot.readListBegin() + for _i733 in xrange(_size729): + _elem734 = HiveObjectPrivilege() + _elem734.read(iprot) + self.success.append(_elem734) iprot.readListEnd() else: iprot.skip(ftype) @@ -21779,8 +21984,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 iter728 in self.success: - iter728.write(oprot) + for iter735 in self.success: + iter735.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22239,10 +22444,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype732, _size729) = iprot.readListBegin() - for _i733 in xrange(_size729): - _elem734 = iprot.readString(); - self.group_names.append(_elem734) + (_etype739, _size736) = iprot.readListBegin() + for _i740 in xrange(_size736): + _elem741 = iprot.readString(); + self.group_names.append(_elem741) iprot.readListEnd() else: iprot.skip(ftype) @@ -22263,8 +22468,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 iter735 in self.group_names: - oprot.writeString(iter735) + for iter742 in self.group_names: + oprot.writeString(iter742) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22313,10 +22518,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype739, _size736) = iprot.readListBegin() - for _i740 in xrange(_size736): - _elem741 = iprot.readString(); - self.success.append(_elem741) + (_etype746, _size743) = iprot.readListBegin() + for _i747 in xrange(_size743): + _elem748 = iprot.readString(); + self.success.append(_elem748) iprot.readListEnd() else: iprot.skip(ftype) @@ -22339,8 +22544,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 iter742 in self.success: - oprot.writeString(iter742) + for iter749 in self.success: + oprot.writeString(iter749) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: diff --git metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index c71b7b7..2793d8d 100644 --- metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -4148,6 +4148,91 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class Aggr_Stats: + """ + Attributes: + - colStats + - partsFound + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'colStats', (TType.STRUCT,(ColumnStatisticsObj, ColumnStatisticsObj.thrift_spec)), None, ), # 1 + (2, TType.I64, 'partsFound', None, None, ), # 2 + ) + + def __init__(self, colStats=None, partsFound=None,): + self.colStats = colStats + self.partsFound = partsFound + + 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.colStats = [] + (_etype219, _size216) = iprot.readListBegin() + for _i220 in xrange(_size216): + _elem221 = ColumnStatisticsObj() + _elem221.read(iprot) + self.colStats.append(_elem221) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.I64: + self.partsFound = iprot.readI64(); + 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('Aggr_Stats') + if self.colStats is not None: + oprot.writeFieldBegin('colStats', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.colStats)) + for iter222 in self.colStats: + iter222.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.partsFound is not None: + oprot.writeFieldBegin('partsFound', TType.I64, 2) + oprot.writeI64(self.partsFound) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.colStats is None: + raise TProtocol.TProtocolException(message='Required field colStats is unset!') + if self.partsFound is None: + raise TProtocol.TProtocolException(message='Required field partsFound is unset!') + return + + + def __repr__(self): + L = ['%s=%r' % (key, value) + for key, value in self.__dict__.iteritems()] + return '%s(%s)' % (self.__class__.__name__, ', '.join(L)) + + def __eq__(self, other): + return isinstance(other, self.__class__) and self.__dict__ == other.__dict__ + + def __ne__(self, other): + return not (self == other) + class Schema: """ Attributes: @@ -4177,22 +4262,22 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fieldSchemas = [] - (_etype219, _size216) = iprot.readListBegin() - for _i220 in xrange(_size216): - _elem221 = FieldSchema() - _elem221.read(iprot) - self.fieldSchemas.append(_elem221) + (_etype226, _size223) = iprot.readListBegin() + for _i227 in xrange(_size223): + _elem228 = FieldSchema() + _elem228.read(iprot) + self.fieldSchemas.append(_elem228) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.MAP: self.properties = {} - (_ktype223, _vtype224, _size222 ) = iprot.readMapBegin() - for _i226 in xrange(_size222): - _key227 = iprot.readString(); - _val228 = iprot.readString(); - self.properties[_key227] = _val228 + (_ktype230, _vtype231, _size229 ) = iprot.readMapBegin() + for _i233 in xrange(_size229): + _key234 = iprot.readString(); + _val235 = iprot.readString(); + self.properties[_key234] = _val235 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4209,16 +4294,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 iter229 in self.fieldSchemas: - iter229.write(oprot) + for iter236 in self.fieldSchemas: + iter236.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 kiter230,viter231 in self.properties.items(): - oprot.writeString(kiter230) - oprot.writeString(viter231) + for kiter237,viter238 in self.properties.items(): + oprot.writeString(kiter237) + oprot.writeString(viter238) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4265,11 +4350,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.properties = {} - (_ktype233, _vtype234, _size232 ) = iprot.readMapBegin() - for _i236 in xrange(_size232): - _key237 = iprot.readString(); - _val238 = iprot.readString(); - self.properties[_key237] = _val238 + (_ktype240, _vtype241, _size239 ) = iprot.readMapBegin() + for _i243 in xrange(_size239): + _key244 = iprot.readString(); + _val245 = iprot.readString(); + self.properties[_key244] = _val245 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4286,9 +4371,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 kiter239,viter240 in self.properties.items(): - oprot.writeString(kiter239) - oprot.writeString(viter240) + for kiter246,viter247 in self.properties.items(): + oprot.writeString(kiter246) + oprot.writeString(viter247) oprot.writeMapEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4338,11 +4423,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype244, _size241) = iprot.readListBegin() - for _i245 in xrange(_size241): - _elem246 = Partition() - _elem246.read(iprot) - self.partitions.append(_elem246) + (_etype251, _size248) = iprot.readListBegin() + for _i252 in xrange(_size248): + _elem253 = Partition() + _elem253.read(iprot) + self.partitions.append(_elem253) iprot.readListEnd() else: iprot.skip(ftype) @@ -4364,8 +4449,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 iter247 in self.partitions: - iter247.write(oprot) + for iter254 in self.partitions: + iter254.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -4534,11 +4619,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype251, _size248) = iprot.readListBegin() - for _i252 in xrange(_size248): - _elem253 = ColumnStatisticsObj() - _elem253.read(iprot) - self.tableStats.append(_elem253) + (_etype258, _size255) = iprot.readListBegin() + for _i259 in xrange(_size255): + _elem260 = ColumnStatisticsObj() + _elem260.read(iprot) + self.tableStats.append(_elem260) iprot.readListEnd() else: iprot.skip(ftype) @@ -4555,8 +4640,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 iter254 in self.tableStats: - iter254.write(oprot) + for iter261 in self.tableStats: + iter261.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4605,17 +4690,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype256, _vtype257, _size255 ) = iprot.readMapBegin() - for _i259 in xrange(_size255): - _key260 = iprot.readString(); - _val261 = [] - (_etype265, _size262) = iprot.readListBegin() - for _i266 in xrange(_size262): - _elem267 = ColumnStatisticsObj() - _elem267.read(iprot) - _val261.append(_elem267) + (_ktype263, _vtype264, _size262 ) = iprot.readMapBegin() + for _i266 in xrange(_size262): + _key267 = iprot.readString(); + _val268 = [] + (_etype272, _size269) = iprot.readListBegin() + for _i273 in xrange(_size269): + _elem274 = ColumnStatisticsObj() + _elem274.read(iprot) + _val268.append(_elem274) iprot.readListEnd() - self.partStats[_key260] = _val261 + self.partStats[_key267] = _val268 iprot.readMapEnd() else: iprot.skip(ftype) @@ -4632,11 +4717,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 kiter268,viter269 in self.partStats.items(): - oprot.writeString(kiter268) - oprot.writeListBegin(TType.STRUCT, len(viter269)) - for iter270 in viter269: - iter270.write(oprot) + for kiter275,viter276 in self.partStats.items(): + oprot.writeString(kiter275) + oprot.writeListBegin(TType.STRUCT, len(viter276)) + for iter277 in viter276: + iter277.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -4702,10 +4787,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype274, _size271) = iprot.readListBegin() - for _i275 in xrange(_size271): - _elem276 = iprot.readString(); - self.colNames.append(_elem276) + (_etype281, _size278) = iprot.readListBegin() + for _i282 in xrange(_size278): + _elem283 = iprot.readString(); + self.colNames.append(_elem283) iprot.readListEnd() else: iprot.skip(ftype) @@ -4730,8 +4815,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 iter277 in self.colNames: - oprot.writeString(iter277) + for iter284 in self.colNames: + oprot.writeString(iter284) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4803,20 +4888,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype281, _size278) = iprot.readListBegin() - for _i282 in xrange(_size278): - _elem283 = iprot.readString(); - self.colNames.append(_elem283) + (_etype288, _size285) = iprot.readListBegin() + for _i289 in xrange(_size285): + _elem290 = iprot.readString(); + self.colNames.append(_elem290) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype287, _size284) = iprot.readListBegin() - for _i288 in xrange(_size284): - _elem289 = iprot.readString(); - self.partNames.append(_elem289) + (_etype294, _size291) = iprot.readListBegin() + for _i295 in xrange(_size291): + _elem296 = iprot.readString(); + self.partNames.append(_elem296) iprot.readListEnd() else: iprot.skip(ftype) @@ -4841,15 +4926,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 iter290 in self.colNames: - oprot.writeString(iter290) + for iter297 in self.colNames: + oprot.writeString(iter297) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter291 in self.partNames: - oprot.writeString(iter291) + for iter298 in self.partNames: + oprot.writeString(iter298) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -4904,11 +4989,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) @@ -4925,8 +5010,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() @@ -4995,11 +5080,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = Partition() - _elem304.read(iprot) - self.parts.append(_elem304) + (_etype309, _size306) = iprot.readListBegin() + for _i310 in xrange(_size306): + _elem311 = Partition() + _elem311.read(iprot) + self.parts.append(_elem311) iprot.readListEnd() else: iprot.skip(ftype) @@ -5034,8 +5119,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 iter305 in self.parts: - iter305.write(oprot) + for iter312 in self.parts: + iter312.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -5098,11 +5183,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype309, _size306) = iprot.readListBegin() - for _i310 in xrange(_size306): - _elem311 = Partition() - _elem311.read(iprot) - self.partitions.append(_elem311) + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = Partition() + _elem318.read(iprot) + self.partitions.append(_elem318) iprot.readListEnd() else: iprot.skip(ftype) @@ -5119,8 +5204,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 iter312 in self.partitions: - iter312.write(oprot) + for iter319 in self.partitions: + iter319.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5244,21 +5329,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype316, _size313) = iprot.readListBegin() - for _i317 in xrange(_size313): - _elem318 = iprot.readString(); - self.names.append(_elem318) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = iprot.readString(); + self.names.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype322, _size319) = iprot.readListBegin() - for _i323 in xrange(_size319): - _elem324 = DropPartitionsExpr() - _elem324.read(iprot) - self.exprs.append(_elem324) + (_etype329, _size326) = iprot.readListBegin() + for _i330 in xrange(_size326): + _elem331 = DropPartitionsExpr() + _elem331.read(iprot) + self.exprs.append(_elem331) iprot.readListEnd() else: iprot.skip(ftype) @@ -5275,15 +5360,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 iter325 in self.names: - oprot.writeString(iter325) + for iter332 in self.names: + oprot.writeString(iter332) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter326 in self.exprs: - iter326.write(oprot) + for iter333 in self.exprs: + iter333.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5610,11 +5695,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype330, _size327) = iprot.readListBegin() - for _i331 in xrange(_size327): - _elem332 = ResourceUri() - _elem332.read(iprot) - self.resourceUris.append(_elem332) + (_etype337, _size334) = iprot.readListBegin() + for _i338 in xrange(_size334): + _elem339 = ResourceUri() + _elem339.read(iprot) + self.resourceUris.append(_elem339) iprot.readListEnd() else: iprot.skip(ftype) @@ -5659,8 +5744,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 iter333 in self.resourceUris: - iter333.write(oprot) + for iter340 in self.resourceUris: + iter340.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5819,11 +5904,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype337, _size334) = iprot.readListBegin() - for _i338 in xrange(_size334): - _elem339 = TxnInfo() - _elem339.read(iprot) - self.open_txns.append(_elem339) + (_etype344, _size341) = iprot.readListBegin() + for _i345 in xrange(_size341): + _elem346 = TxnInfo() + _elem346.read(iprot) + self.open_txns.append(_elem346) iprot.readListEnd() else: iprot.skip(ftype) @@ -5844,8 +5929,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 iter340 in self.open_txns: - iter340.write(oprot) + for iter347 in self.open_txns: + iter347.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -5904,10 +5989,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.SET: self.open_txns = set() - (_etype344, _size341) = iprot.readSetBegin() - for _i345 in xrange(_size341): - _elem346 = iprot.readI64(); - self.open_txns.add(_elem346) + (_etype351, _size348) = iprot.readSetBegin() + for _i352 in xrange(_size348): + _elem353 = iprot.readI64(); + self.open_txns.add(_elem353) iprot.readSetEnd() else: iprot.skip(ftype) @@ -5928,8 +6013,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 iter347 in self.open_txns: - oprot.writeI64(iter347) + for iter354 in self.open_txns: + oprot.writeI64(iter354) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6070,10 +6155,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype351, _size348) = iprot.readListBegin() - for _i352 in xrange(_size348): - _elem353 = iprot.readI64(); - self.txn_ids.append(_elem353) + (_etype358, _size355) = iprot.readListBegin() + for _i359 in xrange(_size355): + _elem360 = iprot.readI64(); + self.txn_ids.append(_elem360) iprot.readListEnd() else: iprot.skip(ftype) @@ -6090,8 +6175,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 iter354 in self.txn_ids: - oprot.writeI64(iter354) + for iter361 in self.txn_ids: + oprot.writeI64(iter361) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6387,11 +6472,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype358, _size355) = iprot.readListBegin() - for _i359 in xrange(_size355): - _elem360 = LockComponent() - _elem360.read(iprot) - self.component.append(_elem360) + (_etype365, _size362) = iprot.readListBegin() + for _i366 in xrange(_size362): + _elem367 = LockComponent() + _elem367.read(iprot) + self.component.append(_elem367) iprot.readListEnd() else: iprot.skip(ftype) @@ -6423,8 +6508,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 iter361 in self.component: - iter361.write(oprot) + for iter368 in self.component: + iter368.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -6925,11 +7010,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype365, _size362) = iprot.readListBegin() - for _i366 in xrange(_size362): - _elem367 = ShowLocksResponseElement() - _elem367.read(iprot) - self.locks.append(_elem367) + (_etype372, _size369) = iprot.readListBegin() + for _i373 in xrange(_size369): + _elem374 = ShowLocksResponseElement() + _elem374.read(iprot) + self.locks.append(_elem374) iprot.readListEnd() else: iprot.skip(ftype) @@ -6946,8 +7031,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 iter368 in self.locks: - iter368.write(oprot) + for iter375 in self.locks: + iter375.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7145,20 +7230,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype372, _size369) = iprot.readSetBegin() - for _i373 in xrange(_size369): - _elem374 = iprot.readI64(); - self.aborted.add(_elem374) + (_etype379, _size376) = iprot.readSetBegin() + for _i380 in xrange(_size376): + _elem381 = iprot.readI64(); + self.aborted.add(_elem381) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype378, _size375) = iprot.readSetBegin() - for _i379 in xrange(_size375): - _elem380 = iprot.readI64(); - self.nosuch.add(_elem380) + (_etype385, _size382) = iprot.readSetBegin() + for _i386 in xrange(_size382): + _elem387 = iprot.readI64(); + self.nosuch.add(_elem387) iprot.readSetEnd() else: iprot.skip(ftype) @@ -7175,15 +7260,15 @@ def write(self, oprot): if self.aborted is not None: oprot.writeFieldBegin('aborted', TType.SET, 1) oprot.writeSetBegin(TType.I64, len(self.aborted)) - for iter381 in self.aborted: - oprot.writeI64(iter381) + for iter388 in self.aborted: + oprot.writeI64(iter388) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter382 in self.nosuch: - oprot.writeI64(iter382) + for iter389 in self.nosuch: + oprot.writeI64(iter389) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7550,11 +7635,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype386, _size383) = iprot.readListBegin() - for _i387 in xrange(_size383): - _elem388 = ShowCompactResponseElement() - _elem388.read(iprot) - self.compacts.append(_elem388) + (_etype393, _size390) = iprot.readListBegin() + for _i394 in xrange(_size390): + _elem395 = ShowCompactResponseElement() + _elem395.read(iprot) + self.compacts.append(_elem395) iprot.readListEnd() else: iprot.skip(ftype) @@ -7571,8 +7656,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 iter389 in self.compacts: - iter389.write(oprot) + for iter396 in self.compacts: + iter396.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index e21f662..3d444af 100644 --- metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1008,6 +1008,26 @@ class ColumnStatistics ::Thrift::Struct.generate_accessors self end +class Aggr_Stats + include ::Thrift::Struct, ::Thrift::Struct_Union + COLSTATS = 1 + PARTSFOUND = 2 + + FIELDS = { + COLSTATS => {:type => ::Thrift::Types::LIST, :name => 'colStats', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ColumnStatisticsObj}}, + PARTSFOUND => {:type => ::Thrift::Types::I64, :name => 'partsFound'} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field colStats is unset!') unless @colStats + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field partsFound is unset!') unless @partsFound + end + + ::Thrift::Struct.generate_accessors self +end + class Schema include ::Thrift::Struct, ::Thrift::Struct_Union FIELDSCHEMAS = 1 diff --git metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 58b9c0e..b1e4f3c 100644 --- metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1231,6 +1231,23 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_partitions_statistics_req failed: unknown result') end + def get_aggr_stats_for(request) + send_get_aggr_stats_for(request) + return recv_get_aggr_stats_for() + end + + def send_get_aggr_stats_for(request) + send_message('get_aggr_stats_for', Get_aggr_stats_for_args, :request => request) + end + + def recv_get_aggr_stats_for() + result = receive_message(Get_aggr_stats_for_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_aggr_stats_for failed: unknown result') + end + def delete_partition_column_statistics(db_name, tbl_name, part_name, col_name) send_delete_partition_column_statistics(db_name, tbl_name, part_name, col_name) return recv_delete_partition_column_statistics() @@ -2824,6 +2841,19 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_partitions_statistics_req', seqid) end + def process_get_aggr_stats_for(seqid, iprot, oprot) + args = read_args(iprot, Get_aggr_stats_for_args) + result = Get_aggr_stats_for_result.new() + begin + result.success = @handler.get_aggr_stats_for(args.request) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_aggr_stats_for', seqid) + end + def process_delete_partition_column_statistics(seqid, iprot, oprot) args = read_args(iprot, Delete_partition_column_statistics_args) result = Delete_partition_column_statistics_result.new() @@ -6077,6 +6107,42 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_aggr_stats_for_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQUEST = 1 + + FIELDS = { + REQUEST => {:type => ::Thrift::Types::STRUCT, :name => 'request', :class => ::PartitionsStatsRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_aggr_stats_for_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::STRUCT, :name => 'success', :class => ::Aggr_Stats}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::NoSuchObjectException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::MetaException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Delete_partition_column_statistics_args include ::Thrift::Struct, ::Thrift::Struct_Union DB_NAME = 1 diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index b74868b..99f9913 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -64,6 +64,7 @@ import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsResult; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.CheckLockRequest; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; @@ -4078,6 +4079,7 @@ private boolean revoke_role(final String roleName, final String userName, return ret; } + @Override public GrantRevokeRoleResponse grant_revoke_role(GrantRevokeRoleRequest request) throws MetaException, org.apache.thrift.TException { GrantRevokeRoleResponse response = new GrantRevokeRoleResponse(); @@ -4975,6 +4977,25 @@ public GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( return rolePrinGrantList; } + @Override + public Aggr_Stats get_aggr_stats_for(PartitionsStatsRequest request) + throws NoSuchObjectException, MetaException, TException { + startFunction("get_aggr_stats_for: db=" + request.getDbName() + " table=" + request.getTblName()); + Aggr_Stats aggrStats = null; + try { + //TODO: We are setting partitionCnt for which we were able to retrieve stats same as + // incoming number from request. This is not correct, but currently no users of this api + // rely on this. Only, current user StatsAnnotation don't care for it. StatsOptimizer + // will care for it, so before StatsOptimizer begin using it, we need to fix this. + aggrStats = new Aggr_Stats(getMS().get_aggr_stats_for(request.getDbName(), + request.getTblName(), request.getPartNames(), request.getColNames()), request.getPartNames().size()); + return aggrStats; + } finally { + endFunction("get_partitions_statistics_req: ", aggrStats == null, null, request.getTblName()); + } + + } + } public static IHMSHandler newHMSHandler(String name, HiveConf hiveConf) throws MetaException { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 4c9a597..839aec1 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -52,6 +52,7 @@ import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsResult; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.CheckLockRequest; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; @@ -1820,4 +1821,11 @@ protected void drop_table_with_environment_context(String dbname, String name, NoSuchObjectException, UnsupportedOperationException { client.drop_table_with_environment_context(dbname, name, deleteData, envContext); } + + @Override + public Aggr_Stats getAggrStatsFor(String dbName, String tblName, + List colNames, List partNames) throws NoSuchObjectException, MetaException, TException { + PartitionsStatsRequest req = new PartitionsStatsRequest(dbName, tblName, colNames, partNames); + return client.get_aggr_stats_for(req); + } } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index d6e849f..5dd3ef5 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -38,6 +38,7 @@ import java.util.Map; import org.apache.hadoop.hive.common.ObjectPair; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -1290,4 +1291,7 @@ GetPrincipalsInRoleResponse get_principals_in_role(GetPrincipalsInRoleRequest ge */ GetRoleGrantsForPrincipalResponse get_role_grants_for_principal( GetRoleGrantsForPrincipalRequest getRolePrincReq) throws MetaException, TException; + + public Aggr_Stats getAggrStatsFor(String dbName, String tblName, + List colNames, List partName) throws NoSuchObjectException, MetaException, TException; } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java index a23d122..7b3a5d1 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java @@ -427,6 +427,7 @@ private boolean isViewTable(String dbName, String tblName) throws MetaException + " where \"PART_ID\" in (" + partIds + ") and \"PARAM_KEY\" is not null" + " order by \"PART_ID\" asc"; loopJoinOrderedResult(partitions, queryText, 0, new ApplyFunc() { + @Override public void apply(Partition t, Object[] fields) { t.putToParameters((String)fields[1], (String)fields[2]); }}); @@ -435,6 +436,7 @@ public void apply(Partition t, Object[] fields) { + " where \"PART_ID\" in (" + partIds + ") and \"INTEGER_IDX\" >= 0" + " order by \"PART_ID\" asc, \"INTEGER_IDX\" asc"; loopJoinOrderedResult(partitions, queryText, 0, new ApplyFunc() { + @Override public void apply(Partition t, Object[] fields) { t.addToValues((String)fields[1]); }}); @@ -452,6 +454,7 @@ public void apply(Partition t, Object[] fields) { + " where \"SD_ID\" in (" + sdIds + ") and \"PARAM_KEY\" is not null" + " order by \"SD_ID\" asc"; loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { + @Override public void apply(StorageDescriptor t, Object[] fields) { t.putToParameters((String)fields[1], (String)fields[2]); }}); @@ -460,6 +463,7 @@ public void apply(StorageDescriptor t, Object[] fields) { + " where \"SD_ID\" in (" + sdIds + ") and \"INTEGER_IDX\" >= 0" + " order by \"SD_ID\" asc, \"INTEGER_IDX\" asc"; loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { + @Override public void apply(StorageDescriptor t, Object[] fields) { if (fields[2] == null) return; t.addToSortCols(new Order((String)fields[1], extractSqlInt(fields[2]))); @@ -469,6 +473,7 @@ public void apply(StorageDescriptor t, Object[] fields) { + " where \"SD_ID\" in (" + sdIds + ") and \"INTEGER_IDX\" >= 0" + " order by \"SD_ID\" asc, \"INTEGER_IDX\" asc"; loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { + @Override public void apply(StorageDescriptor t, Object[] fields) { t.addToBucketCols((String)fields[1]); }}); @@ -479,6 +484,7 @@ public void apply(StorageDescriptor t, Object[] fields) { + " order by \"SD_ID\" asc, \"INTEGER_IDX\" asc"; boolean hasSkewedColumns = loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { + @Override public void apply(StorageDescriptor t, Object[] fields) { if (!t.isSetSkewedInfo()) t.setSkewedInfo(new SkewedInfo()); t.getSkewedInfo().addToSkewedColNames((String)fields[1]); @@ -502,6 +508,7 @@ public void apply(StorageDescriptor t, Object[] fields) { loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { private Long currentListId; private List currentList; + @Override public void apply(StorageDescriptor t, Object[] fields) throws MetaException { if (!t.isSetSkewedInfo()) t.setSkewedInfo(new SkewedInfo()); // Note that this is not a typical list accumulator - there's no call to finalize @@ -539,6 +546,7 @@ public void apply(StorageDescriptor t, Object[] fields) throws MetaException { loopJoinOrderedResult(sds, queryText, 0, new ApplyFunc() { private Long currentListId; private List currentList; + @Override public void apply(StorageDescriptor t, Object[] fields) throws MetaException { if (!t.isSetSkewedInfo()) { SkewedInfo skewedInfo = new SkewedInfo(); @@ -572,6 +580,7 @@ public void apply(StorageDescriptor t, Object[] fields) throws MetaException { + " from \"COLUMNS_V2\" where \"CD_ID\" in (" + colIds + ") and \"INTEGER_IDX\" >= 0" + " order by \"CD_ID\" asc, \"INTEGER_IDX\" asc"; loopJoinOrderedResult(colss, queryText, 0, new ApplyFunc>() { + @Override public void apply(List t, Object[] fields) { t.add(new FieldSchema((String)fields[2], (String)fields[3], (String)fields[1])); }}); @@ -582,6 +591,7 @@ public void apply(List t, Object[] fields) { + " where \"SERDE_ID\" in (" + serdeIds + ") and \"PARAM_KEY\" is not null" + " order by \"SERDE_ID\" asc"; loopJoinOrderedResult(serdes, queryText, 0, new ApplyFunc() { + @Override public void apply(SerDeInfo t, Object[] fields) { t.putToParameters((String)fields[1], (String)fields[2]); }}); @@ -891,6 +901,49 @@ public ColumnStatistics getTableStats( return result; } + public List aggrStatsFor(String dbName, String tableName, + List partNames, List colNames) throws MetaException { + String qText = "select \"COLUMN_NAME\", \"COLUMN_TYPE\", " + + "min(\"LONG_LOW_VALUE\"), max(\"LONG_HIGH_VALUE\"), min(\"DOUBLE_LOW_VALUE\"), max(\"DOUBLE_HIGH_VALUE\"), " + + "min(\"BIG_DECIMAL_LOW_VALUE\"), max(\"BIG_DECIMAL_HIGH_VALUE\"), sum(\"NUM_NULLS\"), max(\"NUM_DISTINCTS\"), " + + "avg(\"AVG_COL_LEN\"), max(\"MAX_COL_LEN\"), sum(\"NUM_TRUES\"), sum(\"NUM_FALSES\") from \"PART_COL_STATS\"" + + " where \"DB_NAME\" = ? and \"TABLE_NAME\" = ? and \"COLUMN_NAME\" in (" + + makeParams(colNames.size()) + ") AND \"PARTITION_NAME\" in (" + + makeParams(partNames.size()) + ") group by \"COLUMN_NAME\", \"COLUMN_TYPE\""; + + boolean doTrace = LOG.isDebugEnabled(); + long start = doTrace ? System.nanoTime() : 0; + + Query query = pm.newQuery("javax.jdo.query.SQL", qText); + Object[] params = new Object[colNames.size() + partNames.size() + 2]; + int paramI = 0; + params[paramI++] = dbName; + params[paramI++] = tableName; + for (String colName : colNames) { + params[paramI++] = colName; + } + for (String partName : partNames) { + params[paramI++] = partName; + } + Object qResult = query.executeWithArray(params); + long queryTime = doTrace ? System.nanoTime() : 0; + if (qResult == null) { + query.closeAll(); + return Lists.newArrayList(); + } + List list = ensureList(qResult); + List colStats = new ArrayList(colNames.size()); + for (Object[] row : list) { + ColumnStatisticsData data = new ColumnStatisticsData(); + ColumnStatisticsObj cso = new ColumnStatisticsObj((String)row[0], (String)row[1], data); + StatObjectConverter.fillColumnStatisticsData(cso.getColType(), data, + row[2], row[3], row[4], row[5], row[6], row[7], row[8], row[9], row[10], row[11], row[12], row[13]); + colStats.add(cso); + } + timingTrace(doTrace, qText, start, queryTime); + return colStats; + } + public List getPartitionStats(String dbName, String tableName, List partNames, List colNames) throws MetaException { if (colNames.isEmpty() || partNames.isEmpty()) { diff --git metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index 4f186f4..2ef6b42 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -60,6 +60,7 @@ import org.apache.hadoop.hive.common.classification.InterfaceStability; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.conf.HiveConf.ConfVars; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsDesc; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -79,6 +80,7 @@ import org.apache.hadoop.hive.metastore.api.Order; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -6748,4 +6750,11 @@ public Function getFunction(String dbName, String funcName) throws MetaException return funcs; } + @Override + public List get_aggr_stats_for(String dbName, String tblName, + List partNames, List colNames) throws MetaException { + // This is fast path for query optimizations, if we can find this info quickly using + // directSql, do it. No point in failing back to slow path here. + return directSql.aggrStatsFor(dbName, tblName, partNames, colNames); + } } diff --git metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 2379ce7..35a4d5a 100644 --- metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -26,7 +26,9 @@ import java.util.Map; import org.apache.hadoop.conf.Configurable; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; +import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -38,6 +40,7 @@ import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -547,4 +550,7 @@ public void dropFunction(String dbName, String funcName) */ public List getFunctions(String dbName, String pattern) throws MetaException; + public List get_aggr_stats_for(String dbName, String tblName, + List partNames, List colNames) throws MetaException; + } diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 396eb4e..4eba2b0 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -25,6 +25,7 @@ import org.apache.hadoop.conf.Configurable; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; +import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -36,6 +37,7 @@ import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -709,5 +711,12 @@ public Function getFunction(String dbName, String funcName) return objectStore.getFunctions(dbName, pattern); } + @Override + public List get_aggr_stats_for(String dbName, + String tblName, List partNames, List colNames) + throws MetaException { + return null; + } + } diff --git metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 80c3b2b..78ab19a 100644 --- metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -26,6 +26,7 @@ import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.conf.HiveConf; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; +import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.metastore.api.Function; import org.apache.hadoop.hive.metastore.api.HiveObjectPrivilege; @@ -37,6 +38,7 @@ import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.metastore.api.PartitionEventType; +import org.apache.hadoop.hive.metastore.api.PartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.PrincipalPrivilegeSet; import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; @@ -726,7 +728,12 @@ public Function getFunction(String dbName, String funcName) return null; } - + @Override + public List get_aggr_stats_for(String dbName, + String tblName, List partNames, List colNames) + throws MetaException { + return null; + } } diff --git ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index a7e50ad..850ab52 100644 --- ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -64,6 +64,7 @@ import org.apache.hadoop.hive.metastore.RetryingMetaStoreClient; import org.apache.hadoop.hive.metastore.TableType; import org.apache.hadoop.hive.metastore.Warehouse; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -2576,6 +2577,16 @@ public boolean updatePartitionColumnStatistics(ColumnStatistics statsObj) throws } } + public Aggr_Stats getAggrStatsFor(String dbName, String tblName, + List colNames, List partName) { + try { + return getMSC().getAggrStatsFor(dbName, tblName, colNames, partName); + } catch (Exception e) { + LOG.debug(StringUtils.stringifyException(e)); + return null; + } + } + public boolean deleteTableColumnStatistics(String dbName, String tableName, String colName) throws HiveException { try { diff --git ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java index 9620e62..211b2a0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java +++ ql/src/java/org/apache/hadoop/hive/ql/optimizer/stats/annotation/StatsRulesProcFactory.java @@ -100,9 +100,9 @@ public Object process(Node nd, Stack stack, NodeProcessorCtx procCtx, } Table table = aspCtx.getParseContext().getTopToTable().get(tsop); - // gather statistics for the first time and the attach it to table scan operator - Statistics stats = StatsUtils.collectStatistics(aspCtx.getConf(), partList, table, tsop); try { + // gather statistics for the first time and the attach it to table scan operator + Statistics stats = StatsUtils.collectStatistics(aspCtx.getConf(), partList, table, tsop); tsop.setStatistics(stats.clone()); if (LOG.isDebugEnabled()) { @@ -110,6 +110,9 @@ public Object process(Node nd, Stack stack, NodeProcessorCtx procCtx, } } catch (CloneNotSupportedException e) { throw new SemanticException(ErrorMsg.STATISTICS_CLONING_FAILED.getMsg()); + } catch (HiveException e) { + LOG.debug(e); + throw new SemanticException(e); } return null; } diff --git ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java index 818590a..76232fd 100644 --- ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java +++ ql/src/java/org/apache/hadoop/hive/ql/stats/StatsUtils.java @@ -30,6 +30,7 @@ import org.apache.hadoop.fs.Path; import org.apache.hadoop.hive.common.StatsSetupConst; import org.apache.hadoop.hive.conf.HiveConf; +import org.apache.hadoop.hive.metastore.api.Aggr_Stats; import org.apache.hadoop.hive.metastore.api.ColumnStatistics; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsData; import org.apache.hadoop.hive.metastore.api.ColumnStatisticsObj; @@ -101,7 +102,7 @@ * @throws HiveException */ public static Statistics collectStatistics(HiveConf conf, PrunedPartitionList partList, - Table table, TableScanOperator tableScanOperator) { + Table table, TableScanOperator tableScanOperator) throws HiveException { Statistics stats = new Statistics(); @@ -206,17 +207,20 @@ public static Statistics collectStatistics(HiveConf conf, PrunedPartitionList pa for (Partition part : partList.getNotDeniedPartns()) { partNames.add(part.getName()); } - Map> partStats = - getPartColumnStats(table, schema, partNames, neededColumns); - if (partStats != null) { - for (String partName : partNames) { - List partStat = partStats.get(partName); - haveFullStats &= (partStat != null); - if (partStat != null) { - stats.updateColumnStatsState(deriveStatType(partStat, neededColumns)); - stats.addToColumnStats(partStat); - } + Map colToTabAlias = new HashMap(); + neededColumns = processNeededColumns(schema, neededColumns, colToTabAlias); + Aggr_Stats aggrStats = Hive.get().getAggrStatsFor(table.getDbName(), table.getTableName(), neededColumns, partNames); + if (null == aggrStats) { + haveFullStats = false; + } else { + List colStats = aggrStats.getColStats(); + List columnStats = convertColStats(colStats, table.getTableName(), colToTabAlias); + stats.addToColumnStats(columnStats); + State colState = deriveStatType(columnStats, neededColumns); + if (aggrStats.getPartsFound() != partNames.size() && colState != State.NONE) { + stats.updateColumnStatsState(State.PARTIAL); } + stats.setColumnStatsState(colState); } } // There are some partitions with no state (or we didn't fetch any state). @@ -460,12 +464,7 @@ public static ColStatistics getColStatistics(ColumnStatisticsObj cso, String tab try { List colStat = Hive.get().getTableColumnStatistics( dbName, tabName, neededColsInTable); - stats = new ArrayList(colStat.size()); - for (ColumnStatisticsObj statObj : colStat) { - ColStatistics cs = getColStatistics(statObj, tabName, statObj.getColName()); - cs.setTableAlias(colToTabAlias.get(cs.getColumnName())); - stats.add(cs); - } + stats = convertColStats(colStat, tabName, colToTabAlias); } catch (HiveException e) { LOG.error("Failed to retrieve table statistics: ", e); stats = null; @@ -473,43 +472,16 @@ public static ColStatistics getColStatistics(ColumnStatisticsObj cso, String tab return stats; } - /** - * Get table level column statistics from metastore for needed columns - * @param table - * - table - * @param schema - * - output schema - * @param neededColumns - * - list of needed columns - * @return column statistics - */ - public static Map> getPartColumnStats(Table table, - List schema, List partNames, List neededColumns) { - String dbName = table.getDbName(); - String tabName = table.getTableName(); - Map colToTabAlias = new HashMap(schema.size()); - List neededColsInTable = processNeededColumns(schema, neededColumns, colToTabAlias); - Map> stats = null; - try { - Map> colStat = Hive.get().getPartitionColumnStatistics( - dbName, tabName, partNames, neededColsInTable); - stats = new HashMap>(colStat.size()); - for (Map.Entry> entry : colStat.entrySet()) { - List partStat = new ArrayList(entry.getValue().size()); - for (ColumnStatisticsObj statObj : entry.getValue()) { - ColStatistics cs = getColStatistics(statObj, tabName, statObj.getColName()); - cs.setTableAlias(colToTabAlias.get(cs.getColumnName())); - partStat.add(cs); - } - stats.put(entry.getKey(), partStat); - } - } catch (HiveException e) { - LOG.error("Failed to retrieve partitions statistics: ", e); - stats = null; + private static List convertColStats(List colStats, String tabName, + Map colToTabAlias) { + List stats = new ArrayList(colStats.size()); + for (ColumnStatisticsObj statObj : colStats) { + ColStatistics cs = getColStatistics(statObj, tabName, statObj.getColName()); + cs.setTableAlias(colToTabAlias.get(cs.getColumnName())); + stats.add(cs); } return stats; } - private static List processNeededColumns(List schema, List neededColumns, Map colToTabAlias) { for (ColumnInfo col : schema) { diff --git ql/src/test/results/clientpositive/annotate_stats_part.q.out ql/src/test/results/clientpositive/annotate_stats_part.q.out index 043af14..b93fc4f 100644 --- ql/src/test/results/clientpositive/annotate_stats_part.q.out +++ ql/src/test/results/clientpositive/annotate_stats_part.q.out @@ -1178,18 +1178,18 @@ STAGE PLANS: Map Operator Tree: TableScan alias: loc_orc - Statistics: Num rows: 8 Data size: 730 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 730 Basic stats: COMPLETE Column stats: COMPLETE GatherStats: false Select Operator expressions: state (type: string) outputColumnNames: _col0 - Statistics: Num rows: 8 Data size: 688 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 688 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false GlobalTableId: 0 #### A masked pattern was here #### NumFilesPerFileSink: 1 - Statistics: Num rows: 8 Data size: 688 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 688 Basic stats: COMPLETE Column stats: COMPLETE #### A masked pattern was here #### table: input format: org.apache.hadoop.mapred.TextInputFormat @@ -1346,18 +1346,18 @@ STAGE PLANS: Map Operator Tree: TableScan alias: loc_orc - Statistics: Num rows: 8 Data size: 730 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 730 Basic stats: COMPLETE Column stats: COMPLETE GatherStats: false Select Operator expressions: state (type: string), locid (type: int) outputColumnNames: _col0, _col1 - Statistics: Num rows: 8 Data size: 720 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 720 Basic stats: COMPLETE Column stats: COMPLETE File Output Operator compressed: false GlobalTableId: 0 #### A masked pattern was here #### NumFilesPerFileSink: 1 - Statistics: Num rows: 8 Data size: 720 Basic stats: COMPLETE Column stats: PARTIAL + Statistics: Num rows: 8 Data size: 720 Basic stats: COMPLETE Column stats: COMPLETE #### A masked pattern was here #### table: input format: org.apache.hadoop.mapred.TextInputFormat diff --git service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote service/src/gen/thrift/gen-py/TCLIService/TCLIService-remote old mode 100644 new mode 100755 diff --git service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote service/src/gen/thrift/gen-py/hive_service/ThriftHive-remote old mode 100644 new mode 100755