diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index 2eac836..84e9b6d 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -493,6 +493,14 @@ struct DropConstraintRequest { 3: required string constraintname } +struct AddPrimaryKeyRequest { + 1: required list primaryKeyCols +} + +struct AddForeignKeyRequest { + 1: required list foreignKeyCols +} + // Return type for get_partitions_by_expr struct PartitionsByExprResult { 1: required list partitions, @@ -994,6 +1002,10 @@ service ThriftHiveMetastore extends fb303.FacebookService 4:NoSuchObjectException o4) void drop_constraint(1:DropConstraintRequest req) throws(1:NoSuchObjectException o1, 2:MetaException o3) + void add_primary_key(1:AddPrimaryKeyRequest req) + throws(1:NoSuchObjectException o1, 2:MetaException o2) + void add_foreign_key(1:AddForeignKeyRequest req) + throws(1:NoSuchObjectException o1, 2:MetaException o2) // drops the table and all the partitions associated with it if the table has partitions // delete data (including partitions) if deleteData is set to true diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 0440df7..618c3ac 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp @@ -1240,14 +1240,14 @@ uint32_t ThriftHiveMetastore_get_databases_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size755; - ::apache::thrift::protocol::TType _etype758; - xfer += iprot->readListBegin(_etype758, _size755); - this->success.resize(_size755); - uint32_t _i759; - for (_i759 = 0; _i759 < _size755; ++_i759) + uint32_t _size771; + ::apache::thrift::protocol::TType _etype774; + xfer += iprot->readListBegin(_etype774, _size771); + this->success.resize(_size771); + uint32_t _i775; + for (_i775 = 0; _i775 < _size771; ++_i775) { - xfer += iprot->readString(this->success[_i759]); + xfer += iprot->readString(this->success[_i775]); } xfer += iprot->readListEnd(); } @@ -1286,10 +1286,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 _iter760; - for (_iter760 = this->success.begin(); _iter760 != this->success.end(); ++_iter760) + std::vector ::const_iterator _iter776; + for (_iter776 = this->success.begin(); _iter776 != this->success.end(); ++_iter776) { - xfer += oprot->writeString((*_iter760)); + xfer += oprot->writeString((*_iter776)); } xfer += oprot->writeListEnd(); } @@ -1334,14 +1334,14 @@ uint32_t ThriftHiveMetastore_get_databases_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size761; - ::apache::thrift::protocol::TType _etype764; - xfer += iprot->readListBegin(_etype764, _size761); - (*(this->success)).resize(_size761); - uint32_t _i765; - for (_i765 = 0; _i765 < _size761; ++_i765) + uint32_t _size777; + ::apache::thrift::protocol::TType _etype780; + xfer += iprot->readListBegin(_etype780, _size777); + (*(this->success)).resize(_size777); + uint32_t _i781; + for (_i781 = 0; _i781 < _size777; ++_i781) { - xfer += iprot->readString((*(this->success))[_i765]); + xfer += iprot->readString((*(this->success))[_i781]); } xfer += iprot->readListEnd(); } @@ -1458,14 +1458,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size766; - ::apache::thrift::protocol::TType _etype769; - xfer += iprot->readListBegin(_etype769, _size766); - this->success.resize(_size766); - uint32_t _i770; - for (_i770 = 0; _i770 < _size766; ++_i770) + uint32_t _size782; + ::apache::thrift::protocol::TType _etype785; + xfer += iprot->readListBegin(_etype785, _size782); + this->success.resize(_size782); + uint32_t _i786; + for (_i786 = 0; _i786 < _size782; ++_i786) { - xfer += iprot->readString(this->success[_i770]); + xfer += iprot->readString(this->success[_i786]); } xfer += iprot->readListEnd(); } @@ -1504,10 +1504,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 _iter771; - for (_iter771 = this->success.begin(); _iter771 != this->success.end(); ++_iter771) + std::vector ::const_iterator _iter787; + for (_iter787 = this->success.begin(); _iter787 != this->success.end(); ++_iter787) { - xfer += oprot->writeString((*_iter771)); + xfer += oprot->writeString((*_iter787)); } xfer += oprot->writeListEnd(); } @@ -1552,14 +1552,14 @@ uint32_t ThriftHiveMetastore_get_all_databases_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size772; - ::apache::thrift::protocol::TType _etype775; - xfer += iprot->readListBegin(_etype775, _size772); - (*(this->success)).resize(_size772); - uint32_t _i776; - for (_i776 = 0; _i776 < _size772; ++_i776) + uint32_t _size788; + ::apache::thrift::protocol::TType _etype791; + xfer += iprot->readListBegin(_etype791, _size788); + (*(this->success)).resize(_size788); + uint32_t _i792; + for (_i792 = 0; _i792 < _size788; ++_i792) { - xfer += iprot->readString((*(this->success))[_i776]); + xfer += iprot->readString((*(this->success))[_i792]); } xfer += iprot->readListEnd(); } @@ -2621,17 +2621,17 @@ uint32_t ThriftHiveMetastore_get_type_all_result::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size777; - ::apache::thrift::protocol::TType _ktype778; - ::apache::thrift::protocol::TType _vtype779; - xfer += iprot->readMapBegin(_ktype778, _vtype779, _size777); - uint32_t _i781; - for (_i781 = 0; _i781 < _size777; ++_i781) + uint32_t _size793; + ::apache::thrift::protocol::TType _ktype794; + ::apache::thrift::protocol::TType _vtype795; + xfer += iprot->readMapBegin(_ktype794, _vtype795, _size793); + uint32_t _i797; + for (_i797 = 0; _i797 < _size793; ++_i797) { - std::string _key782; - xfer += iprot->readString(_key782); - Type& _val783 = this->success[_key782]; - xfer += _val783.read(iprot); + std::string _key798; + xfer += iprot->readString(_key798); + Type& _val799 = this->success[_key798]; + xfer += _val799.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2670,11 +2670,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 _iter784; - for (_iter784 = this->success.begin(); _iter784 != this->success.end(); ++_iter784) + std::map ::const_iterator _iter800; + for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) { - xfer += oprot->writeString(_iter784->first); - xfer += _iter784->second.write(oprot); + xfer += oprot->writeString(_iter800->first); + xfer += _iter800->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -2719,17 +2719,17 @@ uint32_t ThriftHiveMetastore_get_type_all_presult::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size785; - ::apache::thrift::protocol::TType _ktype786; - ::apache::thrift::protocol::TType _vtype787; - xfer += iprot->readMapBegin(_ktype786, _vtype787, _size785); - uint32_t _i789; - for (_i789 = 0; _i789 < _size785; ++_i789) + uint32_t _size801; + ::apache::thrift::protocol::TType _ktype802; + ::apache::thrift::protocol::TType _vtype803; + xfer += iprot->readMapBegin(_ktype802, _vtype803, _size801); + uint32_t _i805; + for (_i805 = 0; _i805 < _size801; ++_i805) { - std::string _key790; - xfer += iprot->readString(_key790); - Type& _val791 = (*(this->success))[_key790]; - xfer += _val791.read(iprot); + std::string _key806; + xfer += iprot->readString(_key806); + Type& _val807 = (*(this->success))[_key806]; + xfer += _val807.read(iprot); } xfer += iprot->readMapEnd(); } @@ -2883,14 +2883,14 @@ uint32_t ThriftHiveMetastore_get_fields_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size792; - ::apache::thrift::protocol::TType _etype795; - xfer += iprot->readListBegin(_etype795, _size792); - this->success.resize(_size792); - uint32_t _i796; - for (_i796 = 0; _i796 < _size792; ++_i796) + 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[_i796].read(iprot); + xfer += this->success[_i812].read(iprot); } xfer += iprot->readListEnd(); } @@ -2945,10 +2945,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 _iter797; - for (_iter797 = this->success.begin(); _iter797 != this->success.end(); ++_iter797) + std::vector ::const_iterator _iter813; + for (_iter813 = this->success.begin(); _iter813 != this->success.end(); ++_iter813) { - xfer += (*_iter797).write(oprot); + xfer += (*_iter813).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3001,14 +3001,14 @@ uint32_t ThriftHiveMetastore_get_fields_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size798; - ::apache::thrift::protocol::TType _etype801; - xfer += iprot->readListBegin(_etype801, _size798); - (*(this->success)).resize(_size798); - uint32_t _i802; - for (_i802 = 0; _i802 < _size798; ++_i802) + 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))[_i802].read(iprot); + xfer += (*(this->success))[_i818].read(iprot); } xfer += iprot->readListEnd(); } @@ -3194,14 +3194,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size803; - ::apache::thrift::protocol::TType _etype806; - xfer += iprot->readListBegin(_etype806, _size803); - this->success.resize(_size803); - uint32_t _i807; - for (_i807 = 0; _i807 < _size803; ++_i807) + uint32_t _size819; + ::apache::thrift::protocol::TType _etype822; + xfer += iprot->readListBegin(_etype822, _size819); + this->success.resize(_size819); + uint32_t _i823; + for (_i823 = 0; _i823 < _size819; ++_i823) { - xfer += this->success[_i807].read(iprot); + xfer += this->success[_i823].read(iprot); } xfer += iprot->readListEnd(); } @@ -3256,10 +3256,10 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_result::write(: 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 _iter808; - for (_iter808 = this->success.begin(); _iter808 != this->success.end(); ++_iter808) + std::vector ::const_iterator _iter824; + for (_iter824 = this->success.begin(); _iter824 != this->success.end(); ++_iter824) { - xfer += (*_iter808).write(oprot); + xfer += (*_iter824).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3312,14 +3312,14 @@ uint32_t ThriftHiveMetastore_get_fields_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size809; - ::apache::thrift::protocol::TType _etype812; - xfer += iprot->readListBegin(_etype812, _size809); - (*(this->success)).resize(_size809); - uint32_t _i813; - for (_i813 = 0; _i813 < _size809; ++_i813) + uint32_t _size825; + ::apache::thrift::protocol::TType _etype828; + xfer += iprot->readListBegin(_etype828, _size825); + (*(this->success)).resize(_size825); + uint32_t _i829; + for (_i829 = 0; _i829 < _size825; ++_i829) { - xfer += (*(this->success))[_i813].read(iprot); + xfer += (*(this->success))[_i829].read(iprot); } xfer += iprot->readListEnd(); } @@ -3489,14 +3489,14 @@ uint32_t ThriftHiveMetastore_get_schema_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - 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) + uint32_t _size830; + ::apache::thrift::protocol::TType _etype833; + xfer += iprot->readListBegin(_etype833, _size830); + this->success.resize(_size830); + uint32_t _i834; + for (_i834 = 0; _i834 < _size830; ++_i834) { - xfer += this->success[_i818].read(iprot); + xfer += this->success[_i834].read(iprot); } xfer += iprot->readListEnd(); } @@ -3551,10 +3551,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 _iter819; - for (_iter819 = this->success.begin(); _iter819 != this->success.end(); ++_iter819) + std::vector ::const_iterator _iter835; + for (_iter835 = this->success.begin(); _iter835 != this->success.end(); ++_iter835) { - xfer += (*_iter819).write(oprot); + xfer += (*_iter835).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3607,14 +3607,14 @@ uint32_t ThriftHiveMetastore_get_schema_presult::read(::apache::thrift::protocol 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 _size836; + ::apache::thrift::protocol::TType _etype839; + xfer += iprot->readListBegin(_etype839, _size836); + (*(this->success)).resize(_size836); + uint32_t _i840; + for (_i840 = 0; _i840 < _size836; ++_i840) { - xfer += (*(this->success))[_i824].read(iprot); + xfer += (*(this->success))[_i840].read(iprot); } xfer += iprot->readListEnd(); } @@ -3800,14 +3800,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::read(:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size825; - ::apache::thrift::protocol::TType _etype828; - xfer += iprot->readListBegin(_etype828, _size825); - this->success.resize(_size825); - uint32_t _i829; - for (_i829 = 0; _i829 < _size825; ++_i829) + uint32_t _size841; + ::apache::thrift::protocol::TType _etype844; + xfer += iprot->readListBegin(_etype844, _size841); + this->success.resize(_size841); + uint32_t _i845; + for (_i845 = 0; _i845 < _size841; ++_i845) { - xfer += this->success[_i829].read(iprot); + xfer += this->success[_i845].read(iprot); } xfer += iprot->readListEnd(); } @@ -3862,10 +3862,10 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_result::write(: 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 _iter830; - for (_iter830 = this->success.begin(); _iter830 != this->success.end(); ++_iter830) + std::vector ::const_iterator _iter846; + for (_iter846 = this->success.begin(); _iter846 != this->success.end(); ++_iter846) { - xfer += (*_iter830).write(oprot); + xfer += (*_iter846).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3918,14 +3918,14 @@ uint32_t ThriftHiveMetastore_get_schema_with_environment_context_presult::read(: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size831; - ::apache::thrift::protocol::TType _etype834; - xfer += iprot->readListBegin(_etype834, _size831); - (*(this->success)).resize(_size831); - uint32_t _i835; - for (_i835 = 0; _i835 < _size831; ++_i835) + uint32_t _size847; + ::apache::thrift::protocol::TType _etype850; + xfer += iprot->readListBegin(_etype850, _size847); + (*(this->success)).resize(_size847); + uint32_t _i851; + for (_i851 = 0; _i851 < _size847; ++_i851) { - xfer += (*(this->success))[_i835].read(iprot); + xfer += (*(this->success))[_i851].read(iprot); } xfer += iprot->readListEnd(); } @@ -4518,14 +4518,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->primaryKeys.clear(); - uint32_t _size836; - ::apache::thrift::protocol::TType _etype839; - xfer += iprot->readListBegin(_etype839, _size836); - this->primaryKeys.resize(_size836); - uint32_t _i840; - for (_i840 = 0; _i840 < _size836; ++_i840) + uint32_t _size852; + ::apache::thrift::protocol::TType _etype855; + xfer += iprot->readListBegin(_etype855, _size852); + this->primaryKeys.resize(_size852); + uint32_t _i856; + for (_i856 = 0; _i856 < _size852; ++_i856) { - xfer += this->primaryKeys[_i840].read(iprot); + xfer += this->primaryKeys[_i856].read(iprot); } xfer += iprot->readListEnd(); } @@ -4538,14 +4538,14 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->foreignKeys.clear(); - uint32_t _size841; - ::apache::thrift::protocol::TType _etype844; - xfer += iprot->readListBegin(_etype844, _size841); - this->foreignKeys.resize(_size841); - uint32_t _i845; - for (_i845 = 0; _i845 < _size841; ++_i845) + uint32_t _size857; + ::apache::thrift::protocol::TType _etype860; + xfer += iprot->readListBegin(_etype860, _size857); + this->foreignKeys.resize(_size857); + uint32_t _i861; + for (_i861 = 0; _i861 < _size857; ++_i861) { - xfer += this->foreignKeys[_i845].read(iprot); + xfer += this->foreignKeys[_i861].read(iprot); } xfer += iprot->readListEnd(); } @@ -4578,10 +4578,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeys.size())); - std::vector ::const_iterator _iter846; - for (_iter846 = this->primaryKeys.begin(); _iter846 != this->primaryKeys.end(); ++_iter846) + std::vector ::const_iterator _iter862; + for (_iter862 = this->primaryKeys.begin(); _iter862 != this->primaryKeys.end(); ++_iter862) { - xfer += (*_iter846).write(oprot); + xfer += (*_iter862).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4590,10 +4590,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_args::write(::apache: xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeys.size())); - std::vector ::const_iterator _iter847; - for (_iter847 = this->foreignKeys.begin(); _iter847 != this->foreignKeys.end(); ++_iter847) + std::vector ::const_iterator _iter863; + for (_iter863 = this->foreignKeys.begin(); _iter863 != this->foreignKeys.end(); ++_iter863) { - xfer += (*_iter847).write(oprot); + xfer += (*_iter863).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4621,10 +4621,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("primaryKeys", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->primaryKeys)).size())); - std::vector ::const_iterator _iter848; - for (_iter848 = (*(this->primaryKeys)).begin(); _iter848 != (*(this->primaryKeys)).end(); ++_iter848) + std::vector ::const_iterator _iter864; + for (_iter864 = (*(this->primaryKeys)).begin(); _iter864 != (*(this->primaryKeys)).end(); ++_iter864) { - xfer += (*_iter848).write(oprot); + xfer += (*_iter864).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4633,10 +4633,10 @@ uint32_t ThriftHiveMetastore_create_table_with_constraints_pargs::write(::apache xfer += oprot->writeFieldBegin("foreignKeys", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast((*(this->foreignKeys)).size())); - std::vector ::const_iterator _iter849; - for (_iter849 = (*(this->foreignKeys)).begin(); _iter849 != (*(this->foreignKeys)).end(); ++_iter849) + std::vector ::const_iterator _iter865; + for (_iter865 = (*(this->foreignKeys)).begin(); _iter865 != (*(this->foreignKeys)).end(); ++_iter865) { - xfer += (*_iter849).write(oprot); + xfer += (*_iter865).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5023,11 +5023,11 @@ uint32_t ThriftHiveMetastore_drop_constraint_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { +ThriftHiveMetastore_add_primary_key_args::~ThriftHiveMetastore_add_primary_key_args() throw() { } -uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_primary_key_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5049,25 +5049,170 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbname); - this->__isset.dbname = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->req.read(iprot); + this->__isset.req = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_primary_key_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_primary_key_args"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->req.write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_primary_key_pargs::~ThriftHiveMetastore_add_primary_key_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_add_primary_key_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_primary_key_pargs"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->req)).write(oprot); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_add_primary_key_result::~ThriftHiveMetastore_add_primary_key_result() throw() { +} + + +uint32_t ThriftHiveMetastore_add_primary_key_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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->o1.read(iprot); + this->__isset.o1 = true; } else { xfer += iprot->skip(ftype); } break; case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->name); - this->__isset.name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; } else { xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->deleteData); - this->__isset.deleteData = true; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_primary_key_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_primary_key_result"); + + 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; +} + + +ThriftHiveMetastore_add_primary_key_presult::~ThriftHiveMetastore_add_primary_key_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_primary_key_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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->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); } @@ -5084,21 +5229,59 @@ uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::T return xfer; } -uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + +ThriftHiveMetastore_add_foreign_key_args::~ThriftHiveMetastore_add_foreign_key_args() throw() { +} + + +uint32_t ThriftHiveMetastore_add_foreign_key_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; - xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbname); - xfer += oprot->writeFieldEnd(); + xfer += iprot->readStructBegin(fname); - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->name); - xfer += oprot->writeFieldEnd(); + using ::apache::thrift::protocol::TProtocolException; - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool(this->deleteData); + + 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->req.read(iprot); + this->__isset.req = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_add_foreign_key_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_foreign_key_args"); + + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->req.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5107,25 +5290,17 @@ uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { +ThriftHiveMetastore_add_foreign_key_pargs::~ThriftHiveMetastore_add_foreign_key_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_add_foreign_key_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_foreign_key_pargs"); - xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbname))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); - xfer += oprot->writeBool((*(this->deleteData))); + xfer += oprot->writeFieldBegin("req", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->req)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -5134,11 +5309,250 @@ uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol: } -ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { +ThriftHiveMetastore_add_foreign_key_result::~ThriftHiveMetastore_add_foreign_key_result() throw() { } -uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_add_foreign_key_result::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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->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_add_foreign_key_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_add_foreign_key_result"); + + 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; +} + + +ThriftHiveMetastore_add_foreign_key_presult::~ThriftHiveMetastore_add_foreign_key_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_add_foreign_key_presult::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*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->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; +} + + +ThriftHiveMetastore_drop_table_args::~ThriftHiveMetastore_drop_table_args() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_table_args::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->dbname); + this->__isset.dbname = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->name); + this->__isset.name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->deleteData); + this->__isset.deleteData = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_table_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_args"); + + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbname); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool(this->deleteData); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_table_pargs::~ThriftHiveMetastore_drop_table_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_table_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_table_pargs"); + + xfer += oprot->writeFieldBegin("dbname", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbname))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("deleteData", ::apache::thrift::protocol::T_BOOL, 3); + xfer += oprot->writeBool((*(this->deleteData))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_table_result::~ThriftHiveMetastore_drop_table_result() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_table_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -5641,14 +6055,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size850; - ::apache::thrift::protocol::TType _etype853; - xfer += iprot->readListBegin(_etype853, _size850); - this->success.resize(_size850); - uint32_t _i854; - for (_i854 = 0; _i854 < _size850; ++_i854) + uint32_t _size866; + ::apache::thrift::protocol::TType _etype869; + xfer += iprot->readListBegin(_etype869, _size866); + this->success.resize(_size866); + uint32_t _i870; + for (_i870 = 0; _i870 < _size866; ++_i870) { - xfer += iprot->readString(this->success[_i854]); + xfer += iprot->readString(this->success[_i870]); } xfer += iprot->readListEnd(); } @@ -5687,10 +6101,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 _iter855; - for (_iter855 = this->success.begin(); _iter855 != this->success.end(); ++_iter855) + std::vector ::const_iterator _iter871; + for (_iter871 = this->success.begin(); _iter871 != this->success.end(); ++_iter871) { - xfer += oprot->writeString((*_iter855)); + xfer += oprot->writeString((*_iter871)); } xfer += oprot->writeListEnd(); } @@ -5735,14 +6149,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size856; - ::apache::thrift::protocol::TType _etype859; - xfer += iprot->readListBegin(_etype859, _size856); - (*(this->success)).resize(_size856); - uint32_t _i860; - for (_i860 = 0; _i860 < _size856; ++_i860) + uint32_t _size872; + ::apache::thrift::protocol::TType _etype875; + xfer += iprot->readListBegin(_etype875, _size872); + (*(this->success)).resize(_size872); + uint32_t _i876; + for (_i876 = 0; _i876 < _size872; ++_i876) { - xfer += iprot->readString((*(this->success))[_i860]); + xfer += iprot->readString((*(this->success))[_i876]); } xfer += iprot->readListEnd(); } @@ -5817,14 +6231,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tbl_types.clear(); - uint32_t _size861; - ::apache::thrift::protocol::TType _etype864; - xfer += iprot->readListBegin(_etype864, _size861); - this->tbl_types.resize(_size861); - uint32_t _i865; - for (_i865 = 0; _i865 < _size861; ++_i865) + uint32_t _size877; + ::apache::thrift::protocol::TType _etype880; + xfer += iprot->readListBegin(_etype880, _size877); + this->tbl_types.resize(_size877); + uint32_t _i881; + for (_i881 = 0; _i881 < _size877; ++_i881) { - xfer += iprot->readString(this->tbl_types[_i865]); + xfer += iprot->readString(this->tbl_types[_i881]); } xfer += iprot->readListEnd(); } @@ -5861,10 +6275,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_args::write(::apache::thrift::protoc xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->tbl_types.size())); - std::vector ::const_iterator _iter866; - for (_iter866 = this->tbl_types.begin(); _iter866 != this->tbl_types.end(); ++_iter866) + std::vector ::const_iterator _iter882; + for (_iter882 = this->tbl_types.begin(); _iter882 != this->tbl_types.end(); ++_iter882) { - xfer += oprot->writeString((*_iter866)); + xfer += oprot->writeString((*_iter882)); } xfer += oprot->writeListEnd(); } @@ -5896,10 +6310,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_pargs::write(::apache::thrift::proto xfer += oprot->writeFieldBegin("tbl_types", ::apache::thrift::protocol::T_LIST, 3); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*(this->tbl_types)).size())); - std::vector ::const_iterator _iter867; - for (_iter867 = (*(this->tbl_types)).begin(); _iter867 != (*(this->tbl_types)).end(); ++_iter867) + std::vector ::const_iterator _iter883; + for (_iter883 = (*(this->tbl_types)).begin(); _iter883 != (*(this->tbl_types)).end(); ++_iter883) { - xfer += oprot->writeString((*_iter867)); + xfer += oprot->writeString((*_iter883)); } xfer += oprot->writeListEnd(); } @@ -5940,14 +6354,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size868; - ::apache::thrift::protocol::TType _etype871; - xfer += iprot->readListBegin(_etype871, _size868); - this->success.resize(_size868); - uint32_t _i872; - for (_i872 = 0; _i872 < _size868; ++_i872) + uint32_t _size884; + ::apache::thrift::protocol::TType _etype887; + xfer += iprot->readListBegin(_etype887, _size884); + this->success.resize(_size884); + uint32_t _i888; + for (_i888 = 0; _i888 < _size884; ++_i888) { - xfer += this->success[_i872].read(iprot); + xfer += this->success[_i888].read(iprot); } xfer += iprot->readListEnd(); } @@ -5986,10 +6400,10 @@ uint32_t ThriftHiveMetastore_get_table_meta_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 _iter873; - for (_iter873 = this->success.begin(); _iter873 != this->success.end(); ++_iter873) + std::vector ::const_iterator _iter889; + for (_iter889 = this->success.begin(); _iter889 != this->success.end(); ++_iter889) { - xfer += (*_iter873).write(oprot); + xfer += (*_iter889).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6034,14 +6448,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size874; - ::apache::thrift::protocol::TType _etype877; - xfer += iprot->readListBegin(_etype877, _size874); - (*(this->success)).resize(_size874); - uint32_t _i878; - for (_i878 = 0; _i878 < _size874; ++_i878) + uint32_t _size890; + ::apache::thrift::protocol::TType _etype893; + xfer += iprot->readListBegin(_etype893, _size890); + (*(this->success)).resize(_size890); + uint32_t _i894; + for (_i894 = 0; _i894 < _size890; ++_i894) { - xfer += (*(this->success))[_i878].read(iprot); + xfer += (*(this->success))[_i894].read(iprot); } xfer += iprot->readListEnd(); } @@ -6179,14 +6593,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size879; - ::apache::thrift::protocol::TType _etype882; - xfer += iprot->readListBegin(_etype882, _size879); - this->success.resize(_size879); - uint32_t _i883; - for (_i883 = 0; _i883 < _size879; ++_i883) + uint32_t _size895; + ::apache::thrift::protocol::TType _etype898; + xfer += iprot->readListBegin(_etype898, _size895); + this->success.resize(_size895); + uint32_t _i899; + for (_i899 = 0; _i899 < _size895; ++_i899) { - xfer += iprot->readString(this->success[_i883]); + xfer += iprot->readString(this->success[_i899]); } xfer += iprot->readListEnd(); } @@ -6225,10 +6639,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 _iter884; - for (_iter884 = this->success.begin(); _iter884 != this->success.end(); ++_iter884) + std::vector ::const_iterator _iter900; + for (_iter900 = this->success.begin(); _iter900 != this->success.end(); ++_iter900) { - xfer += oprot->writeString((*_iter884)); + xfer += oprot->writeString((*_iter900)); } xfer += oprot->writeListEnd(); } @@ -6273,14 +6687,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size885; - ::apache::thrift::protocol::TType _etype888; - xfer += iprot->readListBegin(_etype888, _size885); - (*(this->success)).resize(_size885); - uint32_t _i889; - for (_i889 = 0; _i889 < _size885; ++_i889) + uint32_t _size901; + ::apache::thrift::protocol::TType _etype904; + xfer += iprot->readListBegin(_etype904, _size901); + (*(this->success)).resize(_size901); + uint32_t _i905; + for (_i905 = 0; _i905 < _size901; ++_i905) { - xfer += iprot->readString((*(this->success))[_i889]); + xfer += iprot->readString((*(this->success))[_i905]); } xfer += iprot->readListEnd(); } @@ -6590,14 +7004,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 _size890; - ::apache::thrift::protocol::TType _etype893; - xfer += iprot->readListBegin(_etype893, _size890); - this->tbl_names.resize(_size890); - uint32_t _i894; - for (_i894 = 0; _i894 < _size890; ++_i894) + uint32_t _size906; + ::apache::thrift::protocol::TType _etype909; + xfer += iprot->readListBegin(_etype909, _size906); + this->tbl_names.resize(_size906); + uint32_t _i910; + for (_i910 = 0; _i910 < _size906; ++_i910) { - xfer += iprot->readString(this->tbl_names[_i894]); + xfer += iprot->readString(this->tbl_names[_i910]); } xfer += iprot->readListEnd(); } @@ -6630,10 +7044,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 _iter895; - for (_iter895 = this->tbl_names.begin(); _iter895 != this->tbl_names.end(); ++_iter895) + std::vector ::const_iterator _iter911; + for (_iter911 = this->tbl_names.begin(); _iter911 != this->tbl_names.end(); ++_iter911) { - xfer += oprot->writeString((*_iter895)); + xfer += oprot->writeString((*_iter911)); } xfer += oprot->writeListEnd(); } @@ -6661,10 +7075,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 _iter896; - for (_iter896 = (*(this->tbl_names)).begin(); _iter896 != (*(this->tbl_names)).end(); ++_iter896) + std::vector ::const_iterator _iter912; + for (_iter912 = (*(this->tbl_names)).begin(); _iter912 != (*(this->tbl_names)).end(); ++_iter912) { - xfer += oprot->writeString((*_iter896)); + xfer += oprot->writeString((*_iter912)); } xfer += oprot->writeListEnd(); } @@ -6705,14 +7119,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 _size897; - ::apache::thrift::protocol::TType _etype900; - xfer += iprot->readListBegin(_etype900, _size897); - this->success.resize(_size897); - uint32_t _i901; - for (_i901 = 0; _i901 < _size897; ++_i901) + uint32_t _size913; + ::apache::thrift::protocol::TType _etype916; + xfer += iprot->readListBegin(_etype916, _size913); + this->success.resize(_size913); + uint32_t _i917; + for (_i917 = 0; _i917 < _size913; ++_i917) { - xfer += this->success[_i901].read(iprot); + xfer += this->success[_i917].read(iprot); } xfer += iprot->readListEnd(); } @@ -6767,10 +7181,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 _iter902; - for (_iter902 = this->success.begin(); _iter902 != this->success.end(); ++_iter902) + std::vector
::const_iterator _iter918; + for (_iter918 = this->success.begin(); _iter918 != this->success.end(); ++_iter918) { - xfer += (*_iter902).write(oprot); + xfer += (*_iter918).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6823,14 +7237,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 _size903; - ::apache::thrift::protocol::TType _etype906; - xfer += iprot->readListBegin(_etype906, _size903); - (*(this->success)).resize(_size903); - uint32_t _i907; - for (_i907 = 0; _i907 < _size903; ++_i907) + uint32_t _size919; + ::apache::thrift::protocol::TType _etype922; + xfer += iprot->readListBegin(_etype922, _size919); + (*(this->success)).resize(_size919); + uint32_t _i923; + for (_i923 = 0; _i923 < _size919; ++_i923) { - xfer += (*(this->success))[_i907].read(iprot); + xfer += (*(this->success))[_i923].read(iprot); } xfer += iprot->readListEnd(); } @@ -7016,14 +7430,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 _size908; - ::apache::thrift::protocol::TType _etype911; - xfer += iprot->readListBegin(_etype911, _size908); - this->success.resize(_size908); - uint32_t _i912; - for (_i912 = 0; _i912 < _size908; ++_i912) + uint32_t _size924; + ::apache::thrift::protocol::TType _etype927; + xfer += iprot->readListBegin(_etype927, _size924); + this->success.resize(_size924); + uint32_t _i928; + for (_i928 = 0; _i928 < _size924; ++_i928) { - xfer += iprot->readString(this->success[_i912]); + xfer += iprot->readString(this->success[_i928]); } xfer += iprot->readListEnd(); } @@ -7078,10 +7492,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 _iter913; - for (_iter913 = this->success.begin(); _iter913 != this->success.end(); ++_iter913) + std::vector ::const_iterator _iter929; + for (_iter929 = this->success.begin(); _iter929 != this->success.end(); ++_iter929) { - xfer += oprot->writeString((*_iter913)); + xfer += oprot->writeString((*_iter929)); } xfer += oprot->writeListEnd(); } @@ -7134,14 +7548,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 _size914; - ::apache::thrift::protocol::TType _etype917; - xfer += iprot->readListBegin(_etype917, _size914); - (*(this->success)).resize(_size914); - uint32_t _i918; - for (_i918 = 0; _i918 < _size914; ++_i918) + uint32_t _size930; + ::apache::thrift::protocol::TType _etype933; + xfer += iprot->readListBegin(_etype933, _size930); + (*(this->success)).resize(_size930); + uint32_t _i934; + for (_i934 = 0; _i934 < _size930; ++_i934) { - xfer += iprot->readString((*(this->success))[_i918]); + xfer += iprot->readString((*(this->success))[_i934]); } xfer += iprot->readListEnd(); } @@ -8475,14 +8889,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size919; - ::apache::thrift::protocol::TType _etype922; - xfer += iprot->readListBegin(_etype922, _size919); - this->new_parts.resize(_size919); - uint32_t _i923; - for (_i923 = 0; _i923 < _size919; ++_i923) + uint32_t _size935; + ::apache::thrift::protocol::TType _etype938; + xfer += iprot->readListBegin(_etype938, _size935); + this->new_parts.resize(_size935); + uint32_t _i939; + for (_i939 = 0; _i939 < _size935; ++_i939) { - xfer += this->new_parts[_i923].read(iprot); + xfer += this->new_parts[_i939].read(iprot); } xfer += iprot->readListEnd(); } @@ -8511,10 +8925,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 _iter924; - for (_iter924 = this->new_parts.begin(); _iter924 != this->new_parts.end(); ++_iter924) + std::vector ::const_iterator _iter940; + for (_iter940 = this->new_parts.begin(); _iter940 != this->new_parts.end(); ++_iter940) { - xfer += (*_iter924).write(oprot); + xfer += (*_iter940).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8538,10 +8952,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 _iter925; - for (_iter925 = (*(this->new_parts)).begin(); _iter925 != (*(this->new_parts)).end(); ++_iter925) + std::vector ::const_iterator _iter941; + for (_iter941 = (*(this->new_parts)).begin(); _iter941 != (*(this->new_parts)).end(); ++_iter941) { - xfer += (*_iter925).write(oprot); + xfer += (*_iter941).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8750,14 +9164,14 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size926; - ::apache::thrift::protocol::TType _etype929; - xfer += iprot->readListBegin(_etype929, _size926); - this->new_parts.resize(_size926); - uint32_t _i930; - for (_i930 = 0; _i930 < _size926; ++_i930) + uint32_t _size942; + ::apache::thrift::protocol::TType _etype945; + xfer += iprot->readListBegin(_etype945, _size942); + this->new_parts.resize(_size942); + uint32_t _i946; + for (_i946 = 0; _i946 < _size942; ++_i946) { - xfer += this->new_parts[_i930].read(iprot); + xfer += this->new_parts[_i946].read(iprot); } xfer += iprot->readListEnd(); } @@ -8786,10 +9200,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_args::write(::apache::thrift:: 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 _iter931; - for (_iter931 = this->new_parts.begin(); _iter931 != this->new_parts.end(); ++_iter931) + std::vector ::const_iterator _iter947; + for (_iter947 = this->new_parts.begin(); _iter947 != this->new_parts.end(); ++_iter947) { - xfer += (*_iter931).write(oprot); + xfer += (*_iter947).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8813,10 +9227,10 @@ uint32_t ThriftHiveMetastore_add_partitions_pspec_pargs::write(::apache::thrift: 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 _iter932; - for (_iter932 = (*(this->new_parts)).begin(); _iter932 != (*(this->new_parts)).end(); ++_iter932) + std::vector ::const_iterator _iter948; + for (_iter948 = (*(this->new_parts)).begin(); _iter948 != (*(this->new_parts)).end(); ++_iter948) { - xfer += (*_iter932).write(oprot); + xfer += (*_iter948).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9041,14 +9455,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size933; - ::apache::thrift::protocol::TType _etype936; - xfer += iprot->readListBegin(_etype936, _size933); - this->part_vals.resize(_size933); - uint32_t _i937; - for (_i937 = 0; _i937 < _size933; ++_i937) + uint32_t _size949; + ::apache::thrift::protocol::TType _etype952; + xfer += iprot->readListBegin(_etype952, _size949); + this->part_vals.resize(_size949); + uint32_t _i953; + for (_i953 = 0; _i953 < _size949; ++_i953) { - xfer += iprot->readString(this->part_vals[_i937]); + xfer += iprot->readString(this->part_vals[_i953]); } xfer += iprot->readListEnd(); } @@ -9085,10 +9499,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 _iter938; - for (_iter938 = this->part_vals.begin(); _iter938 != this->part_vals.end(); ++_iter938) + std::vector ::const_iterator _iter954; + for (_iter954 = this->part_vals.begin(); _iter954 != this->part_vals.end(); ++_iter954) { - xfer += oprot->writeString((*_iter938)); + xfer += oprot->writeString((*_iter954)); } xfer += oprot->writeListEnd(); } @@ -9120,10 +9534,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 _iter939; - for (_iter939 = (*(this->part_vals)).begin(); _iter939 != (*(this->part_vals)).end(); ++_iter939) + std::vector ::const_iterator _iter955; + for (_iter955 = (*(this->part_vals)).begin(); _iter955 != (*(this->part_vals)).end(); ++_iter955) { - xfer += oprot->writeString((*_iter939)); + xfer += oprot->writeString((*_iter955)); } xfer += oprot->writeListEnd(); } @@ -9595,14 +10009,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size940; - ::apache::thrift::protocol::TType _etype943; - xfer += iprot->readListBegin(_etype943, _size940); - this->part_vals.resize(_size940); - uint32_t _i944; - for (_i944 = 0; _i944 < _size940; ++_i944) + uint32_t _size956; + ::apache::thrift::protocol::TType _etype959; + xfer += iprot->readListBegin(_etype959, _size956); + this->part_vals.resize(_size956); + uint32_t _i960; + for (_i960 = 0; _i960 < _size956; ++_i960) { - xfer += iprot->readString(this->part_vals[_i944]); + xfer += iprot->readString(this->part_vals[_i960]); } xfer += iprot->readListEnd(); } @@ -9647,10 +10061,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 _iter945; - for (_iter945 = this->part_vals.begin(); _iter945 != this->part_vals.end(); ++_iter945) + std::vector ::const_iterator _iter961; + for (_iter961 = this->part_vals.begin(); _iter961 != this->part_vals.end(); ++_iter961) { - xfer += oprot->writeString((*_iter945)); + xfer += oprot->writeString((*_iter961)); } xfer += oprot->writeListEnd(); } @@ -9686,10 +10100,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 _iter946; - for (_iter946 = (*(this->part_vals)).begin(); _iter946 != (*(this->part_vals)).end(); ++_iter946) + std::vector ::const_iterator _iter962; + for (_iter962 = (*(this->part_vals)).begin(); _iter962 != (*(this->part_vals)).end(); ++_iter962) { - xfer += oprot->writeString((*_iter946)); + xfer += oprot->writeString((*_iter962)); } xfer += oprot->writeListEnd(); } @@ -10492,14 +10906,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size947; - ::apache::thrift::protocol::TType _etype950; - xfer += iprot->readListBegin(_etype950, _size947); - this->part_vals.resize(_size947); - uint32_t _i951; - for (_i951 = 0; _i951 < _size947; ++_i951) + uint32_t _size963; + ::apache::thrift::protocol::TType _etype966; + xfer += iprot->readListBegin(_etype966, _size963); + this->part_vals.resize(_size963); + uint32_t _i967; + for (_i967 = 0; _i967 < _size963; ++_i967) { - xfer += iprot->readString(this->part_vals[_i951]); + xfer += iprot->readString(this->part_vals[_i967]); } xfer += iprot->readListEnd(); } @@ -10544,10 +10958,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 _iter952; - for (_iter952 = this->part_vals.begin(); _iter952 != this->part_vals.end(); ++_iter952) + std::vector ::const_iterator _iter968; + for (_iter968 = this->part_vals.begin(); _iter968 != this->part_vals.end(); ++_iter968) { - xfer += oprot->writeString((*_iter952)); + xfer += oprot->writeString((*_iter968)); } xfer += oprot->writeListEnd(); } @@ -10583,10 +10997,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 _iter953; - for (_iter953 = (*(this->part_vals)).begin(); _iter953 != (*(this->part_vals)).end(); ++_iter953) + std::vector ::const_iterator _iter969; + for (_iter969 = (*(this->part_vals)).begin(); _iter969 != (*(this->part_vals)).end(); ++_iter969) { - xfer += oprot->writeString((*_iter953)); + xfer += oprot->writeString((*_iter969)); } xfer += oprot->writeListEnd(); } @@ -10795,14 +11209,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size954; - ::apache::thrift::protocol::TType _etype957; - xfer += iprot->readListBegin(_etype957, _size954); - this->part_vals.resize(_size954); - uint32_t _i958; - for (_i958 = 0; _i958 < _size954; ++_i958) + uint32_t _size970; + ::apache::thrift::protocol::TType _etype973; + xfer += iprot->readListBegin(_etype973, _size970); + this->part_vals.resize(_size970); + uint32_t _i974; + for (_i974 = 0; _i974 < _size970; ++_i974) { - xfer += iprot->readString(this->part_vals[_i958]); + xfer += iprot->readString(this->part_vals[_i974]); } xfer += iprot->readListEnd(); } @@ -10855,10 +11269,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 _iter959; - for (_iter959 = this->part_vals.begin(); _iter959 != this->part_vals.end(); ++_iter959) + std::vector ::const_iterator _iter975; + for (_iter975 = this->part_vals.begin(); _iter975 != this->part_vals.end(); ++_iter975) { - xfer += oprot->writeString((*_iter959)); + xfer += oprot->writeString((*_iter975)); } xfer += oprot->writeListEnd(); } @@ -10898,10 +11312,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 _iter960; - for (_iter960 = (*(this->part_vals)).begin(); _iter960 != (*(this->part_vals)).end(); ++_iter960) + std::vector ::const_iterator _iter976; + for (_iter976 = (*(this->part_vals)).begin(); _iter976 != (*(this->part_vals)).end(); ++_iter976) { - xfer += oprot->writeString((*_iter960)); + xfer += oprot->writeString((*_iter976)); } xfer += oprot->writeListEnd(); } @@ -11907,14 +12321,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size961; - ::apache::thrift::protocol::TType _etype964; - xfer += iprot->readListBegin(_etype964, _size961); - this->part_vals.resize(_size961); - uint32_t _i965; - for (_i965 = 0; _i965 < _size961; ++_i965) + uint32_t _size977; + ::apache::thrift::protocol::TType _etype980; + xfer += iprot->readListBegin(_etype980, _size977); + this->part_vals.resize(_size977); + uint32_t _i981; + for (_i981 = 0; _i981 < _size977; ++_i981) { - xfer += iprot->readString(this->part_vals[_i965]); + xfer += iprot->readString(this->part_vals[_i981]); } xfer += iprot->readListEnd(); } @@ -11951,10 +12365,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 _iter966; - for (_iter966 = this->part_vals.begin(); _iter966 != this->part_vals.end(); ++_iter966) + std::vector ::const_iterator _iter982; + for (_iter982 = this->part_vals.begin(); _iter982 != this->part_vals.end(); ++_iter982) { - xfer += oprot->writeString((*_iter966)); + xfer += oprot->writeString((*_iter982)); } xfer += oprot->writeListEnd(); } @@ -11986,10 +12400,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 _iter967; - for (_iter967 = (*(this->part_vals)).begin(); _iter967 != (*(this->part_vals)).end(); ++_iter967) + std::vector ::const_iterator _iter983; + for (_iter983 = (*(this->part_vals)).begin(); _iter983 != (*(this->part_vals)).end(); ++_iter983) { - xfer += oprot->writeString((*_iter967)); + xfer += oprot->writeString((*_iter983)); } xfer += oprot->writeListEnd(); } @@ -12178,17 +12592,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size968; - ::apache::thrift::protocol::TType _ktype969; - ::apache::thrift::protocol::TType _vtype970; - xfer += iprot->readMapBegin(_ktype969, _vtype970, _size968); - uint32_t _i972; - for (_i972 = 0; _i972 < _size968; ++_i972) + uint32_t _size984; + ::apache::thrift::protocol::TType _ktype985; + ::apache::thrift::protocol::TType _vtype986; + xfer += iprot->readMapBegin(_ktype985, _vtype986, _size984); + uint32_t _i988; + for (_i988 = 0; _i988 < _size984; ++_i988) { - std::string _key973; - xfer += iprot->readString(_key973); - std::string& _val974 = this->partitionSpecs[_key973]; - xfer += iprot->readString(_val974); + std::string _key989; + xfer += iprot->readString(_key989); + std::string& _val990 = this->partitionSpecs[_key989]; + xfer += iprot->readString(_val990); } xfer += iprot->readMapEnd(); } @@ -12249,11 +12663,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 _iter975; - for (_iter975 = this->partitionSpecs.begin(); _iter975 != this->partitionSpecs.end(); ++_iter975) + std::map ::const_iterator _iter991; + for (_iter991 = this->partitionSpecs.begin(); _iter991 != this->partitionSpecs.end(); ++_iter991) { - xfer += oprot->writeString(_iter975->first); - xfer += oprot->writeString(_iter975->second); + xfer += oprot->writeString(_iter991->first); + xfer += oprot->writeString(_iter991->second); } xfer += oprot->writeMapEnd(); } @@ -12293,11 +12707,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 _iter976; - for (_iter976 = (*(this->partitionSpecs)).begin(); _iter976 != (*(this->partitionSpecs)).end(); ++_iter976) + std::map ::const_iterator _iter992; + for (_iter992 = (*(this->partitionSpecs)).begin(); _iter992 != (*(this->partitionSpecs)).end(); ++_iter992) { - xfer += oprot->writeString(_iter976->first); - xfer += oprot->writeString(_iter976->second); + xfer += oprot->writeString(_iter992->first); + xfer += oprot->writeString(_iter992->second); } xfer += oprot->writeMapEnd(); } @@ -12542,17 +12956,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size977; - ::apache::thrift::protocol::TType _ktype978; - ::apache::thrift::protocol::TType _vtype979; - xfer += iprot->readMapBegin(_ktype978, _vtype979, _size977); - uint32_t _i981; - for (_i981 = 0; _i981 < _size977; ++_i981) + uint32_t _size993; + ::apache::thrift::protocol::TType _ktype994; + ::apache::thrift::protocol::TType _vtype995; + xfer += iprot->readMapBegin(_ktype994, _vtype995, _size993); + uint32_t _i997; + for (_i997 = 0; _i997 < _size993; ++_i997) { - std::string _key982; - xfer += iprot->readString(_key982); - std::string& _val983 = this->partitionSpecs[_key982]; - xfer += iprot->readString(_val983); + std::string _key998; + xfer += iprot->readString(_key998); + std::string& _val999 = this->partitionSpecs[_key998]; + xfer += iprot->readString(_val999); } xfer += iprot->readMapEnd(); } @@ -12613,11 +13027,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::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 _iter984; - for (_iter984 = this->partitionSpecs.begin(); _iter984 != this->partitionSpecs.end(); ++_iter984) + std::map ::const_iterator _iter1000; + for (_iter1000 = this->partitionSpecs.begin(); _iter1000 != this->partitionSpecs.end(); ++_iter1000) { - xfer += oprot->writeString(_iter984->first); - xfer += oprot->writeString(_iter984->second); + xfer += oprot->writeString(_iter1000->first); + xfer += oprot->writeString(_iter1000->second); } xfer += oprot->writeMapEnd(); } @@ -12657,11 +13071,11 @@ uint32_t ThriftHiveMetastore_exchange_partitions_pargs::write(::apache::thrift:: 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 _iter985; - for (_iter985 = (*(this->partitionSpecs)).begin(); _iter985 != (*(this->partitionSpecs)).end(); ++_iter985) + std::map ::const_iterator _iter1001; + for (_iter1001 = (*(this->partitionSpecs)).begin(); _iter1001 != (*(this->partitionSpecs)).end(); ++_iter1001) { - xfer += oprot->writeString(_iter985->first); - xfer += oprot->writeString(_iter985->second); + xfer += oprot->writeString(_iter1001->first); + xfer += oprot->writeString(_iter1001->second); } xfer += oprot->writeMapEnd(); } @@ -12718,14 +13132,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size986; - ::apache::thrift::protocol::TType _etype989; - xfer += iprot->readListBegin(_etype989, _size986); - this->success.resize(_size986); - uint32_t _i990; - for (_i990 = 0; _i990 < _size986; ++_i990) + uint32_t _size1002; + ::apache::thrift::protocol::TType _etype1005; + xfer += iprot->readListBegin(_etype1005, _size1002); + this->success.resize(_size1002); + uint32_t _i1006; + for (_i1006 = 0; _i1006 < _size1002; ++_i1006) { - xfer += this->success[_i990].read(iprot); + xfer += this->success[_i1006].read(iprot); } xfer += iprot->readListEnd(); } @@ -12788,10 +13202,10 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::write(::apache::thrift: 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 _iter991; - for (_iter991 = this->success.begin(); _iter991 != this->success.end(); ++_iter991) + std::vector ::const_iterator _iter1007; + for (_iter1007 = this->success.begin(); _iter1007 != this->success.end(); ++_iter1007) { - xfer += (*_iter991).write(oprot); + xfer += (*_iter1007).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12848,14 +13262,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size992; - ::apache::thrift::protocol::TType _etype995; - xfer += iprot->readListBegin(_etype995, _size992); - (*(this->success)).resize(_size992); - uint32_t _i996; - for (_i996 = 0; _i996 < _size992; ++_i996) + uint32_t _size1008; + ::apache::thrift::protocol::TType _etype1011; + xfer += iprot->readListBegin(_etype1011, _size1008); + (*(this->success)).resize(_size1008); + uint32_t _i1012; + for (_i1012 = 0; _i1012 < _size1008; ++_i1012) { - xfer += (*(this->success))[_i996].read(iprot); + xfer += (*(this->success))[_i1012].read(iprot); } xfer += iprot->readListEnd(); } @@ -12954,14 +13368,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 _size997; - ::apache::thrift::protocol::TType _etype1000; - xfer += iprot->readListBegin(_etype1000, _size997); - this->part_vals.resize(_size997); - uint32_t _i1001; - for (_i1001 = 0; _i1001 < _size997; ++_i1001) + uint32_t _size1013; + ::apache::thrift::protocol::TType _etype1016; + xfer += iprot->readListBegin(_etype1016, _size1013); + this->part_vals.resize(_size1013); + uint32_t _i1017; + for (_i1017 = 0; _i1017 < _size1013; ++_i1017) { - xfer += iprot->readString(this->part_vals[_i1001]); + xfer += iprot->readString(this->part_vals[_i1017]); } xfer += iprot->readListEnd(); } @@ -12982,14 +13396,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 _size1002; - ::apache::thrift::protocol::TType _etype1005; - xfer += iprot->readListBegin(_etype1005, _size1002); - this->group_names.resize(_size1002); - uint32_t _i1006; - for (_i1006 = 0; _i1006 < _size1002; ++_i1006) + uint32_t _size1018; + ::apache::thrift::protocol::TType _etype1021; + xfer += iprot->readListBegin(_etype1021, _size1018); + this->group_names.resize(_size1018); + uint32_t _i1022; + for (_i1022 = 0; _i1022 < _size1018; ++_i1022) { - xfer += iprot->readString(this->group_names[_i1006]); + xfer += iprot->readString(this->group_names[_i1022]); } xfer += iprot->readListEnd(); } @@ -13026,10 +13440,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 _iter1007; - for (_iter1007 = this->part_vals.begin(); _iter1007 != this->part_vals.end(); ++_iter1007) + std::vector ::const_iterator _iter1023; + for (_iter1023 = this->part_vals.begin(); _iter1023 != this->part_vals.end(); ++_iter1023) { - xfer += oprot->writeString((*_iter1007)); + xfer += oprot->writeString((*_iter1023)); } xfer += oprot->writeListEnd(); } @@ -13042,10 +13456,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 _iter1008; - for (_iter1008 = this->group_names.begin(); _iter1008 != this->group_names.end(); ++_iter1008) + std::vector ::const_iterator _iter1024; + for (_iter1024 = this->group_names.begin(); _iter1024 != this->group_names.end(); ++_iter1024) { - xfer += oprot->writeString((*_iter1008)); + xfer += oprot->writeString((*_iter1024)); } xfer += oprot->writeListEnd(); } @@ -13077,10 +13491,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 _iter1009; - for (_iter1009 = (*(this->part_vals)).begin(); _iter1009 != (*(this->part_vals)).end(); ++_iter1009) + std::vector ::const_iterator _iter1025; + for (_iter1025 = (*(this->part_vals)).begin(); _iter1025 != (*(this->part_vals)).end(); ++_iter1025) { - xfer += oprot->writeString((*_iter1009)); + xfer += oprot->writeString((*_iter1025)); } xfer += oprot->writeListEnd(); } @@ -13093,10 +13507,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 _iter1010; - for (_iter1010 = (*(this->group_names)).begin(); _iter1010 != (*(this->group_names)).end(); ++_iter1010) + std::vector ::const_iterator _iter1026; + for (_iter1026 = (*(this->group_names)).begin(); _iter1026 != (*(this->group_names)).end(); ++_iter1026) { - xfer += oprot->writeString((*_iter1010)); + xfer += oprot->writeString((*_iter1026)); } xfer += oprot->writeListEnd(); } @@ -13655,14 +14069,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1011; - ::apache::thrift::protocol::TType _etype1014; - xfer += iprot->readListBegin(_etype1014, _size1011); - this->success.resize(_size1011); - uint32_t _i1015; - for (_i1015 = 0; _i1015 < _size1011; ++_i1015) + uint32_t _size1027; + ::apache::thrift::protocol::TType _etype1030; + xfer += iprot->readListBegin(_etype1030, _size1027); + this->success.resize(_size1027); + uint32_t _i1031; + for (_i1031 = 0; _i1031 < _size1027; ++_i1031) { - xfer += this->success[_i1015].read(iprot); + xfer += this->success[_i1031].read(iprot); } xfer += iprot->readListEnd(); } @@ -13709,10 +14123,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 _iter1016; - for (_iter1016 = this->success.begin(); _iter1016 != this->success.end(); ++_iter1016) + std::vector ::const_iterator _iter1032; + for (_iter1032 = this->success.begin(); _iter1032 != this->success.end(); ++_iter1032) { - xfer += (*_iter1016).write(oprot); + xfer += (*_iter1032).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13761,14 +14175,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1017; - ::apache::thrift::protocol::TType _etype1020; - xfer += iprot->readListBegin(_etype1020, _size1017); - (*(this->success)).resize(_size1017); - uint32_t _i1021; - for (_i1021 = 0; _i1021 < _size1017; ++_i1021) + uint32_t _size1033; + ::apache::thrift::protocol::TType _etype1036; + xfer += iprot->readListBegin(_etype1036, _size1033); + (*(this->success)).resize(_size1033); + uint32_t _i1037; + for (_i1037 = 0; _i1037 < _size1033; ++_i1037) { - xfer += (*(this->success))[_i1021].read(iprot); + xfer += (*(this->success))[_i1037].read(iprot); } xfer += iprot->readListEnd(); } @@ -13867,14 +14281,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 _size1022; - ::apache::thrift::protocol::TType _etype1025; - xfer += iprot->readListBegin(_etype1025, _size1022); - this->group_names.resize(_size1022); - uint32_t _i1026; - for (_i1026 = 0; _i1026 < _size1022; ++_i1026) + uint32_t _size1038; + ::apache::thrift::protocol::TType _etype1041; + xfer += iprot->readListBegin(_etype1041, _size1038); + this->group_names.resize(_size1038); + uint32_t _i1042; + for (_i1042 = 0; _i1042 < _size1038; ++_i1042) { - xfer += iprot->readString(this->group_names[_i1026]); + xfer += iprot->readString(this->group_names[_i1042]); } xfer += iprot->readListEnd(); } @@ -13919,10 +14333,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 _iter1027; - for (_iter1027 = this->group_names.begin(); _iter1027 != this->group_names.end(); ++_iter1027) + std::vector ::const_iterator _iter1043; + for (_iter1043 = this->group_names.begin(); _iter1043 != this->group_names.end(); ++_iter1043) { - xfer += oprot->writeString((*_iter1027)); + xfer += oprot->writeString((*_iter1043)); } xfer += oprot->writeListEnd(); } @@ -13962,10 +14376,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 _iter1028; - for (_iter1028 = (*(this->group_names)).begin(); _iter1028 != (*(this->group_names)).end(); ++_iter1028) + std::vector ::const_iterator _iter1044; + for (_iter1044 = (*(this->group_names)).begin(); _iter1044 != (*(this->group_names)).end(); ++_iter1044) { - xfer += oprot->writeString((*_iter1028)); + xfer += oprot->writeString((*_iter1044)); } xfer += oprot->writeListEnd(); } @@ -14006,14 +14420,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1029; - ::apache::thrift::protocol::TType _etype1032; - xfer += iprot->readListBegin(_etype1032, _size1029); - this->success.resize(_size1029); - uint32_t _i1033; - for (_i1033 = 0; _i1033 < _size1029; ++_i1033) + uint32_t _size1045; + ::apache::thrift::protocol::TType _etype1048; + xfer += iprot->readListBegin(_etype1048, _size1045); + this->success.resize(_size1045); + uint32_t _i1049; + for (_i1049 = 0; _i1049 < _size1045; ++_i1049) { - xfer += this->success[_i1033].read(iprot); + xfer += this->success[_i1049].read(iprot); } xfer += iprot->readListEnd(); } @@ -14060,10 +14474,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 _iter1034; - for (_iter1034 = this->success.begin(); _iter1034 != this->success.end(); ++_iter1034) + std::vector ::const_iterator _iter1050; + for (_iter1050 = this->success.begin(); _iter1050 != this->success.end(); ++_iter1050) { - xfer += (*_iter1034).write(oprot); + xfer += (*_iter1050).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14112,14 +14526,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1035; - ::apache::thrift::protocol::TType _etype1038; - xfer += iprot->readListBegin(_etype1038, _size1035); - (*(this->success)).resize(_size1035); - uint32_t _i1039; - for (_i1039 = 0; _i1039 < _size1035; ++_i1039) + uint32_t _size1051; + ::apache::thrift::protocol::TType _etype1054; + xfer += iprot->readListBegin(_etype1054, _size1051); + (*(this->success)).resize(_size1051); + uint32_t _i1055; + for (_i1055 = 0; _i1055 < _size1051; ++_i1055) { - xfer += (*(this->success))[_i1039].read(iprot); + xfer += (*(this->success))[_i1055].read(iprot); } xfer += iprot->readListEnd(); } @@ -14297,14 +14711,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1040; - ::apache::thrift::protocol::TType _etype1043; - xfer += iprot->readListBegin(_etype1043, _size1040); - this->success.resize(_size1040); - uint32_t _i1044; - for (_i1044 = 0; _i1044 < _size1040; ++_i1044) + uint32_t _size1056; + ::apache::thrift::protocol::TType _etype1059; + xfer += iprot->readListBegin(_etype1059, _size1056); + this->success.resize(_size1056); + uint32_t _i1060; + for (_i1060 = 0; _i1060 < _size1056; ++_i1060) { - xfer += this->success[_i1044].read(iprot); + xfer += this->success[_i1060].read(iprot); } xfer += iprot->readListEnd(); } @@ -14351,10 +14765,10 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::write(::apache::thrift 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 _iter1045; - for (_iter1045 = this->success.begin(); _iter1045 != this->success.end(); ++_iter1045) + std::vector ::const_iterator _iter1061; + for (_iter1061 = this->success.begin(); _iter1061 != this->success.end(); ++_iter1061) { - xfer += (*_iter1045).write(oprot); + xfer += (*_iter1061).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14403,14 +14817,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1046; - ::apache::thrift::protocol::TType _etype1049; - xfer += iprot->readListBegin(_etype1049, _size1046); - (*(this->success)).resize(_size1046); - uint32_t _i1050; - for (_i1050 = 0; _i1050 < _size1046; ++_i1050) + uint32_t _size1062; + ::apache::thrift::protocol::TType _etype1065; + xfer += iprot->readListBegin(_etype1065, _size1062); + (*(this->success)).resize(_size1062); + uint32_t _i1066; + for (_i1066 = 0; _i1066 < _size1062; ++_i1066) { - xfer += (*(this->success))[_i1050].read(iprot); + xfer += (*(this->success))[_i1066].read(iprot); } xfer += iprot->readListEnd(); } @@ -14588,14 +15002,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1051; - ::apache::thrift::protocol::TType _etype1054; - xfer += iprot->readListBegin(_etype1054, _size1051); - this->success.resize(_size1051); - uint32_t _i1055; - for (_i1055 = 0; _i1055 < _size1051; ++_i1055) + uint32_t _size1067; + ::apache::thrift::protocol::TType _etype1070; + xfer += iprot->readListBegin(_etype1070, _size1067); + this->success.resize(_size1067); + uint32_t _i1071; + for (_i1071 = 0; _i1071 < _size1067; ++_i1071) { - xfer += iprot->readString(this->success[_i1055]); + xfer += iprot->readString(this->success[_i1071]); } xfer += iprot->readListEnd(); } @@ -14634,10 +15048,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 _iter1056; - for (_iter1056 = this->success.begin(); _iter1056 != this->success.end(); ++_iter1056) + std::vector ::const_iterator _iter1072; + for (_iter1072 = this->success.begin(); _iter1072 != this->success.end(); ++_iter1072) { - xfer += oprot->writeString((*_iter1056)); + xfer += oprot->writeString((*_iter1072)); } xfer += oprot->writeListEnd(); } @@ -14682,14 +15096,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1057; - ::apache::thrift::protocol::TType _etype1060; - xfer += iprot->readListBegin(_etype1060, _size1057); - (*(this->success)).resize(_size1057); - uint32_t _i1061; - for (_i1061 = 0; _i1061 < _size1057; ++_i1061) + uint32_t _size1073; + ::apache::thrift::protocol::TType _etype1076; + xfer += iprot->readListBegin(_etype1076, _size1073); + (*(this->success)).resize(_size1073); + uint32_t _i1077; + for (_i1077 = 0; _i1077 < _size1073; ++_i1077) { - xfer += iprot->readString((*(this->success))[_i1061]); + xfer += iprot->readString((*(this->success))[_i1077]); } xfer += iprot->readListEnd(); } @@ -14764,14 +15178,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 _size1062; - ::apache::thrift::protocol::TType _etype1065; - xfer += iprot->readListBegin(_etype1065, _size1062); - this->part_vals.resize(_size1062); - uint32_t _i1066; - for (_i1066 = 0; _i1066 < _size1062; ++_i1066) + uint32_t _size1078; + ::apache::thrift::protocol::TType _etype1081; + xfer += iprot->readListBegin(_etype1081, _size1078); + this->part_vals.resize(_size1078); + uint32_t _i1082; + for (_i1082 = 0; _i1082 < _size1078; ++_i1082) { - xfer += iprot->readString(this->part_vals[_i1066]); + xfer += iprot->readString(this->part_vals[_i1082]); } xfer += iprot->readListEnd(); } @@ -14816,10 +15230,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 _iter1067; - for (_iter1067 = this->part_vals.begin(); _iter1067 != this->part_vals.end(); ++_iter1067) + std::vector ::const_iterator _iter1083; + for (_iter1083 = this->part_vals.begin(); _iter1083 != this->part_vals.end(); ++_iter1083) { - xfer += oprot->writeString((*_iter1067)); + xfer += oprot->writeString((*_iter1083)); } xfer += oprot->writeListEnd(); } @@ -14855,10 +15269,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 _iter1068; - for (_iter1068 = (*(this->part_vals)).begin(); _iter1068 != (*(this->part_vals)).end(); ++_iter1068) + std::vector ::const_iterator _iter1084; + for (_iter1084 = (*(this->part_vals)).begin(); _iter1084 != (*(this->part_vals)).end(); ++_iter1084) { - xfer += oprot->writeString((*_iter1068)); + xfer += oprot->writeString((*_iter1084)); } xfer += oprot->writeListEnd(); } @@ -14903,14 +15317,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1069; - ::apache::thrift::protocol::TType _etype1072; - xfer += iprot->readListBegin(_etype1072, _size1069); - this->success.resize(_size1069); - uint32_t _i1073; - for (_i1073 = 0; _i1073 < _size1069; ++_i1073) + uint32_t _size1085; + ::apache::thrift::protocol::TType _etype1088; + xfer += iprot->readListBegin(_etype1088, _size1085); + this->success.resize(_size1085); + uint32_t _i1089; + for (_i1089 = 0; _i1089 < _size1085; ++_i1089) { - xfer += this->success[_i1073].read(iprot); + xfer += this->success[_i1089].read(iprot); } xfer += iprot->readListEnd(); } @@ -14957,10 +15371,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 _iter1074; - for (_iter1074 = this->success.begin(); _iter1074 != this->success.end(); ++_iter1074) + std::vector ::const_iterator _iter1090; + for (_iter1090 = this->success.begin(); _iter1090 != this->success.end(); ++_iter1090) { - xfer += (*_iter1074).write(oprot); + xfer += (*_iter1090).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15009,14 +15423,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1075; - ::apache::thrift::protocol::TType _etype1078; - xfer += iprot->readListBegin(_etype1078, _size1075); - (*(this->success)).resize(_size1075); - uint32_t _i1079; - for (_i1079 = 0; _i1079 < _size1075; ++_i1079) + uint32_t _size1091; + ::apache::thrift::protocol::TType _etype1094; + xfer += iprot->readListBegin(_etype1094, _size1091); + (*(this->success)).resize(_size1091); + uint32_t _i1095; + for (_i1095 = 0; _i1095 < _size1091; ++_i1095) { - xfer += (*(this->success))[_i1079].read(iprot); + xfer += (*(this->success))[_i1095].read(iprot); } xfer += iprot->readListEnd(); } @@ -15099,14 +15513,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 _size1080; - ::apache::thrift::protocol::TType _etype1083; - xfer += iprot->readListBegin(_etype1083, _size1080); - this->part_vals.resize(_size1080); - uint32_t _i1084; - for (_i1084 = 0; _i1084 < _size1080; ++_i1084) + uint32_t _size1096; + ::apache::thrift::protocol::TType _etype1099; + xfer += iprot->readListBegin(_etype1099, _size1096); + this->part_vals.resize(_size1096); + uint32_t _i1100; + for (_i1100 = 0; _i1100 < _size1096; ++_i1100) { - xfer += iprot->readString(this->part_vals[_i1084]); + xfer += iprot->readString(this->part_vals[_i1100]); } xfer += iprot->readListEnd(); } @@ -15135,14 +15549,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 _size1085; - ::apache::thrift::protocol::TType _etype1088; - xfer += iprot->readListBegin(_etype1088, _size1085); - this->group_names.resize(_size1085); - uint32_t _i1089; - for (_i1089 = 0; _i1089 < _size1085; ++_i1089) + uint32_t _size1101; + ::apache::thrift::protocol::TType _etype1104; + xfer += iprot->readListBegin(_etype1104, _size1101); + this->group_names.resize(_size1101); + uint32_t _i1105; + for (_i1105 = 0; _i1105 < _size1101; ++_i1105) { - xfer += iprot->readString(this->group_names[_i1089]); + xfer += iprot->readString(this->group_names[_i1105]); } xfer += iprot->readListEnd(); } @@ -15179,10 +15593,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 _iter1090; - for (_iter1090 = this->part_vals.begin(); _iter1090 != this->part_vals.end(); ++_iter1090) + std::vector ::const_iterator _iter1106; + for (_iter1106 = this->part_vals.begin(); _iter1106 != this->part_vals.end(); ++_iter1106) { - xfer += oprot->writeString((*_iter1090)); + xfer += oprot->writeString((*_iter1106)); } xfer += oprot->writeListEnd(); } @@ -15199,10 +15613,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 _iter1091; - for (_iter1091 = this->group_names.begin(); _iter1091 != this->group_names.end(); ++_iter1091) + std::vector ::const_iterator _iter1107; + for (_iter1107 = this->group_names.begin(); _iter1107 != this->group_names.end(); ++_iter1107) { - xfer += oprot->writeString((*_iter1091)); + xfer += oprot->writeString((*_iter1107)); } xfer += oprot->writeListEnd(); } @@ -15234,10 +15648,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 _iter1092; - for (_iter1092 = (*(this->part_vals)).begin(); _iter1092 != (*(this->part_vals)).end(); ++_iter1092) + std::vector ::const_iterator _iter1108; + for (_iter1108 = (*(this->part_vals)).begin(); _iter1108 != (*(this->part_vals)).end(); ++_iter1108) { - xfer += oprot->writeString((*_iter1092)); + xfer += oprot->writeString((*_iter1108)); } xfer += oprot->writeListEnd(); } @@ -15254,10 +15668,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 _iter1093; - for (_iter1093 = (*(this->group_names)).begin(); _iter1093 != (*(this->group_names)).end(); ++_iter1093) + std::vector ::const_iterator _iter1109; + for (_iter1109 = (*(this->group_names)).begin(); _iter1109 != (*(this->group_names)).end(); ++_iter1109) { - xfer += oprot->writeString((*_iter1093)); + xfer += oprot->writeString((*_iter1109)); } xfer += oprot->writeListEnd(); } @@ -15298,14 +15712,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1094; - ::apache::thrift::protocol::TType _etype1097; - xfer += iprot->readListBegin(_etype1097, _size1094); - this->success.resize(_size1094); - uint32_t _i1098; - for (_i1098 = 0; _i1098 < _size1094; ++_i1098) + uint32_t _size1110; + ::apache::thrift::protocol::TType _etype1113; + xfer += iprot->readListBegin(_etype1113, _size1110); + this->success.resize(_size1110); + uint32_t _i1114; + for (_i1114 = 0; _i1114 < _size1110; ++_i1114) { - xfer += this->success[_i1098].read(iprot); + xfer += this->success[_i1114].read(iprot); } xfer += iprot->readListEnd(); } @@ -15352,10 +15766,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 _iter1099; - for (_iter1099 = this->success.begin(); _iter1099 != this->success.end(); ++_iter1099) + std::vector ::const_iterator _iter1115; + for (_iter1115 = this->success.begin(); _iter1115 != this->success.end(); ++_iter1115) { - xfer += (*_iter1099).write(oprot); + xfer += (*_iter1115).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15404,14 +15818,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1100; - ::apache::thrift::protocol::TType _etype1103; - xfer += iprot->readListBegin(_etype1103, _size1100); - (*(this->success)).resize(_size1100); - uint32_t _i1104; - for (_i1104 = 0; _i1104 < _size1100; ++_i1104) + uint32_t _size1116; + ::apache::thrift::protocol::TType _etype1119; + xfer += iprot->readListBegin(_etype1119, _size1116); + (*(this->success)).resize(_size1116); + uint32_t _i1120; + for (_i1120 = 0; _i1120 < _size1116; ++_i1120) { - xfer += (*(this->success))[_i1104].read(iprot); + xfer += (*(this->success))[_i1120].read(iprot); } xfer += iprot->readListEnd(); } @@ -15494,14 +15908,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 _size1105; - ::apache::thrift::protocol::TType _etype1108; - xfer += iprot->readListBegin(_etype1108, _size1105); - this->part_vals.resize(_size1105); - uint32_t _i1109; - for (_i1109 = 0; _i1109 < _size1105; ++_i1109) + uint32_t _size1121; + ::apache::thrift::protocol::TType _etype1124; + xfer += iprot->readListBegin(_etype1124, _size1121); + this->part_vals.resize(_size1121); + uint32_t _i1125; + for (_i1125 = 0; _i1125 < _size1121; ++_i1125) { - xfer += iprot->readString(this->part_vals[_i1109]); + xfer += iprot->readString(this->part_vals[_i1125]); } xfer += iprot->readListEnd(); } @@ -15546,10 +15960,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 _iter1110; - for (_iter1110 = this->part_vals.begin(); _iter1110 != this->part_vals.end(); ++_iter1110) + std::vector ::const_iterator _iter1126; + for (_iter1126 = this->part_vals.begin(); _iter1126 != this->part_vals.end(); ++_iter1126) { - xfer += oprot->writeString((*_iter1110)); + xfer += oprot->writeString((*_iter1126)); } xfer += oprot->writeListEnd(); } @@ -15585,10 +15999,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 _iter1111; - for (_iter1111 = (*(this->part_vals)).begin(); _iter1111 != (*(this->part_vals)).end(); ++_iter1111) + std::vector ::const_iterator _iter1127; + for (_iter1127 = (*(this->part_vals)).begin(); _iter1127 != (*(this->part_vals)).end(); ++_iter1127) { - xfer += oprot->writeString((*_iter1111)); + xfer += oprot->writeString((*_iter1127)); } xfer += oprot->writeListEnd(); } @@ -15633,14 +16047,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1112; - ::apache::thrift::protocol::TType _etype1115; - xfer += iprot->readListBegin(_etype1115, _size1112); - this->success.resize(_size1112); - uint32_t _i1116; - for (_i1116 = 0; _i1116 < _size1112; ++_i1116) + uint32_t _size1128; + ::apache::thrift::protocol::TType _etype1131; + xfer += iprot->readListBegin(_etype1131, _size1128); + this->success.resize(_size1128); + uint32_t _i1132; + for (_i1132 = 0; _i1132 < _size1128; ++_i1132) { - xfer += iprot->readString(this->success[_i1116]); + xfer += iprot->readString(this->success[_i1132]); } xfer += iprot->readListEnd(); } @@ -15687,10 +16101,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 _iter1117; - for (_iter1117 = this->success.begin(); _iter1117 != this->success.end(); ++_iter1117) + std::vector ::const_iterator _iter1133; + for (_iter1133 = this->success.begin(); _iter1133 != this->success.end(); ++_iter1133) { - xfer += oprot->writeString((*_iter1117)); + xfer += oprot->writeString((*_iter1133)); } xfer += oprot->writeListEnd(); } @@ -15739,14 +16153,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1118; - ::apache::thrift::protocol::TType _etype1121; - xfer += iprot->readListBegin(_etype1121, _size1118); - (*(this->success)).resize(_size1118); - uint32_t _i1122; - for (_i1122 = 0; _i1122 < _size1118; ++_i1122) + uint32_t _size1134; + ::apache::thrift::protocol::TType _etype1137; + xfer += iprot->readListBegin(_etype1137, _size1134); + (*(this->success)).resize(_size1134); + uint32_t _i1138; + for (_i1138 = 0; _i1138 < _size1134; ++_i1138) { - xfer += iprot->readString((*(this->success))[_i1122]); + xfer += iprot->readString((*(this->success))[_i1138]); } xfer += iprot->readListEnd(); } @@ -15940,14 +16354,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1123; - ::apache::thrift::protocol::TType _etype1126; - xfer += iprot->readListBegin(_etype1126, _size1123); - this->success.resize(_size1123); - uint32_t _i1127; - for (_i1127 = 0; _i1127 < _size1123; ++_i1127) + uint32_t _size1139; + ::apache::thrift::protocol::TType _etype1142; + xfer += iprot->readListBegin(_etype1142, _size1139); + this->success.resize(_size1139); + uint32_t _i1143; + for (_i1143 = 0; _i1143 < _size1139; ++_i1143) { - xfer += this->success[_i1127].read(iprot); + xfer += this->success[_i1143].read(iprot); } xfer += iprot->readListEnd(); } @@ -15994,10 +16408,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 _iter1128; - for (_iter1128 = this->success.begin(); _iter1128 != this->success.end(); ++_iter1128) + std::vector ::const_iterator _iter1144; + for (_iter1144 = this->success.begin(); _iter1144 != this->success.end(); ++_iter1144) { - xfer += (*_iter1128).write(oprot); + xfer += (*_iter1144).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16046,14 +16460,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1129; - ::apache::thrift::protocol::TType _etype1132; - xfer += iprot->readListBegin(_etype1132, _size1129); - (*(this->success)).resize(_size1129); - uint32_t _i1133; - for (_i1133 = 0; _i1133 < _size1129; ++_i1133) + uint32_t _size1145; + ::apache::thrift::protocol::TType _etype1148; + xfer += iprot->readListBegin(_etype1148, _size1145); + (*(this->success)).resize(_size1145); + uint32_t _i1149; + for (_i1149 = 0; _i1149 < _size1145; ++_i1149) { - xfer += (*(this->success))[_i1133].read(iprot); + xfer += (*(this->success))[_i1149].read(iprot); } xfer += iprot->readListEnd(); } @@ -16247,14 +16661,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1134; - ::apache::thrift::protocol::TType _etype1137; - xfer += iprot->readListBegin(_etype1137, _size1134); - this->success.resize(_size1134); - uint32_t _i1138; - for (_i1138 = 0; _i1138 < _size1134; ++_i1138) + uint32_t _size1150; + ::apache::thrift::protocol::TType _etype1153; + xfer += iprot->readListBegin(_etype1153, _size1150); + this->success.resize(_size1150); + uint32_t _i1154; + for (_i1154 = 0; _i1154 < _size1150; ++_i1154) { - xfer += this->success[_i1138].read(iprot); + xfer += this->success[_i1154].read(iprot); } xfer += iprot->readListEnd(); } @@ -16301,10 +16715,10 @@ uint32_t ThriftHiveMetastore_get_part_specs_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 _iter1139; - for (_iter1139 = this->success.begin(); _iter1139 != this->success.end(); ++_iter1139) + std::vector ::const_iterator _iter1155; + for (_iter1155 = this->success.begin(); _iter1155 != this->success.end(); ++_iter1155) { - xfer += (*_iter1139).write(oprot); + xfer += (*_iter1155).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16353,14 +16767,14 @@ uint32_t ThriftHiveMetastore_get_part_specs_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1140; - ::apache::thrift::protocol::TType _etype1143; - xfer += iprot->readListBegin(_etype1143, _size1140); - (*(this->success)).resize(_size1140); - uint32_t _i1144; - for (_i1144 = 0; _i1144 < _size1140; ++_i1144) + uint32_t _size1156; + ::apache::thrift::protocol::TType _etype1159; + xfer += iprot->readListBegin(_etype1159, _size1156); + (*(this->success)).resize(_size1156); + uint32_t _i1160; + for (_i1160 = 0; _i1160 < _size1156; ++_i1160) { - xfer += (*(this->success))[_i1144].read(iprot); + xfer += (*(this->success))[_i1160].read(iprot); } xfer += iprot->readListEnd(); } @@ -16929,14 +17343,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1145; - ::apache::thrift::protocol::TType _etype1148; - xfer += iprot->readListBegin(_etype1148, _size1145); - this->names.resize(_size1145); - uint32_t _i1149; - for (_i1149 = 0; _i1149 < _size1145; ++_i1149) + uint32_t _size1161; + ::apache::thrift::protocol::TType _etype1164; + xfer += iprot->readListBegin(_etype1164, _size1161); + this->names.resize(_size1161); + uint32_t _i1165; + for (_i1165 = 0; _i1165 < _size1161; ++_i1165) { - xfer += iprot->readString(this->names[_i1149]); + xfer += iprot->readString(this->names[_i1165]); } xfer += iprot->readListEnd(); } @@ -16973,10 +17387,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 _iter1150; - for (_iter1150 = this->names.begin(); _iter1150 != this->names.end(); ++_iter1150) + std::vector ::const_iterator _iter1166; + for (_iter1166 = this->names.begin(); _iter1166 != this->names.end(); ++_iter1166) { - xfer += oprot->writeString((*_iter1150)); + xfer += oprot->writeString((*_iter1166)); } xfer += oprot->writeListEnd(); } @@ -17008,10 +17422,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 _iter1151; - for (_iter1151 = (*(this->names)).begin(); _iter1151 != (*(this->names)).end(); ++_iter1151) + std::vector ::const_iterator _iter1167; + for (_iter1167 = (*(this->names)).begin(); _iter1167 != (*(this->names)).end(); ++_iter1167) { - xfer += oprot->writeString((*_iter1151)); + xfer += oprot->writeString((*_iter1167)); } xfer += oprot->writeListEnd(); } @@ -17052,14 +17466,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1152; - ::apache::thrift::protocol::TType _etype1155; - xfer += iprot->readListBegin(_etype1155, _size1152); - this->success.resize(_size1152); - uint32_t _i1156; - for (_i1156 = 0; _i1156 < _size1152; ++_i1156) + uint32_t _size1168; + ::apache::thrift::protocol::TType _etype1171; + xfer += iprot->readListBegin(_etype1171, _size1168); + this->success.resize(_size1168); + uint32_t _i1172; + for (_i1172 = 0; _i1172 < _size1168; ++_i1172) { - xfer += this->success[_i1156].read(iprot); + xfer += this->success[_i1172].read(iprot); } xfer += iprot->readListEnd(); } @@ -17106,10 +17520,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 _iter1157; - for (_iter1157 = this->success.begin(); _iter1157 != this->success.end(); ++_iter1157) + std::vector ::const_iterator _iter1173; + for (_iter1173 = this->success.begin(); _iter1173 != this->success.end(); ++_iter1173) { - xfer += (*_iter1157).write(oprot); + xfer += (*_iter1173).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17158,14 +17572,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1158; - ::apache::thrift::protocol::TType _etype1161; - xfer += iprot->readListBegin(_etype1161, _size1158); - (*(this->success)).resize(_size1158); - uint32_t _i1162; - for (_i1162 = 0; _i1162 < _size1158; ++_i1162) + uint32_t _size1174; + ::apache::thrift::protocol::TType _etype1177; + xfer += iprot->readListBegin(_etype1177, _size1174); + (*(this->success)).resize(_size1174); + uint32_t _i1178; + for (_i1178 = 0; _i1178 < _size1174; ++_i1178) { - xfer += (*(this->success))[_i1162].read(iprot); + xfer += (*(this->success))[_i1178].read(iprot); } xfer += iprot->readListEnd(); } @@ -17487,14 +17901,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1163; - ::apache::thrift::protocol::TType _etype1166; - xfer += iprot->readListBegin(_etype1166, _size1163); - this->new_parts.resize(_size1163); - uint32_t _i1167; - for (_i1167 = 0; _i1167 < _size1163; ++_i1167) + uint32_t _size1179; + ::apache::thrift::protocol::TType _etype1182; + xfer += iprot->readListBegin(_etype1182, _size1179); + this->new_parts.resize(_size1179); + uint32_t _i1183; + for (_i1183 = 0; _i1183 < _size1179; ++_i1183) { - xfer += this->new_parts[_i1167].read(iprot); + xfer += this->new_parts[_i1183].read(iprot); } xfer += iprot->readListEnd(); } @@ -17531,10 +17945,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 _iter1168; - for (_iter1168 = this->new_parts.begin(); _iter1168 != this->new_parts.end(); ++_iter1168) + std::vector ::const_iterator _iter1184; + for (_iter1184 = this->new_parts.begin(); _iter1184 != this->new_parts.end(); ++_iter1184) { - xfer += (*_iter1168).write(oprot); + xfer += (*_iter1184).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17566,10 +17980,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 _iter1169; - for (_iter1169 = (*(this->new_parts)).begin(); _iter1169 != (*(this->new_parts)).end(); ++_iter1169) + std::vector ::const_iterator _iter1185; + for (_iter1185 = (*(this->new_parts)).begin(); _iter1185 != (*(this->new_parts)).end(); ++_iter1185) { - xfer += (*_iter1169).write(oprot); + xfer += (*_iter1185).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17754,14 +18168,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1170; - ::apache::thrift::protocol::TType _etype1173; - xfer += iprot->readListBegin(_etype1173, _size1170); - this->new_parts.resize(_size1170); - uint32_t _i1174; - for (_i1174 = 0; _i1174 < _size1170; ++_i1174) + uint32_t _size1186; + ::apache::thrift::protocol::TType _etype1189; + xfer += iprot->readListBegin(_etype1189, _size1186); + this->new_parts.resize(_size1186); + uint32_t _i1190; + for (_i1190 = 0; _i1190 < _size1186; ++_i1190) { - xfer += this->new_parts[_i1174].read(iprot); + xfer += this->new_parts[_i1190].read(iprot); } xfer += iprot->readListEnd(); } @@ -17806,10 +18220,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::wri 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 _iter1175; - for (_iter1175 = this->new_parts.begin(); _iter1175 != this->new_parts.end(); ++_iter1175) + std::vector ::const_iterator _iter1191; + for (_iter1191 = this->new_parts.begin(); _iter1191 != this->new_parts.end(); ++_iter1191) { - xfer += (*_iter1175).write(oprot); + xfer += (*_iter1191).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17845,10 +18259,10 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_pargs::wr 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 _iter1176; - for (_iter1176 = (*(this->new_parts)).begin(); _iter1176 != (*(this->new_parts)).end(); ++_iter1176) + std::vector ::const_iterator _iter1192; + for (_iter1192 = (*(this->new_parts)).begin(); _iter1192 != (*(this->new_parts)).end(); ++_iter1192) { - xfer += (*_iter1176).write(oprot); + xfer += (*_iter1192).write(oprot); } xfer += oprot->writeListEnd(); } @@ -18292,14 +18706,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1177; - ::apache::thrift::protocol::TType _etype1180; - xfer += iprot->readListBegin(_etype1180, _size1177); - this->part_vals.resize(_size1177); - uint32_t _i1181; - for (_i1181 = 0; _i1181 < _size1177; ++_i1181) + uint32_t _size1193; + ::apache::thrift::protocol::TType _etype1196; + xfer += iprot->readListBegin(_etype1196, _size1193); + this->part_vals.resize(_size1193); + uint32_t _i1197; + for (_i1197 = 0; _i1197 < _size1193; ++_i1197) { - xfer += iprot->readString(this->part_vals[_i1181]); + xfer += iprot->readString(this->part_vals[_i1197]); } xfer += iprot->readListEnd(); } @@ -18344,10 +18758,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 _iter1182; - for (_iter1182 = this->part_vals.begin(); _iter1182 != this->part_vals.end(); ++_iter1182) + std::vector ::const_iterator _iter1198; + for (_iter1198 = this->part_vals.begin(); _iter1198 != this->part_vals.end(); ++_iter1198) { - xfer += oprot->writeString((*_iter1182)); + xfer += oprot->writeString((*_iter1198)); } xfer += oprot->writeListEnd(); } @@ -18383,10 +18797,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 _iter1183; - for (_iter1183 = (*(this->part_vals)).begin(); _iter1183 != (*(this->part_vals)).end(); ++_iter1183) + std::vector ::const_iterator _iter1199; + for (_iter1199 = (*(this->part_vals)).begin(); _iter1199 != (*(this->part_vals)).end(); ++_iter1199) { - xfer += oprot->writeString((*_iter1183)); + xfer += oprot->writeString((*_iter1199)); } xfer += oprot->writeListEnd(); } @@ -18559,14 +18973,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 _size1184; - ::apache::thrift::protocol::TType _etype1187; - xfer += iprot->readListBegin(_etype1187, _size1184); - this->part_vals.resize(_size1184); - uint32_t _i1188; - for (_i1188 = 0; _i1188 < _size1184; ++_i1188) + uint32_t _size1200; + ::apache::thrift::protocol::TType _etype1203; + xfer += iprot->readListBegin(_etype1203, _size1200); + this->part_vals.resize(_size1200); + uint32_t _i1204; + for (_i1204 = 0; _i1204 < _size1200; ++_i1204) { - xfer += iprot->readString(this->part_vals[_i1188]); + xfer += iprot->readString(this->part_vals[_i1204]); } xfer += iprot->readListEnd(); } @@ -18603,10 +19017,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 _iter1189; - for (_iter1189 = this->part_vals.begin(); _iter1189 != this->part_vals.end(); ++_iter1189) + std::vector ::const_iterator _iter1205; + for (_iter1205 = this->part_vals.begin(); _iter1205 != this->part_vals.end(); ++_iter1205) { - xfer += oprot->writeString((*_iter1189)); + xfer += oprot->writeString((*_iter1205)); } xfer += oprot->writeListEnd(); } @@ -18634,10 +19048,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 _iter1190; - for (_iter1190 = (*(this->part_vals)).begin(); _iter1190 != (*(this->part_vals)).end(); ++_iter1190) + std::vector ::const_iterator _iter1206; + for (_iter1206 = (*(this->part_vals)).begin(); _iter1206 != (*(this->part_vals)).end(); ++_iter1206) { - xfer += oprot->writeString((*_iter1190)); + xfer += oprot->writeString((*_iter1206)); } xfer += oprot->writeListEnd(); } @@ -19112,14 +19526,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1191; - ::apache::thrift::protocol::TType _etype1194; - xfer += iprot->readListBegin(_etype1194, _size1191); - this->success.resize(_size1191); - uint32_t _i1195; - for (_i1195 = 0; _i1195 < _size1191; ++_i1195) + uint32_t _size1207; + ::apache::thrift::protocol::TType _etype1210; + xfer += iprot->readListBegin(_etype1210, _size1207); + this->success.resize(_size1207); + uint32_t _i1211; + for (_i1211 = 0; _i1211 < _size1207; ++_i1211) { - xfer += iprot->readString(this->success[_i1195]); + xfer += iprot->readString(this->success[_i1211]); } xfer += iprot->readListEnd(); } @@ -19158,10 +19572,10 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::write(::apache::thri xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1196; - for (_iter1196 = this->success.begin(); _iter1196 != this->success.end(); ++_iter1196) + std::vector ::const_iterator _iter1212; + for (_iter1212 = this->success.begin(); _iter1212 != this->success.end(); ++_iter1212) { - xfer += oprot->writeString((*_iter1196)); + xfer += oprot->writeString((*_iter1212)); } xfer += oprot->writeListEnd(); } @@ -19206,14 +19620,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1197; - ::apache::thrift::protocol::TType _etype1200; - xfer += iprot->readListBegin(_etype1200, _size1197); - (*(this->success)).resize(_size1197); - uint32_t _i1201; - for (_i1201 = 0; _i1201 < _size1197; ++_i1201) + uint32_t _size1213; + ::apache::thrift::protocol::TType _etype1216; + xfer += iprot->readListBegin(_etype1216, _size1213); + (*(this->success)).resize(_size1213); + uint32_t _i1217; + for (_i1217 = 0; _i1217 < _size1213; ++_i1217) { - xfer += iprot->readString((*(this->success))[_i1201]); + xfer += iprot->readString((*(this->success))[_i1217]); } xfer += iprot->readListEnd(); } @@ -19351,17 +19765,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1202; - ::apache::thrift::protocol::TType _ktype1203; - ::apache::thrift::protocol::TType _vtype1204; - xfer += iprot->readMapBegin(_ktype1203, _vtype1204, _size1202); - uint32_t _i1206; - for (_i1206 = 0; _i1206 < _size1202; ++_i1206) + uint32_t _size1218; + ::apache::thrift::protocol::TType _ktype1219; + ::apache::thrift::protocol::TType _vtype1220; + xfer += iprot->readMapBegin(_ktype1219, _vtype1220, _size1218); + uint32_t _i1222; + for (_i1222 = 0; _i1222 < _size1218; ++_i1222) { - std::string _key1207; - xfer += iprot->readString(_key1207); - std::string& _val1208 = this->success[_key1207]; - xfer += iprot->readString(_val1208); + std::string _key1223; + xfer += iprot->readString(_key1223); + std::string& _val1224 = this->success[_key1223]; + xfer += iprot->readString(_val1224); } xfer += iprot->readMapEnd(); } @@ -19400,11 +19814,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 _iter1209; - for (_iter1209 = this->success.begin(); _iter1209 != this->success.end(); ++_iter1209) + std::map ::const_iterator _iter1225; + for (_iter1225 = this->success.begin(); _iter1225 != this->success.end(); ++_iter1225) { - xfer += oprot->writeString(_iter1209->first); - xfer += oprot->writeString(_iter1209->second); + xfer += oprot->writeString(_iter1225->first); + xfer += oprot->writeString(_iter1225->second); } xfer += oprot->writeMapEnd(); } @@ -19449,17 +19863,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1210; - ::apache::thrift::protocol::TType _ktype1211; - ::apache::thrift::protocol::TType _vtype1212; - xfer += iprot->readMapBegin(_ktype1211, _vtype1212, _size1210); - uint32_t _i1214; - for (_i1214 = 0; _i1214 < _size1210; ++_i1214) + uint32_t _size1226; + ::apache::thrift::protocol::TType _ktype1227; + ::apache::thrift::protocol::TType _vtype1228; + xfer += iprot->readMapBegin(_ktype1227, _vtype1228, _size1226); + uint32_t _i1230; + for (_i1230 = 0; _i1230 < _size1226; ++_i1230) { - std::string _key1215; - xfer += iprot->readString(_key1215); - std::string& _val1216 = (*(this->success))[_key1215]; - xfer += iprot->readString(_val1216); + std::string _key1231; + xfer += iprot->readString(_key1231); + std::string& _val1232 = (*(this->success))[_key1231]; + xfer += iprot->readString(_val1232); } xfer += iprot->readMapEnd(); } @@ -19534,17 +19948,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1217; - ::apache::thrift::protocol::TType _ktype1218; - ::apache::thrift::protocol::TType _vtype1219; - xfer += iprot->readMapBegin(_ktype1218, _vtype1219, _size1217); - uint32_t _i1221; - for (_i1221 = 0; _i1221 < _size1217; ++_i1221) + uint32_t _size1233; + ::apache::thrift::protocol::TType _ktype1234; + ::apache::thrift::protocol::TType _vtype1235; + xfer += iprot->readMapBegin(_ktype1234, _vtype1235, _size1233); + uint32_t _i1237; + for (_i1237 = 0; _i1237 < _size1233; ++_i1237) { - std::string _key1222; - xfer += iprot->readString(_key1222); - std::string& _val1223 = this->part_vals[_key1222]; - xfer += iprot->readString(_val1223); + std::string _key1238; + xfer += iprot->readString(_key1238); + std::string& _val1239 = this->part_vals[_key1238]; + xfer += iprot->readString(_val1239); } xfer += iprot->readMapEnd(); } @@ -19555,9 +19969,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1224; - xfer += iprot->readI32(ecast1224); - this->eventType = (PartitionEventType::type)ecast1224; + int32_t ecast1240; + xfer += iprot->readI32(ecast1240); + this->eventType = (PartitionEventType::type)ecast1240; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -19591,11 +20005,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 _iter1225; - for (_iter1225 = this->part_vals.begin(); _iter1225 != this->part_vals.end(); ++_iter1225) + std::map ::const_iterator _iter1241; + for (_iter1241 = this->part_vals.begin(); _iter1241 != this->part_vals.end(); ++_iter1241) { - xfer += oprot->writeString(_iter1225->first); - xfer += oprot->writeString(_iter1225->second); + xfer += oprot->writeString(_iter1241->first); + xfer += oprot->writeString(_iter1241->second); } xfer += oprot->writeMapEnd(); } @@ -19631,11 +20045,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 _iter1226; - for (_iter1226 = (*(this->part_vals)).begin(); _iter1226 != (*(this->part_vals)).end(); ++_iter1226) + std::map ::const_iterator _iter1242; + for (_iter1242 = (*(this->part_vals)).begin(); _iter1242 != (*(this->part_vals)).end(); ++_iter1242) { - xfer += oprot->writeString(_iter1226->first); - xfer += oprot->writeString(_iter1226->second); + xfer += oprot->writeString(_iter1242->first); + xfer += oprot->writeString(_iter1242->second); } xfer += oprot->writeMapEnd(); } @@ -19904,17 +20318,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1227; - ::apache::thrift::protocol::TType _ktype1228; - ::apache::thrift::protocol::TType _vtype1229; - xfer += iprot->readMapBegin(_ktype1228, _vtype1229, _size1227); - uint32_t _i1231; - for (_i1231 = 0; _i1231 < _size1227; ++_i1231) + uint32_t _size1243; + ::apache::thrift::protocol::TType _ktype1244; + ::apache::thrift::protocol::TType _vtype1245; + xfer += iprot->readMapBegin(_ktype1244, _vtype1245, _size1243); + uint32_t _i1247; + for (_i1247 = 0; _i1247 < _size1243; ++_i1247) { - std::string _key1232; - xfer += iprot->readString(_key1232); - std::string& _val1233 = this->part_vals[_key1232]; - xfer += iprot->readString(_val1233); + std::string _key1248; + xfer += iprot->readString(_key1248); + std::string& _val1249 = this->part_vals[_key1248]; + xfer += iprot->readString(_val1249); } xfer += iprot->readMapEnd(); } @@ -19925,9 +20339,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1234; - xfer += iprot->readI32(ecast1234); - this->eventType = (PartitionEventType::type)ecast1234; + int32_t ecast1250; + xfer += iprot->readI32(ecast1250); + this->eventType = (PartitionEventType::type)ecast1250; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -19961,11 +20375,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 _iter1235; - for (_iter1235 = this->part_vals.begin(); _iter1235 != this->part_vals.end(); ++_iter1235) + std::map ::const_iterator _iter1251; + for (_iter1251 = this->part_vals.begin(); _iter1251 != this->part_vals.end(); ++_iter1251) { - xfer += oprot->writeString(_iter1235->first); - xfer += oprot->writeString(_iter1235->second); + xfer += oprot->writeString(_iter1251->first); + xfer += oprot->writeString(_iter1251->second); } xfer += oprot->writeMapEnd(); } @@ -20001,11 +20415,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 _iter1236; - for (_iter1236 = (*(this->part_vals)).begin(); _iter1236 != (*(this->part_vals)).end(); ++_iter1236) + std::map ::const_iterator _iter1252; + for (_iter1252 = (*(this->part_vals)).begin(); _iter1252 != (*(this->part_vals)).end(); ++_iter1252) { - xfer += oprot->writeString(_iter1236->first); - xfer += oprot->writeString(_iter1236->second); + xfer += oprot->writeString(_iter1252->first); + xfer += oprot->writeString(_iter1252->second); } xfer += oprot->writeMapEnd(); } @@ -21441,14 +21855,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1237; - ::apache::thrift::protocol::TType _etype1240; - xfer += iprot->readListBegin(_etype1240, _size1237); - this->success.resize(_size1237); - uint32_t _i1241; - for (_i1241 = 0; _i1241 < _size1237; ++_i1241) + uint32_t _size1253; + ::apache::thrift::protocol::TType _etype1256; + xfer += iprot->readListBegin(_etype1256, _size1253); + this->success.resize(_size1253); + uint32_t _i1257; + for (_i1257 = 0; _i1257 < _size1253; ++_i1257) { - xfer += this->success[_i1241].read(iprot); + xfer += this->success[_i1257].read(iprot); } xfer += iprot->readListEnd(); } @@ -21495,10 +21909,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 _iter1242; - for (_iter1242 = this->success.begin(); _iter1242 != this->success.end(); ++_iter1242) + std::vector ::const_iterator _iter1258; + for (_iter1258 = this->success.begin(); _iter1258 != this->success.end(); ++_iter1258) { - xfer += (*_iter1242).write(oprot); + xfer += (*_iter1258).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21547,14 +21961,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1243; - ::apache::thrift::protocol::TType _etype1246; - xfer += iprot->readListBegin(_etype1246, _size1243); - (*(this->success)).resize(_size1243); - uint32_t _i1247; - for (_i1247 = 0; _i1247 < _size1243; ++_i1247) + uint32_t _size1259; + ::apache::thrift::protocol::TType _etype1262; + xfer += iprot->readListBegin(_etype1262, _size1259); + (*(this->success)).resize(_size1259); + uint32_t _i1263; + for (_i1263 = 0; _i1263 < _size1259; ++_i1263) { - xfer += (*(this->success))[_i1247].read(iprot); + xfer += (*(this->success))[_i1263].read(iprot); } xfer += iprot->readListEnd(); } @@ -21732,14 +22146,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1248; - ::apache::thrift::protocol::TType _etype1251; - xfer += iprot->readListBegin(_etype1251, _size1248); - this->success.resize(_size1248); - uint32_t _i1252; - for (_i1252 = 0; _i1252 < _size1248; ++_i1252) + uint32_t _size1264; + ::apache::thrift::protocol::TType _etype1267; + xfer += iprot->readListBegin(_etype1267, _size1264); + this->success.resize(_size1264); + uint32_t _i1268; + for (_i1268 = 0; _i1268 < _size1264; ++_i1268) { - xfer += iprot->readString(this->success[_i1252]); + xfer += iprot->readString(this->success[_i1268]); } xfer += iprot->readListEnd(); } @@ -21778,10 +22192,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 _iter1253; - for (_iter1253 = this->success.begin(); _iter1253 != this->success.end(); ++_iter1253) + std::vector ::const_iterator _iter1269; + for (_iter1269 = this->success.begin(); _iter1269 != this->success.end(); ++_iter1269) { - xfer += oprot->writeString((*_iter1253)); + xfer += oprot->writeString((*_iter1269)); } xfer += oprot->writeListEnd(); } @@ -21826,14 +22240,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1254; - ::apache::thrift::protocol::TType _etype1257; - xfer += iprot->readListBegin(_etype1257, _size1254); - (*(this->success)).resize(_size1254); - uint32_t _i1258; - for (_i1258 = 0; _i1258 < _size1254; ++_i1258) + uint32_t _size1270; + ::apache::thrift::protocol::TType _etype1273; + xfer += iprot->readListBegin(_etype1273, _size1270); + (*(this->success)).resize(_size1270); + uint32_t _i1274; + for (_i1274 = 0; _i1274 < _size1270; ++_i1274) { - xfer += iprot->readString((*(this->success))[_i1258]); + xfer += iprot->readString((*(this->success))[_i1274]); } xfer += iprot->readListEnd(); } @@ -25860,14 +26274,14 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1259; - ::apache::thrift::protocol::TType _etype1262; - xfer += iprot->readListBegin(_etype1262, _size1259); - this->success.resize(_size1259); - uint32_t _i1263; - for (_i1263 = 0; _i1263 < _size1259; ++_i1263) + uint32_t _size1275; + ::apache::thrift::protocol::TType _etype1278; + xfer += iprot->readListBegin(_etype1278, _size1275); + this->success.resize(_size1275); + uint32_t _i1279; + for (_i1279 = 0; _i1279 < _size1275; ++_i1279) { - xfer += iprot->readString(this->success[_i1263]); + xfer += iprot->readString(this->success[_i1279]); } xfer += iprot->readListEnd(); } @@ -25906,10 +26320,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 _iter1264; - for (_iter1264 = this->success.begin(); _iter1264 != this->success.end(); ++_iter1264) + std::vector ::const_iterator _iter1280; + for (_iter1280 = this->success.begin(); _iter1280 != this->success.end(); ++_iter1280) { - xfer += oprot->writeString((*_iter1264)); + xfer += oprot->writeString((*_iter1280)); } xfer += oprot->writeListEnd(); } @@ -25954,14 +26368,14 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1265; - ::apache::thrift::protocol::TType _etype1268; - xfer += iprot->readListBegin(_etype1268, _size1265); - (*(this->success)).resize(_size1265); - uint32_t _i1269; - for (_i1269 = 0; _i1269 < _size1265; ++_i1269) + uint32_t _size1281; + ::apache::thrift::protocol::TType _etype1284; + xfer += iprot->readListBegin(_etype1284, _size1281); + (*(this->success)).resize(_size1281); + uint32_t _i1285; + for (_i1285 = 0; _i1285 < _size1281; ++_i1285) { - xfer += iprot->readString((*(this->success))[_i1269]); + xfer += iprot->readString((*(this->success))[_i1285]); } xfer += iprot->readListEnd(); } @@ -26921,14 +27335,14 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1270; - ::apache::thrift::protocol::TType _etype1273; - xfer += iprot->readListBegin(_etype1273, _size1270); - this->success.resize(_size1270); - uint32_t _i1274; - for (_i1274 = 0; _i1274 < _size1270; ++_i1274) + uint32_t _size1286; + ::apache::thrift::protocol::TType _etype1289; + xfer += iprot->readListBegin(_etype1289, _size1286); + this->success.resize(_size1286); + uint32_t _i1290; + for (_i1290 = 0; _i1290 < _size1286; ++_i1290) { - xfer += iprot->readString(this->success[_i1274]); + xfer += iprot->readString(this->success[_i1290]); } xfer += iprot->readListEnd(); } @@ -26967,10 +27381,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 _iter1275; - for (_iter1275 = this->success.begin(); _iter1275 != this->success.end(); ++_iter1275) + std::vector ::const_iterator _iter1291; + for (_iter1291 = this->success.begin(); _iter1291 != this->success.end(); ++_iter1291) { - xfer += oprot->writeString((*_iter1275)); + xfer += oprot->writeString((*_iter1291)); } xfer += oprot->writeListEnd(); } @@ -27015,14 +27429,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1276; - ::apache::thrift::protocol::TType _etype1279; - xfer += iprot->readListBegin(_etype1279, _size1276); - (*(this->success)).resize(_size1276); - uint32_t _i1280; - for (_i1280 = 0; _i1280 < _size1276; ++_i1280) + uint32_t _size1292; + ::apache::thrift::protocol::TType _etype1295; + xfer += iprot->readListBegin(_etype1295, _size1292); + (*(this->success)).resize(_size1292); + uint32_t _i1296; + for (_i1296 = 0; _i1296 < _size1292; ++_i1296) { - xfer += iprot->readString((*(this->success))[_i1280]); + xfer += iprot->readString((*(this->success))[_i1296]); } xfer += iprot->readListEnd(); } @@ -27095,9 +27509,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1281; - xfer += iprot->readI32(ecast1281); - this->principal_type = (PrincipalType::type)ecast1281; + int32_t ecast1297; + xfer += iprot->readI32(ecast1297); + this->principal_type = (PrincipalType::type)ecast1297; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27113,9 +27527,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1282; - xfer += iprot->readI32(ecast1282); - this->grantorType = (PrincipalType::type)ecast1282; + int32_t ecast1298; + xfer += iprot->readI32(ecast1298); + this->grantorType = (PrincipalType::type)ecast1298; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -27386,9 +27800,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1283; - xfer += iprot->readI32(ecast1283); - this->principal_type = (PrincipalType::type)ecast1283; + int32_t ecast1299; + xfer += iprot->readI32(ecast1299); + this->principal_type = (PrincipalType::type)ecast1299; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27619,9 +28033,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1284; - xfer += iprot->readI32(ecast1284); - this->principal_type = (PrincipalType::type)ecast1284; + int32_t ecast1300; + xfer += iprot->readI32(ecast1300); + this->principal_type = (PrincipalType::type)ecast1300; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27710,14 +28124,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1285; - ::apache::thrift::protocol::TType _etype1288; - xfer += iprot->readListBegin(_etype1288, _size1285); - this->success.resize(_size1285); - uint32_t _i1289; - for (_i1289 = 0; _i1289 < _size1285; ++_i1289) + uint32_t _size1301; + ::apache::thrift::protocol::TType _etype1304; + xfer += iprot->readListBegin(_etype1304, _size1301); + this->success.resize(_size1301); + uint32_t _i1305; + for (_i1305 = 0; _i1305 < _size1301; ++_i1305) { - xfer += this->success[_i1289].read(iprot); + xfer += this->success[_i1305].read(iprot); } xfer += iprot->readListEnd(); } @@ -27756,10 +28170,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 _iter1290; - for (_iter1290 = this->success.begin(); _iter1290 != this->success.end(); ++_iter1290) + std::vector ::const_iterator _iter1306; + for (_iter1306 = this->success.begin(); _iter1306 != this->success.end(); ++_iter1306) { - xfer += (*_iter1290).write(oprot); + xfer += (*_iter1306).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27804,14 +28218,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1291; - ::apache::thrift::protocol::TType _etype1294; - xfer += iprot->readListBegin(_etype1294, _size1291); - (*(this->success)).resize(_size1291); - uint32_t _i1295; - for (_i1295 = 0; _i1295 < _size1291; ++_i1295) + uint32_t _size1307; + ::apache::thrift::protocol::TType _etype1310; + xfer += iprot->readListBegin(_etype1310, _size1307); + (*(this->success)).resize(_size1307); + uint32_t _i1311; + for (_i1311 = 0; _i1311 < _size1307; ++_i1311) { - xfer += (*(this->success))[_i1295].read(iprot); + xfer += (*(this->success))[_i1311].read(iprot); } xfer += iprot->readListEnd(); } @@ -28507,14 +28921,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 _size1296; - ::apache::thrift::protocol::TType _etype1299; - xfer += iprot->readListBegin(_etype1299, _size1296); - this->group_names.resize(_size1296); - uint32_t _i1300; - for (_i1300 = 0; _i1300 < _size1296; ++_i1300) + uint32_t _size1312; + ::apache::thrift::protocol::TType _etype1315; + xfer += iprot->readListBegin(_etype1315, _size1312); + this->group_names.resize(_size1312); + uint32_t _i1316; + for (_i1316 = 0; _i1316 < _size1312; ++_i1316) { - xfer += iprot->readString(this->group_names[_i1300]); + xfer += iprot->readString(this->group_names[_i1316]); } xfer += iprot->readListEnd(); } @@ -28551,10 +28965,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 _iter1301; - for (_iter1301 = this->group_names.begin(); _iter1301 != this->group_names.end(); ++_iter1301) + std::vector ::const_iterator _iter1317; + for (_iter1317 = this->group_names.begin(); _iter1317 != this->group_names.end(); ++_iter1317) { - xfer += oprot->writeString((*_iter1301)); + xfer += oprot->writeString((*_iter1317)); } xfer += oprot->writeListEnd(); } @@ -28586,10 +29000,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 _iter1302; - for (_iter1302 = (*(this->group_names)).begin(); _iter1302 != (*(this->group_names)).end(); ++_iter1302) + std::vector ::const_iterator _iter1318; + for (_iter1318 = (*(this->group_names)).begin(); _iter1318 != (*(this->group_names)).end(); ++_iter1318) { - xfer += oprot->writeString((*_iter1302)); + xfer += oprot->writeString((*_iter1318)); } xfer += oprot->writeListEnd(); } @@ -28764,9 +29178,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1303; - xfer += iprot->readI32(ecast1303); - this->principal_type = (PrincipalType::type)ecast1303; + int32_t ecast1319; + xfer += iprot->readI32(ecast1319); + this->principal_type = (PrincipalType::type)ecast1319; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -28871,14 +29285,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1304; - ::apache::thrift::protocol::TType _etype1307; - xfer += iprot->readListBegin(_etype1307, _size1304); - this->success.resize(_size1304); - uint32_t _i1308; - for (_i1308 = 0; _i1308 < _size1304; ++_i1308) + uint32_t _size1320; + ::apache::thrift::protocol::TType _etype1323; + xfer += iprot->readListBegin(_etype1323, _size1320); + this->success.resize(_size1320); + uint32_t _i1324; + for (_i1324 = 0; _i1324 < _size1320; ++_i1324) { - xfer += this->success[_i1308].read(iprot); + xfer += this->success[_i1324].read(iprot); } xfer += iprot->readListEnd(); } @@ -28917,10 +29331,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 _iter1309; - for (_iter1309 = this->success.begin(); _iter1309 != this->success.end(); ++_iter1309) + std::vector ::const_iterator _iter1325; + for (_iter1325 = this->success.begin(); _iter1325 != this->success.end(); ++_iter1325) { - xfer += (*_iter1309).write(oprot); + xfer += (*_iter1325).write(oprot); } xfer += oprot->writeListEnd(); } @@ -28965,14 +29379,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1310; - ::apache::thrift::protocol::TType _etype1313; - xfer += iprot->readListBegin(_etype1313, _size1310); - (*(this->success)).resize(_size1310); - uint32_t _i1314; - for (_i1314 = 0; _i1314 < _size1310; ++_i1314) + uint32_t _size1326; + ::apache::thrift::protocol::TType _etype1329; + xfer += iprot->readListBegin(_etype1329, _size1326); + (*(this->success)).resize(_size1326); + uint32_t _i1330; + for (_i1330 = 0; _i1330 < _size1326; ++_i1330) { - xfer += (*(this->success))[_i1314].read(iprot); + xfer += (*(this->success))[_i1330].read(iprot); } xfer += iprot->readListEnd(); } @@ -29660,14 +30074,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 _size1315; - ::apache::thrift::protocol::TType _etype1318; - xfer += iprot->readListBegin(_etype1318, _size1315); - this->group_names.resize(_size1315); - uint32_t _i1319; - for (_i1319 = 0; _i1319 < _size1315; ++_i1319) + uint32_t _size1331; + ::apache::thrift::protocol::TType _etype1334; + xfer += iprot->readListBegin(_etype1334, _size1331); + this->group_names.resize(_size1331); + uint32_t _i1335; + for (_i1335 = 0; _i1335 < _size1331; ++_i1335) { - xfer += iprot->readString(this->group_names[_i1319]); + xfer += iprot->readString(this->group_names[_i1335]); } xfer += iprot->readListEnd(); } @@ -29700,10 +30114,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 _iter1320; - for (_iter1320 = this->group_names.begin(); _iter1320 != this->group_names.end(); ++_iter1320) + std::vector ::const_iterator _iter1336; + for (_iter1336 = this->group_names.begin(); _iter1336 != this->group_names.end(); ++_iter1336) { - xfer += oprot->writeString((*_iter1320)); + xfer += oprot->writeString((*_iter1336)); } xfer += oprot->writeListEnd(); } @@ -29731,10 +30145,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 _iter1321; - for (_iter1321 = (*(this->group_names)).begin(); _iter1321 != (*(this->group_names)).end(); ++_iter1321) + std::vector ::const_iterator _iter1337; + for (_iter1337 = (*(this->group_names)).begin(); _iter1337 != (*(this->group_names)).end(); ++_iter1337) { - xfer += oprot->writeString((*_iter1321)); + xfer += oprot->writeString((*_iter1337)); } xfer += oprot->writeListEnd(); } @@ -29775,14 +30189,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1322; - ::apache::thrift::protocol::TType _etype1325; - xfer += iprot->readListBegin(_etype1325, _size1322); - this->success.resize(_size1322); - uint32_t _i1326; - for (_i1326 = 0; _i1326 < _size1322; ++_i1326) + uint32_t _size1338; + ::apache::thrift::protocol::TType _etype1341; + xfer += iprot->readListBegin(_etype1341, _size1338); + this->success.resize(_size1338); + uint32_t _i1342; + for (_i1342 = 0; _i1342 < _size1338; ++_i1342) { - xfer += iprot->readString(this->success[_i1326]); + xfer += iprot->readString(this->success[_i1342]); } xfer += iprot->readListEnd(); } @@ -29821,10 +30235,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 _iter1327; - for (_iter1327 = this->success.begin(); _iter1327 != this->success.end(); ++_iter1327) + std::vector ::const_iterator _iter1343; + for (_iter1343 = this->success.begin(); _iter1343 != this->success.end(); ++_iter1343) { - xfer += oprot->writeString((*_iter1327)); + xfer += oprot->writeString((*_iter1343)); } xfer += oprot->writeListEnd(); } @@ -29869,14 +30283,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1328; - ::apache::thrift::protocol::TType _etype1331; - xfer += iprot->readListBegin(_etype1331, _size1328); - (*(this->success)).resize(_size1328); - uint32_t _i1332; - for (_i1332 = 0; _i1332 < _size1328; ++_i1332) + uint32_t _size1344; + ::apache::thrift::protocol::TType _etype1347; + xfer += iprot->readListBegin(_etype1347, _size1344); + (*(this->success)).resize(_size1344); + uint32_t _i1348; + for (_i1348 = 0; _i1348 < _size1344; ++_i1348) { - xfer += iprot->readString((*(this->success))[_i1332]); + xfer += iprot->readString((*(this->success))[_i1348]); } xfer += iprot->readListEnd(); } @@ -31187,14 +31601,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_result::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1333; - ::apache::thrift::protocol::TType _etype1336; - xfer += iprot->readListBegin(_etype1336, _size1333); - this->success.resize(_size1333); - uint32_t _i1337; - for (_i1337 = 0; _i1337 < _size1333; ++_i1337) + uint32_t _size1349; + ::apache::thrift::protocol::TType _etype1352; + xfer += iprot->readListBegin(_etype1352, _size1349); + this->success.resize(_size1349); + uint32_t _i1353; + for (_i1353 = 0; _i1353 < _size1349; ++_i1353) { - xfer += iprot->readString(this->success[_i1337]); + xfer += iprot->readString(this->success[_i1353]); } xfer += iprot->readListEnd(); } @@ -31225,10 +31639,10 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_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 _iter1338; - for (_iter1338 = this->success.begin(); _iter1338 != this->success.end(); ++_iter1338) + std::vector ::const_iterator _iter1354; + for (_iter1354 = this->success.begin(); _iter1354 != this->success.end(); ++_iter1354) { - xfer += oprot->writeString((*_iter1338)); + xfer += oprot->writeString((*_iter1354)); } xfer += oprot->writeListEnd(); } @@ -31269,14 +31683,14 @@ uint32_t ThriftHiveMetastore_get_all_token_identifiers_presult::read(::apache::t if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1339; - ::apache::thrift::protocol::TType _etype1342; - xfer += iprot->readListBegin(_etype1342, _size1339); - (*(this->success)).resize(_size1339); - uint32_t _i1343; - for (_i1343 = 0; _i1343 < _size1339; ++_i1343) + uint32_t _size1355; + ::apache::thrift::protocol::TType _etype1358; + xfer += iprot->readListBegin(_etype1358, _size1355); + (*(this->success)).resize(_size1355); + uint32_t _i1359; + for (_i1359 = 0; _i1359 < _size1355; ++_i1359) { - xfer += iprot->readString((*(this->success))[_i1343]); + xfer += iprot->readString((*(this->success))[_i1359]); } xfer += iprot->readListEnd(); } @@ -32002,14 +32416,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1344; - ::apache::thrift::protocol::TType _etype1347; - xfer += iprot->readListBegin(_etype1347, _size1344); - this->success.resize(_size1344); - uint32_t _i1348; - for (_i1348 = 0; _i1348 < _size1344; ++_i1348) + uint32_t _size1360; + ::apache::thrift::protocol::TType _etype1363; + xfer += iprot->readListBegin(_etype1363, _size1360); + this->success.resize(_size1360); + uint32_t _i1364; + for (_i1364 = 0; _i1364 < _size1360; ++_i1364) { - xfer += iprot->readString(this->success[_i1348]); + xfer += iprot->readString(this->success[_i1364]); } xfer += iprot->readListEnd(); } @@ -32040,10 +32454,10 @@ uint32_t ThriftHiveMetastore_get_master_keys_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 _iter1349; - for (_iter1349 = this->success.begin(); _iter1349 != this->success.end(); ++_iter1349) + std::vector ::const_iterator _iter1365; + for (_iter1365 = this->success.begin(); _iter1365 != this->success.end(); ++_iter1365) { - xfer += oprot->writeString((*_iter1349)); + xfer += oprot->writeString((*_iter1365)); } xfer += oprot->writeListEnd(); } @@ -32084,14 +32498,14 @@ uint32_t ThriftHiveMetastore_get_master_keys_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1350; - ::apache::thrift::protocol::TType _etype1353; - xfer += iprot->readListBegin(_etype1353, _size1350); - (*(this->success)).resize(_size1350); - uint32_t _i1354; - for (_i1354 = 0; _i1354 < _size1350; ++_i1354) + uint32_t _size1366; + ::apache::thrift::protocol::TType _etype1369; + xfer += iprot->readListBegin(_etype1369, _size1366); + (*(this->success)).resize(_size1366); + uint32_t _i1370; + for (_i1370 = 0; _i1370 < _size1366; ++_i1370) { - xfer += iprot->readString((*(this->success))[_i1354]); + xfer += iprot->readString((*(this->success))[_i1370]); } xfer += iprot->readListEnd(); } @@ -37930,6 +38344,124 @@ void ThriftHiveMetastoreClient::recv_drop_constraint() return; } +void ThriftHiveMetastoreClient::add_primary_key(const AddPrimaryKeyRequest& req) +{ + send_add_primary_key(req); + recv_add_primary_key(); +} + +void ThriftHiveMetastoreClient::send_add_primary_key(const AddPrimaryKeyRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_primary_key_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_primary_key() +{ + + 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("add_primary_key") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_primary_key_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + return; +} + +void ThriftHiveMetastoreClient::add_foreign_key(const AddForeignKeyRequest& req) +{ + send_add_foreign_key(req); + recv_add_foreign_key(); +} + +void ThriftHiveMetastoreClient::send_add_foreign_key(const AddForeignKeyRequest& req) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("add_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_add_foreign_key_pargs args; + args.req = &req; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_add_foreign_key() +{ + + 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("add_foreign_key") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_add_foreign_key_presult result; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + return; +} + void ThriftHiveMetastoreClient::drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { send_drop_table(dbname, name, deleteData); @@ -47206,6 +47738,124 @@ void ThriftHiveMetastoreProcessor::process_drop_constraint(int32_t seqid, ::apac } } +void ThriftHiveMetastoreProcessor::process_add_primary_key(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.add_primary_key", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_primary_key"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_primary_key"); + } + + ThriftHiveMetastore_add_primary_key_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_primary_key", bytes); + } + + ThriftHiveMetastore_add_primary_key_result result; + try { + iface_->add_primary_key(args.req); + } 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.add_primary_key"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_primary_key", ::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.add_primary_key"); + } + + oprot->writeMessageBegin("add_primary_key", ::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.add_primary_key", bytes); + } +} + +void ThriftHiveMetastoreProcessor::process_add_foreign_key(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.add_foreign_key", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.add_foreign_key"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.add_foreign_key"); + } + + ThriftHiveMetastore_add_foreign_key_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.add_foreign_key", bytes); + } + + ThriftHiveMetastore_add_foreign_key_result result; + try { + iface_->add_foreign_key(args.req); + } 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.add_foreign_key"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("add_foreign_key", ::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.add_foreign_key"); + } + + oprot->writeMessageBegin("add_foreign_key", ::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.add_foreign_key", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -55020,7 +55670,101 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_database") != 0) { + if (fname.compare("get_database") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_get_database_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + sentry.commit(); + return; + } + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result"); + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + +void ThriftHiveMetastoreConcurrentClient::drop_database(const std::string& name, const bool deleteData, const bool cascade) +{ + int32_t seqid = send_drop_database(name, deleteData, cascade); + recv_drop_database(seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_drop_database_pargs args; + args.name = &name; + args.deleteData = &deleteData; + args.cascade = &cascade; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("drop_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55029,17 +55773,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_database_presult result; - result.success = &_return; + ThriftHiveMetastore_drop_database_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -55048,8 +55786,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c sentry.commit(); throw result.o2; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_database failed: unknown result"); + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55059,22 +55801,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_database(Database& _return, c } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::drop_database(const std::string& name, const bool deleteData, const bool cascade) +void ThriftHiveMetastoreConcurrentClient::get_databases(std::vector & _return, const std::string& pattern) { - int32_t seqid = send_drop_database(name, deleteData, cascade); - recv_drop_database(seqid); + int32_t seqid = send_get_databases(pattern); + recv_get_databases(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::string& name, const bool deleteData, const bool cascade) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::string& pattern) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_database", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_database_pargs args; - args.name = &name; - args.deleteData = &deleteData; - args.cascade = &cascade; + ThriftHiveMetastore_get_databases_pargs args; + args.pattern = &pattern; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55085,7 +55825,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_database(const std::strin return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55114,7 +55854,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_database") != 0) { + if (fname.compare("get_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55123,25 +55863,23 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_drop_database_presult result; + ThriftHiveMetastore_get_databases_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; - } - if (result.__isset.o2) { + if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - throw result.o2; + return; } - if (result.__isset.o3) { + if (result.__isset.o1) { sentry.commit(); - throw result.o3; + throw result.o1; } - sentry.commit(); - return; + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_databases failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55151,20 +55889,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_database(const int32_t seqid } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_databases(std::vector & _return, const std::string& pattern) +void ThriftHiveMetastoreConcurrentClient::get_all_databases(std::vector & _return) { - int32_t seqid = send_get_databases(pattern); - recv_get_databases(_return, seqid); + int32_t seqid = send_get_all_databases(); + recv_get_all_databases(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::string& pattern) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_databases", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_databases_pargs args; - args.pattern = &pattern; + ThriftHiveMetastore_get_all_databases_pargs args; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55175,7 +55912,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_databases(const std::strin return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55204,7 +55941,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_databases") != 0) { + if (fname.compare("get_all_databases") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55213,7 +55950,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorreadMessageEnd(); @@ -55229,7 +55966,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -55239,19 +55976,21 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_databases(std::vector & _return) +void ThriftHiveMetastoreConcurrentClient::alter_database(const std::string& dbname, const Database& db) { - int32_t seqid = send_get_all_databases(); - recv_get_all_databases(_return, seqid); + int32_t seqid = send_alter_database(dbname, db); + recv_alter_database(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() +int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::string& dbname, const Database& db) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_all_databases", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_all_databases_pargs args; + ThriftHiveMetastore_alter_database_pargs args; + args.dbname = &dbname; + args.db = &db; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55262,7 +56001,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_all_databases() return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) { int32_t rseqid = 0; @@ -55291,7 +56030,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_all_databases") != 0) { + if (fname.compare("alter_database") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55300,7 +56039,93 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorreadMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.o1) { + sentry.commit(); + throw result.o1; + } + if (result.__isset.o2) { + sentry.commit(); + throw result.o2; + } + sentry.commit(); + return; + } + // seqid != rseqid + this->sync_.updatePending(fname, mtype, rseqid); + + // this will temporarily unlock the readMutex, and let other clients get work done + this->sync_.waitForWork(seqid); + } // end while(true) +} + +void ThriftHiveMetastoreConcurrentClient::get_type(Type& _return, const std::string& name) +{ + int32_t seqid = send_get_type(name); + recv_get_type(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_type_pargs args; + args.name = &name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + // the read mutex gets dropped and reacquired as part of waitForWork() + // The destructor of this sentry wakes up other clients + ::apache::thrift::async::TConcurrentRecvSentry sentry(&this->sync_, seqid); + + while(true) { + if(!this->sync_.getPending(fname, mtype, rseqid)) { + iprot_->readMessageBegin(fname, mtype, rseqid); + } + if(seqid == rseqid) { + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + sentry.commit(); + 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_type") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + // in a bad state, don't commit + using ::apache::thrift::protocol::TProtocolException; + throw TProtocolException(TProtocolException::INVALID_DATA); + } + ThriftHiveMetastore_get_type_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -55315,8 +56140,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -55326,21 +56155,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_all_databases(std::vectorsync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("alter_database", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_alter_database_pargs args; - args.dbname = &dbname; - args.db = &db; + ThriftHiveMetastore_create_type_pargs args; + args.type = &type; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55351,7 +56179,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_alter_database(const std::stri return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) { int32_t rseqid = 0; @@ -55380,7 +56208,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("alter_database") != 0) { + if (fname.compare("create_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55389,11 +56217,17 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_alter_database_presult result; + bool _return; + ThriftHiveMetastore_create_type_presult result; + result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); + if (result.__isset.success) { + sentry.commit(); + return _return; + } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -55402,8 +56236,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi sentry.commit(); throw result.o2; } - sentry.commit(); - return; + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } + // in a bad state, don't commit + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55413,20 +56251,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_alter_database(const int32_t seqi } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type(Type& _return, const std::string& name) +bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) { - int32_t seqid = send_get_type(name); - recv_get_type(_return, seqid); + int32_t seqid = send_drop_type(type); + return recv_drop_type(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& name) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_pargs args; - args.name = &name; + ThriftHiveMetastore_drop_type_pargs args; + args.type = &type; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55437,7 +56275,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type(const std::string& na return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int32_t seqid) +bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) { int32_t rseqid = 0; @@ -55466,7 +56304,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type") != 0) { + if (fname.compare("drop_type") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55475,16 +56313,16 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_type_presult result; + bool _return; + ThriftHiveMetastore_drop_type_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { - // _return pointer has now been filled sentry.commit(); - return; + return _return; } if (result.__isset.o1) { sentry.commit(); @@ -55495,7 +56333,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int throw result.o2; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55505,20 +56343,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type(Type& _return, const int } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::create_type(const Type& type) +void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) { - int32_t seqid = send_create_type(type); - return recv_create_type(seqid); + int32_t seqid = send_get_type_all(name); + recv_get_type_all(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_type_pargs args; - args.type = &type; + ThriftHiveMetastore_get_type_all_pargs args; + args.name = &name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55529,7 +56367,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_type(const Type& type) return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55558,7 +56396,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_type") != 0) { + if (fname.compare("get_type_all") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55567,31 +56405,23 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_create_type_presult result; + ThriftHiveMetastore_get_type_all_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; - } - if (result.__isset.o1) { - sentry.commit(); - throw result.o1; + return; } if (result.__isset.o2) { sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "create_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_type_all failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55601,20 +56431,21 @@ bool ThriftHiveMetastoreConcurrentClient::recv_create_type(const int32_t seqid) } // end while(true) } -bool ThriftHiveMetastoreConcurrentClient::drop_type(const std::string& type) +void ThriftHiveMetastoreConcurrentClient::get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name) { - int32_t seqid = send_drop_type(type); - return recv_drop_type(seqid); + int32_t seqid = send_get_fields(db_name, table_name); + recv_get_fields(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& type) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_type", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_type_pargs args; - args.type = &type; + ThriftHiveMetastore_get_fields_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55625,7 +56456,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_type(const std::string& t return cseqid; } -bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55654,7 +56485,7 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_type") != 0) { + if (fname.compare("get_fields") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55663,16 +56494,16 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - bool _return; - ThriftHiveMetastore_drop_type_presult result; + ThriftHiveMetastore_get_fields_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); if (result.__isset.success) { + // _return pointer has now been filled sentry.commit(); - return _return; + return; } if (result.__isset.o1) { sentry.commit(); @@ -55682,8 +56513,12 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) sentry.commit(); throw result.o2; } + if (result.__isset.o3) { + sentry.commit(); + throw result.o3; + } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "drop_type failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55693,20 +56528,22 @@ bool ThriftHiveMetastoreConcurrentClient::recv_drop_type(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_type_all(std::map & _return, const std::string& name) +void ThriftHiveMetastoreConcurrentClient::get_fields_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { - int32_t seqid = send_get_type_all(name); - recv_get_type_all(_return, seqid); + int32_t seqid = send_get_fields_with_environment_context(db_name, table_name, environment_context); + recv_get_fields_with_environment_context(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string& name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_type_all", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_type_all_pargs args; - args.name = &name; + ThriftHiveMetastore_get_fields_with_environment_context_pargs args; + args.db_name = &db_name; + args.table_name = &table_name; + args.environment_context = &environment_context; args.write(oprot_); oprot_->writeMessageEnd(); @@ -55717,7 +56554,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_type_all(const std::string return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55746,7 +56583,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_type_all") != 0) { + if (fname.compare("get_fields_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55755,7 +56592,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapreadMessageEnd(); @@ -55766,12 +56603,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::mapsync_.updatePending(fname, mtype, rseqid); @@ -55781,19 +56626,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_type_all(std::map & _return, const std::string& db_name, const std::string& table_name) +void ThriftHiveMetastoreConcurrentClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) { - int32_t seqid = send_get_fields(db_name, table_name); - recv_get_fields(_return, seqid); + int32_t seqid = send_get_schema(db_name, table_name); + recv_get_schema(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& db_name, const std::string& table_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_pargs args; + ThriftHiveMetastore_get_schema_pargs args; args.db_name = &db_name; args.table_name = &table_name; args.write(oprot_); @@ -55806,7 +56651,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55835,7 +56680,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_fields") != 0) { + if (fname.compare("get_schema") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55844,7 +56689,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorreadMessageEnd(); @@ -55868,7 +56713,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -55878,19 +56723,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::get_schema_with_environment_context(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { - int32_t seqid = send_get_fields_with_environment_context(db_name, table_name, environment_context); - recv_get_fields_with_environment_context(_return, seqid); + int32_t seqid = send_get_schema_with_environment_context(db_name, table_name, environment_context); + recv_get_schema_with_environment_context(_return, seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_fields_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_fields_with_environment_context_pargs args; + ThriftHiveMetastore_get_schema_with_environment_context_pargs args; args.db_name = &db_name; args.table_name = &table_name; args.environment_context = &environment_context; @@ -55904,7 +56749,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_fields_with_environment_co return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_context(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_context(std::vector & _return, const int32_t seqid) { int32_t rseqid = 0; @@ -55933,7 +56778,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_fields_with_environment_context") != 0) { + if (fname.compare("get_schema_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -55942,7 +56787,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_fields_with_environment_context_presult result; + ThriftHiveMetastore_get_schema_with_environment_context_presult result; result.success = &_return; result.read(iprot_); iprot_->readMessageEnd(); @@ -55966,7 +56811,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte throw result.o3; } // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_fields_with_environment_context failed: unknown result"); + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -55976,21 +56821,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_fields_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name) +void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) { - int32_t seqid = send_get_schema(db_name, table_name); - recv_get_schema(_return, seqid); + int32_t seqid = send_create_table(tbl); + recv_create_table(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& db_name, const std::string& table_name) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; + ThriftHiveMetastore_create_table_pargs args; + args.tbl = &tbl; args.write(oprot_); oprot_->writeMessageEnd(); @@ -56001,7 +56845,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema(const std::string& return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) { int32_t rseqid = 0; @@ -56030,7 +56874,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_schema") != 0) { + if (fname.compare("create_table") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56039,17 +56883,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorreadMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -56062,8 +56900,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vectorsync_.updatePending(fname, mtype, rseqid); @@ -56073,21 +56915,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema(std::vector & _return, const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) { - int32_t seqid = send_get_schema_with_environment_context(db_name, table_name, environment_context); - recv_get_schema_with_environment_context(_return, seqid); + int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); + recv_create_table_with_environment_context(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_context(const std::string& db_name, const std::string& table_name, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("get_schema_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_get_schema_with_environment_context_pargs args; - args.db_name = &db_name; - args.table_name = &table_name; + ThriftHiveMetastore_create_table_with_environment_context_pargs args; + args.tbl = &tbl; args.environment_context = &environment_context; args.write(oprot_); @@ -56099,7 +56940,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_get_schema_with_environment_co return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_context(std::vector & _return, const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_context(const int32_t seqid) { int32_t rseqid = 0; @@ -56128,7 +56969,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("get_schema_with_environment_context") != 0) { + if (fname.compare("create_table_with_environment_context") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56137,17 +56978,11 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_get_schema_with_environment_context_presult result; - result.success = &_return; + ThriftHiveMetastore_create_table_with_environment_context_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); - if (result.__isset.success) { - // _return pointer has now been filled - sentry.commit(); - return; - } if (result.__isset.o1) { sentry.commit(); throw result.o1; @@ -56160,8 +56995,12 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte sentry.commit(); throw result.o3; } - // in a bad state, don't commit - throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_schema_with_environment_context failed: unknown result"); + if (result.__isset.o4) { + sentry.commit(); + throw result.o4; + } + sentry.commit(); + return; } // seqid != rseqid this->sync_.updatePending(fname, mtype, rseqid); @@ -56171,20 +57010,22 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_schema_with_environment_conte } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table(const Table& tbl) +void ThriftHiveMetastoreConcurrentClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) { - int32_t seqid = send_create_table(tbl); - recv_create_table(seqid); + int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys); + recv_create_table_with_constraints(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) +int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_pargs args; + ThriftHiveMetastore_create_table_with_constraints_pargs args; args.tbl = &tbl; + args.primaryKeys = &primaryKeys; + args.foreignKeys = &foreignKeys; args.write(oprot_); oprot_->writeMessageEnd(); @@ -56195,7 +57036,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table(const Table& tbl) return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) { int32_t rseqid = 0; @@ -56224,7 +57065,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table") != 0) { + if (fname.compare("create_table_with_constraints") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56233,7 +57074,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_presult result; + ThriftHiveMetastore_create_table_with_constraints_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56265,21 +57106,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table(const int32_t seqid) } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) { - int32_t seqid = send_create_table_with_environment_context(tbl, environment_context); - recv_create_table_with_environment_context(seqid); + int32_t seqid = send_drop_constraint(req); + recv_drop_constraint(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) +int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_environment_context", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_environment_context_pargs args; - args.tbl = &tbl; - args.environment_context = &environment_context; + ThriftHiveMetastore_drop_constraint_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -56290,7 +57130,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_environment_ return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_context(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seqid) { int32_t rseqid = 0; @@ -56319,7 +57159,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table_with_environment_context") != 0) { + if (fname.compare("drop_constraint") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56328,7 +57168,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_with_environment_context_presult result; + ThriftHiveMetastore_drop_constraint_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56337,18 +57177,10 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con sentry.commit(); throw result.o1; } - if (result.__isset.o2) { - sentry.commit(); - throw result.o2; - } if (result.__isset.o3) { sentry.commit(); throw result.o3; } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } sentry.commit(); return; } @@ -56360,22 +57192,20 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_environment_con } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) +void ThriftHiveMetastoreConcurrentClient::add_primary_key(const AddPrimaryKeyRequest& req) { - int32_t seqid = send_create_table_with_constraints(tbl, primaryKeys, foreignKeys); - recv_create_table_with_constraints(seqid); + int32_t seqid = send_add_primary_key(req); + recv_add_primary_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_primary_key(const AddPrimaryKeyRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("create_table_with_constraints", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_primary_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_create_table_with_constraints_pargs args; - args.tbl = &tbl; - args.primaryKeys = &primaryKeys; - args.foreignKeys = &foreignKeys; + ThriftHiveMetastore_add_primary_key_pargs args; + args.req = &req; args.write(oprot_); oprot_->writeMessageEnd(); @@ -56386,7 +57216,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_create_table_with_constraints( return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_primary_key(const int32_t seqid) { int32_t rseqid = 0; @@ -56415,7 +57245,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("create_table_with_constraints") != 0) { + if (fname.compare("add_primary_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56424,7 +57254,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_create_table_with_constraints_presult result; + ThriftHiveMetastore_add_primary_key_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56437,14 +57267,6 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con sentry.commit(); throw result.o2; } - if (result.__isset.o3) { - sentry.commit(); - throw result.o3; - } - if (result.__isset.o4) { - sentry.commit(); - throw result.o4; - } sentry.commit(); return; } @@ -56456,19 +57278,19 @@ void ThriftHiveMetastoreConcurrentClient::recv_create_table_with_constraints(con } // end while(true) } -void ThriftHiveMetastoreConcurrentClient::drop_constraint(const DropConstraintRequest& req) +void ThriftHiveMetastoreConcurrentClient::add_foreign_key(const AddForeignKeyRequest& req) { - int32_t seqid = send_drop_constraint(req); - recv_drop_constraint(seqid); + int32_t seqid = send_add_foreign_key(req); + recv_add_foreign_key(seqid); } -int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropConstraintRequest& req) +int32_t ThriftHiveMetastoreConcurrentClient::send_add_foreign_key(const AddForeignKeyRequest& req) { int32_t cseqid = this->sync_.generateSeqId(); ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); - oprot_->writeMessageBegin("drop_constraint", ::apache::thrift::protocol::T_CALL, cseqid); + oprot_->writeMessageBegin("add_foreign_key", ::apache::thrift::protocol::T_CALL, cseqid); - ThriftHiveMetastore_drop_constraint_pargs args; + ThriftHiveMetastore_add_foreign_key_pargs args; args.req = &req; args.write(oprot_); @@ -56480,7 +57302,7 @@ int32_t ThriftHiveMetastoreConcurrentClient::send_drop_constraint(const DropCons return cseqid; } -void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seqid) +void ThriftHiveMetastoreConcurrentClient::recv_add_foreign_key(const int32_t seqid) { int32_t rseqid = 0; @@ -56509,7 +57331,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); } - if (fname.compare("drop_constraint") != 0) { + if (fname.compare("add_foreign_key") != 0) { iprot_->skip(::apache::thrift::protocol::T_STRUCT); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56518,7 +57340,7 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq using ::apache::thrift::protocol::TProtocolException; throw TProtocolException(TProtocolException::INVALID_DATA); } - ThriftHiveMetastore_drop_constraint_presult result; + ThriftHiveMetastore_add_foreign_key_presult result; result.read(iprot_); iprot_->readMessageEnd(); iprot_->getTransport()->readEnd(); @@ -56527,9 +57349,9 @@ void ThriftHiveMetastoreConcurrentClient::recv_drop_constraint(const int32_t seq sentry.commit(); throw result.o1; } - if (result.__isset.o3) { + if (result.__isset.o2) { sentry.commit(); - throw result.o3; + throw result.o2; } sentry.commit(); return; diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 6639d1c..6498eb1 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -42,6 +42,8 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void create_table_with_environment_context(const Table& tbl, const EnvironmentContext& environment_context) = 0; virtual void create_table_with_constraints(const Table& tbl, const std::vector & primaryKeys, const std::vector & foreignKeys) = 0; virtual void drop_constraint(const DropConstraintRequest& req) = 0; + virtual void add_primary_key(const AddPrimaryKeyRequest& req) = 0; + virtual void add_foreign_key(const AddForeignKeyRequest& req) = 0; virtual void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) = 0; virtual void drop_table_with_environment_context(const std::string& dbname, const std::string& name, const bool deleteData, const EnvironmentContext& environment_context) = 0; virtual void get_tables(std::vector & _return, const std::string& db_name, const std::string& pattern) = 0; @@ -260,6 +262,12 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void drop_constraint(const DropConstraintRequest& /* req */) { return; } + void add_primary_key(const AddPrimaryKeyRequest& /* req */) { + return; + } + void add_foreign_key(const AddForeignKeyRequest& /* req */) { + return; + } void drop_table(const std::string& /* dbname */, const std::string& /* name */, const bool /* deleteData */) { return; } @@ -3148,6 +3156,230 @@ class ThriftHiveMetastore_drop_constraint_presult { }; +typedef struct _ThriftHiveMetastore_add_primary_key_args__isset { + _ThriftHiveMetastore_add_primary_key_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_primary_key_args__isset; + +class ThriftHiveMetastore_add_primary_key_args { + public: + + ThriftHiveMetastore_add_primary_key_args(const ThriftHiveMetastore_add_primary_key_args&); + ThriftHiveMetastore_add_primary_key_args& operator=(const ThriftHiveMetastore_add_primary_key_args&); + ThriftHiveMetastore_add_primary_key_args() { + } + + virtual ~ThriftHiveMetastore_add_primary_key_args() throw(); + AddPrimaryKeyRequest req; + + _ThriftHiveMetastore_add_primary_key_args__isset __isset; + + void __set_req(const AddPrimaryKeyRequest& val); + + bool operator == (const ThriftHiveMetastore_add_primary_key_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_primary_key_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_primary_key_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_primary_key_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_primary_key_pargs() throw(); + const AddPrimaryKeyRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_primary_key_result__isset { + _ThriftHiveMetastore_add_primary_key_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_primary_key_result__isset; + +class ThriftHiveMetastore_add_primary_key_result { + public: + + ThriftHiveMetastore_add_primary_key_result(const ThriftHiveMetastore_add_primary_key_result&); + ThriftHiveMetastore_add_primary_key_result& operator=(const ThriftHiveMetastore_add_primary_key_result&); + ThriftHiveMetastore_add_primary_key_result() { + } + + virtual ~ThriftHiveMetastore_add_primary_key_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_primary_key_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_primary_key_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_primary_key_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_primary_key_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_primary_key_presult__isset { + _ThriftHiveMetastore_add_primary_key_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_primary_key_presult__isset; + +class ThriftHiveMetastore_add_primary_key_presult { + public: + + + virtual ~ThriftHiveMetastore_add_primary_key_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_primary_key_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + +typedef struct _ThriftHiveMetastore_add_foreign_key_args__isset { + _ThriftHiveMetastore_add_foreign_key_args__isset() : req(false) {} + bool req :1; +} _ThriftHiveMetastore_add_foreign_key_args__isset; + +class ThriftHiveMetastore_add_foreign_key_args { + public: + + ThriftHiveMetastore_add_foreign_key_args(const ThriftHiveMetastore_add_foreign_key_args&); + ThriftHiveMetastore_add_foreign_key_args& operator=(const ThriftHiveMetastore_add_foreign_key_args&); + ThriftHiveMetastore_add_foreign_key_args() { + } + + virtual ~ThriftHiveMetastore_add_foreign_key_args() throw(); + AddForeignKeyRequest req; + + _ThriftHiveMetastore_add_foreign_key_args__isset __isset; + + void __set_req(const AddForeignKeyRequest& val); + + bool operator == (const ThriftHiveMetastore_add_foreign_key_args & rhs) const + { + if (!(req == rhs.req)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_foreign_key_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_foreign_key_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_add_foreign_key_pargs { + public: + + + virtual ~ThriftHiveMetastore_add_foreign_key_pargs() throw(); + const AddForeignKeyRequest* req; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_foreign_key_result__isset { + _ThriftHiveMetastore_add_foreign_key_result__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_foreign_key_result__isset; + +class ThriftHiveMetastore_add_foreign_key_result { + public: + + ThriftHiveMetastore_add_foreign_key_result(const ThriftHiveMetastore_add_foreign_key_result&); + ThriftHiveMetastore_add_foreign_key_result& operator=(const ThriftHiveMetastore_add_foreign_key_result&); + ThriftHiveMetastore_add_foreign_key_result() { + } + + virtual ~ThriftHiveMetastore_add_foreign_key_result() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_foreign_key_result__isset __isset; + + void __set_o1(const NoSuchObjectException& val); + + void __set_o2(const MetaException& val); + + bool operator == (const ThriftHiveMetastore_add_foreign_key_result & rhs) const + { + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_add_foreign_key_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_add_foreign_key_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_add_foreign_key_presult__isset { + _ThriftHiveMetastore_add_foreign_key_presult__isset() : o1(false), o2(false) {} + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_add_foreign_key_presult__isset; + +class ThriftHiveMetastore_add_foreign_key_presult { + public: + + + virtual ~ThriftHiveMetastore_add_foreign_key_presult() throw(); + NoSuchObjectException o1; + MetaException o2; + + _ThriftHiveMetastore_add_foreign_key_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_drop_table_args__isset { _ThriftHiveMetastore_drop_table_args__isset() : dbname(false), name(false), deleteData(false) {} bool dbname :1; @@ -18970,6 +19202,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void drop_constraint(const DropConstraintRequest& req); void send_drop_constraint(const DropConstraintRequest& req); void recv_drop_constraint(); + void add_primary_key(const AddPrimaryKeyRequest& req); + void send_add_primary_key(const AddPrimaryKeyRequest& req); + void recv_add_primary_key(); + void add_foreign_key(const AddForeignKeyRequest& req); + void send_add_foreign_key(const AddForeignKeyRequest& req); + void recv_add_foreign_key(); void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void recv_drop_table(); @@ -19381,6 +19619,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_create_table_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_create_table_with_constraints(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_constraint(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_primary_key(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_add_foreign_key(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_table(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_drop_table_with_environment_context(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_tables(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -19532,6 +19772,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["create_table_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_create_table_with_environment_context; processMap_["create_table_with_constraints"] = &ThriftHiveMetastoreProcessor::process_create_table_with_constraints; processMap_["drop_constraint"] = &ThriftHiveMetastoreProcessor::process_drop_constraint; + processMap_["add_primary_key"] = &ThriftHiveMetastoreProcessor::process_add_primary_key; + processMap_["add_foreign_key"] = &ThriftHiveMetastoreProcessor::process_add_foreign_key; processMap_["drop_table"] = &ThriftHiveMetastoreProcessor::process_drop_table; processMap_["drop_table_with_environment_context"] = &ThriftHiveMetastoreProcessor::process_drop_table_with_environment_context; processMap_["get_tables"] = &ThriftHiveMetastoreProcessor::process_get_tables; @@ -19882,6 +20124,24 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi ifaces_[i]->drop_constraint(req); } + void add_primary_key(const AddPrimaryKeyRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_primary_key(req); + } + ifaces_[i]->add_primary_key(req); + } + + void add_foreign_key(const AddForeignKeyRequest& req) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->add_foreign_key(req); + } + ifaces_[i]->add_foreign_key(req); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { size_t sz = ifaces_.size(); size_t i = 0; @@ -21177,6 +21437,12 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void drop_constraint(const DropConstraintRequest& req); int32_t send_drop_constraint(const DropConstraintRequest& req); void recv_drop_constraint(const int32_t seqid); + void add_primary_key(const AddPrimaryKeyRequest& req); + int32_t send_add_primary_key(const AddPrimaryKeyRequest& req); + void recv_add_primary_key(const int32_t seqid); + void add_foreign_key(const AddForeignKeyRequest& req); + int32_t send_add_foreign_key(const AddForeignKeyRequest& req); + void recv_add_foreign_key(const int32_t seqid); void drop_table(const std::string& dbname, const std::string& name, const bool deleteData); int32_t send_drop_table(const std::string& dbname, const std::string& name, const bool deleteData); void recv_drop_table(const int32_t seqid); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp index fa88862..3330b2f 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -122,6 +122,16 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("drop_constraint\n"); } + void add_primary_key(const AddPrimaryKeyRequest& req) { + // Your implementation goes here + printf("add_primary_key\n"); + } + + void add_foreign_key(const AddForeignKeyRequest& req) { + // Your implementation goes here + printf("add_foreign_key\n"); + } + void drop_table(const std::string& dbname, const std::string& name, const bool deleteData) { // Your implementation goes here printf("drop_table\n"); diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp index d0c24de..ad5da3e 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -9122,6 +9122,218 @@ void DropConstraintRequest::printTo(std::ostream& out) const { } +AddPrimaryKeyRequest::~AddPrimaryKeyRequest() throw() { +} + + +void AddPrimaryKeyRequest::__set_primaryKeyCols(const std::vector & val) { + this->primaryKeyCols = val; +} + +uint32_t AddPrimaryKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_primaryKeyCols = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->primaryKeyCols.clear(); + uint32_t _size379; + ::apache::thrift::protocol::TType _etype382; + xfer += iprot->readListBegin(_etype382, _size379); + this->primaryKeyCols.resize(_size379); + uint32_t _i383; + for (_i383 = 0; _i383 < _size379; ++_i383) + { + xfer += this->primaryKeyCols[_i383].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_primaryKeyCols = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_primaryKeyCols) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t AddPrimaryKeyRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("AddPrimaryKeyRequest"); + + xfer += oprot->writeFieldBegin("primaryKeyCols", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->primaryKeyCols.size())); + std::vector ::const_iterator _iter384; + for (_iter384 = this->primaryKeyCols.begin(); _iter384 != this->primaryKeyCols.end(); ++_iter384) + { + xfer += (*_iter384).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b) { + using ::std::swap; + swap(a.primaryKeyCols, b.primaryKeyCols); +} + +AddPrimaryKeyRequest::AddPrimaryKeyRequest(const AddPrimaryKeyRequest& other385) { + primaryKeyCols = other385.primaryKeyCols; +} +AddPrimaryKeyRequest& AddPrimaryKeyRequest::operator=(const AddPrimaryKeyRequest& other386) { + primaryKeyCols = other386.primaryKeyCols; + return *this; +} +void AddPrimaryKeyRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddPrimaryKeyRequest("; + out << "primaryKeyCols=" << to_string(primaryKeyCols); + out << ")"; +} + + +AddForeignKeyRequest::~AddForeignKeyRequest() throw() { +} + + +void AddForeignKeyRequest::__set_foreignKeyCols(const std::vector & val) { + this->foreignKeyCols = val; +} + +uint32_t AddForeignKeyRequest::read(::apache::thrift::protocol::TProtocol* iprot) { + + apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); + uint32_t xfer = 0; + std::string fname; + ::apache::thrift::protocol::TType ftype; + int16_t fid; + + xfer += iprot->readStructBegin(fname); + + using ::apache::thrift::protocol::TProtocolException; + + bool isset_foreignKeyCols = false; + + while (true) + { + xfer += iprot->readFieldBegin(fname, ftype, fid); + if (ftype == ::apache::thrift::protocol::T_STOP) { + break; + } + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->foreignKeyCols.clear(); + uint32_t _size387; + ::apache::thrift::protocol::TType _etype390; + xfer += iprot->readListBegin(_etype390, _size387); + this->foreignKeyCols.resize(_size387); + uint32_t _i391; + for (_i391 = 0; _i391 < _size387; ++_i391) + { + xfer += this->foreignKeyCols[_i391].read(iprot); + } + xfer += iprot->readListEnd(); + } + isset_foreignKeyCols = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + if (!isset_foreignKeyCols) + throw TProtocolException(TProtocolException::INVALID_DATA); + return xfer; +} + +uint32_t AddForeignKeyRequest::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("AddForeignKeyRequest"); + + xfer += oprot->writeFieldBegin("foreignKeyCols", ::apache::thrift::protocol::T_LIST, 1); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->foreignKeyCols.size())); + std::vector ::const_iterator _iter392; + for (_iter392 = this->foreignKeyCols.begin(); _iter392 != this->foreignKeyCols.end(); ++_iter392) + { + xfer += (*_iter392).write(oprot); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b) { + using ::std::swap; + swap(a.foreignKeyCols, b.foreignKeyCols); +} + +AddForeignKeyRequest::AddForeignKeyRequest(const AddForeignKeyRequest& other393) { + foreignKeyCols = other393.foreignKeyCols; +} +AddForeignKeyRequest& AddForeignKeyRequest::operator=(const AddForeignKeyRequest& other394) { + foreignKeyCols = other394.foreignKeyCols; + return *this; +} +void AddForeignKeyRequest::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "AddForeignKeyRequest("; + out << "foreignKeyCols=" << to_string(foreignKeyCols); + out << ")"; +} + + PartitionsByExprResult::~PartitionsByExprResult() throw() { } @@ -9161,14 +9373,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size379; - ::apache::thrift::protocol::TType _etype382; - xfer += iprot->readListBegin(_etype382, _size379); - this->partitions.resize(_size379); - uint32_t _i383; - for (_i383 = 0; _i383 < _size379; ++_i383) + uint32_t _size395; + ::apache::thrift::protocol::TType _etype398; + xfer += iprot->readListBegin(_etype398, _size395); + this->partitions.resize(_size395); + uint32_t _i399; + for (_i399 = 0; _i399 < _size395; ++_i399) { - xfer += this->partitions[_i383].read(iprot); + xfer += this->partitions[_i399].read(iprot); } xfer += iprot->readListEnd(); } @@ -9209,10 +9421,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 _iter384; - for (_iter384 = this->partitions.begin(); _iter384 != this->partitions.end(); ++_iter384) + std::vector ::const_iterator _iter400; + for (_iter400 = this->partitions.begin(); _iter400 != this->partitions.end(); ++_iter400) { - xfer += (*_iter384).write(oprot); + xfer += (*_iter400).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9233,13 +9445,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other385) { - partitions = other385.partitions; - hasUnknownPartitions = other385.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other401) { + partitions = other401.partitions; + hasUnknownPartitions = other401.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other386) { - partitions = other386.partitions; - hasUnknownPartitions = other386.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other402) { + partitions = other402.partitions; + hasUnknownPartitions = other402.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -9401,21 +9613,21 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other387) { - dbName = other387.dbName; - tblName = other387.tblName; - expr = other387.expr; - defaultPartitionName = other387.defaultPartitionName; - maxParts = other387.maxParts; - __isset = other387.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other388) { - dbName = other388.dbName; - tblName = other388.tblName; - expr = other388.expr; - defaultPartitionName = other388.defaultPartitionName; - maxParts = other388.maxParts; - __isset = other388.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other403) { + dbName = other403.dbName; + tblName = other403.tblName; + expr = other403.expr; + defaultPartitionName = other403.defaultPartitionName; + maxParts = other403.maxParts; + __isset = other403.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other404) { + dbName = other404.dbName; + tblName = other404.tblName; + expr = other404.expr; + defaultPartitionName = other404.defaultPartitionName; + maxParts = other404.maxParts; + __isset = other404.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -9464,14 +9676,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size389; - ::apache::thrift::protocol::TType _etype392; - xfer += iprot->readListBegin(_etype392, _size389); - this->tableStats.resize(_size389); - uint32_t _i393; - for (_i393 = 0; _i393 < _size389; ++_i393) + uint32_t _size405; + ::apache::thrift::protocol::TType _etype408; + xfer += iprot->readListBegin(_etype408, _size405); + this->tableStats.resize(_size405); + uint32_t _i409; + for (_i409 = 0; _i409 < _size405; ++_i409) { - xfer += this->tableStats[_i393].read(iprot); + xfer += this->tableStats[_i409].read(iprot); } xfer += iprot->readListEnd(); } @@ -9502,10 +9714,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 _iter394; - for (_iter394 = this->tableStats.begin(); _iter394 != this->tableStats.end(); ++_iter394) + std::vector ::const_iterator _iter410; + for (_iter410 = this->tableStats.begin(); _iter410 != this->tableStats.end(); ++_iter410) { - xfer += (*_iter394).write(oprot); + xfer += (*_iter410).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9521,11 +9733,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other395) { - tableStats = other395.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other411) { + tableStats = other411.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other396) { - tableStats = other396.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other412) { + tableStats = other412.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -9570,26 +9782,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size397; - ::apache::thrift::protocol::TType _ktype398; - ::apache::thrift::protocol::TType _vtype399; - xfer += iprot->readMapBegin(_ktype398, _vtype399, _size397); - uint32_t _i401; - for (_i401 = 0; _i401 < _size397; ++_i401) + uint32_t _size413; + ::apache::thrift::protocol::TType _ktype414; + ::apache::thrift::protocol::TType _vtype415; + xfer += iprot->readMapBegin(_ktype414, _vtype415, _size413); + uint32_t _i417; + for (_i417 = 0; _i417 < _size413; ++_i417) { - std::string _key402; - xfer += iprot->readString(_key402); - std::vector & _val403 = this->partStats[_key402]; + std::string _key418; + xfer += iprot->readString(_key418); + std::vector & _val419 = this->partStats[_key418]; { - _val403.clear(); - uint32_t _size404; - ::apache::thrift::protocol::TType _etype407; - xfer += iprot->readListBegin(_etype407, _size404); - _val403.resize(_size404); - uint32_t _i408; - for (_i408 = 0; _i408 < _size404; ++_i408) + _val419.clear(); + uint32_t _size420; + ::apache::thrift::protocol::TType _etype423; + xfer += iprot->readListBegin(_etype423, _size420); + _val419.resize(_size420); + uint32_t _i424; + for (_i424 = 0; _i424 < _size420; ++_i424) { - xfer += _val403[_i408].read(iprot); + xfer += _val419[_i424].read(iprot); } xfer += iprot->readListEnd(); } @@ -9623,16 +9835,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 _iter409; - for (_iter409 = this->partStats.begin(); _iter409 != this->partStats.end(); ++_iter409) + std::map > ::const_iterator _iter425; + for (_iter425 = this->partStats.begin(); _iter425 != this->partStats.end(); ++_iter425) { - xfer += oprot->writeString(_iter409->first); + xfer += oprot->writeString(_iter425->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter409->second.size())); - std::vector ::const_iterator _iter410; - for (_iter410 = _iter409->second.begin(); _iter410 != _iter409->second.end(); ++_iter410) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter425->second.size())); + std::vector ::const_iterator _iter426; + for (_iter426 = _iter425->second.begin(); _iter426 != _iter425->second.end(); ++_iter426) { - xfer += (*_iter410).write(oprot); + xfer += (*_iter426).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9651,11 +9863,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other411) { - partStats = other411.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other427) { + partStats = other427.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other412) { - partStats = other412.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other428) { + partStats = other428.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -9726,14 +9938,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size413; - ::apache::thrift::protocol::TType _etype416; - xfer += iprot->readListBegin(_etype416, _size413); - this->colNames.resize(_size413); - uint32_t _i417; - for (_i417 = 0; _i417 < _size413; ++_i417) + uint32_t _size429; + ::apache::thrift::protocol::TType _etype432; + xfer += iprot->readListBegin(_etype432, _size429); + this->colNames.resize(_size429); + uint32_t _i433; + for (_i433 = 0; _i433 < _size429; ++_i433) { - xfer += iprot->readString(this->colNames[_i417]); + xfer += iprot->readString(this->colNames[_i433]); } xfer += iprot->readListEnd(); } @@ -9776,10 +9988,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 _iter418; - for (_iter418 = this->colNames.begin(); _iter418 != this->colNames.end(); ++_iter418) + std::vector ::const_iterator _iter434; + for (_iter434 = this->colNames.begin(); _iter434 != this->colNames.end(); ++_iter434) { - xfer += oprot->writeString((*_iter418)); + xfer += oprot->writeString((*_iter434)); } xfer += oprot->writeListEnd(); } @@ -9797,15 +10009,15 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other419) { - dbName = other419.dbName; - tblName = other419.tblName; - colNames = other419.colNames; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other435) { + dbName = other435.dbName; + tblName = other435.tblName; + colNames = other435.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other420) { - dbName = other420.dbName; - tblName = other420.tblName; - colNames = other420.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other436) { + dbName = other436.dbName; + tblName = other436.tblName; + colNames = other436.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -9883,14 +10095,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size421; - ::apache::thrift::protocol::TType _etype424; - xfer += iprot->readListBegin(_etype424, _size421); - this->colNames.resize(_size421); - uint32_t _i425; - for (_i425 = 0; _i425 < _size421; ++_i425) + uint32_t _size437; + ::apache::thrift::protocol::TType _etype440; + xfer += iprot->readListBegin(_etype440, _size437); + this->colNames.resize(_size437); + uint32_t _i441; + for (_i441 = 0; _i441 < _size437; ++_i441) { - xfer += iprot->readString(this->colNames[_i425]); + xfer += iprot->readString(this->colNames[_i441]); } xfer += iprot->readListEnd(); } @@ -9903,14 +10115,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size426; - ::apache::thrift::protocol::TType _etype429; - xfer += iprot->readListBegin(_etype429, _size426); - this->partNames.resize(_size426); - uint32_t _i430; - for (_i430 = 0; _i430 < _size426; ++_i430) + uint32_t _size442; + ::apache::thrift::protocol::TType _etype445; + xfer += iprot->readListBegin(_etype445, _size442); + this->partNames.resize(_size442); + uint32_t _i446; + for (_i446 = 0; _i446 < _size442; ++_i446) { - xfer += iprot->readString(this->partNames[_i430]); + xfer += iprot->readString(this->partNames[_i446]); } xfer += iprot->readListEnd(); } @@ -9955,10 +10167,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 _iter431; - for (_iter431 = this->colNames.begin(); _iter431 != this->colNames.end(); ++_iter431) + std::vector ::const_iterator _iter447; + for (_iter447 = this->colNames.begin(); _iter447 != this->colNames.end(); ++_iter447) { - xfer += oprot->writeString((*_iter431)); + xfer += oprot->writeString((*_iter447)); } xfer += oprot->writeListEnd(); } @@ -9967,10 +10179,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 _iter432; - for (_iter432 = this->partNames.begin(); _iter432 != this->partNames.end(); ++_iter432) + std::vector ::const_iterator _iter448; + for (_iter448 = this->partNames.begin(); _iter448 != this->partNames.end(); ++_iter448) { - xfer += oprot->writeString((*_iter432)); + xfer += oprot->writeString((*_iter448)); } xfer += oprot->writeListEnd(); } @@ -9989,17 +10201,17 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other433) { - dbName = other433.dbName; - tblName = other433.tblName; - colNames = other433.colNames; - partNames = other433.partNames; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other449) { + dbName = other449.dbName; + tblName = other449.tblName; + colNames = other449.colNames; + partNames = other449.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other434) { - dbName = other434.dbName; - tblName = other434.tblName; - colNames = other434.colNames; - partNames = other434.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other450) { + dbName = other450.dbName; + tblName = other450.tblName; + colNames = other450.colNames; + partNames = other450.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -10047,14 +10259,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size435; - ::apache::thrift::protocol::TType _etype438; - xfer += iprot->readListBegin(_etype438, _size435); - this->partitions.resize(_size435); - uint32_t _i439; - for (_i439 = 0; _i439 < _size435; ++_i439) + uint32_t _size451; + ::apache::thrift::protocol::TType _etype454; + xfer += iprot->readListBegin(_etype454, _size451); + this->partitions.resize(_size451); + uint32_t _i455; + for (_i455 = 0; _i455 < _size451; ++_i455) { - xfer += this->partitions[_i439].read(iprot); + xfer += this->partitions[_i455].read(iprot); } xfer += iprot->readListEnd(); } @@ -10084,10 +10296,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 _iter440; - for (_iter440 = this->partitions.begin(); _iter440 != this->partitions.end(); ++_iter440) + std::vector ::const_iterator _iter456; + for (_iter456 = this->partitions.begin(); _iter456 != this->partitions.end(); ++_iter456) { - xfer += (*_iter440).write(oprot); + xfer += (*_iter456).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10104,13 +10316,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other441) { - partitions = other441.partitions; - __isset = other441.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other457) { + partitions = other457.partitions; + __isset = other457.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other442) { - partitions = other442.partitions; - __isset = other442.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other458) { + partitions = other458.partitions; + __isset = other458.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -10191,14 +10403,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size443; - ::apache::thrift::protocol::TType _etype446; - xfer += iprot->readListBegin(_etype446, _size443); - this->parts.resize(_size443); - uint32_t _i447; - for (_i447 = 0; _i447 < _size443; ++_i447) + uint32_t _size459; + ::apache::thrift::protocol::TType _etype462; + xfer += iprot->readListBegin(_etype462, _size459); + this->parts.resize(_size459); + uint32_t _i463; + for (_i463 = 0; _i463 < _size459; ++_i463) { - xfer += this->parts[_i447].read(iprot); + xfer += this->parts[_i463].read(iprot); } xfer += iprot->readListEnd(); } @@ -10259,10 +10471,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 _iter448; - for (_iter448 = this->parts.begin(); _iter448 != this->parts.end(); ++_iter448) + std::vector ::const_iterator _iter464; + for (_iter464 = this->parts.begin(); _iter464 != this->parts.end(); ++_iter464) { - xfer += (*_iter448).write(oprot); + xfer += (*_iter464).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10292,21 +10504,21 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other449) { - dbName = other449.dbName; - tblName = other449.tblName; - parts = other449.parts; - ifNotExists = other449.ifNotExists; - needResult = other449.needResult; - __isset = other449.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other450) { - dbName = other450.dbName; - tblName = other450.tblName; - parts = other450.parts; - ifNotExists = other450.ifNotExists; - needResult = other450.needResult; - __isset = other450.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other465) { + dbName = other465.dbName; + tblName = other465.tblName; + parts = other465.parts; + ifNotExists = other465.ifNotExists; + needResult = other465.needResult; + __isset = other465.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other466) { + dbName = other466.dbName; + tblName = other466.tblName; + parts = other466.parts; + ifNotExists = other466.ifNotExists; + needResult = other466.needResult; + __isset = other466.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -10355,14 +10567,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size451; - ::apache::thrift::protocol::TType _etype454; - xfer += iprot->readListBegin(_etype454, _size451); - this->partitions.resize(_size451); - uint32_t _i455; - for (_i455 = 0; _i455 < _size451; ++_i455) + uint32_t _size467; + ::apache::thrift::protocol::TType _etype470; + xfer += iprot->readListBegin(_etype470, _size467); + this->partitions.resize(_size467); + uint32_t _i471; + for (_i471 = 0; _i471 < _size467; ++_i471) { - xfer += this->partitions[_i455].read(iprot); + xfer += this->partitions[_i471].read(iprot); } xfer += iprot->readListEnd(); } @@ -10392,10 +10604,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 _iter456; - for (_iter456 = this->partitions.begin(); _iter456 != this->partitions.end(); ++_iter456) + std::vector ::const_iterator _iter472; + for (_iter472 = this->partitions.begin(); _iter472 != this->partitions.end(); ++_iter472) { - xfer += (*_iter456).write(oprot); + xfer += (*_iter472).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10412,13 +10624,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other457) { - partitions = other457.partitions; - __isset = other457.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other473) { + partitions = other473.partitions; + __isset = other473.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other458) { - partitions = other458.partitions; - __isset = other458.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other474) { + partitions = other474.partitions; + __isset = other474.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -10520,15 +10732,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other459) { - expr = other459.expr; - partArchiveLevel = other459.partArchiveLevel; - __isset = other459.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other475) { + expr = other475.expr; + partArchiveLevel = other475.partArchiveLevel; + __isset = other475.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other460) { - expr = other460.expr; - partArchiveLevel = other460.partArchiveLevel; - __isset = other460.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other476) { + expr = other476.expr; + partArchiveLevel = other476.partArchiveLevel; + __isset = other476.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -10577,14 +10789,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size461; - ::apache::thrift::protocol::TType _etype464; - xfer += iprot->readListBegin(_etype464, _size461); - this->names.resize(_size461); - uint32_t _i465; - for (_i465 = 0; _i465 < _size461; ++_i465) + uint32_t _size477; + ::apache::thrift::protocol::TType _etype480; + xfer += iprot->readListBegin(_etype480, _size477); + this->names.resize(_size477); + uint32_t _i481; + for (_i481 = 0; _i481 < _size477; ++_i481) { - xfer += iprot->readString(this->names[_i465]); + xfer += iprot->readString(this->names[_i481]); } xfer += iprot->readListEnd(); } @@ -10597,14 +10809,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size466; - ::apache::thrift::protocol::TType _etype469; - xfer += iprot->readListBegin(_etype469, _size466); - this->exprs.resize(_size466); - uint32_t _i470; - for (_i470 = 0; _i470 < _size466; ++_i470) + uint32_t _size482; + ::apache::thrift::protocol::TType _etype485; + xfer += iprot->readListBegin(_etype485, _size482); + this->exprs.resize(_size482); + uint32_t _i486; + for (_i486 = 0; _i486 < _size482; ++_i486) { - xfer += this->exprs[_i470].read(iprot); + xfer += this->exprs[_i486].read(iprot); } xfer += iprot->readListEnd(); } @@ -10633,10 +10845,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 _iter471; - for (_iter471 = this->names.begin(); _iter471 != this->names.end(); ++_iter471) + std::vector ::const_iterator _iter487; + for (_iter487 = this->names.begin(); _iter487 != this->names.end(); ++_iter487) { - xfer += oprot->writeString((*_iter471)); + xfer += oprot->writeString((*_iter487)); } xfer += oprot->writeListEnd(); } @@ -10645,10 +10857,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 _iter472; - for (_iter472 = this->exprs.begin(); _iter472 != this->exprs.end(); ++_iter472) + std::vector ::const_iterator _iter488; + for (_iter488 = this->exprs.begin(); _iter488 != this->exprs.end(); ++_iter488) { - xfer += (*_iter472).write(oprot); + xfer += (*_iter488).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10666,15 +10878,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other473) { - names = other473.names; - exprs = other473.exprs; - __isset = other473.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other489) { + names = other489.names; + exprs = other489.exprs; + __isset = other489.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other474) { - names = other474.names; - exprs = other474.exprs; - __isset = other474.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other490) { + names = other490.names; + exprs = other490.exprs; + __isset = other490.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -10893,27 +11105,27 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other475) { - dbName = other475.dbName; - tblName = other475.tblName; - parts = other475.parts; - deleteData = other475.deleteData; - ifExists = other475.ifExists; - ignoreProtection = other475.ignoreProtection; - environmentContext = other475.environmentContext; - needResult = other475.needResult; - __isset = other475.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other491) { + dbName = other491.dbName; + tblName = other491.tblName; + parts = other491.parts; + deleteData = other491.deleteData; + ifExists = other491.ifExists; + ignoreProtection = other491.ignoreProtection; + environmentContext = other491.environmentContext; + needResult = other491.needResult; + __isset = other491.__isset; } -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other476) { - dbName = other476.dbName; - tblName = other476.tblName; - parts = other476.parts; - deleteData = other476.deleteData; - ifExists = other476.ifExists; - ignoreProtection = other476.ignoreProtection; - environmentContext = other476.environmentContext; - needResult = other476.needResult; - __isset = other476.__isset; +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other492) { + dbName = other492.dbName; + tblName = other492.tblName; + parts = other492.parts; + deleteData = other492.deleteData; + ifExists = other492.ifExists; + ignoreProtection = other492.ignoreProtection; + environmentContext = other492.environmentContext; + needResult = other492.needResult; + __isset = other492.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -10966,9 +11178,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast477; - xfer += iprot->readI32(ecast477); - this->resourceType = (ResourceType::type)ecast477; + int32_t ecast493; + xfer += iprot->readI32(ecast493); + this->resourceType = (ResourceType::type)ecast493; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -11019,15 +11231,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other478) { - resourceType = other478.resourceType; - uri = other478.uri; - __isset = other478.__isset; +ResourceUri::ResourceUri(const ResourceUri& other494) { + resourceType = other494.resourceType; + uri = other494.uri; + __isset = other494.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other479) { - resourceType = other479.resourceType; - uri = other479.uri; - __isset = other479.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other495) { + resourceType = other495.resourceType; + uri = other495.uri; + __isset = other495.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -11130,9 +11342,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast480; - xfer += iprot->readI32(ecast480); - this->ownerType = (PrincipalType::type)ecast480; + int32_t ecast496; + xfer += iprot->readI32(ecast496); + this->ownerType = (PrincipalType::type)ecast496; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -11148,9 +11360,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast481; - xfer += iprot->readI32(ecast481); - this->functionType = (FunctionType::type)ecast481; + int32_t ecast497; + xfer += iprot->readI32(ecast497); + this->functionType = (FunctionType::type)ecast497; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -11160,14 +11372,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size482; - ::apache::thrift::protocol::TType _etype485; - xfer += iprot->readListBegin(_etype485, _size482); - this->resourceUris.resize(_size482); - uint32_t _i486; - for (_i486 = 0; _i486 < _size482; ++_i486) + uint32_t _size498; + ::apache::thrift::protocol::TType _etype501; + xfer += iprot->readListBegin(_etype501, _size498); + this->resourceUris.resize(_size498); + uint32_t _i502; + for (_i502 = 0; _i502 < _size498; ++_i502) { - xfer += this->resourceUris[_i486].read(iprot); + xfer += this->resourceUris[_i502].read(iprot); } xfer += iprot->readListEnd(); } @@ -11224,10 +11436,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 _iter487; - for (_iter487 = this->resourceUris.begin(); _iter487 != this->resourceUris.end(); ++_iter487) + std::vector ::const_iterator _iter503; + for (_iter503 = this->resourceUris.begin(); _iter503 != this->resourceUris.end(); ++_iter503) { - xfer += (*_iter487).write(oprot); + xfer += (*_iter503).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11251,27 +11463,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other488) { - functionName = other488.functionName; - dbName = other488.dbName; - className = other488.className; - ownerName = other488.ownerName; - ownerType = other488.ownerType; - createTime = other488.createTime; - functionType = other488.functionType; - resourceUris = other488.resourceUris; - __isset = other488.__isset; -} -Function& Function::operator=(const Function& other489) { - functionName = other489.functionName; - dbName = other489.dbName; - className = other489.className; - ownerName = other489.ownerName; - ownerType = other489.ownerType; - createTime = other489.createTime; - functionType = other489.functionType; - resourceUris = other489.resourceUris; - __isset = other489.__isset; +Function::Function(const Function& other504) { + functionName = other504.functionName; + dbName = other504.dbName; + className = other504.className; + ownerName = other504.ownerName; + ownerType = other504.ownerType; + createTime = other504.createTime; + functionType = other504.functionType; + resourceUris = other504.resourceUris; + __isset = other504.__isset; +} +Function& Function::operator=(const Function& other505) { + functionName = other505.functionName; + dbName = other505.dbName; + className = other505.className; + ownerName = other505.ownerName; + ownerType = other505.ownerType; + createTime = other505.createTime; + functionType = other505.functionType; + resourceUris = other505.resourceUris; + __isset = other505.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -11359,9 +11571,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast490; - xfer += iprot->readI32(ecast490); - this->state = (TxnState::type)ecast490; + int32_t ecast506; + xfer += iprot->readI32(ecast506); + this->state = (TxnState::type)ecast506; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11480,25 +11692,25 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other491) { - id = other491.id; - state = other491.state; - user = other491.user; - hostname = other491.hostname; - agentInfo = other491.agentInfo; - heartbeatCount = other491.heartbeatCount; - metaInfo = other491.metaInfo; - __isset = other491.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other492) { - id = other492.id; - state = other492.state; - user = other492.user; - hostname = other492.hostname; - agentInfo = other492.agentInfo; - heartbeatCount = other492.heartbeatCount; - metaInfo = other492.metaInfo; - __isset = other492.__isset; +TxnInfo::TxnInfo(const TxnInfo& other507) { + id = other507.id; + state = other507.state; + user = other507.user; + hostname = other507.hostname; + agentInfo = other507.agentInfo; + heartbeatCount = other507.heartbeatCount; + metaInfo = other507.metaInfo; + __isset = other507.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other508) { + id = other508.id; + state = other508.state; + user = other508.user; + hostname = other508.hostname; + agentInfo = other508.agentInfo; + heartbeatCount = other508.heartbeatCount; + metaInfo = other508.metaInfo; + __isset = other508.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -11562,14 +11774,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size493; - ::apache::thrift::protocol::TType _etype496; - xfer += iprot->readListBegin(_etype496, _size493); - this->open_txns.resize(_size493); - uint32_t _i497; - for (_i497 = 0; _i497 < _size493; ++_i497) + uint32_t _size509; + ::apache::thrift::protocol::TType _etype512; + xfer += iprot->readListBegin(_etype512, _size509); + this->open_txns.resize(_size509); + uint32_t _i513; + for (_i513 = 0; _i513 < _size509; ++_i513) { - xfer += this->open_txns[_i497].read(iprot); + xfer += this->open_txns[_i513].read(iprot); } xfer += iprot->readListEnd(); } @@ -11606,10 +11818,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 _iter498; - for (_iter498 = this->open_txns.begin(); _iter498 != this->open_txns.end(); ++_iter498) + std::vector ::const_iterator _iter514; + for (_iter514 = this->open_txns.begin(); _iter514 != this->open_txns.end(); ++_iter514) { - xfer += (*_iter498).write(oprot); + xfer += (*_iter514).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11626,13 +11838,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other499) { - txn_high_water_mark = other499.txn_high_water_mark; - open_txns = other499.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other515) { + txn_high_water_mark = other515.txn_high_water_mark; + open_txns = other515.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other500) { - txn_high_water_mark = other500.txn_high_water_mark; - open_txns = other500.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other516) { + txn_high_water_mark = other516.txn_high_water_mark; + open_txns = other516.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -11691,15 +11903,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size501; - ::apache::thrift::protocol::TType _etype504; - xfer += iprot->readSetBegin(_etype504, _size501); - uint32_t _i505; - for (_i505 = 0; _i505 < _size501; ++_i505) + uint32_t _size517; + ::apache::thrift::protocol::TType _etype520; + xfer += iprot->readSetBegin(_etype520, _size517); + uint32_t _i521; + for (_i521 = 0; _i521 < _size517; ++_i521) { - int64_t _elem506; - xfer += iprot->readI64(_elem506); - this->open_txns.insert(_elem506); + int64_t _elem522; + xfer += iprot->readI64(_elem522); + this->open_txns.insert(_elem522); } xfer += iprot->readSetEnd(); } @@ -11736,10 +11948,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 _iter507; - for (_iter507 = this->open_txns.begin(); _iter507 != this->open_txns.end(); ++_iter507) + std::set ::const_iterator _iter523; + for (_iter523 = this->open_txns.begin(); _iter523 != this->open_txns.end(); ++_iter523) { - xfer += oprot->writeI64((*_iter507)); + xfer += oprot->writeI64((*_iter523)); } xfer += oprot->writeSetEnd(); } @@ -11756,13 +11968,13 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other508) { - txn_high_water_mark = other508.txn_high_water_mark; - open_txns = other508.open_txns; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other524) { + txn_high_water_mark = other524.txn_high_water_mark; + open_txns = other524.open_txns; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other509) { - txn_high_water_mark = other509.txn_high_water_mark; - open_txns = other509.open_txns; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other525) { + txn_high_water_mark = other525.txn_high_water_mark; + open_txns = other525.open_txns; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -11905,19 +12117,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other510) { - num_txns = other510.num_txns; - user = other510.user; - hostname = other510.hostname; - agentInfo = other510.agentInfo; - __isset = other510.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other526) { + num_txns = other526.num_txns; + user = other526.user; + hostname = other526.hostname; + agentInfo = other526.agentInfo; + __isset = other526.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other511) { - num_txns = other511.num_txns; - user = other511.user; - hostname = other511.hostname; - agentInfo = other511.agentInfo; - __isset = other511.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other527) { + num_txns = other527.num_txns; + user = other527.user; + hostname = other527.hostname; + agentInfo = other527.agentInfo; + __isset = other527.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -11965,14 +12177,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size512; - ::apache::thrift::protocol::TType _etype515; - xfer += iprot->readListBegin(_etype515, _size512); - this->txn_ids.resize(_size512); - uint32_t _i516; - for (_i516 = 0; _i516 < _size512; ++_i516) + uint32_t _size528; + ::apache::thrift::protocol::TType _etype531; + xfer += iprot->readListBegin(_etype531, _size528); + this->txn_ids.resize(_size528); + uint32_t _i532; + for (_i532 = 0; _i532 < _size528; ++_i532) { - xfer += iprot->readI64(this->txn_ids[_i516]); + xfer += iprot->readI64(this->txn_ids[_i532]); } xfer += iprot->readListEnd(); } @@ -12003,10 +12215,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 _iter517; - for (_iter517 = this->txn_ids.begin(); _iter517 != this->txn_ids.end(); ++_iter517) + std::vector ::const_iterator _iter533; + for (_iter533 = this->txn_ids.begin(); _iter533 != this->txn_ids.end(); ++_iter533) { - xfer += oprot->writeI64((*_iter517)); + xfer += oprot->writeI64((*_iter533)); } xfer += oprot->writeListEnd(); } @@ -12022,11 +12234,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other518) { - txn_ids = other518.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other534) { + txn_ids = other534.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other519) { - txn_ids = other519.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other535) { + txn_ids = other535.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -12108,11 +12320,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other520) { - txnid = other520.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other536) { + txnid = other536.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other521) { - txnid = other521.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other537) { + txnid = other537.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -12157,14 +12369,14 @@ uint32_t AbortTxnsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size522; - ::apache::thrift::protocol::TType _etype525; - xfer += iprot->readListBegin(_etype525, _size522); - this->txn_ids.resize(_size522); - uint32_t _i526; - for (_i526 = 0; _i526 < _size522; ++_i526) + uint32_t _size538; + ::apache::thrift::protocol::TType _etype541; + xfer += iprot->readListBegin(_etype541, _size538); + this->txn_ids.resize(_size538); + uint32_t _i542; + for (_i542 = 0; _i542 < _size538; ++_i542) { - xfer += iprot->readI64(this->txn_ids[_i526]); + xfer += iprot->readI64(this->txn_ids[_i542]); } xfer += iprot->readListEnd(); } @@ -12195,10 +12407,10 @@ uint32_t AbortTxnsRequest::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 _iter527; - for (_iter527 = this->txn_ids.begin(); _iter527 != this->txn_ids.end(); ++_iter527) + std::vector ::const_iterator _iter543; + for (_iter543 = this->txn_ids.begin(); _iter543 != this->txn_ids.end(); ++_iter543) { - xfer += oprot->writeI64((*_iter527)); + xfer += oprot->writeI64((*_iter543)); } xfer += oprot->writeListEnd(); } @@ -12214,11 +12426,11 @@ void swap(AbortTxnsRequest &a, AbortTxnsRequest &b) { swap(a.txn_ids, b.txn_ids); } -AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other528) { - txn_ids = other528.txn_ids; +AbortTxnsRequest::AbortTxnsRequest(const AbortTxnsRequest& other544) { + txn_ids = other544.txn_ids; } -AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other529) { - txn_ids = other529.txn_ids; +AbortTxnsRequest& AbortTxnsRequest::operator=(const AbortTxnsRequest& other545) { + txn_ids = other545.txn_ids; return *this; } void AbortTxnsRequest::printTo(std::ostream& out) const { @@ -12300,11 +12512,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other530) { - txnid = other530.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other546) { + txnid = other546.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other531) { - txnid = other531.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other547) { + txnid = other547.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -12367,9 +12579,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast532; - xfer += iprot->readI32(ecast532); - this->type = (LockType::type)ecast532; + int32_t ecast548; + xfer += iprot->readI32(ecast548); + this->type = (LockType::type)ecast548; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12377,9 +12589,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast533; - xfer += iprot->readI32(ecast533); - this->level = (LockLevel::type)ecast533; + int32_t ecast549; + xfer += iprot->readI32(ecast549); + this->level = (LockLevel::type)ecast549; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -12469,21 +12681,21 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other534) { - type = other534.type; - level = other534.level; - dbname = other534.dbname; - tablename = other534.tablename; - partitionname = other534.partitionname; - __isset = other534.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other535) { - type = other535.type; - level = other535.level; - dbname = other535.dbname; - tablename = other535.tablename; - partitionname = other535.partitionname; - __isset = other535.__isset; +LockComponent::LockComponent(const LockComponent& other550) { + type = other550.type; + level = other550.level; + dbname = other550.dbname; + tablename = other550.tablename; + partitionname = other550.partitionname; + __isset = other550.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other551) { + type = other551.type; + level = other551.level; + dbname = other551.dbname; + tablename = other551.tablename; + partitionname = other551.partitionname; + __isset = other551.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -12552,14 +12764,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size536; - ::apache::thrift::protocol::TType _etype539; - xfer += iprot->readListBegin(_etype539, _size536); - this->component.resize(_size536); - uint32_t _i540; - for (_i540 = 0; _i540 < _size536; ++_i540) + uint32_t _size552; + ::apache::thrift::protocol::TType _etype555; + xfer += iprot->readListBegin(_etype555, _size552); + this->component.resize(_size552); + uint32_t _i556; + for (_i556 = 0; _i556 < _size552; ++_i556) { - xfer += this->component[_i540].read(iprot); + xfer += this->component[_i556].read(iprot); } xfer += iprot->readListEnd(); } @@ -12626,10 +12838,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 _iter541; - for (_iter541 = this->component.begin(); _iter541 != this->component.end(); ++_iter541) + std::vector ::const_iterator _iter557; + for (_iter557 = this->component.begin(); _iter557 != this->component.end(); ++_iter557) { - xfer += (*_iter541).write(oprot); + xfer += (*_iter557).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12668,21 +12880,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other542) { - component = other542.component; - txnid = other542.txnid; - user = other542.user; - hostname = other542.hostname; - agentInfo = other542.agentInfo; - __isset = other542.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other543) { - component = other543.component; - txnid = other543.txnid; - user = other543.user; - hostname = other543.hostname; - agentInfo = other543.agentInfo; - __isset = other543.__isset; +LockRequest::LockRequest(const LockRequest& other558) { + component = other558.component; + txnid = other558.txnid; + user = other558.user; + hostname = other558.hostname; + agentInfo = other558.agentInfo; + __isset = other558.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other559) { + component = other559.component; + txnid = other559.txnid; + user = other559.user; + hostname = other559.hostname; + agentInfo = other559.agentInfo; + __isset = other559.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -12742,9 +12954,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast544; - xfer += iprot->readI32(ecast544); - this->state = (LockState::type)ecast544; + int32_t ecast560; + xfer += iprot->readI32(ecast560); + this->state = (LockState::type)ecast560; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -12790,13 +13002,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other545) { - lockid = other545.lockid; - state = other545.state; +LockResponse::LockResponse(const LockResponse& other561) { + lockid = other561.lockid; + state = other561.state; } -LockResponse& LockResponse::operator=(const LockResponse& other546) { - lockid = other546.lockid; - state = other546.state; +LockResponse& LockResponse::operator=(const LockResponse& other562) { + lockid = other562.lockid; + state = other562.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -12918,17 +13130,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other547) { - lockid = other547.lockid; - txnid = other547.txnid; - elapsed_ms = other547.elapsed_ms; - __isset = other547.__isset; -} -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other548) { - lockid = other548.lockid; - txnid = other548.txnid; - elapsed_ms = other548.elapsed_ms; - __isset = other548.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other563) { + lockid = other563.lockid; + txnid = other563.txnid; + elapsed_ms = other563.elapsed_ms; + __isset = other563.__isset; +} +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other564) { + lockid = other564.lockid; + txnid = other564.txnid; + elapsed_ms = other564.elapsed_ms; + __isset = other564.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -13012,11 +13224,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other549) { - lockid = other549.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other565) { + lockid = other565.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other550) { - lockid = other550.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other566) { + lockid = other566.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -13155,19 +13367,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other551) { - dbname = other551.dbname; - tablename = other551.tablename; - partname = other551.partname; - isExtended = other551.isExtended; - __isset = other551.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other567) { + dbname = other567.dbname; + tablename = other567.tablename; + partname = other567.partname; + isExtended = other567.isExtended; + __isset = other567.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other552) { - dbname = other552.dbname; - tablename = other552.tablename; - partname = other552.partname; - isExtended = other552.isExtended; - __isset = other552.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other568) { + dbname = other568.dbname; + tablename = other568.tablename; + partname = other568.partname; + isExtended = other568.isExtended; + __isset = other568.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -13320,9 +13532,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast553; - xfer += iprot->readI32(ecast553); - this->state = (LockState::type)ecast553; + int32_t ecast569; + xfer += iprot->readI32(ecast569); + this->state = (LockState::type)ecast569; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -13330,9 +13542,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast554; - xfer += iprot->readI32(ecast554); - this->type = (LockType::type)ecast554; + int32_t ecast570; + xfer += iprot->readI32(ecast570); + this->type = (LockType::type)ecast570; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -13548,43 +13760,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other555) { - lockid = other555.lockid; - dbname = other555.dbname; - tablename = other555.tablename; - partname = other555.partname; - state = other555.state; - type = other555.type; - txnid = other555.txnid; - lastheartbeat = other555.lastheartbeat; - acquiredat = other555.acquiredat; - user = other555.user; - hostname = other555.hostname; - heartbeatCount = other555.heartbeatCount; - agentInfo = other555.agentInfo; - blockedByExtId = other555.blockedByExtId; - blockedByIntId = other555.blockedByIntId; - lockIdInternal = other555.lockIdInternal; - __isset = other555.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other556) { - lockid = other556.lockid; - dbname = other556.dbname; - tablename = other556.tablename; - partname = other556.partname; - state = other556.state; - type = other556.type; - txnid = other556.txnid; - lastheartbeat = other556.lastheartbeat; - acquiredat = other556.acquiredat; - user = other556.user; - hostname = other556.hostname; - heartbeatCount = other556.heartbeatCount; - agentInfo = other556.agentInfo; - blockedByExtId = other556.blockedByExtId; - blockedByIntId = other556.blockedByIntId; - lockIdInternal = other556.lockIdInternal; - __isset = other556.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other571) { + lockid = other571.lockid; + dbname = other571.dbname; + tablename = other571.tablename; + partname = other571.partname; + state = other571.state; + type = other571.type; + txnid = other571.txnid; + lastheartbeat = other571.lastheartbeat; + acquiredat = other571.acquiredat; + user = other571.user; + hostname = other571.hostname; + heartbeatCount = other571.heartbeatCount; + agentInfo = other571.agentInfo; + blockedByExtId = other571.blockedByExtId; + blockedByIntId = other571.blockedByIntId; + lockIdInternal = other571.lockIdInternal; + __isset = other571.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other572) { + lockid = other572.lockid; + dbname = other572.dbname; + tablename = other572.tablename; + partname = other572.partname; + state = other572.state; + type = other572.type; + txnid = other572.txnid; + lastheartbeat = other572.lastheartbeat; + acquiredat = other572.acquiredat; + user = other572.user; + hostname = other572.hostname; + heartbeatCount = other572.heartbeatCount; + agentInfo = other572.agentInfo; + blockedByExtId = other572.blockedByExtId; + blockedByIntId = other572.blockedByIntId; + lockIdInternal = other572.lockIdInternal; + __isset = other572.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -13643,14 +13855,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size557; - ::apache::thrift::protocol::TType _etype560; - xfer += iprot->readListBegin(_etype560, _size557); - this->locks.resize(_size557); - uint32_t _i561; - for (_i561 = 0; _i561 < _size557; ++_i561) + uint32_t _size573; + ::apache::thrift::protocol::TType _etype576; + xfer += iprot->readListBegin(_etype576, _size573); + this->locks.resize(_size573); + uint32_t _i577; + for (_i577 = 0; _i577 < _size573; ++_i577) { - xfer += this->locks[_i561].read(iprot); + xfer += this->locks[_i577].read(iprot); } xfer += iprot->readListEnd(); } @@ -13679,10 +13891,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 _iter562; - for (_iter562 = this->locks.begin(); _iter562 != this->locks.end(); ++_iter562) + std::vector ::const_iterator _iter578; + for (_iter578 = this->locks.begin(); _iter578 != this->locks.end(); ++_iter578) { - xfer += (*_iter562).write(oprot); + xfer += (*_iter578).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13699,13 +13911,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other563) { - locks = other563.locks; - __isset = other563.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other579) { + locks = other579.locks; + __isset = other579.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other564) { - locks = other564.locks; - __isset = other564.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other580) { + locks = other580.locks; + __isset = other580.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -13806,15 +14018,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other565) { - lockid = other565.lockid; - txnid = other565.txnid; - __isset = other565.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other581) { + lockid = other581.lockid; + txnid = other581.txnid; + __isset = other581.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other566) { - lockid = other566.lockid; - txnid = other566.txnid; - __isset = other566.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other582) { + lockid = other582.lockid; + txnid = other582.txnid; + __isset = other582.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -13917,13 +14129,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other567) { - min = other567.min; - max = other567.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other583) { + min = other583.min; + max = other583.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other568) { - min = other568.min; - max = other568.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other584) { + min = other584.min; + max = other584.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -13974,15 +14186,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size569; - ::apache::thrift::protocol::TType _etype572; - xfer += iprot->readSetBegin(_etype572, _size569); - uint32_t _i573; - for (_i573 = 0; _i573 < _size569; ++_i573) + uint32_t _size585; + ::apache::thrift::protocol::TType _etype588; + xfer += iprot->readSetBegin(_etype588, _size585); + uint32_t _i589; + for (_i589 = 0; _i589 < _size585; ++_i589) { - int64_t _elem574; - xfer += iprot->readI64(_elem574); - this->aborted.insert(_elem574); + int64_t _elem590; + xfer += iprot->readI64(_elem590); + this->aborted.insert(_elem590); } xfer += iprot->readSetEnd(); } @@ -13995,15 +14207,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size575; - ::apache::thrift::protocol::TType _etype578; - xfer += iprot->readSetBegin(_etype578, _size575); - uint32_t _i579; - for (_i579 = 0; _i579 < _size575; ++_i579) + uint32_t _size591; + ::apache::thrift::protocol::TType _etype594; + xfer += iprot->readSetBegin(_etype594, _size591); + uint32_t _i595; + for (_i595 = 0; _i595 < _size591; ++_i595) { - int64_t _elem580; - xfer += iprot->readI64(_elem580); - this->nosuch.insert(_elem580); + int64_t _elem596; + xfer += iprot->readI64(_elem596); + this->nosuch.insert(_elem596); } xfer += iprot->readSetEnd(); } @@ -14036,10 +14248,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 _iter581; - for (_iter581 = this->aborted.begin(); _iter581 != this->aborted.end(); ++_iter581) + std::set ::const_iterator _iter597; + for (_iter597 = this->aborted.begin(); _iter597 != this->aborted.end(); ++_iter597) { - xfer += oprot->writeI64((*_iter581)); + xfer += oprot->writeI64((*_iter597)); } xfer += oprot->writeSetEnd(); } @@ -14048,10 +14260,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 _iter582; - for (_iter582 = this->nosuch.begin(); _iter582 != this->nosuch.end(); ++_iter582) + std::set ::const_iterator _iter598; + for (_iter598 = this->nosuch.begin(); _iter598 != this->nosuch.end(); ++_iter598) { - xfer += oprot->writeI64((*_iter582)); + xfer += oprot->writeI64((*_iter598)); } xfer += oprot->writeSetEnd(); } @@ -14068,13 +14280,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other583) { - aborted = other583.aborted; - nosuch = other583.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other599) { + aborted = other599.aborted; + nosuch = other599.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other584) { - aborted = other584.aborted; - nosuch = other584.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other600) { + aborted = other600.aborted; + nosuch = other600.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -14162,9 +14374,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast585; - xfer += iprot->readI32(ecast585); - this->type = (CompactionType::type)ecast585; + int32_t ecast601; + xfer += iprot->readI32(ecast601); + this->type = (CompactionType::type)ecast601; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14238,21 +14450,21 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other586) { - dbname = other586.dbname; - tablename = other586.tablename; - partitionname = other586.partitionname; - type = other586.type; - runas = other586.runas; - __isset = other586.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other587) { - dbname = other587.dbname; - tablename = other587.tablename; - partitionname = other587.partitionname; - type = other587.type; - runas = other587.runas; - __isset = other587.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other602) { + dbname = other602.dbname; + tablename = other602.tablename; + partitionname = other602.partitionname; + type = other602.type; + runas = other602.runas; + __isset = other602.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other603) { + dbname = other603.dbname; + tablename = other603.tablename; + partitionname = other603.partitionname; + type = other603.type; + runas = other603.runas; + __isset = other603.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -14315,11 +14527,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other588) { - (void) other588; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other604) { + (void) other604; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other589) { - (void) other589; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other605) { + (void) other605; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -14440,9 +14652,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast590; - xfer += iprot->readI32(ecast590); - this->type = (CompactionType::type)ecast590; + int32_t ecast606; + xfer += iprot->readI32(ecast606); + this->type = (CompactionType::type)ecast606; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -14615,35 +14827,35 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other591) { - dbname = other591.dbname; - tablename = other591.tablename; - partitionname = other591.partitionname; - type = other591.type; - state = other591.state; - workerid = other591.workerid; - start = other591.start; - runAs = other591.runAs; - hightestTxnId = other591.hightestTxnId; - metaInfo = other591.metaInfo; - endTime = other591.endTime; - hadoopJobId = other591.hadoopJobId; - __isset = other591.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other592) { - dbname = other592.dbname; - tablename = other592.tablename; - partitionname = other592.partitionname; - type = other592.type; - state = other592.state; - workerid = other592.workerid; - start = other592.start; - runAs = other592.runAs; - hightestTxnId = other592.hightestTxnId; - metaInfo = other592.metaInfo; - endTime = other592.endTime; - hadoopJobId = other592.hadoopJobId; - __isset = other592.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other607) { + dbname = other607.dbname; + tablename = other607.tablename; + partitionname = other607.partitionname; + type = other607.type; + state = other607.state; + workerid = other607.workerid; + start = other607.start; + runAs = other607.runAs; + hightestTxnId = other607.hightestTxnId; + metaInfo = other607.metaInfo; + endTime = other607.endTime; + hadoopJobId = other607.hadoopJobId; + __isset = other607.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other608) { + dbname = other608.dbname; + tablename = other608.tablename; + partitionname = other608.partitionname; + type = other608.type; + state = other608.state; + workerid = other608.workerid; + start = other608.start; + runAs = other608.runAs; + hightestTxnId = other608.hightestTxnId; + metaInfo = other608.metaInfo; + endTime = other608.endTime; + hadoopJobId = other608.hadoopJobId; + __isset = other608.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -14699,14 +14911,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size593; - ::apache::thrift::protocol::TType _etype596; - xfer += iprot->readListBegin(_etype596, _size593); - this->compacts.resize(_size593); - uint32_t _i597; - for (_i597 = 0; _i597 < _size593; ++_i597) + uint32_t _size609; + ::apache::thrift::protocol::TType _etype612; + xfer += iprot->readListBegin(_etype612, _size609); + this->compacts.resize(_size609); + uint32_t _i613; + for (_i613 = 0; _i613 < _size609; ++_i613) { - xfer += this->compacts[_i597].read(iprot); + xfer += this->compacts[_i613].read(iprot); } xfer += iprot->readListEnd(); } @@ -14737,10 +14949,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 _iter598; - for (_iter598 = this->compacts.begin(); _iter598 != this->compacts.end(); ++_iter598) + std::vector ::const_iterator _iter614; + for (_iter614 = this->compacts.begin(); _iter614 != this->compacts.end(); ++_iter614) { - xfer += (*_iter598).write(oprot); + xfer += (*_iter614).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14756,11 +14968,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other599) { - compacts = other599.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other615) { + compacts = other615.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other600) { - compacts = other600.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other616) { + compacts = other616.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -14844,14 +15056,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size601; - ::apache::thrift::protocol::TType _etype604; - xfer += iprot->readListBegin(_etype604, _size601); - this->partitionnames.resize(_size601); - uint32_t _i605; - for (_i605 = 0; _i605 < _size601; ++_i605) + uint32_t _size617; + ::apache::thrift::protocol::TType _etype620; + xfer += iprot->readListBegin(_etype620, _size617); + this->partitionnames.resize(_size617); + uint32_t _i621; + for (_i621 = 0; _i621 < _size617; ++_i621) { - xfer += iprot->readString(this->partitionnames[_i605]); + xfer += iprot->readString(this->partitionnames[_i621]); } xfer += iprot->readListEnd(); } @@ -14900,10 +15112,10 @@ uint32_t AddDynamicPartitions::write(::apache::thrift::protocol::TProtocol* opro xfer += oprot->writeFieldBegin("partitionnames", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionnames.size())); - std::vector ::const_iterator _iter606; - for (_iter606 = this->partitionnames.begin(); _iter606 != this->partitionnames.end(); ++_iter606) + std::vector ::const_iterator _iter622; + for (_iter622 = this->partitionnames.begin(); _iter622 != this->partitionnames.end(); ++_iter622) { - xfer += oprot->writeString((*_iter606)); + xfer += oprot->writeString((*_iter622)); } xfer += oprot->writeListEnd(); } @@ -14922,17 +15134,17 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.partitionnames, b.partitionnames); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other607) { - txnid = other607.txnid; - dbname = other607.dbname; - tablename = other607.tablename; - partitionnames = other607.partitionnames; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other623) { + txnid = other623.txnid; + dbname = other623.dbname; + tablename = other623.tablename; + partitionnames = other623.partitionnames; } -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other608) { - txnid = other608.txnid; - dbname = other608.dbname; - tablename = other608.tablename; - partitionnames = other608.partitionnames; +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other624) { + txnid = other624.txnid; + dbname = other624.dbname; + tablename = other624.tablename; + partitionnames = other624.partitionnames; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -15037,15 +15249,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other609) { - lastEvent = other609.lastEvent; - maxEvents = other609.maxEvents; - __isset = other609.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other625) { + lastEvent = other625.lastEvent; + maxEvents = other625.maxEvents; + __isset = other625.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other610) { - lastEvent = other610.lastEvent; - maxEvents = other610.maxEvents; - __isset = other610.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other626) { + lastEvent = other626.lastEvent; + maxEvents = other626.maxEvents; + __isset = other626.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -15227,23 +15439,23 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other611) { - eventId = other611.eventId; - eventTime = other611.eventTime; - eventType = other611.eventType; - dbName = other611.dbName; - tableName = other611.tableName; - message = other611.message; - __isset = other611.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other612) { - eventId = other612.eventId; - eventTime = other612.eventTime; - eventType = other612.eventType; - dbName = other612.dbName; - tableName = other612.tableName; - message = other612.message; - __isset = other612.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other627) { + eventId = other627.eventId; + eventTime = other627.eventTime; + eventType = other627.eventType; + dbName = other627.dbName; + tableName = other627.tableName; + message = other627.message; + __isset = other627.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other628) { + eventId = other628.eventId; + eventTime = other628.eventTime; + eventType = other628.eventType; + dbName = other628.dbName; + tableName = other628.tableName; + message = other628.message; + __isset = other628.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -15293,14 +15505,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size613; - ::apache::thrift::protocol::TType _etype616; - xfer += iprot->readListBegin(_etype616, _size613); - this->events.resize(_size613); - uint32_t _i617; - for (_i617 = 0; _i617 < _size613; ++_i617) + uint32_t _size629; + ::apache::thrift::protocol::TType _etype632; + xfer += iprot->readListBegin(_etype632, _size629); + this->events.resize(_size629); + uint32_t _i633; + for (_i633 = 0; _i633 < _size629; ++_i633) { - xfer += this->events[_i617].read(iprot); + xfer += this->events[_i633].read(iprot); } xfer += iprot->readListEnd(); } @@ -15331,10 +15543,10 @@ uint32_t NotificationEventResponse::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("events", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->events.size())); - std::vector ::const_iterator _iter618; - for (_iter618 = this->events.begin(); _iter618 != this->events.end(); ++_iter618) + std::vector ::const_iterator _iter634; + for (_iter634 = this->events.begin(); _iter634 != this->events.end(); ++_iter634) { - xfer += (*_iter618).write(oprot); + xfer += (*_iter634).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15350,11 +15562,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other619) { - events = other619.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other635) { + events = other635.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other620) { - events = other620.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other636) { + events = other636.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -15436,11 +15648,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other621) { - eventId = other621.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other637) { + eventId = other637.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other622) { - eventId = other622.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other638) { + eventId = other638.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -15485,14 +15697,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size623; - ::apache::thrift::protocol::TType _etype626; - xfer += iprot->readListBegin(_etype626, _size623); - this->filesAdded.resize(_size623); - uint32_t _i627; - for (_i627 = 0; _i627 < _size623; ++_i627) + uint32_t _size639; + ::apache::thrift::protocol::TType _etype642; + xfer += iprot->readListBegin(_etype642, _size639); + this->filesAdded.resize(_size639); + uint32_t _i643; + for (_i643 = 0; _i643 < _size639; ++_i643) { - xfer += iprot->readString(this->filesAdded[_i627]); + xfer += iprot->readString(this->filesAdded[_i643]); } xfer += iprot->readListEnd(); } @@ -15523,10 +15735,10 @@ uint32_t InsertEventRequestData::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("filesAdded", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->filesAdded.size())); - std::vector ::const_iterator _iter628; - for (_iter628 = this->filesAdded.begin(); _iter628 != this->filesAdded.end(); ++_iter628) + std::vector ::const_iterator _iter644; + for (_iter644 = this->filesAdded.begin(); _iter644 != this->filesAdded.end(); ++_iter644) { - xfer += oprot->writeString((*_iter628)); + xfer += oprot->writeString((*_iter644)); } xfer += oprot->writeListEnd(); } @@ -15542,11 +15754,11 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.filesAdded, b.filesAdded); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other629) { - filesAdded = other629.filesAdded; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other645) { + filesAdded = other645.filesAdded; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other630) { - filesAdded = other630.filesAdded; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other646) { + filesAdded = other646.filesAdded; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -15626,13 +15838,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other631) { - insertData = other631.insertData; - __isset = other631.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other647) { + insertData = other647.insertData; + __isset = other647.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other632) { - insertData = other632.insertData; - __isset = other632.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other648) { + insertData = other648.insertData; + __isset = other648.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -15729,14 +15941,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size633; - ::apache::thrift::protocol::TType _etype636; - xfer += iprot->readListBegin(_etype636, _size633); - this->partitionVals.resize(_size633); - uint32_t _i637; - for (_i637 = 0; _i637 < _size633; ++_i637) + uint32_t _size649; + ::apache::thrift::protocol::TType _etype652; + xfer += iprot->readListBegin(_etype652, _size649); + this->partitionVals.resize(_size649); + uint32_t _i653; + for (_i653 = 0; _i653 < _size649; ++_i653) { - xfer += iprot->readString(this->partitionVals[_i637]); + xfer += iprot->readString(this->partitionVals[_i653]); } xfer += iprot->readListEnd(); } @@ -15788,10 +16000,10 @@ uint32_t FireEventRequest::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("partitionVals", ::apache::thrift::protocol::T_LIST, 5); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partitionVals.size())); - std::vector ::const_iterator _iter638; - for (_iter638 = this->partitionVals.begin(); _iter638 != this->partitionVals.end(); ++_iter638) + std::vector ::const_iterator _iter654; + for (_iter654 = this->partitionVals.begin(); _iter654 != this->partitionVals.end(); ++_iter654) { - xfer += oprot->writeString((*_iter638)); + xfer += oprot->writeString((*_iter654)); } xfer += oprot->writeListEnd(); } @@ -15812,21 +16024,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other639) { - successful = other639.successful; - data = other639.data; - dbName = other639.dbName; - tableName = other639.tableName; - partitionVals = other639.partitionVals; - __isset = other639.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other640) { - successful = other640.successful; - data = other640.data; - dbName = other640.dbName; - tableName = other640.tableName; - partitionVals = other640.partitionVals; - __isset = other640.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other655) { + successful = other655.successful; + data = other655.data; + dbName = other655.dbName; + tableName = other655.tableName; + partitionVals = other655.partitionVals; + __isset = other655.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other656) { + successful = other656.successful; + data = other656.data; + dbName = other656.dbName; + tableName = other656.tableName; + partitionVals = other656.partitionVals; + __isset = other656.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -15889,11 +16101,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other641) { - (void) other641; +FireEventResponse::FireEventResponse(const FireEventResponse& other657) { + (void) other657; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other642) { - (void) other642; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other658) { + (void) other658; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -15993,15 +16205,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other643) { - metadata = other643.metadata; - includeBitset = other643.includeBitset; - __isset = other643.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other659) { + metadata = other659.metadata; + includeBitset = other659.includeBitset; + __isset = other659.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other644) { - metadata = other644.metadata; - includeBitset = other644.includeBitset; - __isset = other644.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other660) { + metadata = other660.metadata; + includeBitset = other660.includeBitset; + __isset = other660.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -16052,17 +16264,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size645; - ::apache::thrift::protocol::TType _ktype646; - ::apache::thrift::protocol::TType _vtype647; - xfer += iprot->readMapBegin(_ktype646, _vtype647, _size645); - uint32_t _i649; - for (_i649 = 0; _i649 < _size645; ++_i649) + uint32_t _size661; + ::apache::thrift::protocol::TType _ktype662; + ::apache::thrift::protocol::TType _vtype663; + xfer += iprot->readMapBegin(_ktype662, _vtype663, _size661); + uint32_t _i665; + for (_i665 = 0; _i665 < _size661; ++_i665) { - int64_t _key650; - xfer += iprot->readI64(_key650); - MetadataPpdResult& _val651 = this->metadata[_key650]; - xfer += _val651.read(iprot); + int64_t _key666; + xfer += iprot->readI64(_key666); + MetadataPpdResult& _val667 = this->metadata[_key666]; + xfer += _val667.read(iprot); } xfer += iprot->readMapEnd(); } @@ -16103,11 +16315,11 @@ uint32_t GetFileMetadataByExprResult::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRUCT, static_cast(this->metadata.size())); - std::map ::const_iterator _iter652; - for (_iter652 = this->metadata.begin(); _iter652 != this->metadata.end(); ++_iter652) + std::map ::const_iterator _iter668; + for (_iter668 = this->metadata.begin(); _iter668 != this->metadata.end(); ++_iter668) { - xfer += oprot->writeI64(_iter652->first); - xfer += _iter652->second.write(oprot); + xfer += oprot->writeI64(_iter668->first); + xfer += _iter668->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -16128,13 +16340,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other653) { - metadata = other653.metadata; - isSupported = other653.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other669) { + metadata = other669.metadata; + isSupported = other669.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other654) { - metadata = other654.metadata; - isSupported = other654.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other670) { + metadata = other670.metadata; + isSupported = other670.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -16195,14 +16407,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size655; - ::apache::thrift::protocol::TType _etype658; - xfer += iprot->readListBegin(_etype658, _size655); - this->fileIds.resize(_size655); - uint32_t _i659; - for (_i659 = 0; _i659 < _size655; ++_i659) + uint32_t _size671; + ::apache::thrift::protocol::TType _etype674; + xfer += iprot->readListBegin(_etype674, _size671); + this->fileIds.resize(_size671); + uint32_t _i675; + for (_i675 = 0; _i675 < _size671; ++_i675) { - xfer += iprot->readI64(this->fileIds[_i659]); + xfer += iprot->readI64(this->fileIds[_i675]); } xfer += iprot->readListEnd(); } @@ -16229,9 +16441,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast660; - xfer += iprot->readI32(ecast660); - this->type = (FileMetadataExprType::type)ecast660; + int32_t ecast676; + xfer += iprot->readI32(ecast676); + this->type = (FileMetadataExprType::type)ecast676; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -16261,10 +16473,10 @@ uint32_t GetFileMetadataByExprRequest::write(::apache::thrift::protocol::TProtoc xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter661; - for (_iter661 = this->fileIds.begin(); _iter661 != this->fileIds.end(); ++_iter661) + std::vector ::const_iterator _iter677; + for (_iter677 = this->fileIds.begin(); _iter677 != this->fileIds.end(); ++_iter677) { - xfer += oprot->writeI64((*_iter661)); + xfer += oprot->writeI64((*_iter677)); } xfer += oprot->writeListEnd(); } @@ -16298,19 +16510,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other662) { - fileIds = other662.fileIds; - expr = other662.expr; - doGetFooters = other662.doGetFooters; - type = other662.type; - __isset = other662.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other678) { + fileIds = other678.fileIds; + expr = other678.expr; + doGetFooters = other678.doGetFooters; + type = other678.type; + __isset = other678.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other663) { - fileIds = other663.fileIds; - expr = other663.expr; - doGetFooters = other663.doGetFooters; - type = other663.type; - __isset = other663.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other679) { + fileIds = other679.fileIds; + expr = other679.expr; + doGetFooters = other679.doGetFooters; + type = other679.type; + __isset = other679.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -16363,17 +16575,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size664; - ::apache::thrift::protocol::TType _ktype665; - ::apache::thrift::protocol::TType _vtype666; - xfer += iprot->readMapBegin(_ktype665, _vtype666, _size664); - uint32_t _i668; - for (_i668 = 0; _i668 < _size664; ++_i668) + uint32_t _size680; + ::apache::thrift::protocol::TType _ktype681; + ::apache::thrift::protocol::TType _vtype682; + xfer += iprot->readMapBegin(_ktype681, _vtype682, _size680); + uint32_t _i684; + for (_i684 = 0; _i684 < _size680; ++_i684) { - int64_t _key669; - xfer += iprot->readI64(_key669); - std::string& _val670 = this->metadata[_key669]; - xfer += iprot->readBinary(_val670); + int64_t _key685; + xfer += iprot->readI64(_key685); + std::string& _val686 = this->metadata[_key685]; + xfer += iprot->readBinary(_val686); } xfer += iprot->readMapEnd(); } @@ -16414,11 +16626,11 @@ uint32_t GetFileMetadataResult::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_I64, ::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::map ::const_iterator _iter671; - for (_iter671 = this->metadata.begin(); _iter671 != this->metadata.end(); ++_iter671) + std::map ::const_iterator _iter687; + for (_iter687 = this->metadata.begin(); _iter687 != this->metadata.end(); ++_iter687) { - xfer += oprot->writeI64(_iter671->first); - xfer += oprot->writeBinary(_iter671->second); + xfer += oprot->writeI64(_iter687->first); + xfer += oprot->writeBinary(_iter687->second); } xfer += oprot->writeMapEnd(); } @@ -16439,13 +16651,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other672) { - metadata = other672.metadata; - isSupported = other672.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other688) { + metadata = other688.metadata; + isSupported = other688.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other673) { - metadata = other673.metadata; - isSupported = other673.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other689) { + metadata = other689.metadata; + isSupported = other689.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -16491,14 +16703,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size674; - ::apache::thrift::protocol::TType _etype677; - xfer += iprot->readListBegin(_etype677, _size674); - this->fileIds.resize(_size674); - uint32_t _i678; - for (_i678 = 0; _i678 < _size674; ++_i678) + uint32_t _size690; + ::apache::thrift::protocol::TType _etype693; + xfer += iprot->readListBegin(_etype693, _size690); + this->fileIds.resize(_size690); + uint32_t _i694; + for (_i694 = 0; _i694 < _size690; ++_i694) { - xfer += iprot->readI64(this->fileIds[_i678]); + xfer += iprot->readI64(this->fileIds[_i694]); } xfer += iprot->readListEnd(); } @@ -16529,10 +16741,10 @@ uint32_t GetFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter679; - for (_iter679 = this->fileIds.begin(); _iter679 != this->fileIds.end(); ++_iter679) + std::vector ::const_iterator _iter695; + for (_iter695 = this->fileIds.begin(); _iter695 != this->fileIds.end(); ++_iter695) { - xfer += oprot->writeI64((*_iter679)); + xfer += oprot->writeI64((*_iter695)); } xfer += oprot->writeListEnd(); } @@ -16548,11 +16760,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other680) { - fileIds = other680.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other696) { + fileIds = other696.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other681) { - fileIds = other681.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other697) { + fileIds = other697.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -16611,11 +16823,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other682) { - (void) other682; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other698) { + (void) other698; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other683) { - (void) other683; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other699) { + (void) other699; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -16669,14 +16881,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size684; - ::apache::thrift::protocol::TType _etype687; - xfer += iprot->readListBegin(_etype687, _size684); - this->fileIds.resize(_size684); - uint32_t _i688; - for (_i688 = 0; _i688 < _size684; ++_i688) + uint32_t _size700; + ::apache::thrift::protocol::TType _etype703; + xfer += iprot->readListBegin(_etype703, _size700); + this->fileIds.resize(_size700); + uint32_t _i704; + for (_i704 = 0; _i704 < _size700; ++_i704) { - xfer += iprot->readI64(this->fileIds[_i688]); + xfer += iprot->readI64(this->fileIds[_i704]); } xfer += iprot->readListEnd(); } @@ -16689,14 +16901,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size689; - ::apache::thrift::protocol::TType _etype692; - xfer += iprot->readListBegin(_etype692, _size689); - this->metadata.resize(_size689); - uint32_t _i693; - for (_i693 = 0; _i693 < _size689; ++_i693) + uint32_t _size705; + ::apache::thrift::protocol::TType _etype708; + xfer += iprot->readListBegin(_etype708, _size705); + this->metadata.resize(_size705); + uint32_t _i709; + for (_i709 = 0; _i709 < _size705; ++_i709) { - xfer += iprot->readBinary(this->metadata[_i693]); + xfer += iprot->readBinary(this->metadata[_i709]); } xfer += iprot->readListEnd(); } @@ -16707,9 +16919,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast694; - xfer += iprot->readI32(ecast694); - this->type = (FileMetadataExprType::type)ecast694; + int32_t ecast710; + xfer += iprot->readI32(ecast710); + this->type = (FileMetadataExprType::type)ecast710; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -16739,10 +16951,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter695; - for (_iter695 = this->fileIds.begin(); _iter695 != this->fileIds.end(); ++_iter695) + std::vector ::const_iterator _iter711; + for (_iter711 = this->fileIds.begin(); _iter711 != this->fileIds.end(); ++_iter711) { - xfer += oprot->writeI64((*_iter695)); + xfer += oprot->writeI64((*_iter711)); } xfer += oprot->writeListEnd(); } @@ -16751,10 +16963,10 @@ uint32_t PutFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* op xfer += oprot->writeFieldBegin("metadata", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->metadata.size())); - std::vector ::const_iterator _iter696; - for (_iter696 = this->metadata.begin(); _iter696 != this->metadata.end(); ++_iter696) + std::vector ::const_iterator _iter712; + for (_iter712 = this->metadata.begin(); _iter712 != this->metadata.end(); ++_iter712) { - xfer += oprot->writeBinary((*_iter696)); + xfer += oprot->writeBinary((*_iter712)); } xfer += oprot->writeListEnd(); } @@ -16778,17 +16990,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other697) { - fileIds = other697.fileIds; - metadata = other697.metadata; - type = other697.type; - __isset = other697.__isset; -} -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other698) { - fileIds = other698.fileIds; - metadata = other698.metadata; - type = other698.type; - __isset = other698.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other713) { + fileIds = other713.fileIds; + metadata = other713.metadata; + type = other713.type; + __isset = other713.__isset; +} +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other714) { + fileIds = other714.fileIds; + metadata = other714.metadata; + type = other714.type; + __isset = other714.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -16849,11 +17061,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other699) { - (void) other699; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other715) { + (void) other715; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other700) { - (void) other700; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other716) { + (void) other716; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -16897,14 +17109,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size701; - ::apache::thrift::protocol::TType _etype704; - xfer += iprot->readListBegin(_etype704, _size701); - this->fileIds.resize(_size701); - uint32_t _i705; - for (_i705 = 0; _i705 < _size701; ++_i705) + uint32_t _size717; + ::apache::thrift::protocol::TType _etype720; + xfer += iprot->readListBegin(_etype720, _size717); + this->fileIds.resize(_size717); + uint32_t _i721; + for (_i721 = 0; _i721 < _size717; ++_i721) { - xfer += iprot->readI64(this->fileIds[_i705]); + xfer += iprot->readI64(this->fileIds[_i721]); } xfer += iprot->readListEnd(); } @@ -16935,10 +17147,10 @@ uint32_t ClearFileMetadataRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("fileIds", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_I64, static_cast(this->fileIds.size())); - std::vector ::const_iterator _iter706; - for (_iter706 = this->fileIds.begin(); _iter706 != this->fileIds.end(); ++_iter706) + std::vector ::const_iterator _iter722; + for (_iter722 = this->fileIds.begin(); _iter722 != this->fileIds.end(); ++_iter722) { - xfer += oprot->writeI64((*_iter706)); + xfer += oprot->writeI64((*_iter722)); } xfer += oprot->writeListEnd(); } @@ -16954,11 +17166,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other707) { - fileIds = other707.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other723) { + fileIds = other723.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other708) { - fileIds = other708.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other724) { + fileIds = other724.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -17040,11 +17252,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other709) { - isSupported = other709.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other725) { + isSupported = other725.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other710) { - isSupported = other710.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other726) { + isSupported = other726.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -17185,19 +17397,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other711) { - dbName = other711.dbName; - tblName = other711.tblName; - partName = other711.partName; - isAllParts = other711.isAllParts; - __isset = other711.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other727) { + dbName = other727.dbName; + tblName = other727.tblName; + partName = other727.partName; + isAllParts = other727.isAllParts; + __isset = other727.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other712) { - dbName = other712.dbName; - tblName = other712.tblName; - partName = other712.partName; - isAllParts = other712.isAllParts; - __isset = other712.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other728) { + dbName = other728.dbName; + tblName = other728.tblName; + partName = other728.partName; + isAllParts = other728.isAllParts; + __isset = other728.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -17245,14 +17457,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size713; - ::apache::thrift::protocol::TType _etype716; - xfer += iprot->readListBegin(_etype716, _size713); - this->functions.resize(_size713); - uint32_t _i717; - for (_i717 = 0; _i717 < _size713; ++_i717) + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + this->functions.resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) { - xfer += this->functions[_i717].read(iprot); + xfer += this->functions[_i733].read(iprot); } xfer += iprot->readListEnd(); } @@ -17282,10 +17494,10 @@ uint32_t GetAllFunctionsResponse::write(::apache::thrift::protocol::TProtocol* o xfer += oprot->writeFieldBegin("functions", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->functions.size())); - std::vector ::const_iterator _iter718; - for (_iter718 = this->functions.begin(); _iter718 != this->functions.end(); ++_iter718) + std::vector ::const_iterator _iter734; + for (_iter734 = this->functions.begin(); _iter734 != this->functions.end(); ++_iter734) { - xfer += (*_iter718).write(oprot); + xfer += (*_iter734).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17302,13 +17514,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other719) { - functions = other719.functions; - __isset = other719.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other735) { + functions = other735.functions; + __isset = other735.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other720) { - functions = other720.functions; - __isset = other720.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other736) { + functions = other736.functions; + __isset = other736.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -17450,19 +17662,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other721) { - dbName = other721.dbName; - tableName = other721.tableName; - tableType = other721.tableType; - comments = other721.comments; - __isset = other721.__isset; +TableMeta::TableMeta(const TableMeta& other737) { + dbName = other737.dbName; + tableName = other737.tableName; + tableType = other737.tableType; + comments = other737.comments; + __isset = other737.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other722) { - dbName = other722.dbName; - tableName = other722.tableName; - tableType = other722.tableType; - comments = other722.comments; - __isset = other722.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other738) { + dbName = other738.dbName; + tableName = other738.tableName; + tableType = other738.tableType; + comments = other738.comments; + __isset = other738.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -17545,13 +17757,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other723) : TException() { - message = other723.message; - __isset = other723.__isset; +MetaException::MetaException(const MetaException& other739) : TException() { + message = other739.message; + __isset = other739.__isset; } -MetaException& MetaException::operator=(const MetaException& other724) { - message = other724.message; - __isset = other724.__isset; +MetaException& MetaException::operator=(const MetaException& other740) { + message = other740.message; + __isset = other740.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -17642,13 +17854,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other725) : TException() { - message = other725.message; - __isset = other725.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other741) : TException() { + message = other741.message; + __isset = other741.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other726) { - message = other726.message; - __isset = other726.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other742) { + message = other742.message; + __isset = other742.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -17739,13 +17951,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other727) : TException() { - message = other727.message; - __isset = other727.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other743) : TException() { + message = other743.message; + __isset = other743.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other728) { - message = other728.message; - __isset = other728.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other744) { + message = other744.message; + __isset = other744.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -17836,13 +18048,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other729) : TException() { - message = other729.message; - __isset = other729.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other745) : TException() { + message = other745.message; + __isset = other745.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other730) { - message = other730.message; - __isset = other730.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other746) { + message = other746.message; + __isset = other746.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -17933,13 +18145,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other731) : TException() { - message = other731.message; - __isset = other731.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other747) : TException() { + message = other747.message; + __isset = other747.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other732) { - message = other732.message; - __isset = other732.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other748) { + message = other748.message; + __isset = other748.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -18030,13 +18242,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other733) : TException() { - message = other733.message; - __isset = other733.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other749) : TException() { + message = other749.message; + __isset = other749.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other734) { - message = other734.message; - __isset = other734.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other750) { + message = other750.message; + __isset = other750.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -18127,13 +18339,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other735) : TException() { - message = other735.message; - __isset = other735.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other751) : TException() { + message = other751.message; + __isset = other751.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other736) { - message = other736.message; - __isset = other736.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other752) { + message = other752.message; + __isset = other752.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -18224,13 +18436,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other737) : TException() { - message = other737.message; - __isset = other737.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other753) : TException() { + message = other753.message; + __isset = other753.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other738) { - message = other738.message; - __isset = other738.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other754) { + message = other754.message; + __isset = other754.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -18321,13 +18533,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other739) : TException() { - message = other739.message; - __isset = other739.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other755) : TException() { + message = other755.message; + __isset = other755.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other740) { - message = other740.message; - __isset = other740.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other756) { + message = other756.message; + __isset = other756.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -18418,13 +18630,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other741) : TException() { - message = other741.message; - __isset = other741.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other757) : TException() { + message = other757.message; + __isset = other757.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other742) { - message = other742.message; - __isset = other742.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other758) { + message = other758.message; + __isset = other758.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -18515,13 +18727,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other743) : TException() { - message = other743.message; - __isset = other743.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other759) : TException() { + message = other759.message; + __isset = other759.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other744) { - message = other744.message; - __isset = other744.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other760) { + message = other760.message; + __isset = other760.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -18612,13 +18824,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other745) : TException() { - message = other745.message; - __isset = other745.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other761) : TException() { + message = other761.message; + __isset = other761.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other746) { - message = other746.message; - __isset = other746.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other762) { + message = other762.message; + __isset = other762.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -18709,13 +18921,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other747) : TException() { - message = other747.message; - __isset = other747.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other763) : TException() { + message = other763.message; + __isset = other763.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other748) { - message = other748.message; - __isset = other748.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other764) { + message = other764.message; + __isset = other764.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -18806,13 +19018,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other749) : TException() { - message = other749.message; - __isset = other749.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other765) : TException() { + message = other765.message; + __isset = other765.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other750) { - message = other750.message; - __isset = other750.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other766) { + message = other766.message; + __isset = other766.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -18903,13 +19115,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other751) : TException() { - message = other751.message; - __isset = other751.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other767) : TException() { + message = other767.message; + __isset = other767.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other752) { - message = other752.message; - __isset = other752.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other768) { + message = other768.message; + __isset = other768.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -19000,13 +19212,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other753) : TException() { - message = other753.message; - __isset = other753.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other769) : TException() { + message = other769.message; + __isset = other769.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other754) { - message = other754.message; - __isset = other754.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other770) { + message = other770.message; + __isset = other770.__isset; return *this; } void NoSuchLockException::printTo(std::ostream& out) const { diff --git a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h index 7afa2be..b5c4f14 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -253,6 +253,10 @@ class ForeignKeysResponse; class DropConstraintRequest; +class AddPrimaryKeyRequest; + +class AddForeignKeyRequest; + class PartitionsByExprResult; class PartitionsByExprRequest; @@ -3838,6 +3842,86 @@ inline std::ostream& operator<<(std::ostream& out, const DropConstraintRequest& } +class AddPrimaryKeyRequest { + public: + + AddPrimaryKeyRequest(const AddPrimaryKeyRequest&); + AddPrimaryKeyRequest& operator=(const AddPrimaryKeyRequest&); + AddPrimaryKeyRequest() { + } + + virtual ~AddPrimaryKeyRequest() throw(); + std::vector primaryKeyCols; + + void __set_primaryKeyCols(const std::vector & val); + + bool operator == (const AddPrimaryKeyRequest & rhs) const + { + if (!(primaryKeyCols == rhs.primaryKeyCols)) + return false; + return true; + } + bool operator != (const AddPrimaryKeyRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddPrimaryKeyRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(AddPrimaryKeyRequest &a, AddPrimaryKeyRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddPrimaryKeyRequest& obj) +{ + obj.printTo(out); + return out; +} + + +class AddForeignKeyRequest { + public: + + AddForeignKeyRequest(const AddForeignKeyRequest&); + AddForeignKeyRequest& operator=(const AddForeignKeyRequest&); + AddForeignKeyRequest() { + } + + virtual ~AddForeignKeyRequest() throw(); + std::vector foreignKeyCols; + + void __set_foreignKeyCols(const std::vector & val); + + bool operator == (const AddForeignKeyRequest & rhs) const + { + if (!(foreignKeyCols == rhs.foreignKeyCols)) + return false; + return true; + } + bool operator != (const AddForeignKeyRequest &rhs) const { + return !(*this == rhs); + } + + bool operator < (const AddForeignKeyRequest & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + + virtual void printTo(std::ostream& out) const; +}; + +void swap(AddForeignKeyRequest &a, AddForeignKeyRequest &b); + +inline std::ostream& operator<<(std::ostream& out, const AddForeignKeyRequest& obj) +{ + obj.printTo(out); + return out; +} + + class PartitionsByExprResult { public: diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java index c434737..d89eb97 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AbortTxnsRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AbortTxnsRequest st case 1: // TXN_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list468 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list468.size); - long _elem469; - for (int _i470 = 0; _i470 < _list468.size; ++_i470) + org.apache.thrift.protocol.TList _list484 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list484.size); + long _elem485; + for (int _i486 = 0; _i486 < _list484.size; ++_i486) { - _elem469 = iprot.readI64(); - struct.txn_ids.add(_elem469); + _elem485 = iprot.readI64(); + struct.txn_ids.add(_elem485); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AbortTxnsRequest 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 _iter471 : struct.txn_ids) + for (long _iter487 : struct.txn_ids) { - oprot.writeI64(_iter471); + oprot.writeI64(_iter487); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter472 : struct.txn_ids) + for (long _iter488 : struct.txn_ids) { - oprot.writeI64(_iter472); + oprot.writeI64(_iter488); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest st public void read(org.apache.thrift.protocol.TProtocol prot, AbortTxnsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list473 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list473.size); - long _elem474; - for (int _i475 = 0; _i475 < _list473.size; ++_i475) + org.apache.thrift.protocol.TList _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list489.size); + long _elem490; + for (int _i491 = 0; _i491 < _list489.size; ++_i491) { - _elem474 = iprot.readI64(); - struct.txn_ids.add(_elem474); + _elem490 = iprot.readI64(); + struct.txn_ids.add(_elem490); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java index 116e04f..544eff1 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddDynamicPartitions.java @@ -630,13 +630,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, AddDynamicPartition case 4: // PARTITIONNAMES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list516 = iprot.readListBegin(); - struct.partitionnames = new ArrayList(_list516.size); - String _elem517; - for (int _i518 = 0; _i518 < _list516.size; ++_i518) + org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); + struct.partitionnames = new ArrayList(_list532.size); + String _elem533; + for (int _i534 = 0; _i534 < _list532.size; ++_i534) { - _elem517 = iprot.readString(); - struct.partitionnames.add(_elem517); + _elem533 = iprot.readString(); + struct.partitionnames.add(_elem533); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, AddDynamicPartitio oprot.writeFieldBegin(PARTITIONNAMES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionnames.size())); - for (String _iter519 : struct.partitionnames) + for (String _iter535 : struct.partitionnames) { - oprot.writeString(_iter519); + oprot.writeString(_iter535); } oprot.writeListEnd(); } @@ -705,9 +705,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartition oprot.writeString(struct.tablename); { oprot.writeI32(struct.partitionnames.size()); - for (String _iter520 : struct.partitionnames) + for (String _iter536 : struct.partitionnames) { - oprot.writeString(_iter520); + oprot.writeString(_iter536); } } } @@ -722,13 +722,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddDynamicPartitions struct.tablename = iprot.readString(); struct.setTablenameIsSet(true); { - org.apache.thrift.protocol.TList _list521 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partitionnames = new ArrayList(_list521.size); - String _elem522; - for (int _i523 = 0; _i523 < _list521.size; ++_i523) + org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionnames = new ArrayList(_list537.size); + String _elem538; + for (int _i539 = 0; _i539 < _list537.size; ++_i539) { - _elem522 = iprot.readString(); - struct.partitionnames.add(_elem522); + _elem538 = iprot.readString(); + struct.partitionnames.add(_elem538); } } struct.setPartitionnamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java new file mode 100644 index 0000000..43f7ca7 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddForeignKeyRequest.java @@ -0,0 +1,443 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * 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.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 org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +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 javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class AddForeignKeyRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddForeignKeyRequest"); + + private static final org.apache.thrift.protocol.TField FOREIGN_KEY_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("foreignKeyCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddForeignKeyRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddForeignKeyRequestTupleSchemeFactory()); + } + + private List foreignKeyCols; // 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 { + FOREIGN_KEY_COLS((short)1, "foreignKeyCols"); + + 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: // FOREIGN_KEY_COLS + return FOREIGN_KEY_COLS; + 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.FOREIGN_KEY_COLS, new org.apache.thrift.meta_data.FieldMetaData("foreignKeyCols", 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, SQLForeignKey.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddForeignKeyRequest.class, metaDataMap); + } + + public AddForeignKeyRequest() { + } + + public AddForeignKeyRequest( + List foreignKeyCols) + { + this(); + this.foreignKeyCols = foreignKeyCols; + } + + /** + * Performs a deep copy on other. + */ + public AddForeignKeyRequest(AddForeignKeyRequest other) { + if (other.isSetForeignKeyCols()) { + List __this__foreignKeyCols = new ArrayList(other.foreignKeyCols.size()); + for (SQLForeignKey other_element : other.foreignKeyCols) { + __this__foreignKeyCols.add(new SQLForeignKey(other_element)); + } + this.foreignKeyCols = __this__foreignKeyCols; + } + } + + public AddForeignKeyRequest deepCopy() { + return new AddForeignKeyRequest(this); + } + + @Override + public void clear() { + this.foreignKeyCols = null; + } + + public int getForeignKeyColsSize() { + return (this.foreignKeyCols == null) ? 0 : this.foreignKeyCols.size(); + } + + public java.util.Iterator getForeignKeyColsIterator() { + return (this.foreignKeyCols == null) ? null : this.foreignKeyCols.iterator(); + } + + public void addToForeignKeyCols(SQLForeignKey elem) { + if (this.foreignKeyCols == null) { + this.foreignKeyCols = new ArrayList(); + } + this.foreignKeyCols.add(elem); + } + + public List getForeignKeyCols() { + return this.foreignKeyCols; + } + + public void setForeignKeyCols(List foreignKeyCols) { + this.foreignKeyCols = foreignKeyCols; + } + + public void unsetForeignKeyCols() { + this.foreignKeyCols = null; + } + + /** Returns true if field foreignKeyCols is set (has been assigned a value) and false otherwise */ + public boolean isSetForeignKeyCols() { + return this.foreignKeyCols != null; + } + + public void setForeignKeyColsIsSet(boolean value) { + if (!value) { + this.foreignKeyCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case FOREIGN_KEY_COLS: + if (value == null) { + unsetForeignKeyCols(); + } else { + setForeignKeyCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case FOREIGN_KEY_COLS: + return getForeignKeyCols(); + + } + 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 FOREIGN_KEY_COLS: + return isSetForeignKeyCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddForeignKeyRequest) + return this.equals((AddForeignKeyRequest)that); + return false; + } + + public boolean equals(AddForeignKeyRequest that) { + if (that == null) + return false; + + boolean this_present_foreignKeyCols = true && this.isSetForeignKeyCols(); + boolean that_present_foreignKeyCols = true && that.isSetForeignKeyCols(); + if (this_present_foreignKeyCols || that_present_foreignKeyCols) { + if (!(this_present_foreignKeyCols && that_present_foreignKeyCols)) + return false; + if (!this.foreignKeyCols.equals(that.foreignKeyCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_foreignKeyCols = true && (isSetForeignKeyCols()); + list.add(present_foreignKeyCols); + if (present_foreignKeyCols) + list.add(foreignKeyCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddForeignKeyRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetForeignKeyCols()).compareTo(other.isSetForeignKeyCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetForeignKeyCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreignKeyCols, other.foreignKeyCols); + 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("AddForeignKeyRequest("); + boolean first = true; + + sb.append("foreignKeyCols:"); + if (this.foreignKeyCols == null) { + sb.append("null"); + } else { + sb.append(this.foreignKeyCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetForeignKeyCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'foreignKeyCols' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class AddForeignKeyRequestStandardSchemeFactory implements SchemeFactory { + public AddForeignKeyRequestStandardScheme getScheme() { + return new AddForeignKeyRequestStandardScheme(); + } + } + + private static class AddForeignKeyRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddForeignKeyRequest 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: // FOREIGN_KEY_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list346 = iprot.readListBegin(); + struct.foreignKeyCols = new ArrayList(_list346.size); + SQLForeignKey _elem347; + for (int _i348 = 0; _i348 < _list346.size; ++_i348) + { + _elem347 = new SQLForeignKey(); + _elem347.read(iprot); + struct.foreignKeyCols.add(_elem347); + } + iprot.readListEnd(); + } + struct.setForeignKeyColsIsSet(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, AddForeignKeyRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.foreignKeyCols != null) { + oprot.writeFieldBegin(FOREIGN_KEY_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeyCols.size())); + for (SQLForeignKey _iter349 : struct.foreignKeyCols) + { + _iter349.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddForeignKeyRequestTupleSchemeFactory implements SchemeFactory { + public AddForeignKeyRequestTupleScheme getScheme() { + return new AddForeignKeyRequestTupleScheme(); + } + } + + private static class AddForeignKeyRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.foreignKeyCols.size()); + for (SQLForeignKey _iter350 : struct.foreignKeyCols) + { + _iter350.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddForeignKeyRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeyCols = new ArrayList(_list351.size); + SQLForeignKey _elem352; + for (int _i353 = 0; _i353 < _list351.size; ++_i353) + { + _elem352 = new SQLForeignKey(); + _elem352.read(iprot); + struct.foreignKeyCols.add(_elem352); + } + } + struct.setForeignKeyColsIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java index 6df6fa5..da23f72 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsRequest.java @@ -704,14 +704,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 _list404 = iprot.readListBegin(); - struct.parts = new ArrayList(_list404.size); - Partition _elem405; - for (int _i406 = 0; _i406 < _list404.size; ++_i406) + org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); + struct.parts = new ArrayList(_list420.size); + Partition _elem421; + for (int _i422 = 0; _i422 < _list420.size; ++_i422) { - _elem405 = new Partition(); - _elem405.read(iprot); - struct.parts.add(_elem405); + _elem421 = new Partition(); + _elem421.read(iprot); + struct.parts.add(_elem421); } iprot.readListEnd(); } @@ -763,9 +763,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 _iter407 : struct.parts) + for (Partition _iter423 : struct.parts) { - _iter407.write(oprot); + _iter423.write(oprot); } oprot.writeListEnd(); } @@ -800,9 +800,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsReques oprot.writeString(struct.tblName); { oprot.writeI32(struct.parts.size()); - for (Partition _iter408 : struct.parts) + for (Partition _iter424 : struct.parts) { - _iter408.write(oprot); + _iter424.write(oprot); } } oprot.writeBool(struct.ifNotExists); @@ -824,14 +824,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, AddPartitionsRequest struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.parts = new ArrayList(_list409.size); - Partition _elem410; - for (int _i411 = 0; _i411 < _list409.size; ++_i411) + org.apache.thrift.protocol.TList _list425 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.parts = new ArrayList(_list425.size); + Partition _elem426; + for (int _i427 = 0; _i427 < _list425.size; ++_i427) { - _elem410 = new Partition(); - _elem410.read(iprot); - struct.parts.add(_elem410); + _elem426 = new Partition(); + _elem426.read(iprot); + struct.parts.add(_elem426); } } struct.setPartsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java index 521ed38..bfd483e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPartitionsResult.java @@ -346,14 +346,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 _list396 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list396.size); - Partition _elem397; - for (int _i398 = 0; _i398 < _list396.size; ++_i398) + org.apache.thrift.protocol.TList _list412 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list412.size); + Partition _elem413; + for (int _i414 = 0; _i414 < _list412.size; ++_i414) { - _elem397 = new Partition(); - _elem397.read(iprot); - struct.partitions.add(_elem397); + _elem413 = new Partition(); + _elem413.read(iprot); + struct.partitions.add(_elem413); } iprot.readListEnd(); } @@ -380,9 +380,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 _iter399 : struct.partitions) + for (Partition _iter415 : struct.partitions) { - _iter399.write(oprot); + _iter415.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, AddPartitionsResult if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter400 : struct.partitions) + for (Partition _iter416 : struct.partitions) { - _iter400.write(oprot); + _iter416.write(oprot); } } } @@ -428,14 +428,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 _list401 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list401.size); - Partition _elem402; - for (int _i403 = 0; _i403 < _list401.size; ++_i403) + org.apache.thrift.protocol.TList _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list417.size); + Partition _elem418; + for (int _i419 = 0; _i419 < _list417.size; ++_i419) { - _elem402 = new Partition(); - _elem402.read(iprot); - struct.partitions.add(_elem402); + _elem418 = new Partition(); + _elem418.read(iprot); + struct.partitions.add(_elem418); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java new file mode 100644 index 0000000..987b031 --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/AddPrimaryKeyRequest.java @@ -0,0 +1,443 @@ +/** + * Autogenerated by Thrift Compiler (0.9.3) + * + * 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.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 org.apache.thrift.async.AsyncMethodCallback; +import org.apache.thrift.server.AbstractNonblockingServer.*; +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 javax.annotation.Generated; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +@SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"}) +@Generated(value = "Autogenerated by Thrift Compiler (0.9.3)") +public class AddPrimaryKeyRequest implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("AddPrimaryKeyRequest"); + + private static final org.apache.thrift.protocol.TField PRIMARY_KEY_COLS_FIELD_DESC = new org.apache.thrift.protocol.TField("primaryKeyCols", org.apache.thrift.protocol.TType.LIST, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new AddPrimaryKeyRequestStandardSchemeFactory()); + schemes.put(TupleScheme.class, new AddPrimaryKeyRequestTupleSchemeFactory()); + } + + private List primaryKeyCols; // 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 { + PRIMARY_KEY_COLS((short)1, "primaryKeyCols"); + + 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: // PRIMARY_KEY_COLS + return PRIMARY_KEY_COLS; + 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.PRIMARY_KEY_COLS, new org.apache.thrift.meta_data.FieldMetaData("primaryKeyCols", 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, SQLPrimaryKey.class)))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(AddPrimaryKeyRequest.class, metaDataMap); + } + + public AddPrimaryKeyRequest() { + } + + public AddPrimaryKeyRequest( + List primaryKeyCols) + { + this(); + this.primaryKeyCols = primaryKeyCols; + } + + /** + * Performs a deep copy on other. + */ + public AddPrimaryKeyRequest(AddPrimaryKeyRequest other) { + if (other.isSetPrimaryKeyCols()) { + List __this__primaryKeyCols = new ArrayList(other.primaryKeyCols.size()); + for (SQLPrimaryKey other_element : other.primaryKeyCols) { + __this__primaryKeyCols.add(new SQLPrimaryKey(other_element)); + } + this.primaryKeyCols = __this__primaryKeyCols; + } + } + + public AddPrimaryKeyRequest deepCopy() { + return new AddPrimaryKeyRequest(this); + } + + @Override + public void clear() { + this.primaryKeyCols = null; + } + + public int getPrimaryKeyColsSize() { + return (this.primaryKeyCols == null) ? 0 : this.primaryKeyCols.size(); + } + + public java.util.Iterator getPrimaryKeyColsIterator() { + return (this.primaryKeyCols == null) ? null : this.primaryKeyCols.iterator(); + } + + public void addToPrimaryKeyCols(SQLPrimaryKey elem) { + if (this.primaryKeyCols == null) { + this.primaryKeyCols = new ArrayList(); + } + this.primaryKeyCols.add(elem); + } + + public List getPrimaryKeyCols() { + return this.primaryKeyCols; + } + + public void setPrimaryKeyCols(List primaryKeyCols) { + this.primaryKeyCols = primaryKeyCols; + } + + public void unsetPrimaryKeyCols() { + this.primaryKeyCols = null; + } + + /** Returns true if field primaryKeyCols is set (has been assigned a value) and false otherwise */ + public boolean isSetPrimaryKeyCols() { + return this.primaryKeyCols != null; + } + + public void setPrimaryKeyColsIsSet(boolean value) { + if (!value) { + this.primaryKeyCols = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PRIMARY_KEY_COLS: + if (value == null) { + unsetPrimaryKeyCols(); + } else { + setPrimaryKeyCols((List)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PRIMARY_KEY_COLS: + return getPrimaryKeyCols(); + + } + 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 PRIMARY_KEY_COLS: + return isSetPrimaryKeyCols(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof AddPrimaryKeyRequest) + return this.equals((AddPrimaryKeyRequest)that); + return false; + } + + public boolean equals(AddPrimaryKeyRequest that) { + if (that == null) + return false; + + boolean this_present_primaryKeyCols = true && this.isSetPrimaryKeyCols(); + boolean that_present_primaryKeyCols = true && that.isSetPrimaryKeyCols(); + if (this_present_primaryKeyCols || that_present_primaryKeyCols) { + if (!(this_present_primaryKeyCols && that_present_primaryKeyCols)) + return false; + if (!this.primaryKeyCols.equals(that.primaryKeyCols)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_primaryKeyCols = true && (isSetPrimaryKeyCols()); + list.add(present_primaryKeyCols); + if (present_primaryKeyCols) + list.add(primaryKeyCols); + + return list.hashCode(); + } + + @Override + public int compareTo(AddPrimaryKeyRequest other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPrimaryKeyCols()).compareTo(other.isSetPrimaryKeyCols()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPrimaryKeyCols()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.primaryKeyCols, other.primaryKeyCols); + 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("AddPrimaryKeyRequest("); + boolean first = true; + + sb.append("primaryKeyCols:"); + if (this.primaryKeyCols == null) { + sb.append("null"); + } else { + sb.append(this.primaryKeyCols); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + if (!isSetPrimaryKeyCols()) { + throw new org.apache.thrift.protocol.TProtocolException("Required field 'primaryKeyCols' is unset! Struct:" + toString()); + } + + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class AddPrimaryKeyRequestStandardSchemeFactory implements SchemeFactory { + public AddPrimaryKeyRequestStandardScheme getScheme() { + return new AddPrimaryKeyRequestStandardScheme(); + } + } + + private static class AddPrimaryKeyRequestStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, AddPrimaryKeyRequest 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: // PRIMARY_KEY_COLS + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list338 = iprot.readListBegin(); + struct.primaryKeyCols = new ArrayList(_list338.size); + SQLPrimaryKey _elem339; + for (int _i340 = 0; _i340 < _list338.size; ++_i340) + { + _elem339 = new SQLPrimaryKey(); + _elem339.read(iprot); + struct.primaryKeyCols.add(_elem339); + } + iprot.readListEnd(); + } + struct.setPrimaryKeyColsIsSet(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, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.primaryKeyCols != null) { + oprot.writeFieldBegin(PRIMARY_KEY_COLS_FIELD_DESC); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeyCols.size())); + for (SQLPrimaryKey _iter341 : struct.primaryKeyCols) + { + _iter341.write(oprot); + } + oprot.writeListEnd(); + } + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class AddPrimaryKeyRequestTupleSchemeFactory implements SchemeFactory { + public AddPrimaryKeyRequestTupleScheme getScheme() { + return new AddPrimaryKeyRequestTupleScheme(); + } + } + + private static class AddPrimaryKeyRequestTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + { + oprot.writeI32(struct.primaryKeyCols.size()); + for (SQLPrimaryKey _iter342 : struct.primaryKeyCols) + { + _iter342.write(oprot); + } + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, AddPrimaryKeyRequest struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + { + org.apache.thrift.protocol.TList _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeyCols = new ArrayList(_list343.size); + SQLPrimaryKey _elem344; + for (int _i345 = 0; _i345 < _list343.size; ++_i345) + { + _elem344 = new SQLPrimaryKey(); + _elem344.read(iprot); + struct.primaryKeyCols.add(_elem344); + } + } + struct.setPrimaryKeyColsIsSet(true); + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java index a60ab7e..f71a3ca 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ClearFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, ClearFileMetadataRe case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list600 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list600.size); - long _elem601; - for (int _i602 = 0; _i602 < _list600.size; ++_i602) + org.apache.thrift.protocol.TList _list616 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list616.size); + long _elem617; + for (int _i618 = 0; _i618 < _list616.size; ++_i618) { - _elem601 = iprot.readI64(); - struct.fileIds.add(_elem601); + _elem617 = iprot.readI64(); + struct.fileIds.add(_elem617); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, ClearFileMetadataR oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter603 : struct.fileIds) + for (long _iter619 : struct.fileIds) { - oprot.writeI64(_iter603); + oprot.writeI64(_iter619); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter604 : struct.fileIds) + for (long _iter620 : struct.fileIds) { - oprot.writeI64(_iter604); + oprot.writeI64(_iter620); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRe public void read(org.apache.thrift.protocol.TProtocol prot, ClearFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list605 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list605.size); - long _elem606; - for (int _i607 = 0; _i607 < _list605.size; ++_i607) + org.apache.thrift.protocol.TList _list621 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list621.size); + long _elem622; + for (int _i623 = 0; _i623 < _list621.size; ++_i623) { - _elem606 = iprot.readI64(); - struct.fileIds.add(_elem606); + _elem622 = iprot.readI64(); + struct.fileIds.add(_elem622); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java index a70730a..96cfbd2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/DropPartitionsResult.java @@ -346,14 +346,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 _list412 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list412.size); - Partition _elem413; - for (int _i414 = 0; _i414 < _list412.size; ++_i414) + org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list428.size); + Partition _elem429; + for (int _i430 = 0; _i430 < _list428.size; ++_i430) { - _elem413 = new Partition(); - _elem413.read(iprot); - struct.partitions.add(_elem413); + _elem429 = new Partition(); + _elem429.read(iprot); + struct.partitions.add(_elem429); } iprot.readListEnd(); } @@ -380,9 +380,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 _iter415 : struct.partitions) + for (Partition _iter431 : struct.partitions) { - _iter415.write(oprot); + _iter431.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, DropPartitionsResul if (struct.isSetPartitions()) { { oprot.writeI32(struct.partitions.size()); - for (Partition _iter416 : struct.partitions) + for (Partition _iter432 : struct.partitions) { - _iter416.write(oprot); + _iter432.write(oprot); } } } @@ -428,14 +428,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 _list417 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list417.size); - Partition _elem418; - for (int _i419 = 0; _i419 < _list417.size; ++_i419) + org.apache.thrift.protocol.TList _list433 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.partitions = new ArrayList(_list433.size); + Partition _elem434; + for (int _i435 = 0; _i435 < _list433.size; ++_i435) { - _elem418 = new Partition(); - _elem418.read(iprot); - struct.partitions.add(_elem418); + _elem434 = new Partition(); + _elem434.read(iprot); + struct.partitions.add(_elem434); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java index ffdfa9b..763fe5e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/FireEventRequest.java @@ -713,13 +713,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, FireEventRequest st case 5: // PARTITION_VALS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); - struct.partitionVals = new ArrayList(_list540.size); - String _elem541; - for (int _i542 = 0; _i542 < _list540.size; ++_i542) + org.apache.thrift.protocol.TList _list556 = iprot.readListBegin(); + struct.partitionVals = new ArrayList(_list556.size); + String _elem557; + for (int _i558 = 0; _i558 < _list556.size; ++_i558) { - _elem541 = iprot.readString(); - struct.partitionVals.add(_elem541); + _elem557 = iprot.readString(); + struct.partitionVals.add(_elem557); } iprot.readListEnd(); } @@ -768,9 +768,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, FireEventRequest s oprot.writeFieldBegin(PARTITION_VALS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.partitionVals.size())); - for (String _iter543 : struct.partitionVals) + for (String _iter559 : struct.partitionVals) { - oprot.writeString(_iter543); + oprot.writeString(_iter559); } oprot.writeListEnd(); } @@ -816,9 +816,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, FireEventRequest st if (struct.isSetPartitionVals()) { { oprot.writeI32(struct.partitionVals.size()); - for (String _iter544 : struct.partitionVals) + for (String _iter560 : struct.partitionVals) { - oprot.writeString(_iter544); + oprot.writeString(_iter560); } } } @@ -843,13 +843,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, FireEventRequest str } 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.partitionVals = new ArrayList(_list545.size); - String _elem546; - for (int _i547 = 0; _i547 < _list545.size; ++_i547) + org.apache.thrift.protocol.TList _list561 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partitionVals = new ArrayList(_list561.size); + String _elem562; + for (int _i563 = 0; _i563 < _list561.size; ++_i563) { - _elem546 = iprot.readString(); - struct.partitionVals.add(_elem546); + _elem562 = iprot.readString(); + struct.partitionVals.add(_elem562); } } struct.setPartitionValsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java index 5cf2f59..56a4d30 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/Function.java @@ -997,14 +997,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 _list436 = iprot.readListBegin(); - struct.resourceUris = new ArrayList(_list436.size); - ResourceUri _elem437; - for (int _i438 = 0; _i438 < _list436.size; ++_i438) + org.apache.thrift.protocol.TList _list452 = iprot.readListBegin(); + struct.resourceUris = new ArrayList(_list452.size); + ResourceUri _elem453; + for (int _i454 = 0; _i454 < _list452.size; ++_i454) { - _elem437 = new ResourceUri(); - _elem437.read(iprot); - struct.resourceUris.add(_elem437); + _elem453 = new ResourceUri(); + _elem453.read(iprot); + struct.resourceUris.add(_elem453); } iprot.readListEnd(); } @@ -1063,9 +1063,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 _iter439 : struct.resourceUris) + for (ResourceUri _iter455 : struct.resourceUris) { - _iter439.write(oprot); + _iter455.write(oprot); } oprot.writeListEnd(); } @@ -1138,9 +1138,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, Function struct) th if (struct.isSetResourceUris()) { { oprot.writeI32(struct.resourceUris.size()); - for (ResourceUri _iter440 : struct.resourceUris) + for (ResourceUri _iter456 : struct.resourceUris) { - _iter440.write(oprot); + _iter456.write(oprot); } } } @@ -1180,14 +1180,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, Function struct) thr } if (incoming.get(7)) { { - org.apache.thrift.protocol.TList _list441 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.resourceUris = new ArrayList(_list441.size); - ResourceUri _elem442; - for (int _i443 = 0; _i443 < _list441.size; ++_i443) + org.apache.thrift.protocol.TList _list457 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.resourceUris = new ArrayList(_list457.size); + ResourceUri _elem458; + for (int _i459 = 0; _i459 < _list457.size; ++_i459) { - _elem442 = new ResourceUri(); - _elem442.read(iprot); - struct.resourceUris.add(_elem442); + _elem458 = new ResourceUri(); + _elem458.read(iprot); + struct.resourceUris.add(_elem458); } } struct.setResourceUrisIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java index a074515..c30e7b8 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetAllFunctionsResponse.java @@ -346,14 +346,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetAllFunctionsResp case 1: // FUNCTIONS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list608 = iprot.readListBegin(); - struct.functions = new ArrayList(_list608.size); - Function _elem609; - for (int _i610 = 0; _i610 < _list608.size; ++_i610) + org.apache.thrift.protocol.TList _list624 = iprot.readListBegin(); + struct.functions = new ArrayList(_list624.size); + Function _elem625; + for (int _i626 = 0; _i626 < _list624.size; ++_i626) { - _elem609 = new Function(); - _elem609.read(iprot); - struct.functions.add(_elem609); + _elem625 = new Function(); + _elem625.read(iprot); + struct.functions.add(_elem625); } iprot.readListEnd(); } @@ -380,9 +380,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetAllFunctionsRes oprot.writeFieldBegin(FUNCTIONS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.functions.size())); - for (Function _iter611 : struct.functions) + for (Function _iter627 : struct.functions) { - _iter611.write(oprot); + _iter627.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsResp if (struct.isSetFunctions()) { { oprot.writeI32(struct.functions.size()); - for (Function _iter612 : struct.functions) + for (Function _iter628 : struct.functions) { - _iter612.write(oprot); + _iter628.write(oprot); } } } @@ -428,14 +428,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, GetAllFunctionsRespo BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list613 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.functions = new ArrayList(_list613.size); - Function _elem614; - for (int _i615 = 0; _i615 < _list613.size; ++_i615) + org.apache.thrift.protocol.TList _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.functions = new ArrayList(_list629.size); + Function _elem630; + for (int _i631 = 0; _i631 < _list629.size; ++_i631) { - _elem614 = new Function(); - _elem614.read(iprot); - struct.functions.add(_elem614); + _elem630 = new Function(); + _elem630.read(iprot); + struct.functions.add(_elem630); } } struct.setFunctionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java index 6df53bb..4ba95ba 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprRequest.java @@ -619,13 +619,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list558 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list558.size); - long _elem559; - for (int _i560 = 0; _i560 < _list558.size; ++_i560) + org.apache.thrift.protocol.TList _list574 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list574.size); + long _elem575; + for (int _i576 = 0; _i576 < _list574.size; ++_i576) { - _elem559 = iprot.readI64(); - struct.fileIds.add(_elem559); + _elem575 = iprot.readI64(); + struct.fileIds.add(_elem575); } iprot.readListEnd(); } @@ -675,9 +675,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter561 : struct.fileIds) + for (long _iter577 : struct.fileIds) { - oprot.writeI64(_iter561); + oprot.writeI64(_iter577); } oprot.writeListEnd(); } @@ -719,9 +719,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter562 : struct.fileIds) + for (long _iter578 : struct.fileIds) { - oprot.writeI64(_iter562); + oprot.writeI64(_iter578); } } oprot.writeBinary(struct.expr); @@ -745,13 +745,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list563 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list563.size); - long _elem564; - for (int _i565 = 0; _i565 < _list563.size; ++_i565) + org.apache.thrift.protocol.TList _list579 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list579.size); + long _elem580; + for (int _i581 = 0; _i581 < _list579.size; ++_i581) { - _elem564 = iprot.readI64(); - struct.fileIds.add(_elem564); + _elem580 = iprot.readI64(); + struct.fileIds.add(_elem580); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java index c84e86b..2e0bd9c 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataByExprResult.java @@ -444,16 +444,16 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataByEx case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map548 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map548.size); - long _key549; - MetadataPpdResult _val550; - for (int _i551 = 0; _i551 < _map548.size; ++_i551) + org.apache.thrift.protocol.TMap _map564 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map564.size); + long _key565; + MetadataPpdResult _val566; + for (int _i567 = 0; _i567 < _map564.size; ++_i567) { - _key549 = iprot.readI64(); - _val550 = new MetadataPpdResult(); - _val550.read(iprot); - struct.metadata.put(_key549, _val550); + _key565 = iprot.readI64(); + _val566 = new MetadataPpdResult(); + _val566.read(iprot); + struct.metadata.put(_key565, _val566); } iprot.readMapEnd(); } @@ -487,10 +487,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataByE oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, struct.metadata.size())); - for (Map.Entry _iter552 : struct.metadata.entrySet()) + for (Map.Entry _iter568 : struct.metadata.entrySet()) { - oprot.writeI64(_iter552.getKey()); - _iter552.getValue().write(oprot); + oprot.writeI64(_iter568.getKey()); + _iter568.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -518,10 +518,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter553 : struct.metadata.entrySet()) + for (Map.Entry _iter569 : struct.metadata.entrySet()) { - oprot.writeI64(_iter553.getKey()); - _iter553.getValue().write(oprot); + oprot.writeI64(_iter569.getKey()); + _iter569.getValue().write(oprot); } } oprot.writeBool(struct.isSupported); @@ -531,16 +531,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByEx public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataByExprResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map554 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.metadata = new HashMap(2*_map554.size); - long _key555; - MetadataPpdResult _val556; - for (int _i557 = 0; _i557 < _map554.size; ++_i557) + org.apache.thrift.protocol.TMap _map570 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.metadata = new HashMap(2*_map570.size); + long _key571; + MetadataPpdResult _val572; + for (int _i573 = 0; _i573 < _map570.size; ++_i573) { - _key555 = iprot.readI64(); - _val556 = new MetadataPpdResult(); - _val556.read(iprot); - struct.metadata.put(_key555, _val556); + _key571 = iprot.readI64(); + _val572 = new MetadataPpdResult(); + _val572.read(iprot); + struct.metadata.put(_key571, _val572); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java index c48f92f..c079ecd 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataRequest.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list576 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list576.size); - long _elem577; - for (int _i578 = 0; _i578 < _list576.size; ++_i578) + org.apache.thrift.protocol.TList _list592 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list592.size); + long _elem593; + for (int _i594 = 0; _i594 < _list592.size; ++_i594) { - _elem577 = iprot.readI64(); - struct.fileIds.add(_elem577); + _elem593 = iprot.readI64(); + struct.fileIds.add(_elem593); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter579 : struct.fileIds) + for (long _iter595 : struct.fileIds) { - oprot.writeI64(_iter579); + oprot.writeI64(_iter595); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter580 : struct.fileIds) + for (long _iter596 : struct.fileIds) { - oprot.writeI64(_iter580); + oprot.writeI64(_iter596); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list581 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list581.size); - long _elem582; - for (int _i583 = 0; _i583 < _list581.size; ++_i583) + org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list597.size); + long _elem598; + for (int _i599 = 0; _i599 < _list597.size; ++_i599) { - _elem582 = iprot.readI64(); - struct.fileIds.add(_elem582); + _elem598 = iprot.readI64(); + struct.fileIds.add(_elem598); } } struct.setFileIdsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java index a722b93..fb2a64a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetFileMetadataResult.java @@ -433,15 +433,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, GetFileMetadataResu case 1: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map566 = iprot.readMapBegin(); - struct.metadata = new HashMap(2*_map566.size); - long _key567; - ByteBuffer _val568; - for (int _i569 = 0; _i569 < _map566.size; ++_i569) + org.apache.thrift.protocol.TMap _map582 = iprot.readMapBegin(); + struct.metadata = new HashMap(2*_map582.size); + long _key583; + ByteBuffer _val584; + for (int _i585 = 0; _i585 < _map582.size; ++_i585) { - _key567 = iprot.readI64(); - _val568 = iprot.readBinary(); - struct.metadata.put(_key567, _val568); + _key583 = iprot.readI64(); + _val584 = iprot.readBinary(); + struct.metadata.put(_key583, _val584); } iprot.readMapEnd(); } @@ -475,10 +475,10 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, GetFileMetadataRes oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (Map.Entry _iter570 : struct.metadata.entrySet()) + for (Map.Entry _iter586 : struct.metadata.entrySet()) { - oprot.writeI64(_iter570.getKey()); - oprot.writeBinary(_iter570.getValue()); + oprot.writeI64(_iter586.getKey()); + oprot.writeBinary(_iter586.getValue()); } oprot.writeMapEnd(); } @@ -506,10 +506,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.metadata.size()); - for (Map.Entry _iter571 : struct.metadata.entrySet()) + for (Map.Entry _iter587 : struct.metadata.entrySet()) { - oprot.writeI64(_iter571.getKey()); - oprot.writeBinary(_iter571.getValue()); + oprot.writeI64(_iter587.getKey()); + oprot.writeBinary(_iter587.getValue()); } } oprot.writeBool(struct.isSupported); @@ -519,15 +519,15 @@ public void write(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResu public void read(org.apache.thrift.protocol.TProtocol prot, GetFileMetadataResult struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TMap _map572 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new HashMap(2*_map572.size); - long _key573; - ByteBuffer _val574; - for (int _i575 = 0; _i575 < _map572.size; ++_i575) + org.apache.thrift.protocol.TMap _map588 = new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I64, org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new HashMap(2*_map588.size); + long _key589; + ByteBuffer _val590; + for (int _i591 = 0; _i591 < _map588.size; ++_i591) { - _key573 = iprot.readI64(); - _val574 = iprot.readBinary(); - struct.metadata.put(_key573, _val574); + _key589 = iprot.readI64(); + _val590 = iprot.readBinary(); + struct.metadata.put(_key589, _val590); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java index b2f98d6..e68793b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsInfoResponse.java @@ -447,14 +447,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 _list444 = iprot.readListBegin(); - struct.open_txns = new ArrayList(_list444.size); - TxnInfo _elem445; - for (int _i446 = 0; _i446 < _list444.size; ++_i446) + org.apache.thrift.protocol.TList _list460 = iprot.readListBegin(); + struct.open_txns = new ArrayList(_list460.size); + TxnInfo _elem461; + for (int _i462 = 0; _i462 < _list460.size; ++_i462) { - _elem445 = new TxnInfo(); - _elem445.read(iprot); - struct.open_txns.add(_elem445); + _elem461 = new TxnInfo(); + _elem461.read(iprot); + struct.open_txns.add(_elem461); } iprot.readListEnd(); } @@ -483,9 +483,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 _iter447 : struct.open_txns) + for (TxnInfo _iter463 : struct.open_txns) { - _iter447.write(oprot); + _iter463.write(oprot); } oprot.writeListEnd(); } @@ -511,9 +511,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 _iter448 : struct.open_txns) + for (TxnInfo _iter464 : struct.open_txns) { - _iter448.write(oprot); + _iter464.write(oprot); } } } @@ -524,14 +524,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 _list449 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.open_txns = new ArrayList(_list449.size); - TxnInfo _elem450; - for (int _i451 = 0; _i451 < _list449.size; ++_i451) + org.apache.thrift.protocol.TList _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.open_txns = new ArrayList(_list465.size); + TxnInfo _elem466; + for (int _i467 = 0; _i467 < _list465.size; ++_i467) { - _elem450 = new TxnInfo(); - _elem450.read(iprot); - struct.open_txns.add(_elem450); + _elem466 = new TxnInfo(); + _elem466.read(iprot); + struct.open_txns.add(_elem466); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java index ba99b89..6986fc2 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/GetOpenTxnsResponse.java @@ -444,13 +444,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 _set452 = iprot.readSetBegin(); - struct.open_txns = new HashSet(2*_set452.size); - long _elem453; - for (int _i454 = 0; _i454 < _set452.size; ++_i454) + org.apache.thrift.protocol.TSet _set468 = iprot.readSetBegin(); + struct.open_txns = new HashSet(2*_set468.size); + long _elem469; + for (int _i470 = 0; _i470 < _set468.size; ++_i470) { - _elem453 = iprot.readI64(); - struct.open_txns.add(_elem453); + _elem469 = iprot.readI64(); + struct.open_txns.add(_elem469); } iprot.readSetEnd(); } @@ -479,9 +479,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 _iter455 : struct.open_txns) + for (long _iter471 : struct.open_txns) { - oprot.writeI64(_iter455); + oprot.writeI64(_iter471); } oprot.writeSetEnd(); } @@ -507,9 +507,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 _iter456 : struct.open_txns) + for (long _iter472 : struct.open_txns) { - oprot.writeI64(_iter456); + oprot.writeI64(_iter472); } } } @@ -520,13 +520,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 _set457 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.open_txns = new HashSet(2*_set457.size); - long _elem458; - for (int _i459 = 0; _i459 < _set457.size; ++_i459) + org.apache.thrift.protocol.TSet _set473 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.open_txns = new HashSet(2*_set473.size); + long _elem474; + for (int _i475 = 0; _i475 < _set473.size; ++_i475) { - _elem458 = iprot.readI64(); - struct.open_txns.add(_elem458); + _elem474 = iprot.readI64(); + struct.open_txns.add(_elem474); } } struct.setOpen_txnsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java index b472a4a..164ff51 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/HeartbeatTxnRangeResponse.java @@ -453,13 +453,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 _set492 = iprot.readSetBegin(); - struct.aborted = new HashSet(2*_set492.size); - long _elem493; - for (int _i494 = 0; _i494 < _set492.size; ++_i494) + org.apache.thrift.protocol.TSet _set508 = iprot.readSetBegin(); + struct.aborted = new HashSet(2*_set508.size); + long _elem509; + for (int _i510 = 0; _i510 < _set508.size; ++_i510) { - _elem493 = iprot.readI64(); - struct.aborted.add(_elem493); + _elem509 = iprot.readI64(); + struct.aborted.add(_elem509); } iprot.readSetEnd(); } @@ -471,13 +471,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 _set495 = iprot.readSetBegin(); - struct.nosuch = new HashSet(2*_set495.size); - long _elem496; - for (int _i497 = 0; _i497 < _set495.size; ++_i497) + org.apache.thrift.protocol.TSet _set511 = iprot.readSetBegin(); + struct.nosuch = new HashSet(2*_set511.size); + long _elem512; + for (int _i513 = 0; _i513 < _set511.size; ++_i513) { - _elem496 = iprot.readI64(); - struct.nosuch.add(_elem496); + _elem512 = iprot.readI64(); + struct.nosuch.add(_elem512); } iprot.readSetEnd(); } @@ -503,9 +503,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 _iter498 : struct.aborted) + for (long _iter514 : struct.aborted) { - oprot.writeI64(_iter498); + oprot.writeI64(_iter514); } oprot.writeSetEnd(); } @@ -515,9 +515,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 _iter499 : struct.nosuch) + for (long _iter515 : struct.nosuch) { - oprot.writeI64(_iter499); + oprot.writeI64(_iter515); } oprot.writeSetEnd(); } @@ -542,16 +542,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, HeartbeatTxnRangeRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.aborted.size()); - for (long _iter500 : struct.aborted) + for (long _iter516 : struct.aborted) { - oprot.writeI64(_iter500); + oprot.writeI64(_iter516); } } { oprot.writeI32(struct.nosuch.size()); - for (long _iter501 : struct.nosuch) + for (long _iter517 : struct.nosuch) { - oprot.writeI64(_iter501); + oprot.writeI64(_iter517); } } } @@ -560,24 +560,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 _set502 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.aborted = new HashSet(2*_set502.size); - long _elem503; - for (int _i504 = 0; _i504 < _set502.size; ++_i504) + org.apache.thrift.protocol.TSet _set518 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.aborted = new HashSet(2*_set518.size); + long _elem519; + for (int _i520 = 0; _i520 < _set518.size; ++_i520) { - _elem503 = iprot.readI64(); - struct.aborted.add(_elem503); + _elem519 = iprot.readI64(); + struct.aborted.add(_elem519); } } struct.setAbortedIsSet(true); { - org.apache.thrift.protocol.TSet _set505 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.nosuch = new HashSet(2*_set505.size); - long _elem506; - for (int _i507 = 0; _i507 < _set505.size; ++_i507) + org.apache.thrift.protocol.TSet _set521 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.nosuch = new HashSet(2*_set521.size); + long _elem522; + for (int _i523 = 0; _i523 < _set521.size; ++_i523) { - _elem506 = iprot.readI64(); - struct.nosuch.add(_elem506); + _elem522 = iprot.readI64(); + struct.nosuch.add(_elem522); } } struct.setNosuchIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java index 88cec2e..820a573 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/InsertEventRequestData.java @@ -351,13 +351,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, InsertEventRequestD case 1: // FILES_ADDED if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list532 = iprot.readListBegin(); - struct.filesAdded = new ArrayList(_list532.size); - String _elem533; - for (int _i534 = 0; _i534 < _list532.size; ++_i534) + org.apache.thrift.protocol.TList _list548 = iprot.readListBegin(); + struct.filesAdded = new ArrayList(_list548.size); + String _elem549; + for (int _i550 = 0; _i550 < _list548.size; ++_i550) { - _elem533 = iprot.readString(); - struct.filesAdded.add(_elem533); + _elem549 = iprot.readString(); + struct.filesAdded.add(_elem549); } iprot.readListEnd(); } @@ -383,9 +383,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, InsertEventRequest oprot.writeFieldBegin(FILES_ADDED_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.filesAdded.size())); - for (String _iter535 : struct.filesAdded) + for (String _iter551 : struct.filesAdded) { - oprot.writeString(_iter535); + oprot.writeString(_iter551); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.filesAdded.size()); - for (String _iter536 : struct.filesAdded) + for (String _iter552 : struct.filesAdded) { - oprot.writeString(_iter536); + oprot.writeString(_iter552); } } } @@ -421,13 +421,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestD public void read(org.apache.thrift.protocol.TProtocol prot, InsertEventRequestData struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list537 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.filesAdded = new ArrayList(_list537.size); - String _elem538; - for (int _i539 = 0; _i539 < _list537.size; ++_i539) + org.apache.thrift.protocol.TList _list553 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.filesAdded = new ArrayList(_list553.size); + String _elem554; + for (int _i555 = 0; _i555 < _list553.size; ++_i555) { - _elem538 = iprot.readString(); - struct.filesAdded.add(_elem538); + _elem554 = iprot.readString(); + struct.filesAdded.add(_elem554); } } struct.setFilesAddedIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java index aa9bc64..a1a1cac 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/LockRequest.java @@ -689,14 +689,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 _list476 = iprot.readListBegin(); - struct.component = new ArrayList(_list476.size); - LockComponent _elem477; - for (int _i478 = 0; _i478 < _list476.size; ++_i478) + org.apache.thrift.protocol.TList _list492 = iprot.readListBegin(); + struct.component = new ArrayList(_list492.size); + LockComponent _elem493; + for (int _i494 = 0; _i494 < _list492.size; ++_i494) { - _elem477 = new LockComponent(); - _elem477.read(iprot); - struct.component.add(_elem477); + _elem493 = new LockComponent(); + _elem493.read(iprot); + struct.component.add(_elem493); } iprot.readListEnd(); } @@ -754,9 +754,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 _iter479 : struct.component) + for (LockComponent _iter495 : struct.component) { - _iter479.write(oprot); + _iter495.write(oprot); } oprot.writeListEnd(); } @@ -803,9 +803,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, LockRequest struct) TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.component.size()); - for (LockComponent _iter480 : struct.component) + for (LockComponent _iter496 : struct.component) { - _iter480.write(oprot); + _iter496.write(oprot); } } oprot.writeString(struct.user); @@ -830,14 +830,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 _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.component = new ArrayList(_list481.size); - LockComponent _elem482; - for (int _i483 = 0; _i483 < _list481.size; ++_i483) + org.apache.thrift.protocol.TList _list497 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.component = new ArrayList(_list497.size); + LockComponent _elem498; + for (int _i499 = 0; _i499 < _list497.size; ++_i499) { - _elem482 = new LockComponent(); - _elem482.read(iprot); - struct.component.add(_elem482); + _elem498 = new LockComponent(); + _elem498.read(iprot); + struct.component.add(_elem498); } } struct.setComponentIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java index 6f9ebb7..ce8aca3 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/NotificationEventResponse.java @@ -354,14 +354,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, NotificationEventRe case 1: // EVENTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); - struct.events = new ArrayList(_list524.size); - NotificationEvent _elem525; - for (int _i526 = 0; _i526 < _list524.size; ++_i526) + org.apache.thrift.protocol.TList _list540 = iprot.readListBegin(); + struct.events = new ArrayList(_list540.size); + NotificationEvent _elem541; + for (int _i542 = 0; _i542 < _list540.size; ++_i542) { - _elem525 = new NotificationEvent(); - _elem525.read(iprot); - struct.events.add(_elem525); + _elem541 = new NotificationEvent(); + _elem541.read(iprot); + struct.events.add(_elem541); } iprot.readListEnd(); } @@ -387,9 +387,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, NotificationEventR oprot.writeFieldBegin(EVENTS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.events.size())); - for (NotificationEvent _iter527 : struct.events) + for (NotificationEvent _iter543 : struct.events) { - _iter527.write(oprot); + _iter543.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.events.size()); - for (NotificationEvent _iter528 : struct.events) + for (NotificationEvent _iter544 : struct.events) { - _iter528.write(oprot); + _iter544.write(oprot); } } } @@ -425,14 +425,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, NotificationEventRe public void read(org.apache.thrift.protocol.TProtocol prot, NotificationEventResponse struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.events = new ArrayList(_list529.size); - NotificationEvent _elem530; - for (int _i531 = 0; _i531 < _list529.size; ++_i531) + org.apache.thrift.protocol.TList _list545 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.events = new ArrayList(_list545.size); + NotificationEvent _elem546; + for (int _i547 = 0; _i547 < _list545.size; ++_i547) { - _elem530 = new NotificationEvent(); - _elem530.read(iprot); - struct.events.add(_elem530); + _elem546 = new NotificationEvent(); + _elem546.read(iprot); + struct.events.add(_elem546); } } struct.setEventsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java index f745954..a8af71b 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/OpenTxnsResponse.java @@ -351,13 +351,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 _list460 = iprot.readListBegin(); - struct.txn_ids = new ArrayList(_list460.size); - long _elem461; - for (int _i462 = 0; _i462 < _list460.size; ++_i462) + org.apache.thrift.protocol.TList _list476 = iprot.readListBegin(); + struct.txn_ids = new ArrayList(_list476.size); + long _elem477; + for (int _i478 = 0; _i478 < _list476.size; ++_i478) { - _elem461 = iprot.readI64(); - struct.txn_ids.add(_elem461); + _elem477 = iprot.readI64(); + struct.txn_ids.add(_elem477); } iprot.readListEnd(); } @@ -383,9 +383,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 _iter463 : struct.txn_ids) + for (long _iter479 : struct.txn_ids) { - oprot.writeI64(_iter463); + oprot.writeI64(_iter479); } oprot.writeListEnd(); } @@ -410,9 +410,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, OpenTxnsResponse st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.txn_ids.size()); - for (long _iter464 : struct.txn_ids) + for (long _iter480 : struct.txn_ids) { - oprot.writeI64(_iter464); + oprot.writeI64(_iter480); } } } @@ -421,13 +421,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 _list465 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.txn_ids = new ArrayList(_list465.size); - long _elem466; - for (int _i467 = 0; _i467 < _list465.size; ++_i467) + org.apache.thrift.protocol.TList _list481 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.txn_ids = new ArrayList(_list481.size); + long _elem482; + for (int _i483 = 0; _i483 < _list481.size; ++_i483) { - _elem466 = iprot.readI64(); - struct.txn_ids.add(_elem466); + _elem482 = iprot.readI64(); + struct.txn_ids.add(_elem482); } } struct.setTxn_idsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java index 2d3c156..0533053 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsByExprResult.java @@ -439,14 +439,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 _list338 = iprot.readListBegin(); - struct.partitions = new ArrayList(_list338.size); - Partition _elem339; - for (int _i340 = 0; _i340 < _list338.size; ++_i340) + org.apache.thrift.protocol.TList _list354 = iprot.readListBegin(); + struct.partitions = new ArrayList(_list354.size); + Partition _elem355; + for (int _i356 = 0; _i356 < _list354.size; ++_i356) { - _elem339 = new Partition(); - _elem339.read(iprot); - struct.partitions.add(_elem339); + _elem355 = new Partition(); + _elem355.read(iprot); + struct.partitions.add(_elem355); } iprot.readListEnd(); } @@ -480,9 +480,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 _iter341 : struct.partitions) + for (Partition _iter357 : struct.partitions) { - _iter341.write(oprot); + _iter357.write(oprot); } oprot.writeListEnd(); } @@ -510,9 +510,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsByExprRes TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partitions.size()); - for (Partition _iter342 : struct.partitions) + for (Partition _iter358 : struct.partitions) { - _iter342.write(oprot); + _iter358.write(oprot); } } oprot.writeBool(struct.hasUnknownPartitions); @@ -522,14 +522,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 _list343 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.partitions = new ArrayList(_list343.size); - Partition _elem344; - for (int _i345 = 0; _i345 < _list343.size; ++_i345) + 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); + Partition _elem360; + for (int _i361 = 0; _i361 < _list359.size; ++_i361) { - _elem344 = new Partition(); - _elem344.read(iprot); - struct.partitions.add(_elem344); + _elem360 = new Partition(); + _elem360.read(iprot); + struct.partitions.add(_elem360); } } struct.setPartitionsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java index 0ac7481..65b8a54 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsRequest.java @@ -639,13 +639,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 _list380 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list380.size); - String _elem381; - for (int _i382 = 0; _i382 < _list380.size; ++_i382) + org.apache.thrift.protocol.TList _list396 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list396.size); + String _elem397; + for (int _i398 = 0; _i398 < _list396.size; ++_i398) { - _elem381 = iprot.readString(); - struct.colNames.add(_elem381); + _elem397 = iprot.readString(); + struct.colNames.add(_elem397); } iprot.readListEnd(); } @@ -657,13 +657,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 _list383 = iprot.readListBegin(); - struct.partNames = new ArrayList(_list383.size); - String _elem384; - for (int _i385 = 0; _i385 < _list383.size; ++_i385) + org.apache.thrift.protocol.TList _list399 = iprot.readListBegin(); + struct.partNames = new ArrayList(_list399.size); + String _elem400; + for (int _i401 = 0; _i401 < _list399.size; ++_i401) { - _elem384 = iprot.readString(); - struct.partNames.add(_elem384); + _elem400 = iprot.readString(); + struct.partNames.add(_elem400); } iprot.readListEnd(); } @@ -699,9 +699,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 _iter386 : struct.colNames) + for (String _iter402 : struct.colNames) { - oprot.writeString(_iter386); + oprot.writeString(_iter402); } oprot.writeListEnd(); } @@ -711,9 +711,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 _iter387 : struct.partNames) + for (String _iter403 : struct.partNames) { - oprot.writeString(_iter387); + oprot.writeString(_iter403); } oprot.writeListEnd(); } @@ -740,16 +740,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsRequ oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter388 : struct.colNames) + for (String _iter404 : struct.colNames) { - oprot.writeString(_iter388); + oprot.writeString(_iter404); } } { oprot.writeI32(struct.partNames.size()); - for (String _iter389 : struct.partNames) + for (String _iter405 : struct.partNames) { - oprot.writeString(_iter389); + oprot.writeString(_iter405); } } } @@ -762,24 +762,24 @@ public void read(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsReque struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list390 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list390.size); - String _elem391; - for (int _i392 = 0; _i392 < _list390.size; ++_i392) + org.apache.thrift.protocol.TList _list406 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list406.size); + String _elem407; + for (int _i408 = 0; _i408 < _list406.size; ++_i408) { - _elem391 = iprot.readString(); - struct.colNames.add(_elem391); + _elem407 = iprot.readString(); + struct.colNames.add(_elem407); } } struct.setColNamesIsSet(true); { - org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.partNames = new ArrayList(_list393.size); - String _elem394; - for (int _i395 = 0; _i395 < _list393.size; ++_i395) + org.apache.thrift.protocol.TList _list409 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.partNames = new ArrayList(_list409.size); + String _elem410; + for (int _i411 = 0; _i411 < _list409.size; ++_i411) { - _elem394 = iprot.readString(); - struct.partNames.add(_elem394); + _elem410 = iprot.readString(); + struct.partNames.add(_elem410); } } struct.setPartNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java index 51e05ae..1d5e6ce 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PartitionsStatsResult.java @@ -363,26 +363,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 _map354 = iprot.readMapBegin(); - struct.partStats = new HashMap>(2*_map354.size); - String _key355; - List _val356; - for (int _i357 = 0; _i357 < _map354.size; ++_i357) + org.apache.thrift.protocol.TMap _map370 = iprot.readMapBegin(); + struct.partStats = new HashMap>(2*_map370.size); + String _key371; + List _val372; + for (int _i373 = 0; _i373 < _map370.size; ++_i373) { - _key355 = iprot.readString(); + _key371 = iprot.readString(); { - org.apache.thrift.protocol.TList _list358 = iprot.readListBegin(); - _val356 = new ArrayList(_list358.size); - ColumnStatisticsObj _elem359; - for (int _i360 = 0; _i360 < _list358.size; ++_i360) + org.apache.thrift.protocol.TList _list374 = iprot.readListBegin(); + _val372 = new ArrayList(_list374.size); + ColumnStatisticsObj _elem375; + for (int _i376 = 0; _i376 < _list374.size; ++_i376) { - _elem359 = new ColumnStatisticsObj(); - _elem359.read(iprot); - _val356.add(_elem359); + _elem375 = new ColumnStatisticsObj(); + _elem375.read(iprot); + _val372.add(_elem375); } iprot.readListEnd(); } - struct.partStats.put(_key355, _val356); + struct.partStats.put(_key371, _val372); } iprot.readMapEnd(); } @@ -408,14 +408,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> _iter361 : struct.partStats.entrySet()) + for (Map.Entry> _iter377 : struct.partStats.entrySet()) { - oprot.writeString(_iter361.getKey()); + oprot.writeString(_iter377.getKey()); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter361.getValue().size())); - for (ColumnStatisticsObj _iter362 : _iter361.getValue()) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, _iter377.getValue().size())); + for (ColumnStatisticsObj _iter378 : _iter377.getValue()) { - _iter362.write(oprot); + _iter378.write(oprot); } oprot.writeListEnd(); } @@ -443,14 +443,14 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PartitionsStatsResu TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.partStats.size()); - for (Map.Entry> _iter363 : struct.partStats.entrySet()) + for (Map.Entry> _iter379 : struct.partStats.entrySet()) { - oprot.writeString(_iter363.getKey()); + oprot.writeString(_iter379.getKey()); { - oprot.writeI32(_iter363.getValue().size()); - for (ColumnStatisticsObj _iter364 : _iter363.getValue()) + oprot.writeI32(_iter379.getValue().size()); + for (ColumnStatisticsObj _iter380 : _iter379.getValue()) { - _iter364.write(oprot); + _iter380.write(oprot); } } } @@ -461,25 +461,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 _map365 = 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*_map365.size); - String _key366; - List _val367; - for (int _i368 = 0; _i368 < _map365.size; ++_i368) + org.apache.thrift.protocol.TMap _map381 = 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*_map381.size); + String _key382; + List _val383; + for (int _i384 = 0; _i384 < _map381.size; ++_i384) { - _key366 = iprot.readString(); + _key382 = iprot.readString(); { - org.apache.thrift.protocol.TList _list369 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - _val367 = new ArrayList(_list369.size); - ColumnStatisticsObj _elem370; - for (int _i371 = 0; _i371 < _list369.size; ++_i371) + org.apache.thrift.protocol.TList _list385 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + _val383 = new ArrayList(_list385.size); + ColumnStatisticsObj _elem386; + for (int _i387 = 0; _i387 < _list385.size; ++_i387) { - _elem370 = new ColumnStatisticsObj(); - _elem370.read(iprot); - _val367.add(_elem370); + _elem386 = new ColumnStatisticsObj(); + _elem386.read(iprot); + _val383.add(_elem386); } } - struct.partStats.put(_key366, _val367); + struct.partStats.put(_key382, _val383); } } struct.setPartStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java index 6c11240..9323d9f 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/PutFileMetadataRequest.java @@ -547,13 +547,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 1: // FILE_IDS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list584 = iprot.readListBegin(); - struct.fileIds = new ArrayList(_list584.size); - long _elem585; - for (int _i586 = 0; _i586 < _list584.size; ++_i586) + org.apache.thrift.protocol.TList _list600 = iprot.readListBegin(); + struct.fileIds = new ArrayList(_list600.size); + long _elem601; + for (int _i602 = 0; _i602 < _list600.size; ++_i602) { - _elem585 = iprot.readI64(); - struct.fileIds.add(_elem585); + _elem601 = iprot.readI64(); + struct.fileIds.add(_elem601); } iprot.readListEnd(); } @@ -565,13 +565,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, PutFileMetadataRequ case 2: // METADATA if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list587 = iprot.readListBegin(); - struct.metadata = new ArrayList(_list587.size); - ByteBuffer _elem588; - for (int _i589 = 0; _i589 < _list587.size; ++_i589) + org.apache.thrift.protocol.TList _list603 = iprot.readListBegin(); + struct.metadata = new ArrayList(_list603.size); + ByteBuffer _elem604; + for (int _i605 = 0; _i605 < _list603.size; ++_i605) { - _elem588 = iprot.readBinary(); - struct.metadata.add(_elem588); + _elem604 = iprot.readBinary(); + struct.metadata.add(_elem604); } iprot.readListEnd(); } @@ -605,9 +605,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(FILE_IDS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, struct.fileIds.size())); - for (long _iter590 : struct.fileIds) + for (long _iter606 : struct.fileIds) { - oprot.writeI64(_iter590); + oprot.writeI64(_iter606); } oprot.writeListEnd(); } @@ -617,9 +617,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, PutFileMetadataReq oprot.writeFieldBegin(METADATA_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.metadata.size())); - for (ByteBuffer _iter591 : struct.metadata) + for (ByteBuffer _iter607 : struct.metadata) { - oprot.writeBinary(_iter591); + oprot.writeBinary(_iter607); } oprot.writeListEnd(); } @@ -651,16 +651,16 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.fileIds.size()); - for (long _iter592 : struct.fileIds) + for (long _iter608 : struct.fileIds) { - oprot.writeI64(_iter592); + oprot.writeI64(_iter608); } } { oprot.writeI32(struct.metadata.size()); - for (ByteBuffer _iter593 : struct.metadata) + for (ByteBuffer _iter609 : struct.metadata) { - oprot.writeBinary(_iter593); + oprot.writeBinary(_iter609); } } BitSet optionals = new BitSet(); @@ -677,24 +677,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequ public void read(org.apache.thrift.protocol.TProtocol prot, PutFileMetadataRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; { - org.apache.thrift.protocol.TList _list594 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); - struct.fileIds = new ArrayList(_list594.size); - long _elem595; - for (int _i596 = 0; _i596 < _list594.size; ++_i596) + org.apache.thrift.protocol.TList _list610 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, iprot.readI32()); + struct.fileIds = new ArrayList(_list610.size); + long _elem611; + for (int _i612 = 0; _i612 < _list610.size; ++_i612) { - _elem595 = iprot.readI64(); - struct.fileIds.add(_elem595); + _elem611 = iprot.readI64(); + struct.fileIds.add(_elem611); } } struct.setFileIdsIsSet(true); { - org.apache.thrift.protocol.TList _list597 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.metadata = new ArrayList(_list597.size); - ByteBuffer _elem598; - for (int _i599 = 0; _i599 < _list597.size; ++_i599) + org.apache.thrift.protocol.TList _list613 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.metadata = new ArrayList(_list613.size); + ByteBuffer _elem614; + for (int _i615 = 0; _i615 < _list613.size; ++_i615) { - _elem598 = iprot.readBinary(); - struct.metadata.add(_elem598); + _elem614 = iprot.readBinary(); + struct.metadata.add(_elem614); } } struct.setMetadataIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java index 1921bf5..7368e9a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/RequestPartsSpec.java @@ -168,13 +168,13 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == NAMES_FIELD_DESC.type) { List names; { - org.apache.thrift.protocol.TList _list420 = iprot.readListBegin(); - names = new ArrayList(_list420.size); - String _elem421; - for (int _i422 = 0; _i422 < _list420.size; ++_i422) + org.apache.thrift.protocol.TList _list436 = iprot.readListBegin(); + names = new ArrayList(_list436.size); + String _elem437; + for (int _i438 = 0; _i438 < _list436.size; ++_i438) { - _elem421 = iprot.readString(); - names.add(_elem421); + _elem437 = iprot.readString(); + names.add(_elem437); } iprot.readListEnd(); } @@ -187,14 +187,14 @@ protected Object standardSchemeReadValue(org.apache.thrift.protocol.TProtocol ip if (field.type == EXPRS_FIELD_DESC.type) { List exprs; { - org.apache.thrift.protocol.TList _list423 = iprot.readListBegin(); - exprs = new ArrayList(_list423.size); - DropPartitionsExpr _elem424; - for (int _i425 = 0; _i425 < _list423.size; ++_i425) + org.apache.thrift.protocol.TList _list439 = iprot.readListBegin(); + exprs = new ArrayList(_list439.size); + DropPartitionsExpr _elem440; + for (int _i441 = 0; _i441 < _list439.size; ++_i441) { - _elem424 = new DropPartitionsExpr(); - _elem424.read(iprot); - exprs.add(_elem424); + _elem440 = new DropPartitionsExpr(); + _elem440.read(iprot); + exprs.add(_elem440); } iprot.readListEnd(); } @@ -219,9 +219,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 _iter426 : names) + for (String _iter442 : names) { - oprot.writeString(_iter426); + oprot.writeString(_iter442); } oprot.writeListEnd(); } @@ -230,9 +230,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 _iter427 : exprs) + for (DropPartitionsExpr _iter443 : exprs) { - _iter427.write(oprot); + _iter443.write(oprot); } oprot.writeListEnd(); } @@ -250,13 +250,13 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case NAMES: List names; { - org.apache.thrift.protocol.TList _list428 = iprot.readListBegin(); - names = new ArrayList(_list428.size); - String _elem429; - for (int _i430 = 0; _i430 < _list428.size; ++_i430) + org.apache.thrift.protocol.TList _list444 = iprot.readListBegin(); + names = new ArrayList(_list444.size); + String _elem445; + for (int _i446 = 0; _i446 < _list444.size; ++_i446) { - _elem429 = iprot.readString(); - names.add(_elem429); + _elem445 = iprot.readString(); + names.add(_elem445); } iprot.readListEnd(); } @@ -264,14 +264,14 @@ protected Object tupleSchemeReadValue(org.apache.thrift.protocol.TProtocol iprot case EXPRS: List exprs; { - org.apache.thrift.protocol.TList _list431 = iprot.readListBegin(); - exprs = new ArrayList(_list431.size); - DropPartitionsExpr _elem432; - for (int _i433 = 0; _i433 < _list431.size; ++_i433) + org.apache.thrift.protocol.TList _list447 = iprot.readListBegin(); + exprs = new ArrayList(_list447.size); + DropPartitionsExpr _elem448; + for (int _i449 = 0; _i449 < _list447.size; ++_i449) { - _elem432 = new DropPartitionsExpr(); - _elem432.read(iprot); - exprs.add(_elem432); + _elem448 = new DropPartitionsExpr(); + _elem448.read(iprot); + exprs.add(_elem448); } iprot.readListEnd(); } @@ -291,9 +291,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 _iter434 : names) + for (String _iter450 : names) { - oprot.writeString(_iter434); + oprot.writeString(_iter450); } oprot.writeListEnd(); } @@ -302,9 +302,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 _iter435 : exprs) + for (DropPartitionsExpr _iter451 : exprs) { - _iter435.write(oprot); + _iter451.write(oprot); } oprot.writeListEnd(); } diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java index dabfca9..6641c7e 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowCompactResponse.java @@ -354,14 +354,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 _list508 = iprot.readListBegin(); - struct.compacts = new ArrayList(_list508.size); - ShowCompactResponseElement _elem509; - for (int _i510 = 0; _i510 < _list508.size; ++_i510) + org.apache.thrift.protocol.TList _list524 = iprot.readListBegin(); + struct.compacts = new ArrayList(_list524.size); + ShowCompactResponseElement _elem525; + for (int _i526 = 0; _i526 < _list524.size; ++_i526) { - _elem509 = new ShowCompactResponseElement(); - _elem509.read(iprot); - struct.compacts.add(_elem509); + _elem525 = new ShowCompactResponseElement(); + _elem525.read(iprot); + struct.compacts.add(_elem525); } iprot.readListEnd(); } @@ -387,9 +387,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 _iter511 : struct.compacts) + for (ShowCompactResponseElement _iter527 : struct.compacts) { - _iter511.write(oprot); + _iter527.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowCompactResponse TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.compacts.size()); - for (ShowCompactResponseElement _iter512 : struct.compacts) + for (ShowCompactResponseElement _iter528 : struct.compacts) { - _iter512.write(oprot); + _iter528.write(oprot); } } } @@ -425,14 +425,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 _list513 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.compacts = new ArrayList(_list513.size); - ShowCompactResponseElement _elem514; - for (int _i515 = 0; _i515 < _list513.size; ++_i515) + org.apache.thrift.protocol.TList _list529 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.compacts = new ArrayList(_list529.size); + ShowCompactResponseElement _elem530; + for (int _i531 = 0; _i531 < _list529.size; ++_i531) { - _elem514 = new ShowCompactResponseElement(); - _elem514.read(iprot); - struct.compacts.add(_elem514); + _elem530 = new ShowCompactResponseElement(); + _elem530.read(iprot); + struct.compacts.add(_elem530); } } struct.setCompactsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java index 0564931..da181e6 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ShowLocksResponse.java @@ -350,14 +350,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 _list484 = iprot.readListBegin(); - struct.locks = new ArrayList(_list484.size); - ShowLocksResponseElement _elem485; - for (int _i486 = 0; _i486 < _list484.size; ++_i486) + org.apache.thrift.protocol.TList _list500 = iprot.readListBegin(); + struct.locks = new ArrayList(_list500.size); + ShowLocksResponseElement _elem501; + for (int _i502 = 0; _i502 < _list500.size; ++_i502) { - _elem485 = new ShowLocksResponseElement(); - _elem485.read(iprot); - struct.locks.add(_elem485); + _elem501 = new ShowLocksResponseElement(); + _elem501.read(iprot); + struct.locks.add(_elem501); } iprot.readListEnd(); } @@ -383,9 +383,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 _iter487 : struct.locks) + for (ShowLocksResponseElement _iter503 : struct.locks) { - _iter487.write(oprot); + _iter503.write(oprot); } oprot.writeListEnd(); } @@ -416,9 +416,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, ShowLocksResponse s if (struct.isSetLocks()) { { oprot.writeI32(struct.locks.size()); - for (ShowLocksResponseElement _iter488 : struct.locks) + for (ShowLocksResponseElement _iter504 : struct.locks) { - _iter488.write(oprot); + _iter504.write(oprot); } } } @@ -430,14 +430,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 _list489 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.locks = new ArrayList(_list489.size); - ShowLocksResponseElement _elem490; - for (int _i491 = 0; _i491 < _list489.size; ++_i491) + org.apache.thrift.protocol.TList _list505 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.locks = new ArrayList(_list505.size); + ShowLocksResponseElement _elem506; + for (int _i507 = 0; _i507 < _list505.size; ++_i507) { - _elem490 = new ShowLocksResponseElement(); - _elem490.read(iprot); - struct.locks.add(_elem490); + _elem506 = new ShowLocksResponseElement(); + _elem506.read(iprot); + struct.locks.add(_elem506); } } struct.setLocksIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java index feed244..c8c762a 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsRequest.java @@ -537,13 +537,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 _list372 = iprot.readListBegin(); - struct.colNames = new ArrayList(_list372.size); - String _elem373; - for (int _i374 = 0; _i374 < _list372.size; ++_i374) + org.apache.thrift.protocol.TList _list388 = iprot.readListBegin(); + struct.colNames = new ArrayList(_list388.size); + String _elem389; + for (int _i390 = 0; _i390 < _list388.size; ++_i390) { - _elem373 = iprot.readString(); - struct.colNames.add(_elem373); + _elem389 = iprot.readString(); + struct.colNames.add(_elem389); } iprot.readListEnd(); } @@ -579,9 +579,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 _iter375 : struct.colNames) + for (String _iter391 : struct.colNames) { - oprot.writeString(_iter375); + oprot.writeString(_iter391); } oprot.writeListEnd(); } @@ -608,9 +608,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest s oprot.writeString(struct.tblName); { oprot.writeI32(struct.colNames.size()); - for (String _iter376 : struct.colNames) + for (String _iter392 : struct.colNames) { - oprot.writeString(_iter376); + oprot.writeString(_iter392); } } } @@ -623,13 +623,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, TableStatsRequest st struct.tblName = iprot.readString(); struct.setTblNameIsSet(true); { - org.apache.thrift.protocol.TList _list377 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.colNames = new ArrayList(_list377.size); - String _elem378; - for (int _i379 = 0; _i379 < _list377.size; ++_i379) + org.apache.thrift.protocol.TList _list393 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.colNames = new ArrayList(_list393.size); + String _elem394; + for (int _i395 = 0; _i395 < _list393.size; ++_i395) { - _elem378 = iprot.readString(); - struct.colNames.add(_elem378); + _elem394 = iprot.readString(); + struct.colNames.add(_elem394); } } struct.setColNamesIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java index 97cd816..49da294 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/TableStatsResult.java @@ -354,14 +354,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 _list346 = iprot.readListBegin(); - struct.tableStats = new ArrayList(_list346.size); - ColumnStatisticsObj _elem347; - for (int _i348 = 0; _i348 < _list346.size; ++_i348) + org.apache.thrift.protocol.TList _list362 = iprot.readListBegin(); + struct.tableStats = new ArrayList(_list362.size); + ColumnStatisticsObj _elem363; + for (int _i364 = 0; _i364 < _list362.size; ++_i364) { - _elem347 = new ColumnStatisticsObj(); - _elem347.read(iprot); - struct.tableStats.add(_elem347); + _elem363 = new ColumnStatisticsObj(); + _elem363.read(iprot); + struct.tableStats.add(_elem363); } iprot.readListEnd(); } @@ -387,9 +387,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 _iter349 : struct.tableStats) + for (ColumnStatisticsObj _iter365 : struct.tableStats) { - _iter349.write(oprot); + _iter365.write(oprot); } oprot.writeListEnd(); } @@ -414,9 +414,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, TableStatsResult st TTupleProtocol oprot = (TTupleProtocol) prot; { oprot.writeI32(struct.tableStats.size()); - for (ColumnStatisticsObj _iter350 : struct.tableStats) + for (ColumnStatisticsObj _iter366 : struct.tableStats) { - _iter350.write(oprot); + _iter366.write(oprot); } } } @@ -425,14 +425,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 _list351 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.tableStats = new ArrayList(_list351.size); - ColumnStatisticsObj _elem352; - for (int _i353 = 0; _i353 < _list351.size; ++_i353) + org.apache.thrift.protocol.TList _list367 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.tableStats = new ArrayList(_list367.size); + ColumnStatisticsObj _elem368; + for (int _i369 = 0; _i369 < _list367.size; ++_i369) { - _elem352 = new ColumnStatisticsObj(); - _elem352.read(iprot); - struct.tableStats.add(_elem352); + _elem368 = new ColumnStatisticsObj(); + _elem368.read(iprot); + struct.tableStats.add(_elem368); } } struct.setTableStatsIsSet(true); diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java index ee40698..13a8b71 100644 --- a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/ThriftHiveMetastore.java @@ -82,6 +82,10 @@ public void drop_constraint(DropConstraintRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void add_primary_key(AddPrimaryKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + + public void add_foreign_key(AddForeignKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context) throws NoSuchObjectException, MetaException, org.apache.thrift.TException; @@ -380,6 +384,10 @@ public void drop_constraint(DropConstraintRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void add_primary_key(AddPrimaryKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void add_foreign_key(AddForeignKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void drop_table_with_environment_context(String dbname, String name, boolean deleteData, EnvironmentContext environment_context, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -1248,6 +1256,58 @@ public void recv_drop_constraint() throws NoSuchObjectException, MetaException, return; } + public void add_primary_key(AddPrimaryKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_primary_key(req); + recv_add_primary_key(); + } + + public void send_add_primary_key(AddPrimaryKeyRequest req) throws org.apache.thrift.TException + { + add_primary_key_args args = new add_primary_key_args(); + args.setReq(req); + sendBase("add_primary_key", args); + } + + public void recv_add_primary_key() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_primary_key_result result = new add_primary_key_result(); + receiveBase(result, "add_primary_key"); + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + return; + } + + public void add_foreign_key(AddForeignKeyRequest req) throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + send_add_foreign_key(req); + recv_add_foreign_key(); + } + + public void send_add_foreign_key(AddForeignKeyRequest req) throws org.apache.thrift.TException + { + add_foreign_key_args args = new add_foreign_key_args(); + args.setReq(req); + sendBase("add_foreign_key", args); + } + + public void recv_add_foreign_key() throws NoSuchObjectException, MetaException, org.apache.thrift.TException + { + add_foreign_key_result result = new add_foreign_key_result(); + receiveBase(result, "add_foreign_key"); + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + return; + } + public void drop_table(String dbname, String name, boolean deleteData) throws NoSuchObjectException, MetaException, org.apache.thrift.TException { send_drop_table(dbname, name, deleteData); @@ -5597,6 +5657,70 @@ public void getResult() throws NoSuchObjectException, MetaException, org.apache. } } + public void add_primary_key(AddPrimaryKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_primary_key_call method_call = new add_primary_key_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class add_primary_key_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddPrimaryKeyRequest req; + public add_primary_key_call(AddPrimaryKeyRequest req, 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.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_primary_key", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_primary_key_args args = new add_primary_key_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public void 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); + (new Client(prot)).recv_add_primary_key(); + } + } + + public void add_foreign_key(AddForeignKeyRequest req, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + add_foreign_key_call method_call = new add_foreign_key_call(req, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class add_foreign_key_call extends org.apache.thrift.async.TAsyncMethodCall { + private AddForeignKeyRequest req; + public add_foreign_key_call(AddForeignKeyRequest req, 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.req = req; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("add_foreign_key", org.apache.thrift.protocol.TMessageType.CALL, 0)); + add_foreign_key_args args = new add_foreign_key_args(); + args.setReq(req); + args.write(prot); + prot.writeMessageEnd(); + } + + public void 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); + (new Client(prot)).recv_add_foreign_key(); + } + } + public void drop_table(String dbname, String name, boolean deleteData, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); drop_table_call method_call = new drop_table_call(dbname, name, deleteData, resultHandler, this, ___protocolFactory, ___transport); @@ -10141,6 +10265,8 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public add_primary_key() { + super("add_primary_key"); + } + + public add_primary_key_args getEmptyArgsInstance() { + return new add_primary_key_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_primary_key_result getResult(I iface, add_primary_key_args args) throws org.apache.thrift.TException { + add_primary_key_result result = new add_primary_key_result(); + try { + iface.add_primary_key(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + + public static class add_foreign_key extends org.apache.thrift.ProcessFunction { + public add_foreign_key() { + super("add_foreign_key"); + } + + public add_foreign_key_args getEmptyArgsInstance() { + return new add_foreign_key_args(); + } + + protected boolean isOneway() { + return false; + } + + public add_foreign_key_result getResult(I iface, add_foreign_key_args args) throws org.apache.thrift.TException { + add_foreign_key_result result = new add_foreign_key_result(); + try { + iface.add_foreign_key(args.req); + } catch (NoSuchObjectException o1) { + result.o1 = o1; + } catch (MetaException o2) { + result.o2 = o2; + } + return result; + } + } + public static class drop_table extends org.apache.thrift.ProcessFunction { public drop_table() { super("drop_table"); @@ -14058,6 +14236,8 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public drop_table() { - super("drop_table"); + public static class add_primary_key extends org.apache.thrift.AsyncProcessFunction { + public add_primary_key() { + super("add_primary_key"); } - public drop_table_args getEmptyArgsInstance() { - return new drop_table_args(); + public add_primary_key_args getEmptyArgsInstance() { + return new add_primary_key_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - drop_table_result result = new drop_table_result(); + add_primary_key_result result = new add_primary_key_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15487,15 +15667,15 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - drop_table_result result = new drop_table_result(); + add_primary_key_result result = new add_primary_key_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); + result.o2 = (MetaException) e; + result.setO2IsSet(true); msg = result; } else @@ -15518,25 +15698,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, drop_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table(args.dbname, args.name, args.deleteData,resultHandler); + public void start(I iface, add_primary_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_primary_key(args.req,resultHandler); } } - public static class drop_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { - public drop_table_with_environment_context() { - super("drop_table_with_environment_context"); + public static class add_foreign_key extends org.apache.thrift.AsyncProcessFunction { + public add_foreign_key() { + super("add_foreign_key"); } - public drop_table_with_environment_context_args getEmptyArgsInstance() { - return new drop_table_with_environment_context_args(); + public add_foreign_key_args getEmptyArgsInstance() { + return new add_foreign_key_args(); } public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback() { public void onComplete(Void o) { - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); + add_foreign_key_result result = new add_foreign_key_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15548,15 +15728,15 @@ public void onComplete(Void o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); + add_foreign_key_result result = new add_foreign_key_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); + result.o2 = (MetaException) e; + result.setO2IsSet(true); msg = result; } else @@ -15579,26 +15759,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, drop_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context,resultHandler); + public void start(I iface, add_foreign_key_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.add_foreign_key(args.req,resultHandler); } } - public static class get_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_tables() { - super("get_tables"); + public static class drop_table extends org.apache.thrift.AsyncProcessFunction { + public drop_table() { + super("drop_table"); } - public get_tables_args getEmptyArgsInstance() { - return new get_tables_args(); + public drop_table_args getEmptyArgsInstance() { + return new drop_table_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_tables_result result = new get_tables_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + drop_table_result result = new drop_table_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15610,12 +15789,17 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_tables_result result = new get_tables_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; + drop_table_result result = new drop_table_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; + result.setO3IsSet(true); + msg = result; + } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -15636,26 +15820,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_tables(args.db_name, args.pattern,resultHandler); + public void start(I iface, drop_table_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.drop_table(args.dbname, args.name, args.deleteData,resultHandler); } } - public static class get_table_meta extends org.apache.thrift.AsyncProcessFunction> { - public get_table_meta() { - super("get_table_meta"); + public static class drop_table_with_environment_context extends org.apache.thrift.AsyncProcessFunction { + public drop_table_with_environment_context() { + super("drop_table_with_environment_context"); } - public get_table_meta_args getEmptyArgsInstance() { - return new get_table_meta_args(); + public drop_table_with_environment_context_args getEmptyArgsInstance() { + return new drop_table_with_environment_context_args(); } - public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback>() { - public void onComplete(List o) { - get_table_meta_result result = new get_table_meta_result(); - result.success = o; + return new AsyncMethodCallback() { + public void onComplete(Void o) { + drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -15667,12 +15850,17 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_table_meta_result result = new get_table_meta_result(); - if (e instanceof MetaException) { - result.o1 = (MetaException) e; + drop_table_with_environment_context_result result = new drop_table_with_environment_context_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; + result.setO3IsSet(true); + msg = result; + } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -15693,25 +15881,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_table_meta_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types,resultHandler); + public void start(I iface, drop_table_with_environment_context_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.drop_table_with_environment_context(args.dbname, args.name, args.deleteData, args.environment_context,resultHandler); } } - public static class get_all_tables extends org.apache.thrift.AsyncProcessFunction> { - public get_all_tables() { - super("get_all_tables"); + public static class get_tables extends org.apache.thrift.AsyncProcessFunction> { + public get_tables() { + super("get_tables"); } - public get_all_tables_args getEmptyArgsInstance() { - return new get_all_tables_args(); + public get_tables_args getEmptyArgsInstance() { + return new get_tables_args(); } public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; return new AsyncMethodCallback>() { public void onComplete(List o) { - get_all_tables_result result = new get_all_tables_result(); + get_tables_result result = new get_tables_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15724,7 +15912,7 @@ public void onComplete(List o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_all_tables_result result = new get_all_tables_result(); + get_tables_result result = new get_tables_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); @@ -15750,25 +15938,25 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_all_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { - iface.get_all_tables(args.db_name,resultHandler); + public void start(I iface, get_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_tables(args.db_name, args.pattern,resultHandler); } } - public static class get_table extends org.apache.thrift.AsyncProcessFunction { - public get_table() { - super("get_table"); + public static class get_table_meta extends org.apache.thrift.AsyncProcessFunction> { + public get_table_meta() { + super("get_table_meta"); } - public get_table_args getEmptyArgsInstance() { - return new get_table_args(); + public get_table_meta_args getEmptyArgsInstance() { + return new get_table_meta_args(); } - public AsyncMethodCallback
getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { final org.apache.thrift.AsyncProcessFunction fcall = this; - return new AsyncMethodCallback
() { - public void onComplete(Table o) { - get_table_result result = new get_table_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_table_meta_result result = new get_table_meta_result(); result.success = o; try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); @@ -15781,17 +15969,131 @@ public void onComplete(Table o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_table_result result = new get_table_result(); + get_table_meta_result result = new get_table_meta_result(); if (e instanceof MetaException) { result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof NoSuchObjectException) { - result.o2 = (NoSuchObjectException) e; - result.setO2IsSet(true); - msg = result; - } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_table_meta_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_table_meta(args.db_patterns, args.tbl_patterns, args.tbl_types,resultHandler); + } + } + + public static class get_all_tables extends org.apache.thrift.AsyncProcessFunction> { + public get_all_tables() { + super("get_all_tables"); + } + + public get_all_tables_args getEmptyArgsInstance() { + return new get_all_tables_args(); + } + + public AsyncMethodCallback> getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_all_tables_result result = new get_all_tables_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_all_tables_result result = new get_all_tables_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else + { + msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; + msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage()); + } + try { + fcall.sendResponse(fb,msg,msgType,seqid); + return; + } catch (Exception ex) { + LOGGER.error("Exception writing to internal frame buffer", ex); + } + fb.close(); + } + }; + } + + protected boolean isOneway() { + return false; + } + + public void start(I iface, get_all_tables_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_all_tables(args.db_name,resultHandler); + } + } + + public static class get_table extends org.apache.thrift.AsyncProcessFunction { + public get_table() { + super("get_table"); + } + + public get_table_args getEmptyArgsInstance() { + return new get_table_args(); + } + + public AsyncMethodCallback
getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback
() { + public void onComplete(Table o) { + get_table_result result = new get_table_result(); + result.success = o; + try { + fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); + return; + } catch (Exception e) { + LOGGER.error("Exception writing to internal frame buffer", e); + } + fb.close(); + } + public void onError(Exception e) { + byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; + org.apache.thrift.TBase msg; + get_table_result result = new get_table_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; + result.setO2IsSet(true); + msg = result; + } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -28540,13 +28842,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 _list616 = iprot.readListBegin(); - struct.success = new ArrayList(_list616.size); - String _elem617; - for (int _i618 = 0; _i618 < _list616.size; ++_i618) + org.apache.thrift.protocol.TList _list632 = iprot.readListBegin(); + struct.success = new ArrayList(_list632.size); + String _elem633; + for (int _i634 = 0; _i634 < _list632.size; ++_i634) { - _elem617 = iprot.readString(); - struct.success.add(_elem617); + _elem633 = iprot.readString(); + struct.success.add(_elem633); } iprot.readListEnd(); } @@ -28581,9 +28883,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 _iter619 : struct.success) + for (String _iter635 : struct.success) { - oprot.writeString(_iter619); + oprot.writeString(_iter635); } oprot.writeListEnd(); } @@ -28622,9 +28924,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_databases_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter620 : struct.success) + for (String _iter636 : struct.success) { - oprot.writeString(_iter620); + oprot.writeString(_iter636); } } } @@ -28639,13 +28941,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 _list621 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list621.size); - String _elem622; - for (int _i623 = 0; _i623 < _list621.size; ++_i623) + org.apache.thrift.protocol.TList _list637 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list637.size); + String _elem638; + for (int _i639 = 0; _i639 < _list637.size; ++_i639) { - _elem622 = iprot.readString(); - struct.success.add(_elem622); + _elem638 = iprot.readString(); + struct.success.add(_elem638); } } struct.setSuccessIsSet(true); @@ -29299,13 +29601,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 _list624 = iprot.readListBegin(); - struct.success = new ArrayList(_list624.size); - String _elem625; - for (int _i626 = 0; _i626 < _list624.size; ++_i626) + org.apache.thrift.protocol.TList _list640 = iprot.readListBegin(); + struct.success = new ArrayList(_list640.size); + String _elem641; + for (int _i642 = 0; _i642 < _list640.size; ++_i642) { - _elem625 = iprot.readString(); - struct.success.add(_elem625); + _elem641 = iprot.readString(); + struct.success.add(_elem641); } iprot.readListEnd(); } @@ -29340,9 +29642,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 _iter627 : struct.success) + for (String _iter643 : struct.success) { - oprot.writeString(_iter627); + oprot.writeString(_iter643); } oprot.writeListEnd(); } @@ -29381,9 +29683,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_databases_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter628 : struct.success) + for (String _iter644 : struct.success) { - oprot.writeString(_iter628); + oprot.writeString(_iter644); } } } @@ -29398,13 +29700,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 _list629 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list629.size); - String _elem630; - for (int _i631 = 0; _i631 < _list629.size; ++_i631) + org.apache.thrift.protocol.TList _list645 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list645.size); + String _elem646; + for (int _i647 = 0; _i647 < _list645.size; ++_i647) { - _elem630 = iprot.readString(); - struct.success.add(_elem630); + _elem646 = iprot.readString(); + struct.success.add(_elem646); } } struct.setSuccessIsSet(true); @@ -34011,16 +34313,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 _map632 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map632.size); - String _key633; - Type _val634; - for (int _i635 = 0; _i635 < _map632.size; ++_i635) + org.apache.thrift.protocol.TMap _map648 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map648.size); + String _key649; + Type _val650; + for (int _i651 = 0; _i651 < _map648.size; ++_i651) { - _key633 = iprot.readString(); - _val634 = new Type(); - _val634.read(iprot); - struct.success.put(_key633, _val634); + _key649 = iprot.readString(); + _val650 = new Type(); + _val650.read(iprot); + struct.success.put(_key649, _val650); } iprot.readMapEnd(); } @@ -34055,10 +34357,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 _iter636 : struct.success.entrySet()) + for (Map.Entry _iter652 : struct.success.entrySet()) { - oprot.writeString(_iter636.getKey()); - _iter636.getValue().write(oprot); + oprot.writeString(_iter652.getKey()); + _iter652.getValue().write(oprot); } oprot.writeMapEnd(); } @@ -34097,10 +34399,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 _iter637 : struct.success.entrySet()) + for (Map.Entry _iter653 : struct.success.entrySet()) { - oprot.writeString(_iter637.getKey()); - _iter637.getValue().write(oprot); + oprot.writeString(_iter653.getKey()); + _iter653.getValue().write(oprot); } } } @@ -34115,16 +34417,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 _map638 = 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*_map638.size); - String _key639; - Type _val640; - for (int _i641 = 0; _i641 < _map638.size; ++_i641) + org.apache.thrift.protocol.TMap _map654 = 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*_map654.size); + String _key655; + Type _val656; + for (int _i657 = 0; _i657 < _map654.size; ++_i657) { - _key639 = iprot.readString(); - _val640 = new Type(); - _val640.read(iprot); - struct.success.put(_key639, _val640); + _key655 = iprot.readString(); + _val656 = new Type(); + _val656.read(iprot); + struct.success.put(_key655, _val656); } } struct.setSuccessIsSet(true); @@ -35159,14 +35461,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 _list642 = iprot.readListBegin(); - struct.success = new ArrayList(_list642.size); - FieldSchema _elem643; - for (int _i644 = 0; _i644 < _list642.size; ++_i644) + org.apache.thrift.protocol.TList _list658 = iprot.readListBegin(); + struct.success = new ArrayList(_list658.size); + FieldSchema _elem659; + for (int _i660 = 0; _i660 < _list658.size; ++_i660) { - _elem643 = new FieldSchema(); - _elem643.read(iprot); - struct.success.add(_elem643); + _elem659 = new FieldSchema(); + _elem659.read(iprot); + struct.success.add(_elem659); } iprot.readListEnd(); } @@ -35219,9 +35521,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 _iter645 : struct.success) + for (FieldSchema _iter661 : struct.success) { - _iter645.write(oprot); + _iter661.write(oprot); } oprot.writeListEnd(); } @@ -35276,9 +35578,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter646 : struct.success) + for (FieldSchema _iter662 : struct.success) { - _iter646.write(oprot); + _iter662.write(oprot); } } } @@ -35299,14 +35601,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 _list647 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list647.size); - FieldSchema _elem648; - for (int _i649 = 0; _i649 < _list647.size; ++_i649) + org.apache.thrift.protocol.TList _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list663.size); + FieldSchema _elem664; + for (int _i665 = 0; _i665 < _list663.size; ++_i665) { - _elem648 = new FieldSchema(); - _elem648.read(iprot); - struct.success.add(_elem648); + _elem664 = new FieldSchema(); + _elem664.read(iprot); + struct.success.add(_elem664); } } struct.setSuccessIsSet(true); @@ -36460,14 +36762,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_fields_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list650 = iprot.readListBegin(); - struct.success = new ArrayList(_list650.size); - FieldSchema _elem651; - for (int _i652 = 0; _i652 < _list650.size; ++_i652) + org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); + struct.success = new ArrayList(_list666.size); + FieldSchema _elem667; + for (int _i668 = 0; _i668 < _list666.size; ++_i668) { - _elem651 = new FieldSchema(); - _elem651.read(iprot); - struct.success.add(_elem651); + _elem667 = new FieldSchema(); + _elem667.read(iprot); + struct.success.add(_elem667); } iprot.readListEnd(); } @@ -36520,9 +36822,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_fields_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter653 : struct.success) + for (FieldSchema _iter669 : struct.success) { - _iter653.write(oprot); + _iter669.write(oprot); } oprot.writeListEnd(); } @@ -36577,9 +36879,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_fields_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter654 : struct.success) + for (FieldSchema _iter670 : struct.success) { - _iter654.write(oprot); + _iter670.write(oprot); } } } @@ -36600,14 +36902,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_fields_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list655 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list655.size); - FieldSchema _elem656; - for (int _i657 = 0; _i657 < _list655.size; ++_i657) + org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list671.size); + FieldSchema _elem672; + for (int _i673 = 0; _i673 < _list671.size; ++_i673) { - _elem656 = new FieldSchema(); - _elem656.read(iprot); - struct.success.add(_elem656); + _elem672 = new FieldSchema(); + _elem672.read(iprot); + struct.success.add(_elem672); } } struct.setSuccessIsSet(true); @@ -37652,14 +37954,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 _list658 = iprot.readListBegin(); - struct.success = new ArrayList(_list658.size); - FieldSchema _elem659; - for (int _i660 = 0; _i660 < _list658.size; ++_i660) + org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); + struct.success = new ArrayList(_list674.size); + FieldSchema _elem675; + for (int _i676 = 0; _i676 < _list674.size; ++_i676) { - _elem659 = new FieldSchema(); - _elem659.read(iprot); - struct.success.add(_elem659); + _elem675 = new FieldSchema(); + _elem675.read(iprot); + struct.success.add(_elem675); } iprot.readListEnd(); } @@ -37712,9 +38014,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 _iter661 : struct.success) + for (FieldSchema _iter677 : struct.success) { - _iter661.write(oprot); + _iter677.write(oprot); } oprot.writeListEnd(); } @@ -37769,9 +38071,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter662 : struct.success) + for (FieldSchema _iter678 : struct.success) { - _iter662.write(oprot); + _iter678.write(oprot); } } } @@ -37792,14 +38094,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 _list663 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list663.size); - FieldSchema _elem664; - for (int _i665 = 0; _i665 < _list663.size; ++_i665) + org.apache.thrift.protocol.TList _list679 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list679.size); + FieldSchema _elem680; + for (int _i681 = 0; _i681 < _list679.size; ++_i681) { - _elem664 = new FieldSchema(); - _elem664.read(iprot); - struct.success.add(_elem664); + _elem680 = new FieldSchema(); + _elem680.read(iprot); + struct.success.add(_elem680); } } struct.setSuccessIsSet(true); @@ -38953,14 +39255,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_schema_with_env case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list666 = iprot.readListBegin(); - struct.success = new ArrayList(_list666.size); - FieldSchema _elem667; - for (int _i668 = 0; _i668 < _list666.size; ++_i668) + org.apache.thrift.protocol.TList _list682 = iprot.readListBegin(); + struct.success = new ArrayList(_list682.size); + FieldSchema _elem683; + for (int _i684 = 0; _i684 < _list682.size; ++_i684) { - _elem667 = new FieldSchema(); - _elem667.read(iprot); - struct.success.add(_elem667); + _elem683 = new FieldSchema(); + _elem683.read(iprot); + struct.success.add(_elem683); } iprot.readListEnd(); } @@ -39013,9 +39315,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_schema_with_en oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (FieldSchema _iter669 : struct.success) + for (FieldSchema _iter685 : struct.success) { - _iter669.write(oprot); + _iter685.write(oprot); } oprot.writeListEnd(); } @@ -39070,9 +39372,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_schema_with_env if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (FieldSchema _iter670 : struct.success) + for (FieldSchema _iter686 : struct.success) { - _iter670.write(oprot); + _iter686.write(oprot); } } } @@ -39093,14 +39395,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_schema_with_envi BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list671 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list671.size); - FieldSchema _elem672; - for (int _i673 = 0; _i673 < _list671.size; ++_i673) + org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list687.size); + FieldSchema _elem688; + for (int _i689 = 0; _i689 < _list687.size; ++_i689) { - _elem672 = new FieldSchema(); - _elem672.read(iprot); - struct.success.add(_elem672); + _elem688 = new FieldSchema(); + _elem688.read(iprot); + struct.success.add(_elem688); } } struct.setSuccessIsSet(true); @@ -41825,14 +42127,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 2: // PRIMARY_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list674 = iprot.readListBegin(); - struct.primaryKeys = new ArrayList(_list674.size); - SQLPrimaryKey _elem675; - for (int _i676 = 0; _i676 < _list674.size; ++_i676) + org.apache.thrift.protocol.TList _list690 = iprot.readListBegin(); + struct.primaryKeys = new ArrayList(_list690.size); + SQLPrimaryKey _elem691; + for (int _i692 = 0; _i692 < _list690.size; ++_i692) { - _elem675 = new SQLPrimaryKey(); - _elem675.read(iprot); - struct.primaryKeys.add(_elem675); + _elem691 = new SQLPrimaryKey(); + _elem691.read(iprot); + struct.primaryKeys.add(_elem691); } iprot.readListEnd(); } @@ -41844,14 +42146,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, create_table_with_c case 3: // FOREIGN_KEYS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list677 = iprot.readListBegin(); - struct.foreignKeys = new ArrayList(_list677.size); - SQLForeignKey _elem678; - for (int _i679 = 0; _i679 < _list677.size; ++_i679) + org.apache.thrift.protocol.TList _list693 = iprot.readListBegin(); + struct.foreignKeys = new ArrayList(_list693.size); + SQLForeignKey _elem694; + for (int _i695 = 0; _i695 < _list693.size; ++_i695) { - _elem678 = new SQLForeignKey(); - _elem678.read(iprot); - struct.foreignKeys.add(_elem678); + _elem694 = new SQLForeignKey(); + _elem694.read(iprot); + struct.foreignKeys.add(_elem694); } iprot.readListEnd(); } @@ -41882,9 +42184,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(PRIMARY_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.primaryKeys.size())); - for (SQLPrimaryKey _iter680 : struct.primaryKeys) + for (SQLPrimaryKey _iter696 : struct.primaryKeys) { - _iter680.write(oprot); + _iter696.write(oprot); } oprot.writeListEnd(); } @@ -41894,9 +42196,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, create_table_with_ oprot.writeFieldBegin(FOREIGN_KEYS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.foreignKeys.size())); - for (SQLForeignKey _iter681 : struct.foreignKeys) + for (SQLForeignKey _iter697 : struct.foreignKeys) { - _iter681.write(oprot); + _iter697.write(oprot); } oprot.writeListEnd(); } @@ -41936,18 +42238,18 @@ public void write(org.apache.thrift.protocol.TProtocol prot, create_table_with_c if (struct.isSetPrimaryKeys()) { { oprot.writeI32(struct.primaryKeys.size()); - for (SQLPrimaryKey _iter682 : struct.primaryKeys) + for (SQLPrimaryKey _iter698 : struct.primaryKeys) { - _iter682.write(oprot); + _iter698.write(oprot); } } } if (struct.isSetForeignKeys()) { { oprot.writeI32(struct.foreignKeys.size()); - for (SQLForeignKey _iter683 : struct.foreignKeys) + for (SQLForeignKey _iter699 : struct.foreignKeys) { - _iter683.write(oprot); + _iter699.write(oprot); } } } @@ -41964,28 +42266,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, create_table_with_co } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list684 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.primaryKeys = new ArrayList(_list684.size); - SQLPrimaryKey _elem685; - for (int _i686 = 0; _i686 < _list684.size; ++_i686) + org.apache.thrift.protocol.TList _list700 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.primaryKeys = new ArrayList(_list700.size); + SQLPrimaryKey _elem701; + for (int _i702 = 0; _i702 < _list700.size; ++_i702) { - _elem685 = new SQLPrimaryKey(); - _elem685.read(iprot); - struct.primaryKeys.add(_elem685); + _elem701 = new SQLPrimaryKey(); + _elem701.read(iprot); + struct.primaryKeys.add(_elem701); } } struct.setPrimaryKeysIsSet(true); } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list687 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.foreignKeys = new ArrayList(_list687.size); - SQLForeignKey _elem688; - for (int _i689 = 0; _i689 < _list687.size; ++_i689) + org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.foreignKeys = new ArrayList(_list703.size); + SQLForeignKey _elem704; + for (int _i705 = 0; _i705 < _list703.size; ++_i705) { - _elem688 = new SQLForeignKey(); - _elem688.read(iprot); - struct.foreignKeys.add(_elem688); + _elem704 = new SQLForeignKey(); + _elem704.read(iprot); + struct.foreignKeys.add(_elem704); } } struct.setForeignKeysIsSet(true); @@ -42844,12 +43146,1670 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_constraint_args) - return this.equals((drop_constraint_args)that); + if (that instanceof drop_constraint_args) + return this.equals((drop_constraint_args)that); + return false; + } + + public boolean equals(drop_constraint_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_constraint_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("drop_constraint_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + 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 (req != null) { + req.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 drop_constraint_argsStandardSchemeFactory implements SchemeFactory { + public drop_constraint_argsStandardScheme getScheme() { + return new drop_constraint_argsStandardScheme(); + } + } + + private static class drop_constraint_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new DropConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, drop_constraint_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { + public drop_constraint_argsTupleScheme getScheme() { + return new drop_constraint_argsTupleScheme(); + } + } + + private static class drop_constraint_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new DropConstraintRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + public static class drop_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_result"); + + 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_constraint_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); + } + + private NoSuchObjectException o1; // required + private MetaException o3; // 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 { + O1((short)1, "o1"), + O3((short)2, "o3"); + + 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: // O1 + return O1; + case 2: // O3 + return O3; + 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.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.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", 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(drop_constraint_result.class, metaDataMap); + } + + public drop_constraint_result() { + } + + public drop_constraint_result( + NoSuchObjectException o1, + MetaException o3) + { + this(); + this.o1 = o1; + this.o3 = o3; + } + + /** + * Performs a deep copy on other. + */ + public drop_constraint_result(drop_constraint_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO3()) { + this.o3 = new MetaException(other.o3); + } + } + + public drop_constraint_result deepCopy() { + return new drop_constraint_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o3 = 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 getO3() { + return this.o3; + } + + public void setO3(MetaException 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 void setFieldValue(_Fields field, Object value) { + switch (field) { + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O3: + if (value == null) { + unsetO3(); + } else { + setO3((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O3: + return getO3(); + + } + 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 O1: + return isSetO1(); + case O3: + return isSetO3(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof drop_constraint_result) + return this.equals((drop_constraint_result)that); + return false; + } + + public boolean equals(drop_constraint_result that) { + if (that == null) + 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_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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o3 = true && (isSetO3()); + list.add(present_o3); + if (present_o3) + list.add(o3); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_constraint_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO3()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + 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("drop_constraint_result("); + boolean first = true; + + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o3:"); + if (this.o3 == null) { + sb.append("null"); + } else { + sb.append(this.o3); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class drop_constraint_resultStandardSchemeFactory implements SchemeFactory { + public drop_constraint_resultStandardScheme getScheme() { + return new drop_constraint_resultStandardScheme(); + } + } + + private static class drop_constraint_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_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 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: // O3 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(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, drop_constraint_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o3 != null) { + oprot.writeFieldBegin(O3_FIELD_DESC); + struct.o3.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { + public drop_constraint_resultTupleScheme getScheme() { + return new drop_constraint_resultTupleScheme(); + } + } + + private static class drop_constraint_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO3()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO3()) { + struct.o3.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o3 = new MetaException(); + struct.o3.read(iprot); + struct.setO3IsSet(true); + } + } + } + + } + + public static class add_primary_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_primary_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_argsTupleSchemeFactory()); + } + + private AddPrimaryKeyRequest req; // 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 { + REQ((short)1, "req"); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddPrimaryKeyRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_primary_key_args.class, metaDataMap); + } + + public add_primary_key_args() { + } + + public add_primary_key_args( + AddPrimaryKeyRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_primary_key_args(add_primary_key_args other) { + if (other.isSetReq()) { + this.req = new AddPrimaryKeyRequest(other.req); + } + } + + public add_primary_key_args deepCopy() { + return new add_primary_key_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddPrimaryKeyRequest getReq() { + return this.req; + } + + public void setReq(AddPrimaryKeyRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddPrimaryKeyRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_primary_key_args) + return this.equals((add_primary_key_args)that); + return false; + } + + public boolean equals(add_primary_key_args that) { + if (that == null) + return false; + + boolean this_present_req = true && this.isSetReq(); + boolean that_present_req = true && that.isSetReq(); + if (this_present_req || that_present_req) { + if (!(this_present_req && that_present_req)) + return false; + if (!this.req.equals(that.req)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_req = true && (isSetReq()); + list.add(present_req); + if (present_req) + list.add(req); + + return list.hashCode(); + } + + @Override + public int compareTo(add_primary_key_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetReq()).compareTo(other.isSetReq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetReq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.req, other.req); + 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("add_primary_key_args("); + boolean first = true; + + sb.append("req:"); + if (this.req == null) { + sb.append("null"); + } else { + sb.append(this.req); + } + 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 (req != null) { + req.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 add_primary_key_argsStandardSchemeFactory implements SchemeFactory { + public add_primary_key_argsStandardScheme getScheme() { + return new add_primary_key_argsStandardScheme(); + } + } + + private static class add_primary_key_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_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: // REQ + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.req = new AddPrimaryKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(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, add_primary_key_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.req != null) { + oprot.writeFieldBegin(REQ_FIELD_DESC); + struct.req.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_primary_key_argsTupleSchemeFactory implements SchemeFactory { + public add_primary_key_argsTupleScheme getScheme() { + return new add_primary_key_argsTupleScheme(); + } + } + + private static class add_primary_key_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetReq()) { + optionals.set(0); + } + oprot.writeBitSet(optionals, 1); + if (struct.isSetReq()) { + struct.req.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(1); + if (incoming.get(0)) { + struct.req = new AddPrimaryKeyRequest(); + struct.req.read(iprot); + struct.setReqIsSet(true); + } + } + } + + } + + public static class add_primary_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_primary_key_result"); + + 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 add_primary_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_primary_key_resultTupleSchemeFactory()); + } + + 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 { + 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 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.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(add_primary_key_result.class, metaDataMap); + } + + public add_primary_key_result() { + } + + public add_primary_key_result( + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public add_primary_key_result(add_primary_key_result other) { + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public add_primary_key_result deepCopy() { + return new add_primary_key_result(this); + } + + @Override + public void clear() { + this.o1 = null; + this.o2 = 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 O1: + if (value == null) { + unsetO1(); + } else { + setO1((NoSuchObjectException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((MetaException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case O1: + return getO1(); + + case O2: + return getO2(); + + } + 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 O1: + return isSetO1(); + case O2: + return isSetO2(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_primary_key_result) + return this.equals((add_primary_key_result)that); + return false; + } + + public boolean equals(add_primary_key_result that) { + if (that == null) + 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; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_o1 = true && (isSetO1()); + list.add(present_o1); + if (present_o1) + list.add(o1); + + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); + + return list.hashCode(); + } + + @Override + public int compareTo(add_primary_key_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetO1()).compareTo(other.isSetO1()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO1()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o1, other.o1); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); + 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("add_primary_key_result("); + boolean first = true; + + 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; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class add_primary_key_resultStandardSchemeFactory implements SchemeFactory { + public add_primary_key_resultStandardScheme getScheme() { + return new add_primary_key_resultStandardScheme(); + } + } + + private static class add_primary_key_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, add_primary_key_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 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; + 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, add_primary_key_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + 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(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class add_primary_key_resultTupleSchemeFactory implements SchemeFactory { + public add_primary_key_resultTupleScheme getScheme() { + return new add_primary_key_resultTupleScheme(); + } + } + + private static class add_primary_key_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetO1()) { + optionals.set(0); + } + if (struct.isSetO2()) { + optionals.set(1); + } + oprot.writeBitSet(optionals, 2); + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, add_primary_key_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(1)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + public static class add_foreign_key_args implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_args"); + + private static final org.apache.thrift.protocol.TField REQ_FIELD_DESC = new org.apache.thrift.protocol.TField("req", org.apache.thrift.protocol.TType.STRUCT, (short)1); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new add_foreign_key_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_argsTupleSchemeFactory()); + } + + private AddForeignKeyRequest req; // 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 { + REQ((short)1, "req"); + + 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: // REQ + return REQ; + 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.REQ, new org.apache.thrift.meta_data.FieldMetaData("req", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AddForeignKeyRequest.class))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_args.class, metaDataMap); + } + + public add_foreign_key_args() { + } + + public add_foreign_key_args( + AddForeignKeyRequest req) + { + this(); + this.req = req; + } + + /** + * Performs a deep copy on other. + */ + public add_foreign_key_args(add_foreign_key_args other) { + if (other.isSetReq()) { + this.req = new AddForeignKeyRequest(other.req); + } + } + + public add_foreign_key_args deepCopy() { + return new add_foreign_key_args(this); + } + + @Override + public void clear() { + this.req = null; + } + + public AddForeignKeyRequest getReq() { + return this.req; + } + + public void setReq(AddForeignKeyRequest req) { + this.req = req; + } + + public void unsetReq() { + this.req = null; + } + + /** Returns true if field req is set (has been assigned a value) and false otherwise */ + public boolean isSetReq() { + return this.req != null; + } + + public void setReqIsSet(boolean value) { + if (!value) { + this.req = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case REQ: + if (value == null) { + unsetReq(); + } else { + setReq((AddForeignKeyRequest)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case REQ: + return getReq(); + + } + 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 REQ: + return isSetReq(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof add_foreign_key_args) + return this.equals((add_foreign_key_args)that); return false; } - public boolean equals(drop_constraint_args that) { + public boolean equals(add_foreign_key_args that) { if (that == null) return false; @@ -42878,7 +44838,7 @@ public int hashCode() { } @Override - public int compareTo(drop_constraint_args other) { + public int compareTo(add_foreign_key_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -42912,7 +44872,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_args("); + StringBuilder sb = new StringBuilder("add_foreign_key_args("); boolean first = true; sb.append("req:"); @@ -42950,15 +44910,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_constraint_argsStandardSchemeFactory implements SchemeFactory { - public drop_constraint_argsStandardScheme getScheme() { - return new drop_constraint_argsStandardScheme(); + private static class add_foreign_key_argsStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_argsStandardScheme getScheme() { + return new add_foreign_key_argsStandardScheme(); } } - private static class drop_constraint_argsStandardScheme extends StandardScheme { + private static class add_foreign_key_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -42970,7 +44930,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_arg switch (schemeField.id) { case 1: // REQ if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.req = new DropConstraintRequest(); + struct.req = new AddForeignKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } else { @@ -42986,7 +44946,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43001,16 +44961,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_ar } - private static class drop_constraint_argsTupleSchemeFactory implements SchemeFactory { - public drop_constraint_argsTupleScheme getScheme() { - return new drop_constraint_argsTupleScheme(); + private static class add_foreign_key_argsTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_argsTupleScheme getScheme() { + return new add_foreign_key_argsTupleScheme(); } } - private static class drop_constraint_argsTupleScheme extends TupleScheme { + private static class add_foreign_key_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetReq()) { @@ -43023,11 +44983,11 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_arg } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { - struct.req = new DropConstraintRequest(); + struct.req = new AddForeignKeyRequest(); struct.req.read(iprot); struct.setReqIsSet(true); } @@ -43036,25 +44996,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_args } - public static class drop_constraint_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { - private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("drop_constraint_result"); + public static class add_foreign_key_result implements org.apache.thrift.TBase, java.io.Serializable, Cloneable, Comparable { + private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("add_foreign_key_result"); 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 O3_FIELD_DESC = new org.apache.thrift.protocol.TField("o3", org.apache.thrift.protocol.TType.STRUCT, (short)2); + 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 drop_constraint_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_constraint_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new add_foreign_key_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new add_foreign_key_resultTupleSchemeFactory()); } private NoSuchObjectException o1; // required - private MetaException o3; // 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 { O1((short)1, "o1"), - O3((short)2, "o3"); + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -43071,8 +45031,8 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 1: // O1 return O1; - case 2: // O3 - return O3; + case 2: // O2 + return O2; default: return null; } @@ -43118,44 +45078,44 @@ public String getFieldName() { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.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.O3, new org.apache.thrift.meta_data.FieldMetaData("o3", org.apache.thrift.TFieldRequirementType.DEFAULT, + 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(drop_constraint_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(add_foreign_key_result.class, metaDataMap); } - public drop_constraint_result() { + public add_foreign_key_result() { } - public drop_constraint_result( + public add_foreign_key_result( NoSuchObjectException o1, - MetaException o3) + MetaException o2) { this(); this.o1 = o1; - this.o3 = o3; + this.o2 = o2; } /** * Performs a deep copy on other. */ - public drop_constraint_result(drop_constraint_result other) { + public add_foreign_key_result(add_foreign_key_result other) { if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } - if (other.isSetO3()) { - this.o3 = new MetaException(other.o3); + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); } } - public drop_constraint_result deepCopy() { - return new drop_constraint_result(this); + public add_foreign_key_result deepCopy() { + return new add_foreign_key_result(this); } @Override public void clear() { this.o1 = null; - this.o3 = null; + this.o2 = null; } public NoSuchObjectException getO1() { @@ -43181,26 +45141,26 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO3() { - return this.o3; + public MetaException getO2() { + return this.o2; } - public void setO3(MetaException o3) { - this.o3 = o3; + public void setO2(MetaException o2) { + this.o2 = o2; } - public void unsetO3() { - this.o3 = null; + public void unsetO2() { + this.o2 = null; } - /** Returns true if field o3 is set (has been assigned a value) and false otherwise */ - public boolean isSetO3() { - return this.o3 != 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 setO3IsSet(boolean value) { + public void setO2IsSet(boolean value) { if (!value) { - this.o3 = null; + this.o2 = null; } } @@ -43214,11 +45174,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case O3: + case O2: if (value == null) { - unsetO3(); + unsetO2(); } else { - setO3((MetaException)value); + setO2((MetaException)value); } break; @@ -43230,8 +45190,8 @@ public Object getFieldValue(_Fields field) { case O1: return getO1(); - case O3: - return getO3(); + case O2: + return getO2(); } throw new IllegalStateException(); @@ -43246,8 +45206,8 @@ public boolean isSet(_Fields field) { switch (field) { case O1: return isSetO1(); - case O3: - return isSetO3(); + case O2: + return isSetO2(); } throw new IllegalStateException(); } @@ -43256,12 +45216,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_constraint_result) - return this.equals((drop_constraint_result)that); + if (that instanceof add_foreign_key_result) + return this.equals((add_foreign_key_result)that); return false; } - public boolean equals(drop_constraint_result that) { + public boolean equals(add_foreign_key_result that) { if (that == null) return false; @@ -43274,12 +45234,12 @@ public boolean equals(drop_constraint_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)) + 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.o3.equals(that.o3)) + if (!this.o2.equals(that.o2)) return false; } @@ -43295,16 +45255,16 @@ public int hashCode() { if (present_o1) list.add(o1); - boolean present_o3 = true && (isSetO3()); - list.add(present_o3); - if (present_o3) - list.add(o3); + boolean present_o2 = true && (isSetO2()); + list.add(present_o2); + if (present_o2) + list.add(o2); return list.hashCode(); } @Override - public int compareTo(drop_constraint_result other) { + public int compareTo(add_foreign_key_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -43321,12 +45281,12 @@ public int compareTo(drop_constraint_result other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetO3()).compareTo(other.isSetO3()); + lastComparison = Boolean.valueOf(isSetO2()).compareTo(other.isSetO2()); if (lastComparison != 0) { return lastComparison; } - if (isSetO3()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o3, other.o3); + if (isSetO2()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.o2, other.o2); if (lastComparison != 0) { return lastComparison; } @@ -43348,7 +45308,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_constraint_result("); + StringBuilder sb = new StringBuilder("add_foreign_key_result("); boolean first = true; sb.append("o1:"); @@ -43359,11 +45319,11 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o3:"); - if (this.o3 == null) { + sb.append("o2:"); + if (this.o2 == null) { sb.append("null"); } else { - sb.append(this.o3); + sb.append(this.o2); } first = false; sb.append(")"); @@ -43391,15 +45351,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_constraint_resultStandardSchemeFactory implements SchemeFactory { - public drop_constraint_resultStandardScheme getScheme() { - return new drop_constraint_resultStandardScheme(); + private static class add_foreign_key_resultStandardSchemeFactory implements SchemeFactory { + public add_foreign_key_resultStandardScheme getScheme() { + return new add_foreign_key_resultStandardScheme(); } } - private static class drop_constraint_resultStandardScheme extends StandardScheme { + private static class add_foreign_key_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, add_foreign_key_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -43418,11 +45378,11 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // O3 + case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -43436,7 +45396,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_constraint_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, add_foreign_key_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -43445,9 +45405,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_re struct.o1.write(oprot); oprot.writeFieldEnd(); } - if (struct.o3 != null) { - oprot.writeFieldBegin(O3_FIELD_DESC); - struct.o3.write(oprot); + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); @@ -43456,35 +45416,35 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_constraint_re } - private static class drop_constraint_resultTupleSchemeFactory implements SchemeFactory { - public drop_constraint_resultTupleScheme getScheme() { - return new drop_constraint_resultTupleScheme(); + private static class add_foreign_key_resultTupleSchemeFactory implements SchemeFactory { + public add_foreign_key_resultTupleScheme getScheme() { + return new add_foreign_key_resultTupleScheme(); } } - private static class drop_constraint_resultTupleScheme extends TupleScheme { + private static class add_foreign_key_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetO1()) { optionals.set(0); } - if (struct.isSetO3()) { + if (struct.isSetO2()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetO1()) { struct.o1.write(oprot); } - if (struct.isSetO3()) { - struct.o3.write(oprot); + if (struct.isSetO2()) { + struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, add_foreign_key_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { @@ -43493,9 +45453,9 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_constraint_resu struct.setO1IsSet(true); } if (incoming.get(1)) { - struct.o3 = new MetaException(); - struct.o3.read(iprot); - struct.setO3IsSet(true); + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); } } } @@ -46526,13 +48486,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 _list690 = iprot.readListBegin(); - struct.success = new ArrayList(_list690.size); - String _elem691; - for (int _i692 = 0; _i692 < _list690.size; ++_i692) + org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); + struct.success = new ArrayList(_list706.size); + String _elem707; + for (int _i708 = 0; _i708 < _list706.size; ++_i708) { - _elem691 = iprot.readString(); - struct.success.add(_elem691); + _elem707 = iprot.readString(); + struct.success.add(_elem707); } iprot.readListEnd(); } @@ -46567,9 +48527,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 _iter693 : struct.success) + for (String _iter709 : struct.success) { - oprot.writeString(_iter693); + oprot.writeString(_iter709); } oprot.writeListEnd(); } @@ -46608,9 +48568,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_tables_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter694 : struct.success) + for (String _iter710 : struct.success) { - oprot.writeString(_iter694); + oprot.writeString(_iter710); } } } @@ -46625,13 +48585,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 _list695 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list695.size); - String _elem696; - for (int _i697 = 0; _i697 < _list695.size; ++_i697) + org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list711.size); + String _elem712; + for (int _i713 = 0; _i713 < _list711.size; ++_i713) { - _elem696 = iprot.readString(); - struct.success.add(_elem696); + _elem712 = iprot.readString(); + struct.success.add(_elem712); } } struct.setSuccessIsSet(true); @@ -47136,13 +49096,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_args case 3: // TBL_TYPES if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list698 = iprot.readListBegin(); - struct.tbl_types = new ArrayList(_list698.size); - String _elem699; - for (int _i700 = 0; _i700 < _list698.size; ++_i700) + org.apache.thrift.protocol.TList _list714 = iprot.readListBegin(); + struct.tbl_types = new ArrayList(_list714.size); + String _elem715; + for (int _i716 = 0; _i716 < _list714.size; ++_i716) { - _elem699 = iprot.readString(); - struct.tbl_types.add(_elem699); + _elem715 = iprot.readString(); + struct.tbl_types.add(_elem715); } iprot.readListEnd(); } @@ -47178,9 +49138,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_arg oprot.writeFieldBegin(TBL_TYPES_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.tbl_types.size())); - for (String _iter701 : struct.tbl_types) + for (String _iter717 : struct.tbl_types) { - oprot.writeString(_iter701); + oprot.writeString(_iter717); } oprot.writeListEnd(); } @@ -47223,9 +49183,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args if (struct.isSetTbl_types()) { { oprot.writeI32(struct.tbl_types.size()); - for (String _iter702 : struct.tbl_types) + for (String _iter718 : struct.tbl_types) { - oprot.writeString(_iter702); + oprot.writeString(_iter718); } } } @@ -47245,13 +49205,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list703 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_types = new ArrayList(_list703.size); - String _elem704; - for (int _i705 = 0; _i705 < _list703.size; ++_i705) + org.apache.thrift.protocol.TList _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_types = new ArrayList(_list719.size); + String _elem720; + for (int _i721 = 0; _i721 < _list719.size; ++_i721) { - _elem704 = iprot.readString(); - struct.tbl_types.add(_elem704); + _elem720 = iprot.readString(); + struct.tbl_types.add(_elem720); } } struct.setTbl_typesIsSet(true); @@ -47657,14 +49617,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_table_meta_resu case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list706 = iprot.readListBegin(); - struct.success = new ArrayList(_list706.size); - TableMeta _elem707; - for (int _i708 = 0; _i708 < _list706.size; ++_i708) + org.apache.thrift.protocol.TList _list722 = iprot.readListBegin(); + struct.success = new ArrayList(_list722.size); + TableMeta _elem723; + for (int _i724 = 0; _i724 < _list722.size; ++_i724) { - _elem707 = new TableMeta(); - _elem707.read(iprot); - struct.success.add(_elem707); + _elem723 = new TableMeta(); + _elem723.read(iprot); + struct.success.add(_elem723); } iprot.readListEnd(); } @@ -47699,9 +49659,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_table_meta_res oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (TableMeta _iter709 : struct.success) + for (TableMeta _iter725 : struct.success) { - _iter709.write(oprot); + _iter725.write(oprot); } oprot.writeListEnd(); } @@ -47740,9 +49700,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (TableMeta _iter710 : struct.success) + for (TableMeta _iter726 : struct.success) { - _iter710.write(oprot); + _iter726.write(oprot); } } } @@ -47757,14 +49717,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_meta_resul BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list711 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list711.size); - TableMeta _elem712; - for (int _i713 = 0; _i713 < _list711.size; ++_i713) + org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list727.size); + TableMeta _elem728; + for (int _i729 = 0; _i729 < _list727.size; ++_i729) { - _elem712 = new TableMeta(); - _elem712.read(iprot); - struct.success.add(_elem712); + _elem728 = new TableMeta(); + _elem728.read(iprot); + struct.success.add(_elem728); } } struct.setSuccessIsSet(true); @@ -48530,13 +50490,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 _list714 = iprot.readListBegin(); - struct.success = new ArrayList(_list714.size); - String _elem715; - for (int _i716 = 0; _i716 < _list714.size; ++_i716) + org.apache.thrift.protocol.TList _list730 = iprot.readListBegin(); + struct.success = new ArrayList(_list730.size); + String _elem731; + for (int _i732 = 0; _i732 < _list730.size; ++_i732) { - _elem715 = iprot.readString(); - struct.success.add(_elem715); + _elem731 = iprot.readString(); + struct.success.add(_elem731); } iprot.readListEnd(); } @@ -48571,9 +50531,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 _iter717 : struct.success) + for (String _iter733 : struct.success) { - oprot.writeString(_iter717); + oprot.writeString(_iter733); } oprot.writeListEnd(); } @@ -48612,9 +50572,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_tables_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter718 : struct.success) + for (String _iter734 : struct.success) { - oprot.writeString(_iter718); + oprot.writeString(_iter734); } } } @@ -48629,13 +50589,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 _list719 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list719.size); - String _elem720; - for (int _i721 = 0; _i721 < _list719.size; ++_i721) + org.apache.thrift.protocol.TList _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list735.size); + String _elem736; + for (int _i737 = 0; _i737 < _list735.size; ++_i737) { - _elem720 = iprot.readString(); - struct.success.add(_elem720); + _elem736 = iprot.readString(); + struct.success.add(_elem736); } } struct.setSuccessIsSet(true); @@ -50088,13 +52048,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 _list722 = iprot.readListBegin(); - struct.tbl_names = new ArrayList(_list722.size); - String _elem723; - for (int _i724 = 0; _i724 < _list722.size; ++_i724) + org.apache.thrift.protocol.TList _list738 = iprot.readListBegin(); + struct.tbl_names = new ArrayList(_list738.size); + String _elem739; + for (int _i740 = 0; _i740 < _list738.size; ++_i740) { - _elem723 = iprot.readString(); - struct.tbl_names.add(_elem723); + _elem739 = iprot.readString(); + struct.tbl_names.add(_elem739); } iprot.readListEnd(); } @@ -50125,9 +52085,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 _iter725 : struct.tbl_names) + for (String _iter741 : struct.tbl_names) { - oprot.writeString(_iter725); + oprot.writeString(_iter741); } oprot.writeListEnd(); } @@ -50164,9 +52124,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 _iter726 : struct.tbl_names) + for (String _iter742 : struct.tbl_names) { - oprot.writeString(_iter726); + oprot.writeString(_iter742); } } } @@ -50182,13 +52142,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_table_objects_by } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list727 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.tbl_names = new ArrayList(_list727.size); - String _elem728; - for (int _i729 = 0; _i729 < _list727.size; ++_i729) + org.apache.thrift.protocol.TList _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.tbl_names = new ArrayList(_list743.size); + String _elem744; + for (int _i745 = 0; _i745 < _list743.size; ++_i745) { - _elem728 = iprot.readString(); - struct.tbl_names.add(_elem728); + _elem744 = iprot.readString(); + struct.tbl_names.add(_elem744); } } struct.setTbl_namesIsSet(true); @@ -50756,14 +52716,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 _list730 = iprot.readListBegin(); - struct.success = new ArrayList
(_list730.size); - Table _elem731; - for (int _i732 = 0; _i732 < _list730.size; ++_i732) + org.apache.thrift.protocol.TList _list746 = iprot.readListBegin(); + struct.success = new ArrayList
(_list746.size); + Table _elem747; + for (int _i748 = 0; _i748 < _list746.size; ++_i748) { - _elem731 = new Table(); - _elem731.read(iprot); - struct.success.add(_elem731); + _elem747 = new Table(); + _elem747.read(iprot); + struct.success.add(_elem747); } iprot.readListEnd(); } @@ -50816,9 +52776,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 _iter733 : struct.success) + for (Table _iter749 : struct.success) { - _iter733.write(oprot); + _iter749.write(oprot); } oprot.writeListEnd(); } @@ -50873,9 +52833,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_objects_b if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Table _iter734 : struct.success) + for (Table _iter750 : struct.success) { - _iter734.write(oprot); + _iter750.write(oprot); } } } @@ -50896,14 +52856,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 _list735 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList
(_list735.size); - Table _elem736; - for (int _i737 = 0; _i737 < _list735.size; ++_i737) + org.apache.thrift.protocol.TList _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList
(_list751.size); + Table _elem752; + for (int _i753 = 0; _i753 < _list751.size; ++_i753) { - _elem736 = new Table(); - _elem736.read(iprot); - struct.success.add(_elem736); + _elem752 = new Table(); + _elem752.read(iprot); + struct.success.add(_elem752); } } struct.setSuccessIsSet(true); @@ -52049,13 +54009,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 _list738 = iprot.readListBegin(); - struct.success = new ArrayList(_list738.size); - String _elem739; - for (int _i740 = 0; _i740 < _list738.size; ++_i740) + org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); + struct.success = new ArrayList(_list754.size); + String _elem755; + for (int _i756 = 0; _i756 < _list754.size; ++_i756) { - _elem739 = iprot.readString(); - struct.success.add(_elem739); + _elem755 = iprot.readString(); + struct.success.add(_elem755); } iprot.readListEnd(); } @@ -52108,9 +54068,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 _iter741 : struct.success) + for (String _iter757 : struct.success) { - oprot.writeString(_iter741); + oprot.writeString(_iter757); } oprot.writeListEnd(); } @@ -52165,9 +54125,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_table_names_by_ if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter742 : struct.success) + for (String _iter758 : struct.success) { - oprot.writeString(_iter742); + oprot.writeString(_iter758); } } } @@ -52188,13 +54148,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 _list743 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list743.size); - String _elem744; - for (int _i745 = 0; _i745 < _list743.size; ++_i745) + org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list759.size); + String _elem760; + for (int _i761 = 0; _i761 < _list759.size; ++_i761) { - _elem744 = iprot.readString(); - struct.success.add(_elem744); + _elem760 = iprot.readString(); + struct.success.add(_elem760); } } struct.setSuccessIsSet(true); @@ -58053,14 +60013,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 _list746 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list746.size); - Partition _elem747; - for (int _i748 = 0; _i748 < _list746.size; ++_i748) + org.apache.thrift.protocol.TList _list762 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list762.size); + Partition _elem763; + for (int _i764 = 0; _i764 < _list762.size; ++_i764) { - _elem747 = new Partition(); - _elem747.read(iprot); - struct.new_parts.add(_elem747); + _elem763 = new Partition(); + _elem763.read(iprot); + struct.new_parts.add(_elem763); } iprot.readListEnd(); } @@ -58086,9 +60046,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 _iter749 : struct.new_parts) + for (Partition _iter765 : struct.new_parts) { - _iter749.write(oprot); + _iter765.write(oprot); } oprot.writeListEnd(); } @@ -58119,9 +60079,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 _iter750 : struct.new_parts) + for (Partition _iter766 : struct.new_parts) { - _iter750.write(oprot); + _iter766.write(oprot); } } } @@ -58133,14 +60093,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 _list751 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list751.size); - Partition _elem752; - for (int _i753 = 0; _i753 < _list751.size; ++_i753) + org.apache.thrift.protocol.TList _list767 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list767.size); + Partition _elem768; + for (int _i769 = 0; _i769 < _list767.size; ++_i769) { - _elem752 = new Partition(); - _elem752.read(iprot); - struct.new_parts.add(_elem752); + _elem768 = new Partition(); + _elem768.read(iprot); + struct.new_parts.add(_elem768); } } struct.setNew_partsIsSet(true); @@ -59141,14 +61101,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, add_partitions_pspe case 1: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list754 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list754.size); - PartitionSpec _elem755; - for (int _i756 = 0; _i756 < _list754.size; ++_i756) + org.apache.thrift.protocol.TList _list770 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list770.size); + PartitionSpec _elem771; + for (int _i772 = 0; _i772 < _list770.size; ++_i772) { - _elem755 = new PartitionSpec(); - _elem755.read(iprot); - struct.new_parts.add(_elem755); + _elem771 = new PartitionSpec(); + _elem771.read(iprot); + struct.new_parts.add(_elem771); } iprot.readListEnd(); } @@ -59174,9 +61134,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, add_partitions_psp 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 (PartitionSpec _iter757 : struct.new_parts) + for (PartitionSpec _iter773 : struct.new_parts) { - _iter757.write(oprot); + _iter773.write(oprot); } oprot.writeListEnd(); } @@ -59207,9 +61167,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspe if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (PartitionSpec _iter758 : struct.new_parts) + for (PartitionSpec _iter774 : struct.new_parts) { - _iter758.write(oprot); + _iter774.write(oprot); } } } @@ -59221,14 +61181,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, add_partitions_pspec BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list759 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list759.size); - PartitionSpec _elem760; - for (int _i761 = 0; _i761 < _list759.size; ++_i761) + org.apache.thrift.protocol.TList _list775 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list775.size); + PartitionSpec _elem776; + for (int _i777 = 0; _i777 < _list775.size; ++_i777) { - _elem760 = new PartitionSpec(); - _elem760.read(iprot); - struct.new_parts.add(_elem760); + _elem776 = new PartitionSpec(); + _elem776.read(iprot); + struct.new_parts.add(_elem776); } } struct.setNew_partsIsSet(true); @@ -60404,13 +62364,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 _list762 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list762.size); - String _elem763; - for (int _i764 = 0; _i764 < _list762.size; ++_i764) + org.apache.thrift.protocol.TList _list778 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list778.size); + String _elem779; + for (int _i780 = 0; _i780 < _list778.size; ++_i780) { - _elem763 = iprot.readString(); - struct.part_vals.add(_elem763); + _elem779 = iprot.readString(); + struct.part_vals.add(_elem779); } iprot.readListEnd(); } @@ -60446,9 +62406,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 _iter765 : struct.part_vals) + for (String _iter781 : struct.part_vals) { - oprot.writeString(_iter765); + oprot.writeString(_iter781); } oprot.writeListEnd(); } @@ -60491,9 +62451,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 _iter766 : struct.part_vals) + for (String _iter782 : struct.part_vals) { - oprot.writeString(_iter766); + oprot.writeString(_iter782); } } } @@ -60513,13 +62473,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list767 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list767.size); - String _elem768; - for (int _i769 = 0; _i769 < _list767.size; ++_i769) + org.apache.thrift.protocol.TList _list783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list783.size); + String _elem784; + for (int _i785 = 0; _i785 < _list783.size; ++_i785) { - _elem768 = iprot.readString(); - struct.part_vals.add(_elem768); + _elem784 = iprot.readString(); + struct.part_vals.add(_elem784); } } struct.setPart_valsIsSet(true); @@ -62828,13 +64788,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 _list770 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list770.size); - String _elem771; - for (int _i772 = 0; _i772 < _list770.size; ++_i772) + org.apache.thrift.protocol.TList _list786 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list786.size); + String _elem787; + for (int _i788 = 0; _i788 < _list786.size; ++_i788) { - _elem771 = iprot.readString(); - struct.part_vals.add(_elem771); + _elem787 = iprot.readString(); + struct.part_vals.add(_elem787); } iprot.readListEnd(); } @@ -62879,9 +64839,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 _iter773 : struct.part_vals) + for (String _iter789 : struct.part_vals) { - oprot.writeString(_iter773); + oprot.writeString(_iter789); } oprot.writeListEnd(); } @@ -62932,9 +64892,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 _iter774 : struct.part_vals) + for (String _iter790 : struct.part_vals) { - oprot.writeString(_iter774); + oprot.writeString(_iter790); } } } @@ -62957,13 +64917,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, append_partition_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list775 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list775.size); - String _elem776; - for (int _i777 = 0; _i777 < _list775.size; ++_i777) + org.apache.thrift.protocol.TList _list791 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list791.size); + String _elem792; + for (int _i793 = 0; _i793 < _list791.size; ++_i793) { - _elem776 = iprot.readString(); - struct.part_vals.add(_elem776); + _elem792 = iprot.readString(); + struct.part_vals.add(_elem792); } } struct.setPart_valsIsSet(true); @@ -66833,13 +68793,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 _list778 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list778.size); - String _elem779; - for (int _i780 = 0; _i780 < _list778.size; ++_i780) + org.apache.thrift.protocol.TList _list794 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list794.size); + String _elem795; + for (int _i796 = 0; _i796 < _list794.size; ++_i796) { - _elem779 = iprot.readString(); - struct.part_vals.add(_elem779); + _elem795 = iprot.readString(); + struct.part_vals.add(_elem795); } iprot.readListEnd(); } @@ -66883,9 +68843,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 _iter781 : struct.part_vals) + for (String _iter797 : struct.part_vals) { - oprot.writeString(_iter781); + oprot.writeString(_iter797); } oprot.writeListEnd(); } @@ -66934,9 +68894,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 _iter782 : struct.part_vals) + for (String _iter798 : struct.part_vals) { - oprot.writeString(_iter782); + oprot.writeString(_iter798); } } } @@ -66959,13 +68919,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_args } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list783 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list783.size); - String _elem784; - for (int _i785 = 0; _i785 < _list783.size; ++_i785) + org.apache.thrift.protocol.TList _list799 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list799.size); + String _elem800; + for (int _i801 = 0; _i801 < _list799.size; ++_i801) { - _elem784 = iprot.readString(); - struct.part_vals.add(_elem784); + _elem800 = iprot.readString(); + struct.part_vals.add(_elem800); } } struct.setPart_valsIsSet(true); @@ -68204,13 +70164,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 _list786 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list786.size); - String _elem787; - for (int _i788 = 0; _i788 < _list786.size; ++_i788) + org.apache.thrift.protocol.TList _list802 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list802.size); + String _elem803; + for (int _i804 = 0; _i804 < _list802.size; ++_i804) { - _elem787 = iprot.readString(); - struct.part_vals.add(_elem787); + _elem803 = iprot.readString(); + struct.part_vals.add(_elem803); } iprot.readListEnd(); } @@ -68263,9 +70223,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 _iter789 : struct.part_vals) + for (String _iter805 : struct.part_vals) { - oprot.writeString(_iter789); + oprot.writeString(_iter805); } oprot.writeListEnd(); } @@ -68322,9 +70282,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 _iter790 : struct.part_vals) + for (String _iter806 : struct.part_vals) { - oprot.writeString(_iter790); + oprot.writeString(_iter806); } } } @@ -68350,13 +70310,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_partition_with_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list791 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list791.size); - String _elem792; - for (int _i793 = 0; _i793 < _list791.size; ++_i793) + org.apache.thrift.protocol.TList _list807 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list807.size); + String _elem808; + for (int _i809 = 0; _i809 < _list807.size; ++_i809) { - _elem792 = iprot.readString(); - struct.part_vals.add(_elem792); + _elem808 = iprot.readString(); + struct.part_vals.add(_elem808); } } struct.setPart_valsIsSet(true); @@ -72958,13 +74918,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 _list794 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list794.size); - String _elem795; - for (int _i796 = 0; _i796 < _list794.size; ++_i796) + org.apache.thrift.protocol.TList _list810 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list810.size); + String _elem811; + for (int _i812 = 0; _i812 < _list810.size; ++_i812) { - _elem795 = iprot.readString(); - struct.part_vals.add(_elem795); + _elem811 = iprot.readString(); + struct.part_vals.add(_elem811); } iprot.readListEnd(); } @@ -73000,9 +74960,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 _iter797 : struct.part_vals) + for (String _iter813 : struct.part_vals) { - oprot.writeString(_iter797); + oprot.writeString(_iter813); } oprot.writeListEnd(); } @@ -73045,9 +75005,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 _iter798 : struct.part_vals) + for (String _iter814 : struct.part_vals) { - oprot.writeString(_iter798); + oprot.writeString(_iter814); } } } @@ -73067,13 +75027,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_args s } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list799 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list799.size); - String _elem800; - for (int _i801 = 0; _i801 < _list799.size; ++_i801) + org.apache.thrift.protocol.TList _list815 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list815.size); + String _elem816; + for (int _i817 = 0; _i817 < _list815.size; ++_i817) { - _elem800 = iprot.readString(); - struct.part_vals.add(_elem800); + _elem816 = iprot.readString(); + struct.part_vals.add(_elem816); } } struct.setPart_valsIsSet(true); @@ -74291,15 +76251,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 _map802 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map802.size); - String _key803; - String _val804; - for (int _i805 = 0; _i805 < _map802.size; ++_i805) + org.apache.thrift.protocol.TMap _map818 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map818.size); + String _key819; + String _val820; + for (int _i821 = 0; _i821 < _map818.size; ++_i821) { - _key803 = iprot.readString(); - _val804 = iprot.readString(); - struct.partitionSpecs.put(_key803, _val804); + _key819 = iprot.readString(); + _val820 = iprot.readString(); + struct.partitionSpecs.put(_key819, _val820); } iprot.readMapEnd(); } @@ -74357,10 +76317,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 _iter806 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter822 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter806.getKey()); - oprot.writeString(_iter806.getValue()); + oprot.writeString(_iter822.getKey()); + oprot.writeString(_iter822.getValue()); } oprot.writeMapEnd(); } @@ -74423,10 +76383,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partition_ if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter807 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter823 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter807.getKey()); - oprot.writeString(_iter807.getValue()); + oprot.writeString(_iter823.getKey()); + oprot.writeString(_iter823.getValue()); } } } @@ -74450,15 +76410,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 _map808 = 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*_map808.size); - String _key809; - String _val810; - for (int _i811 = 0; _i811 < _map808.size; ++_i811) + org.apache.thrift.protocol.TMap _map824 = 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*_map824.size); + String _key825; + String _val826; + for (int _i827 = 0; _i827 < _map824.size; ++_i827) { - _key809 = iprot.readString(); - _val810 = iprot.readString(); - struct.partitionSpecs.put(_key809, _val810); + _key825 = iprot.readString(); + _val826 = iprot.readString(); + struct.partitionSpecs.put(_key825, _val826); } } struct.setPartitionSpecsIsSet(true); @@ -75904,15 +77864,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 1: // PARTITION_SPECS if (schemeField.type == org.apache.thrift.protocol.TType.MAP) { { - org.apache.thrift.protocol.TMap _map812 = iprot.readMapBegin(); - struct.partitionSpecs = new HashMap(2*_map812.size); - String _key813; - String _val814; - for (int _i815 = 0; _i815 < _map812.size; ++_i815) + org.apache.thrift.protocol.TMap _map828 = iprot.readMapBegin(); + struct.partitionSpecs = new HashMap(2*_map828.size); + String _key829; + String _val830; + for (int _i831 = 0; _i831 < _map828.size; ++_i831) { - _key813 = iprot.readString(); - _val814 = iprot.readString(); - struct.partitionSpecs.put(_key813, _val814); + _key829 = iprot.readString(); + _val830 = iprot.readString(); + struct.partitionSpecs.put(_key829, _val830); } iprot.readMapEnd(); } @@ -75970,10 +77930,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 _iter816 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter832 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter816.getKey()); - oprot.writeString(_iter816.getValue()); + oprot.writeString(_iter832.getKey()); + oprot.writeString(_iter832.getValue()); } oprot.writeMapEnd(); } @@ -76036,10 +77996,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetPartitionSpecs()) { { oprot.writeI32(struct.partitionSpecs.size()); - for (Map.Entry _iter817 : struct.partitionSpecs.entrySet()) + for (Map.Entry _iter833 : struct.partitionSpecs.entrySet()) { - oprot.writeString(_iter817.getKey()); - oprot.writeString(_iter817.getValue()); + oprot.writeString(_iter833.getKey()); + oprot.writeString(_iter833.getValue()); } } } @@ -76063,15 +78023,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TMap _map818 = 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*_map818.size); - String _key819; - String _val820; - for (int _i821 = 0; _i821 < _map818.size; ++_i821) + org.apache.thrift.protocol.TMap _map834 = 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*_map834.size); + String _key835; + String _val836; + for (int _i837 = 0; _i837 < _map834.size; ++_i837) { - _key819 = iprot.readString(); - _val820 = iprot.readString(); - struct.partitionSpecs.put(_key819, _val820); + _key835 = iprot.readString(); + _val836 = iprot.readString(); + struct.partitionSpecs.put(_key835, _val836); } } struct.setPartitionSpecsIsSet(true); @@ -76736,14 +78696,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, exchange_partitions case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list822 = iprot.readListBegin(); - struct.success = new ArrayList(_list822.size); - Partition _elem823; - for (int _i824 = 0; _i824 < _list822.size; ++_i824) + org.apache.thrift.protocol.TList _list838 = iprot.readListBegin(); + struct.success = new ArrayList(_list838.size); + Partition _elem839; + for (int _i840 = 0; _i840 < _list838.size; ++_i840) { - _elem823 = new Partition(); - _elem823.read(iprot); - struct.success.add(_elem823); + _elem839 = new Partition(); + _elem839.read(iprot); + struct.success.add(_elem839); } iprot.readListEnd(); } @@ -76805,9 +78765,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, exchange_partition oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (Partition _iter825 : struct.success) + for (Partition _iter841 : struct.success) { - _iter825.write(oprot); + _iter841.write(oprot); } oprot.writeListEnd(); } @@ -76870,9 +78830,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, exchange_partitions if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter826 : struct.success) + for (Partition _iter842 : struct.success) { - _iter826.write(oprot); + _iter842.write(oprot); } } } @@ -76896,14 +78856,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, exchange_partitions_ BitSet incoming = iprot.readBitSet(5); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list827 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list827.size); - Partition _elem828; - for (int _i829 = 0; _i829 < _list827.size; ++_i829) + org.apache.thrift.protocol.TList _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list843.size); + Partition _elem844; + for (int _i845 = 0; _i845 < _list843.size; ++_i845) { - _elem828 = new Partition(); - _elem828.read(iprot); - struct.success.add(_elem828); + _elem844 = new Partition(); + _elem844.read(iprot); + struct.success.add(_elem844); } } struct.setSuccessIsSet(true); @@ -77602,13 +79562,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 _list830 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list830.size); - String _elem831; - for (int _i832 = 0; _i832 < _list830.size; ++_i832) + org.apache.thrift.protocol.TList _list846 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list846.size); + String _elem847; + for (int _i848 = 0; _i848 < _list846.size; ++_i848) { - _elem831 = iprot.readString(); - struct.part_vals.add(_elem831); + _elem847 = iprot.readString(); + struct.part_vals.add(_elem847); } iprot.readListEnd(); } @@ -77628,13 +79588,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 _list833 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list833.size); - String _elem834; - for (int _i835 = 0; _i835 < _list833.size; ++_i835) + org.apache.thrift.protocol.TList _list849 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list849.size); + String _elem850; + for (int _i851 = 0; _i851 < _list849.size; ++_i851) { - _elem834 = iprot.readString(); - struct.group_names.add(_elem834); + _elem850 = iprot.readString(); + struct.group_names.add(_elem850); } iprot.readListEnd(); } @@ -77670,9 +79630,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 _iter836 : struct.part_vals) + for (String _iter852 : struct.part_vals) { - oprot.writeString(_iter836); + oprot.writeString(_iter852); } oprot.writeListEnd(); } @@ -77687,9 +79647,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 _iter837 : struct.group_names) + for (String _iter853 : struct.group_names) { - oprot.writeString(_iter837); + oprot.writeString(_iter853); } oprot.writeListEnd(); } @@ -77738,9 +79698,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 _iter838 : struct.part_vals) + for (String _iter854 : struct.part_vals) { - oprot.writeString(_iter838); + oprot.writeString(_iter854); } } } @@ -77750,9 +79710,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 _iter839 : struct.group_names) + for (String _iter855 : struct.group_names) { - oprot.writeString(_iter839); + oprot.writeString(_iter855); } } } @@ -77772,13 +79732,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list840 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list840.size); - String _elem841; - for (int _i842 = 0; _i842 < _list840.size; ++_i842) + org.apache.thrift.protocol.TList _list856 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list856.size); + String _elem857; + for (int _i858 = 0; _i858 < _list856.size; ++_i858) { - _elem841 = iprot.readString(); - struct.part_vals.add(_elem841); + _elem857 = iprot.readString(); + struct.part_vals.add(_elem857); } } struct.setPart_valsIsSet(true); @@ -77789,13 +79749,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_with_a } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list843 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list843.size); - String _elem844; - for (int _i845 = 0; _i845 < _list843.size; ++_i845) + org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list859.size); + String _elem860; + for (int _i861 = 0; _i861 < _list859.size; ++_i861) { - _elem844 = iprot.readString(); - struct.group_names.add(_elem844); + _elem860 = iprot.readString(); + struct.group_names.add(_elem860); } } struct.setGroup_namesIsSet(true); @@ -80564,14 +82524,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 _list846 = iprot.readListBegin(); - struct.success = new ArrayList(_list846.size); - Partition _elem847; - for (int _i848 = 0; _i848 < _list846.size; ++_i848) + org.apache.thrift.protocol.TList _list862 = iprot.readListBegin(); + struct.success = new ArrayList(_list862.size); + Partition _elem863; + for (int _i864 = 0; _i864 < _list862.size; ++_i864) { - _elem847 = new Partition(); - _elem847.read(iprot); - struct.success.add(_elem847); + _elem863 = new Partition(); + _elem863.read(iprot); + struct.success.add(_elem863); } iprot.readListEnd(); } @@ -80615,9 +82575,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 _iter849 : struct.success) + for (Partition _iter865 : struct.success) { - _iter849.write(oprot); + _iter865.write(oprot); } oprot.writeListEnd(); } @@ -80664,9 +82624,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter850 : struct.success) + for (Partition _iter866 : struct.success) { - _iter850.write(oprot); + _iter866.write(oprot); } } } @@ -80684,14 +82644,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 _list851 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list851.size); - Partition _elem852; - for (int _i853 = 0; _i853 < _list851.size; ++_i853) + org.apache.thrift.protocol.TList _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list867.size); + Partition _elem868; + for (int _i869 = 0; _i869 < _list867.size; ++_i869) { - _elem852 = new Partition(); - _elem852.read(iprot); - struct.success.add(_elem852); + _elem868 = new Partition(); + _elem868.read(iprot); + struct.success.add(_elem868); } } struct.setSuccessIsSet(true); @@ -81381,13 +83341,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 _list854 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list854.size); - String _elem855; - for (int _i856 = 0; _i856 < _list854.size; ++_i856) + org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list870.size); + String _elem871; + for (int _i872 = 0; _i872 < _list870.size; ++_i872) { - _elem855 = iprot.readString(); - struct.group_names.add(_elem855); + _elem871 = iprot.readString(); + struct.group_names.add(_elem871); } iprot.readListEnd(); } @@ -81431,9 +83391,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 _iter857 : struct.group_names) + for (String _iter873 : struct.group_names) { - oprot.writeString(_iter857); + oprot.writeString(_iter873); } oprot.writeListEnd(); } @@ -81488,9 +83448,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 _iter858 : struct.group_names) + for (String _iter874 : struct.group_names) { - oprot.writeString(_iter858); + oprot.writeString(_iter874); } } } @@ -81518,13 +83478,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_with_ } if (incoming.get(4)) { { - org.apache.thrift.protocol.TList _list859 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list859.size); - String _elem860; - for (int _i861 = 0; _i861 < _list859.size; ++_i861) + org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list875.size); + String _elem876; + for (int _i877 = 0; _i877 < _list875.size; ++_i877) { - _elem860 = iprot.readString(); - struct.group_names.add(_elem860); + _elem876 = iprot.readString(); + struct.group_names.add(_elem876); } } struct.setGroup_namesIsSet(true); @@ -82011,14 +83971,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 _list862 = iprot.readListBegin(); - struct.success = new ArrayList(_list862.size); - Partition _elem863; - for (int _i864 = 0; _i864 < _list862.size; ++_i864) + org.apache.thrift.protocol.TList _list878 = iprot.readListBegin(); + struct.success = new ArrayList(_list878.size); + Partition _elem879; + for (int _i880 = 0; _i880 < _list878.size; ++_i880) { - _elem863 = new Partition(); - _elem863.read(iprot); - struct.success.add(_elem863); + _elem879 = new Partition(); + _elem879.read(iprot); + struct.success.add(_elem879); } iprot.readListEnd(); } @@ -82062,9 +84022,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 _iter865 : struct.success) + for (Partition _iter881 : struct.success) { - _iter865.write(oprot); + _iter881.write(oprot); } oprot.writeListEnd(); } @@ -82111,9 +84071,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_with if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter866 : struct.success) + for (Partition _iter882 : struct.success) { - _iter866.write(oprot); + _iter882.write(oprot); } } } @@ -82131,14 +84091,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 _list867 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list867.size); - Partition _elem868; - for (int _i869 = 0; _i869 < _list867.size; ++_i869) + org.apache.thrift.protocol.TList _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list883.size); + Partition _elem884; + for (int _i885 = 0; _i885 < _list883.size; ++_i885) { - _elem868 = new Partition(); - _elem868.read(iprot); - struct.success.add(_elem868); + _elem884 = new Partition(); + _elem884.read(iprot); + struct.success.add(_elem884); } } struct.setSuccessIsSet(true); @@ -83201,14 +85161,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_partitions_pspe case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list870 = iprot.readListBegin(); - struct.success = new ArrayList(_list870.size); - PartitionSpec _elem871; - for (int _i872 = 0; _i872 < _list870.size; ++_i872) + org.apache.thrift.protocol.TList _list886 = iprot.readListBegin(); + struct.success = new ArrayList(_list886.size); + PartitionSpec _elem887; + for (int _i888 = 0; _i888 < _list886.size; ++_i888) { - _elem871 = new PartitionSpec(); - _elem871.read(iprot); - struct.success.add(_elem871); + _elem887 = new PartitionSpec(); + _elem887.read(iprot); + struct.success.add(_elem887); } iprot.readListEnd(); } @@ -83252,9 +85212,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_partitions_psp oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter873 : struct.success) + for (PartitionSpec _iter889 : struct.success) { - _iter873.write(oprot); + _iter889.write(oprot); } oprot.writeListEnd(); } @@ -83301,9 +85261,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspe if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter874 : struct.success) + for (PartitionSpec _iter890 : struct.success) { - _iter874.write(oprot); + _iter890.write(oprot); } } } @@ -83321,14 +85281,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_pspec BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list875 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list875.size); - PartitionSpec _elem876; - for (int _i877 = 0; _i877 < _list875.size; ++_i877) + org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list891.size); + PartitionSpec _elem892; + for (int _i893 = 0; _i893 < _list891.size; ++_i893) { - _elem876 = new PartitionSpec(); - _elem876.read(iprot); - struct.success.add(_elem876); + _elem892 = new PartitionSpec(); + _elem892.read(iprot); + struct.success.add(_elem892); } } struct.setSuccessIsSet(true); @@ -84307,13 +86267,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 _list878 = iprot.readListBegin(); - struct.success = new ArrayList(_list878.size); - String _elem879; - for (int _i880 = 0; _i880 < _list878.size; ++_i880) + org.apache.thrift.protocol.TList _list894 = iprot.readListBegin(); + struct.success = new ArrayList(_list894.size); + String _elem895; + for (int _i896 = 0; _i896 < _list894.size; ++_i896) { - _elem879 = iprot.readString(); - struct.success.add(_elem879); + _elem895 = iprot.readString(); + struct.success.add(_elem895); } iprot.readListEnd(); } @@ -84348,9 +86308,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 _iter881 : struct.success) + for (String _iter897 : struct.success) { - oprot.writeString(_iter881); + oprot.writeString(_iter897); } oprot.writeListEnd(); } @@ -84389,9 +86349,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter882 : struct.success) + for (String _iter898 : struct.success) { - oprot.writeString(_iter882); + oprot.writeString(_iter898); } } } @@ -84406,13 +86366,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 _list883 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list883.size); - String _elem884; - for (int _i885 = 0; _i885 < _list883.size; ++_i885) + org.apache.thrift.protocol.TList _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list899.size); + String _elem900; + for (int _i901 = 0; _i901 < _list899.size; ++_i901) { - _elem884 = iprot.readString(); - struct.success.add(_elem884); + _elem900 = iprot.readString(); + struct.success.add(_elem900); } } struct.setSuccessIsSet(true); @@ -85000,13 +86960,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 _list886 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list886.size); - String _elem887; - for (int _i888 = 0; _i888 < _list886.size; ++_i888) + org.apache.thrift.protocol.TList _list902 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list902.size); + String _elem903; + for (int _i904 = 0; _i904 < _list902.size; ++_i904) { - _elem887 = iprot.readString(); - struct.part_vals.add(_elem887); + _elem903 = iprot.readString(); + struct.part_vals.add(_elem903); } iprot.readListEnd(); } @@ -85050,9 +87010,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 _iter889 : struct.part_vals) + for (String _iter905 : struct.part_vals) { - oprot.writeString(_iter889); + oprot.writeString(_iter905); } oprot.writeListEnd(); } @@ -85101,9 +87061,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 _iter890 : struct.part_vals) + for (String _iter906 : struct.part_vals) { - oprot.writeString(_iter890); + oprot.writeString(_iter906); } } } @@ -85126,13 +87086,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list891 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list891.size); - String _elem892; - for (int _i893 = 0; _i893 < _list891.size; ++_i893) + org.apache.thrift.protocol.TList _list907 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list907.size); + String _elem908; + for (int _i909 = 0; _i909 < _list907.size; ++_i909) { - _elem892 = iprot.readString(); - struct.part_vals.add(_elem892); + _elem908 = iprot.readString(); + struct.part_vals.add(_elem908); } } struct.setPart_valsIsSet(true); @@ -85623,14 +87583,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 _list894 = iprot.readListBegin(); - struct.success = new ArrayList(_list894.size); - Partition _elem895; - for (int _i896 = 0; _i896 < _list894.size; ++_i896) + org.apache.thrift.protocol.TList _list910 = iprot.readListBegin(); + struct.success = new ArrayList(_list910.size); + Partition _elem911; + for (int _i912 = 0; _i912 < _list910.size; ++_i912) { - _elem895 = new Partition(); - _elem895.read(iprot); - struct.success.add(_elem895); + _elem911 = new Partition(); + _elem911.read(iprot); + struct.success.add(_elem911); } iprot.readListEnd(); } @@ -85674,9 +87634,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 _iter897 : struct.success) + for (Partition _iter913 : struct.success) { - _iter897.write(oprot); + _iter913.write(oprot); } oprot.writeListEnd(); } @@ -85723,9 +87683,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_r if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter898 : struct.success) + for (Partition _iter914 : struct.success) { - _iter898.write(oprot); + _iter914.write(oprot); } } } @@ -85743,14 +87703,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 _list899 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list899.size); - Partition _elem900; - for (int _i901 = 0; _i901 < _list899.size; ++_i901) + org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list915.size); + Partition _elem916; + for (int _i917 = 0; _i917 < _list915.size; ++_i917) { - _elem900 = new Partition(); - _elem900.read(iprot); - struct.success.add(_elem900); + _elem916 = new Partition(); + _elem916.read(iprot); + struct.success.add(_elem916); } } struct.setSuccessIsSet(true); @@ -86522,13 +88482,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 _list902 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list902.size); - String _elem903; - for (int _i904 = 0; _i904 < _list902.size; ++_i904) + org.apache.thrift.protocol.TList _list918 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list918.size); + String _elem919; + for (int _i920 = 0; _i920 < _list918.size; ++_i920) { - _elem903 = iprot.readString(); - struct.part_vals.add(_elem903); + _elem919 = iprot.readString(); + struct.part_vals.add(_elem919); } iprot.readListEnd(); } @@ -86556,13 +88516,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 _list905 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list905.size); - String _elem906; - for (int _i907 = 0; _i907 < _list905.size; ++_i907) + org.apache.thrift.protocol.TList _list921 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list921.size); + String _elem922; + for (int _i923 = 0; _i923 < _list921.size; ++_i923) { - _elem906 = iprot.readString(); - struct.group_names.add(_elem906); + _elem922 = iprot.readString(); + struct.group_names.add(_elem922); } iprot.readListEnd(); } @@ -86598,9 +88558,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 _iter908 : struct.part_vals) + for (String _iter924 : struct.part_vals) { - oprot.writeString(_iter908); + oprot.writeString(_iter924); } oprot.writeListEnd(); } @@ -86618,9 +88578,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 _iter909 : struct.group_names) + for (String _iter925 : struct.group_names) { - oprot.writeString(_iter909); + oprot.writeString(_iter925); } oprot.writeListEnd(); } @@ -86672,9 +88632,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 _iter910 : struct.part_vals) + for (String _iter926 : struct.part_vals) { - oprot.writeString(_iter910); + oprot.writeString(_iter926); } } } @@ -86687,9 +88647,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 _iter911 : struct.group_names) + for (String _iter927 : struct.group_names) { - oprot.writeString(_iter911); + oprot.writeString(_iter927); } } } @@ -86709,13 +88669,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list912 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list912.size); - String _elem913; - for (int _i914 = 0; _i914 < _list912.size; ++_i914) + org.apache.thrift.protocol.TList _list928 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list928.size); + String _elem929; + for (int _i930 = 0; _i930 < _list928.size; ++_i930) { - _elem913 = iprot.readString(); - struct.part_vals.add(_elem913); + _elem929 = iprot.readString(); + struct.part_vals.add(_elem929); } } struct.setPart_valsIsSet(true); @@ -86730,13 +88690,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_wi } if (incoming.get(5)) { { - org.apache.thrift.protocol.TList _list915 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list915.size); - String _elem916; - for (int _i917 = 0; _i917 < _list915.size; ++_i917) + org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list931.size); + String _elem932; + for (int _i933 = 0; _i933 < _list931.size; ++_i933) { - _elem916 = iprot.readString(); - struct.group_names.add(_elem916); + _elem932 = iprot.readString(); + struct.group_names.add(_elem932); } } struct.setGroup_namesIsSet(true); @@ -87223,14 +89183,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 _list918 = iprot.readListBegin(); - struct.success = new ArrayList(_list918.size); - Partition _elem919; - for (int _i920 = 0; _i920 < _list918.size; ++_i920) + org.apache.thrift.protocol.TList _list934 = iprot.readListBegin(); + struct.success = new ArrayList(_list934.size); + Partition _elem935; + for (int _i936 = 0; _i936 < _list934.size; ++_i936) { - _elem919 = new Partition(); - _elem919.read(iprot); - struct.success.add(_elem919); + _elem935 = new Partition(); + _elem935.read(iprot); + struct.success.add(_elem935); } iprot.readListEnd(); } @@ -87274,9 +89234,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 _iter921 : struct.success) + for (Partition _iter937 : struct.success) { - _iter921.write(oprot); + _iter937.write(oprot); } oprot.writeListEnd(); } @@ -87323,9 +89283,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_ps_w if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter922 : struct.success) + for (Partition _iter938 : struct.success) { - _iter922.write(oprot); + _iter938.write(oprot); } } } @@ -87343,14 +89303,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 _list923 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list923.size); - Partition _elem924; - for (int _i925 = 0; _i925 < _list923.size; ++_i925) + org.apache.thrift.protocol.TList _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list939.size); + Partition _elem940; + for (int _i941 = 0; _i941 < _list939.size; ++_i941) { - _elem924 = new Partition(); - _elem924.read(iprot); - struct.success.add(_elem924); + _elem940 = new Partition(); + _elem940.read(iprot); + struct.success.add(_elem940); } } struct.setSuccessIsSet(true); @@ -87943,13 +89903,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 _list926 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list926.size); - String _elem927; - for (int _i928 = 0; _i928 < _list926.size; ++_i928) + org.apache.thrift.protocol.TList _list942 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list942.size); + String _elem943; + for (int _i944 = 0; _i944 < _list942.size; ++_i944) { - _elem927 = iprot.readString(); - struct.part_vals.add(_elem927); + _elem943 = iprot.readString(); + struct.part_vals.add(_elem943); } iprot.readListEnd(); } @@ -87993,9 +89953,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 _iter929 : struct.part_vals) + for (String _iter945 : struct.part_vals) { - oprot.writeString(_iter929); + oprot.writeString(_iter945); } oprot.writeListEnd(); } @@ -88044,9 +90004,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 _iter930 : struct.part_vals) + for (String _iter946 : struct.part_vals) { - oprot.writeString(_iter930); + oprot.writeString(_iter946); } } } @@ -88069,13 +90029,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partition_names_ } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list931 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list931.size); - String _elem932; - for (int _i933 = 0; _i933 < _list931.size; ++_i933) + org.apache.thrift.protocol.TList _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list947.size); + String _elem948; + for (int _i949 = 0; _i949 < _list947.size; ++_i949) { - _elem932 = iprot.readString(); - struct.part_vals.add(_elem932); + _elem948 = iprot.readString(); + struct.part_vals.add(_elem948); } } struct.setPart_valsIsSet(true); @@ -88563,13 +90523,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 _list934 = iprot.readListBegin(); - struct.success = new ArrayList(_list934.size); - String _elem935; - for (int _i936 = 0; _i936 < _list934.size; ++_i936) + org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); + struct.success = new ArrayList(_list950.size); + String _elem951; + for (int _i952 = 0; _i952 < _list950.size; ++_i952) { - _elem935 = iprot.readString(); - struct.success.add(_elem935); + _elem951 = iprot.readString(); + struct.success.add(_elem951); } iprot.readListEnd(); } @@ -88613,9 +90573,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 _iter937 : struct.success) + for (String _iter953 : struct.success) { - oprot.writeString(_iter937); + oprot.writeString(_iter953); } oprot.writeListEnd(); } @@ -88662,9 +90622,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partition_names if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter938 : struct.success) + for (String _iter954 : struct.success) { - oprot.writeString(_iter938); + oprot.writeString(_iter954); } } } @@ -88682,13 +90642,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 _list939 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list939.size); - String _elem940; - for (int _i941 = 0; _i941 < _list939.size; ++_i941) + org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list955.size); + String _elem956; + for (int _i957 = 0; _i957 < _list955.size; ++_i957) { - _elem940 = iprot.readString(); - struct.success.add(_elem940); + _elem956 = iprot.readString(); + struct.success.add(_elem956); } } struct.setSuccessIsSet(true); @@ -89855,14 +91815,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 _list942 = iprot.readListBegin(); - struct.success = new ArrayList(_list942.size); - Partition _elem943; - for (int _i944 = 0; _i944 < _list942.size; ++_i944) + org.apache.thrift.protocol.TList _list958 = iprot.readListBegin(); + struct.success = new ArrayList(_list958.size); + Partition _elem959; + for (int _i960 = 0; _i960 < _list958.size; ++_i960) { - _elem943 = new Partition(); - _elem943.read(iprot); - struct.success.add(_elem943); + _elem959 = new Partition(); + _elem959.read(iprot); + struct.success.add(_elem959); } iprot.readListEnd(); } @@ -89906,9 +91866,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 _iter945 : struct.success) + for (Partition _iter961 : struct.success) { - _iter945.write(oprot); + _iter961.write(oprot); } oprot.writeListEnd(); } @@ -89955,9 +91915,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter946 : struct.success) + for (Partition _iter962 : struct.success) { - _iter946.write(oprot); + _iter962.write(oprot); } } } @@ -89975,14 +91935,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 _list947 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list947.size); - Partition _elem948; - for (int _i949 = 0; _i949 < _list947.size; ++_i949) + org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list963.size); + Partition _elem964; + for (int _i965 = 0; _i965 < _list963.size; ++_i965) { - _elem948 = new Partition(); - _elem948.read(iprot); - struct.success.add(_elem948); + _elem964 = new Partition(); + _elem964.read(iprot); + struct.success.add(_elem964); } } struct.setSuccessIsSet(true); @@ -91149,14 +93109,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_part_specs_by_f case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list950 = iprot.readListBegin(); - struct.success = new ArrayList(_list950.size); - PartitionSpec _elem951; - for (int _i952 = 0; _i952 < _list950.size; ++_i952) + org.apache.thrift.protocol.TList _list966 = iprot.readListBegin(); + struct.success = new ArrayList(_list966.size); + PartitionSpec _elem967; + for (int _i968 = 0; _i968 < _list966.size; ++_i968) { - _elem951 = new PartitionSpec(); - _elem951.read(iprot); - struct.success.add(_elem951); + _elem967 = new PartitionSpec(); + _elem967.read(iprot); + struct.success.add(_elem967); } iprot.readListEnd(); } @@ -91200,9 +93160,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_part_specs_by_ oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); - for (PartitionSpec _iter953 : struct.success) + for (PartitionSpec _iter969 : struct.success) { - _iter953.write(oprot); + _iter969.write(oprot); } oprot.writeListEnd(); } @@ -91249,9 +93209,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_f if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (PartitionSpec _iter954 : struct.success) + for (PartitionSpec _iter970 : struct.success) { - _iter954.write(oprot); + _iter970.write(oprot); } } } @@ -91269,14 +93229,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_part_specs_by_fi BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list955 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list955.size); - PartitionSpec _elem956; - for (int _i957 = 0; _i957 < _list955.size; ++_i957) + org.apache.thrift.protocol.TList _list971 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list971.size); + PartitionSpec _elem972; + for (int _i973 = 0; _i973 < _list971.size; ++_i973) { - _elem956 = new PartitionSpec(); - _elem956.read(iprot); - struct.success.add(_elem956); + _elem972 = new PartitionSpec(); + _elem972.read(iprot); + struct.success.add(_elem972); } } struct.setSuccessIsSet(true); @@ -93860,13 +95820,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 _list958 = iprot.readListBegin(); - struct.names = new ArrayList(_list958.size); - String _elem959; - for (int _i960 = 0; _i960 < _list958.size; ++_i960) + org.apache.thrift.protocol.TList _list974 = iprot.readListBegin(); + struct.names = new ArrayList(_list974.size); + String _elem975; + for (int _i976 = 0; _i976 < _list974.size; ++_i976) { - _elem959 = iprot.readString(); - struct.names.add(_elem959); + _elem975 = iprot.readString(); + struct.names.add(_elem975); } iprot.readListEnd(); } @@ -93902,9 +95862,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 _iter961 : struct.names) + for (String _iter977 : struct.names) { - oprot.writeString(_iter961); + oprot.writeString(_iter977); } oprot.writeListEnd(); } @@ -93947,9 +95907,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetNames()) { { oprot.writeI32(struct.names.size()); - for (String _iter962 : struct.names) + for (String _iter978 : struct.names) { - oprot.writeString(_iter962); + oprot.writeString(_iter978); } } } @@ -93969,13 +95929,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_na } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list963 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.names = new ArrayList(_list963.size); - String _elem964; - for (int _i965 = 0; _i965 < _list963.size; ++_i965) + org.apache.thrift.protocol.TList _list979 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.names = new ArrayList(_list979.size); + String _elem980; + for (int _i981 = 0; _i981 < _list979.size; ++_i981) { - _elem964 = iprot.readString(); - struct.names.add(_elem964); + _elem980 = iprot.readString(); + struct.names.add(_elem980); } } struct.setNamesIsSet(true); @@ -94462,14 +96422,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 _list966 = iprot.readListBegin(); - struct.success = new ArrayList(_list966.size); - Partition _elem967; - for (int _i968 = 0; _i968 < _list966.size; ++_i968) + org.apache.thrift.protocol.TList _list982 = iprot.readListBegin(); + struct.success = new ArrayList(_list982.size); + Partition _elem983; + for (int _i984 = 0; _i984 < _list982.size; ++_i984) { - _elem967 = new Partition(); - _elem967.read(iprot); - struct.success.add(_elem967); + _elem983 = new Partition(); + _elem983.read(iprot); + struct.success.add(_elem983); } iprot.readListEnd(); } @@ -94513,9 +96473,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 _iter969 : struct.success) + for (Partition _iter985 : struct.success) { - _iter969.write(oprot); + _iter985.write(oprot); } oprot.writeListEnd(); } @@ -94562,9 +96522,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_partitions_by_n if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Partition _iter970 : struct.success) + for (Partition _iter986 : struct.success) { - _iter970.write(oprot); + _iter986.write(oprot); } } } @@ -94582,14 +96542,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 _list971 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list971.size); - Partition _elem972; - for (int _i973 = 0; _i973 < _list971.size; ++_i973) + org.apache.thrift.protocol.TList _list987 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list987.size); + Partition _elem988; + for (int _i989 = 0; _i989 < _list987.size; ++_i989) { - _elem972 = new Partition(); - _elem972.read(iprot); - struct.success.add(_elem972); + _elem988 = new Partition(); + _elem988.read(iprot); + struct.success.add(_elem988); } } struct.setSuccessIsSet(true); @@ -96139,14 +98099,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 _list974 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list974.size); - Partition _elem975; - for (int _i976 = 0; _i976 < _list974.size; ++_i976) + org.apache.thrift.protocol.TList _list990 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list990.size); + Partition _elem991; + for (int _i992 = 0; _i992 < _list990.size; ++_i992) { - _elem975 = new Partition(); - _elem975.read(iprot); - struct.new_parts.add(_elem975); + _elem991 = new Partition(); + _elem991.read(iprot); + struct.new_parts.add(_elem991); } iprot.readListEnd(); } @@ -96182,9 +98142,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 _iter977 : struct.new_parts) + for (Partition _iter993 : struct.new_parts) { - _iter977.write(oprot); + _iter993.write(oprot); } oprot.writeListEnd(); } @@ -96227,9 +98187,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 _iter978 : struct.new_parts) + for (Partition _iter994 : struct.new_parts) { - _iter978.write(oprot); + _iter994.write(oprot); } } } @@ -96249,14 +98209,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list979 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list979.size); - Partition _elem980; - for (int _i981 = 0; _i981 < _list979.size; ++_i981) + org.apache.thrift.protocol.TList _list995 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list995.size); + Partition _elem996; + for (int _i997 = 0; _i997 < _list995.size; ++_i997) { - _elem980 = new Partition(); - _elem980.read(iprot); - struct.new_parts.add(_elem980); + _elem996 = new Partition(); + _elem996.read(iprot); + struct.new_parts.add(_elem996); } } struct.setNew_partsIsSet(true); @@ -97309,14 +99269,14 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_partitions_wi case 3: // NEW_PARTS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list982 = iprot.readListBegin(); - struct.new_parts = new ArrayList(_list982.size); - Partition _elem983; - for (int _i984 = 0; _i984 < _list982.size; ++_i984) + org.apache.thrift.protocol.TList _list998 = iprot.readListBegin(); + struct.new_parts = new ArrayList(_list998.size); + Partition _elem999; + for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) { - _elem983 = new Partition(); - _elem983.read(iprot); - struct.new_parts.add(_elem983); + _elem999 = new Partition(); + _elem999.read(iprot); + struct.new_parts.add(_elem999); } iprot.readListEnd(); } @@ -97361,9 +99321,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_partitions_w 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 _iter985 : struct.new_parts) + for (Partition _iter1001 : struct.new_parts) { - _iter985.write(oprot); + _iter1001.write(oprot); } oprot.writeListEnd(); } @@ -97414,9 +99374,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wi if (struct.isSetNew_parts()) { { oprot.writeI32(struct.new_parts.size()); - for (Partition _iter986 : struct.new_parts) + for (Partition _iter1002 : struct.new_parts) { - _iter986.write(oprot); + _iter1002.write(oprot); } } } @@ -97439,14 +99399,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_partitions_wit } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list987 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.new_parts = new ArrayList(_list987.size); - Partition _elem988; - for (int _i989 = 0; _i989 < _list987.size; ++_i989) + org.apache.thrift.protocol.TList _list1003 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.new_parts = new ArrayList(_list1003.size); + Partition _elem1004; + for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) { - _elem988 = new Partition(); - _elem988.read(iprot); - struct.new_parts.add(_elem988); + _elem1004 = new Partition(); + _elem1004.read(iprot); + struct.new_parts.add(_elem1004); } } struct.setNew_partsIsSet(true); @@ -99647,13 +101607,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 _list990 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list990.size); - String _elem991; - for (int _i992 = 0; _i992 < _list990.size; ++_i992) + org.apache.thrift.protocol.TList _list1006 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1006.size); + String _elem1007; + for (int _i1008 = 0; _i1008 < _list1006.size; ++_i1008) { - _elem991 = iprot.readString(); - struct.part_vals.add(_elem991); + _elem1007 = iprot.readString(); + struct.part_vals.add(_elem1007); } iprot.readListEnd(); } @@ -99698,9 +101658,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 _iter993 : struct.part_vals) + for (String _iter1009 : struct.part_vals) { - oprot.writeString(_iter993); + oprot.writeString(_iter1009); } oprot.writeListEnd(); } @@ -99751,9 +101711,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 _iter994 : struct.part_vals) + for (String _iter1010 : struct.part_vals) { - oprot.writeString(_iter994); + oprot.writeString(_iter1010); } } } @@ -99776,13 +101736,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, rename_partition_arg } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list995 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list995.size); - String _elem996; - for (int _i997 = 0; _i997 < _list995.size; ++_i997) + org.apache.thrift.protocol.TList _list1011 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1011.size); + String _elem1012; + for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) { - _elem996 = iprot.readString(); - struct.part_vals.add(_elem996); + _elem1012 = iprot.readString(); + struct.part_vals.add(_elem1012); } } struct.setPart_valsIsSet(true); @@ -100656,13 +102616,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 _list998 = iprot.readListBegin(); - struct.part_vals = new ArrayList(_list998.size); - String _elem999; - for (int _i1000 = 0; _i1000 < _list998.size; ++_i1000) + org.apache.thrift.protocol.TList _list1014 = iprot.readListBegin(); + struct.part_vals = new ArrayList(_list1014.size); + String _elem1015; + for (int _i1016 = 0; _i1016 < _list1014.size; ++_i1016) { - _elem999 = iprot.readString(); - struct.part_vals.add(_elem999); + _elem1015 = iprot.readString(); + struct.part_vals.add(_elem1015); } iprot.readListEnd(); } @@ -100696,9 +102656,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 _iter1001 : struct.part_vals) + for (String _iter1017 : struct.part_vals) { - oprot.writeString(_iter1001); + oprot.writeString(_iter1017); } oprot.writeListEnd(); } @@ -100735,9 +102695,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 _iter1002 : struct.part_vals) + for (String _iter1018 : struct.part_vals) { - oprot.writeString(_iter1002); + oprot.writeString(_iter1018); } } } @@ -100752,13 +102712,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 _list1003 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.part_vals = new ArrayList(_list1003.size); - String _elem1004; - for (int _i1005 = 0; _i1005 < _list1003.size; ++_i1005) + org.apache.thrift.protocol.TList _list1019 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.part_vals = new ArrayList(_list1019.size); + String _elem1020; + for (int _i1021 = 0; _i1021 < _list1019.size; ++_i1021) { - _elem1004 = iprot.readString(); - struct.part_vals.add(_elem1004); + _elem1020 = iprot.readString(); + struct.part_vals.add(_elem1020); } } struct.setPart_valsIsSet(true); @@ -102913,13 +104873,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 _list1006 = iprot.readListBegin(); - struct.success = new ArrayList(_list1006.size); - String _elem1007; - for (int _i1008 = 0; _i1008 < _list1006.size; ++_i1008) + org.apache.thrift.protocol.TList _list1022 = iprot.readListBegin(); + struct.success = new ArrayList(_list1022.size); + String _elem1023; + for (int _i1024 = 0; _i1024 < _list1022.size; ++_i1024) { - _elem1007 = iprot.readString(); - struct.success.add(_elem1007); + _elem1023 = iprot.readString(); + struct.success.add(_elem1023); } iprot.readListEnd(); } @@ -102954,9 +104914,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 _iter1009 : struct.success) + for (String _iter1025 : struct.success) { - oprot.writeString(_iter1009); + oprot.writeString(_iter1025); } oprot.writeListEnd(); } @@ -102995,9 +104955,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, partition_name_to_v if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1010 : struct.success) + for (String _iter1026 : struct.success) { - oprot.writeString(_iter1010); + oprot.writeString(_iter1026); } } } @@ -103012,13 +104972,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 _list1011 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1011.size); - String _elem1012; - for (int _i1013 = 0; _i1013 < _list1011.size; ++_i1013) + org.apache.thrift.protocol.TList _list1027 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1027.size); + String _elem1028; + for (int _i1029 = 0; _i1029 < _list1027.size; ++_i1029) { - _elem1012 = iprot.readString(); - struct.success.add(_elem1012); + _elem1028 = iprot.readString(); + struct.success.add(_elem1028); } } struct.setSuccessIsSet(true); @@ -103781,15 +105741,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 _map1014 = iprot.readMapBegin(); - struct.success = new HashMap(2*_map1014.size); - String _key1015; - String _val1016; - for (int _i1017 = 0; _i1017 < _map1014.size; ++_i1017) + org.apache.thrift.protocol.TMap _map1030 = iprot.readMapBegin(); + struct.success = new HashMap(2*_map1030.size); + String _key1031; + String _val1032; + for (int _i1033 = 0; _i1033 < _map1030.size; ++_i1033) { - _key1015 = iprot.readString(); - _val1016 = iprot.readString(); - struct.success.put(_key1015, _val1016); + _key1031 = iprot.readString(); + _val1032 = iprot.readString(); + struct.success.put(_key1031, _val1032); } iprot.readMapEnd(); } @@ -103824,10 +105784,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 _iter1018 : struct.success.entrySet()) + for (Map.Entry _iter1034 : struct.success.entrySet()) { - oprot.writeString(_iter1018.getKey()); - oprot.writeString(_iter1018.getValue()); + oprot.writeString(_iter1034.getKey()); + oprot.writeString(_iter1034.getValue()); } oprot.writeMapEnd(); } @@ -103866,10 +105826,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 _iter1019 : struct.success.entrySet()) + for (Map.Entry _iter1035 : struct.success.entrySet()) { - oprot.writeString(_iter1019.getKey()); - oprot.writeString(_iter1019.getValue()); + oprot.writeString(_iter1035.getKey()); + oprot.writeString(_iter1035.getValue()); } } } @@ -103884,15 +105844,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 _map1020 = 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*_map1020.size); - String _key1021; - String _val1022; - for (int _i1023 = 0; _i1023 < _map1020.size; ++_i1023) + org.apache.thrift.protocol.TMap _map1036 = 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*_map1036.size); + String _key1037; + String _val1038; + for (int _i1039 = 0; _i1039 < _map1036.size; ++_i1039) { - _key1021 = iprot.readString(); - _val1022 = iprot.readString(); - struct.success.put(_key1021, _val1022); + _key1037 = iprot.readString(); + _val1038 = iprot.readString(); + struct.success.put(_key1037, _val1038); } } struct.setSuccessIsSet(true); @@ -104487,15 +106447,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 _map1024 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1024.size); - String _key1025; - String _val1026; - for (int _i1027 = 0; _i1027 < _map1024.size; ++_i1027) + org.apache.thrift.protocol.TMap _map1040 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1040.size); + String _key1041; + String _val1042; + for (int _i1043 = 0; _i1043 < _map1040.size; ++_i1043) { - _key1025 = iprot.readString(); - _val1026 = iprot.readString(); - struct.part_vals.put(_key1025, _val1026); + _key1041 = iprot.readString(); + _val1042 = iprot.readString(); + struct.part_vals.put(_key1041, _val1042); } iprot.readMapEnd(); } @@ -104539,10 +106499,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 _iter1028 : struct.part_vals.entrySet()) + for (Map.Entry _iter1044 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1028.getKey()); - oprot.writeString(_iter1028.getValue()); + oprot.writeString(_iter1044.getKey()); + oprot.writeString(_iter1044.getValue()); } oprot.writeMapEnd(); } @@ -104593,10 +106553,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, markPartitionForEve if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1029 : struct.part_vals.entrySet()) + for (Map.Entry _iter1045 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1029.getKey()); - oprot.writeString(_iter1029.getValue()); + oprot.writeString(_iter1045.getKey()); + oprot.writeString(_iter1045.getValue()); } } } @@ -104619,15 +106579,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, markPartitionForEven } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1030 = 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*_map1030.size); - String _key1031; - String _val1032; - for (int _i1033 = 0; _i1033 < _map1030.size; ++_i1033) + org.apache.thrift.protocol.TMap _map1046 = 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*_map1046.size); + String _key1047; + String _val1048; + for (int _i1049 = 0; _i1049 < _map1046.size; ++_i1049) { - _key1031 = iprot.readString(); - _val1032 = iprot.readString(); - struct.part_vals.put(_key1031, _val1032); + _key1047 = iprot.readString(); + _val1048 = iprot.readString(); + struct.part_vals.put(_key1047, _val1048); } } struct.setPart_valsIsSet(true); @@ -106111,15 +108071,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 _map1034 = iprot.readMapBegin(); - struct.part_vals = new HashMap(2*_map1034.size); - String _key1035; - String _val1036; - for (int _i1037 = 0; _i1037 < _map1034.size; ++_i1037) + org.apache.thrift.protocol.TMap _map1050 = iprot.readMapBegin(); + struct.part_vals = new HashMap(2*_map1050.size); + String _key1051; + String _val1052; + for (int _i1053 = 0; _i1053 < _map1050.size; ++_i1053) { - _key1035 = iprot.readString(); - _val1036 = iprot.readString(); - struct.part_vals.put(_key1035, _val1036); + _key1051 = iprot.readString(); + _val1052 = iprot.readString(); + struct.part_vals.put(_key1051, _val1052); } iprot.readMapEnd(); } @@ -106163,10 +108123,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 _iter1038 : struct.part_vals.entrySet()) + for (Map.Entry _iter1054 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1038.getKey()); - oprot.writeString(_iter1038.getValue()); + oprot.writeString(_iter1054.getKey()); + oprot.writeString(_iter1054.getValue()); } oprot.writeMapEnd(); } @@ -106217,10 +108177,10 @@ public void write(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFo if (struct.isSetPart_vals()) { { oprot.writeI32(struct.part_vals.size()); - for (Map.Entry _iter1039 : struct.part_vals.entrySet()) + for (Map.Entry _iter1055 : struct.part_vals.entrySet()) { - oprot.writeString(_iter1039.getKey()); - oprot.writeString(_iter1039.getValue()); + oprot.writeString(_iter1055.getKey()); + oprot.writeString(_iter1055.getValue()); } } } @@ -106243,15 +108203,15 @@ public void read(org.apache.thrift.protocol.TProtocol prot, isPartitionMarkedFor } if (incoming.get(2)) { { - org.apache.thrift.protocol.TMap _map1040 = 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*_map1040.size); - String _key1041; - String _val1042; - for (int _i1043 = 0; _i1043 < _map1040.size; ++_i1043) + org.apache.thrift.protocol.TMap _map1056 = 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*_map1056.size); + String _key1057; + String _val1058; + for (int _i1059 = 0; _i1059 < _map1056.size; ++_i1059) { - _key1041 = iprot.readString(); - _val1042 = iprot.readString(); - struct.part_vals.put(_key1041, _val1042); + _key1057 = iprot.readString(); + _val1058 = iprot.readString(); + struct.part_vals.put(_key1057, _val1058); } } struct.setPart_valsIsSet(true); @@ -112975,14 +114935,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 _list1044 = iprot.readListBegin(); - struct.success = new ArrayList(_list1044.size); - Index _elem1045; - for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) + org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); + struct.success = new ArrayList(_list1060.size); + Index _elem1061; + for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) { - _elem1045 = new Index(); - _elem1045.read(iprot); - struct.success.add(_elem1045); + _elem1061 = new Index(); + _elem1061.read(iprot); + struct.success.add(_elem1061); } iprot.readListEnd(); } @@ -113026,9 +114986,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 _iter1047 : struct.success) + for (Index _iter1063 : struct.success) { - _iter1047.write(oprot); + _iter1063.write(oprot); } oprot.writeListEnd(); } @@ -113075,9 +115035,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1048 : struct.success) + for (Index _iter1064 : struct.success) { - _iter1048.write(oprot); + _iter1064.write(oprot); } } } @@ -113095,14 +115055,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 _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1049.size); - Index _elem1050; - for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) + org.apache.thrift.protocol.TList _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1065.size); + Index _elem1066; + for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) { - _elem1050 = new Index(); - _elem1050.read(iprot); - struct.success.add(_elem1050); + _elem1066 = new Index(); + _elem1066.read(iprot); + struct.success.add(_elem1066); } } struct.setSuccessIsSet(true); @@ -114081,13 +116041,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 _list1052 = iprot.readListBegin(); - struct.success = new ArrayList(_list1052.size); - String _elem1053; - for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) + org.apache.thrift.protocol.TList _list1068 = iprot.readListBegin(); + struct.success = new ArrayList(_list1068.size); + String _elem1069; + for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) { - _elem1053 = iprot.readString(); - struct.success.add(_elem1053); + _elem1069 = iprot.readString(); + struct.success.add(_elem1069); } iprot.readListEnd(); } @@ -114122,9 +116082,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 _iter1055 : struct.success) + for (String _iter1071 : struct.success) { - oprot.writeString(_iter1055); + oprot.writeString(_iter1071); } oprot.writeListEnd(); } @@ -114163,9 +116123,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1056 : struct.success) + for (String _iter1072 : struct.success) { - oprot.writeString(_iter1056); + oprot.writeString(_iter1072); } } } @@ -114180,13 +116140,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 _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1057.size); - String _elem1058; - for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) + org.apache.thrift.protocol.TList _list1073 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1073.size); + String _elem1074; + for (int _i1075 = 0; _i1075 < _list1073.size; ++_i1075) { - _elem1058 = iprot.readString(); - struct.success.add(_elem1058); + _elem1074 = iprot.readString(); + struct.success.add(_elem1074); } } struct.setSuccessIsSet(true); @@ -131797,13 +133757,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 _list1060 = iprot.readListBegin(); - struct.success = new ArrayList(_list1060.size); - String _elem1061; - for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) + org.apache.thrift.protocol.TList _list1076 = iprot.readListBegin(); + struct.success = new ArrayList(_list1076.size); + String _elem1077; + for (int _i1078 = 0; _i1078 < _list1076.size; ++_i1078) { - _elem1061 = iprot.readString(); - struct.success.add(_elem1061); + _elem1077 = iprot.readString(); + struct.success.add(_elem1077); } iprot.readListEnd(); } @@ -131838,9 +133798,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 _iter1063 : struct.success) + for (String _iter1079 : struct.success) { - oprot.writeString(_iter1063); + oprot.writeString(_iter1079); } oprot.writeListEnd(); } @@ -131879,9 +133839,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1064 : struct.success) + for (String _iter1080 : struct.success) { - oprot.writeString(_iter1064); + oprot.writeString(_iter1080); } } } @@ -131896,13 +133856,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 _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1065.size); - String _elem1066; - for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) + org.apache.thrift.protocol.TList _list1081 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1081.size); + String _elem1082; + for (int _i1083 = 0; _i1083 < _list1081.size; ++_i1083) { - _elem1066 = iprot.readString(); - struct.success.add(_elem1066); + _elem1082 = iprot.readString(); + struct.success.add(_elem1082); } } struct.setSuccessIsSet(true); @@ -135957,13 +137917,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 _list1068 = iprot.readListBegin(); - struct.success = new ArrayList(_list1068.size); - String _elem1069; - for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) + org.apache.thrift.protocol.TList _list1084 = iprot.readListBegin(); + struct.success = new ArrayList(_list1084.size); + String _elem1085; + for (int _i1086 = 0; _i1086 < _list1084.size; ++_i1086) { - _elem1069 = iprot.readString(); - struct.success.add(_elem1069); + _elem1085 = iprot.readString(); + struct.success.add(_elem1085); } iprot.readListEnd(); } @@ -135998,9 +137958,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 _iter1071 : struct.success) + for (String _iter1087 : struct.success) { - oprot.writeString(_iter1071); + oprot.writeString(_iter1087); } oprot.writeListEnd(); } @@ -136039,9 +137999,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1072 : struct.success) + for (String _iter1088 : struct.success) { - oprot.writeString(_iter1072); + oprot.writeString(_iter1088); } } } @@ -136056,13 +138016,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 _list1073 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1073.size); - String _elem1074; - for (int _i1075 = 0; _i1075 < _list1073.size; ++_i1075) + org.apache.thrift.protocol.TList _list1089 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1089.size); + String _elem1090; + for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) { - _elem1074 = iprot.readString(); - struct.success.add(_elem1074); + _elem1090 = iprot.readString(); + struct.success.add(_elem1090); } } struct.setSuccessIsSet(true); @@ -139353,14 +141313,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 _list1076 = iprot.readListBegin(); - struct.success = new ArrayList(_list1076.size); - Role _elem1077; - for (int _i1078 = 0; _i1078 < _list1076.size; ++_i1078) + org.apache.thrift.protocol.TList _list1092 = iprot.readListBegin(); + struct.success = new ArrayList(_list1092.size); + Role _elem1093; + for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) { - _elem1077 = new Role(); - _elem1077.read(iprot); - struct.success.add(_elem1077); + _elem1093 = new Role(); + _elem1093.read(iprot); + struct.success.add(_elem1093); } iprot.readListEnd(); } @@ -139395,9 +141355,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 _iter1079 : struct.success) + for (Role _iter1095 : struct.success) { - _iter1079.write(oprot); + _iter1095.write(oprot); } oprot.writeListEnd(); } @@ -139436,9 +141396,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1080 : struct.success) + for (Role _iter1096 : struct.success) { - _iter1080.write(oprot); + _iter1096.write(oprot); } } } @@ -139453,14 +141413,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 _list1081 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1081.size); - Role _elem1082; - for (int _i1083 = 0; _i1083 < _list1081.size; ++_i1083) + org.apache.thrift.protocol.TList _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1097.size); + Role _elem1098; + for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) { - _elem1082 = new Role(); - _elem1082.read(iprot); - struct.success.add(_elem1082); + _elem1098 = new Role(); + _elem1098.read(iprot); + struct.success.add(_elem1098); } } struct.setSuccessIsSet(true); @@ -142465,13 +144425,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 _list1084 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1084.size); - String _elem1085; - for (int _i1086 = 0; _i1086 < _list1084.size; ++_i1086) + org.apache.thrift.protocol.TList _list1100 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1100.size); + String _elem1101; + for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) { - _elem1085 = iprot.readString(); - struct.group_names.add(_elem1085); + _elem1101 = iprot.readString(); + struct.group_names.add(_elem1101); } iprot.readListEnd(); } @@ -142507,9 +144467,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 _iter1087 : struct.group_names) + for (String _iter1103 : struct.group_names) { - oprot.writeString(_iter1087); + oprot.writeString(_iter1103); } oprot.writeListEnd(); } @@ -142552,9 +144512,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 _iter1088 : struct.group_names) + for (String _iter1104 : struct.group_names) { - oprot.writeString(_iter1088); + oprot.writeString(_iter1104); } } } @@ -142575,13 +144535,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1089 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1089.size); - String _elem1090; - for (int _i1091 = 0; _i1091 < _list1089.size; ++_i1091) + org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1105.size); + String _elem1106; + for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) { - _elem1090 = iprot.readString(); - struct.group_names.add(_elem1090); + _elem1106 = iprot.readString(); + struct.group_names.add(_elem1106); } } struct.setGroup_namesIsSet(true); @@ -144039,14 +145999,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 _list1092 = iprot.readListBegin(); - struct.success = new ArrayList(_list1092.size); - HiveObjectPrivilege _elem1093; - for (int _i1094 = 0; _i1094 < _list1092.size; ++_i1094) + org.apache.thrift.protocol.TList _list1108 = iprot.readListBegin(); + struct.success = new ArrayList(_list1108.size); + HiveObjectPrivilege _elem1109; + for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) { - _elem1093 = new HiveObjectPrivilege(); - _elem1093.read(iprot); - struct.success.add(_elem1093); + _elem1109 = new HiveObjectPrivilege(); + _elem1109.read(iprot); + struct.success.add(_elem1109); } iprot.readListEnd(); } @@ -144081,9 +146041,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 _iter1095 : struct.success) + for (HiveObjectPrivilege _iter1111 : struct.success) { - _iter1095.write(oprot); + _iter1111.write(oprot); } oprot.writeListEnd(); } @@ -144122,9 +146082,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1096 : struct.success) + for (HiveObjectPrivilege _iter1112 : struct.success) { - _iter1096.write(oprot); + _iter1112.write(oprot); } } } @@ -144139,14 +146099,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 _list1097 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1097.size); - HiveObjectPrivilege _elem1098; - for (int _i1099 = 0; _i1099 < _list1097.size; ++_i1099) + org.apache.thrift.protocol.TList _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1113.size); + HiveObjectPrivilege _elem1114; + for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) { - _elem1098 = new HiveObjectPrivilege(); - _elem1098.read(iprot); - struct.success.add(_elem1098); + _elem1114 = new HiveObjectPrivilege(); + _elem1114.read(iprot); + struct.success.add(_elem1114); } } struct.setSuccessIsSet(true); @@ -147048,13 +149008,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 _list1100 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1100.size); - String _elem1101; - for (int _i1102 = 0; _i1102 < _list1100.size; ++_i1102) + org.apache.thrift.protocol.TList _list1116 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1116.size); + String _elem1117; + for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) { - _elem1101 = iprot.readString(); - struct.group_names.add(_elem1101); + _elem1117 = iprot.readString(); + struct.group_names.add(_elem1117); } iprot.readListEnd(); } @@ -147085,9 +149045,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 _iter1103 : struct.group_names) + for (String _iter1119 : struct.group_names) { - oprot.writeString(_iter1103); + oprot.writeString(_iter1119); } oprot.writeListEnd(); } @@ -147124,9 +149084,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 _iter1104 : struct.group_names) + for (String _iter1120 : struct.group_names) { - oprot.writeString(_iter1104); + oprot.writeString(_iter1120); } } } @@ -147142,13 +149102,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1105 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1105.size); - String _elem1106; - for (int _i1107 = 0; _i1107 < _list1105.size; ++_i1107) + org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1121.size); + String _elem1122; + for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) { - _elem1106 = iprot.readString(); - struct.group_names.add(_elem1106); + _elem1122 = iprot.readString(); + struct.group_names.add(_elem1122); } } struct.setGroup_namesIsSet(true); @@ -147551,13 +149511,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 _list1108 = iprot.readListBegin(); - struct.success = new ArrayList(_list1108.size); - String _elem1109; - for (int _i1110 = 0; _i1110 < _list1108.size; ++_i1110) + org.apache.thrift.protocol.TList _list1124 = iprot.readListBegin(); + struct.success = new ArrayList(_list1124.size); + String _elem1125; + for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) { - _elem1109 = iprot.readString(); - struct.success.add(_elem1109); + _elem1125 = iprot.readString(); + struct.success.add(_elem1125); } iprot.readListEnd(); } @@ -147592,9 +149552,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 _iter1111 : struct.success) + for (String _iter1127 : struct.success) { - oprot.writeString(_iter1111); + oprot.writeString(_iter1127); } oprot.writeListEnd(); } @@ -147633,9 +149593,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1112 : struct.success) + for (String _iter1128 : struct.success) { - oprot.writeString(_iter1112); + oprot.writeString(_iter1128); } } } @@ -147650,13 +149610,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 _list1113 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1113.size); - String _elem1114; - for (int _i1115 = 0; _i1115 < _list1113.size; ++_i1115) + org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1129.size); + String _elem1130; + for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) { - _elem1114 = iprot.readString(); - struct.success.add(_elem1114); + _elem1130 = iprot.readString(); + struct.success.add(_elem1130); } } struct.setSuccessIsSet(true); @@ -152947,13 +154907,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_all_token_ident case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1116 = iprot.readListBegin(); - struct.success = new ArrayList(_list1116.size); - String _elem1117; - for (int _i1118 = 0; _i1118 < _list1116.size; ++_i1118) + org.apache.thrift.protocol.TList _list1132 = iprot.readListBegin(); + struct.success = new ArrayList(_list1132.size); + String _elem1133; + for (int _i1134 = 0; _i1134 < _list1132.size; ++_i1134) { - _elem1117 = iprot.readString(); - struct.success.add(_elem1117); + _elem1133 = iprot.readString(); + struct.success.add(_elem1133); } iprot.readListEnd(); } @@ -152979,9 +154939,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_all_token_iden oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1119 : struct.success) + for (String _iter1135 : struct.success) { - oprot.writeString(_iter1119); + oprot.writeString(_iter1135); } oprot.writeListEnd(); } @@ -153012,9 +154972,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_all_token_ident if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1120 : struct.success) + for (String _iter1136 : struct.success) { - oprot.writeString(_iter1120); + oprot.writeString(_iter1136); } } } @@ -153026,13 +154986,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_all_token_identi BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1121 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1121.size); - String _elem1122; - for (int _i1123 = 0; _i1123 < _list1121.size; ++_i1123) + org.apache.thrift.protocol.TList _list1137 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1137.size); + String _elem1138; + for (int _i1139 = 0; _i1139 < _list1137.size; ++_i1139) { - _elem1122 = iprot.readString(); - struct.success.add(_elem1122); + _elem1138 = iprot.readString(); + struct.success.add(_elem1138); } } struct.setSuccessIsSet(true); @@ -156062,13 +158022,13 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_master_keys_res case 0: // SUCCESS if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { { - org.apache.thrift.protocol.TList _list1124 = iprot.readListBegin(); - struct.success = new ArrayList(_list1124.size); - String _elem1125; - for (int _i1126 = 0; _i1126 < _list1124.size; ++_i1126) + org.apache.thrift.protocol.TList _list1140 = iprot.readListBegin(); + struct.success = new ArrayList(_list1140.size); + String _elem1141; + for (int _i1142 = 0; _i1142 < _list1140.size; ++_i1142) { - _elem1125 = iprot.readString(); - struct.success.add(_elem1125); + _elem1141 = iprot.readString(); + struct.success.add(_elem1141); } iprot.readListEnd(); } @@ -156094,9 +158054,9 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_master_keys_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 _iter1127 : struct.success) + for (String _iter1143 : struct.success) { - oprot.writeString(_iter1127); + oprot.writeString(_iter1143); } oprot.writeListEnd(); } @@ -156127,9 +158087,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_master_keys_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1128 : struct.success) + for (String _iter1144 : struct.success) { - oprot.writeString(_iter1128); + oprot.writeString(_iter1144); } } } @@ -156141,13 +158101,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_master_keys_resu BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1129 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1129.size); - String _elem1130; - for (int _i1131 = 0; _i1131 < _list1129.size; ++_i1131) + org.apache.thrift.protocol.TList _list1145 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1145.size); + String _elem1146; + for (int _i1147 = 0; _i1147 < _list1145.size; ++_i1147) { - _elem1130 = iprot.readString(); - struct.success.add(_elem1130); + _elem1146 = iprot.readString(); + struct.success.add(_elem1146); } } struct.setSuccessIsSet(true); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index 034f5fa..3c9e038 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -173,6 +173,18 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function drop_constraint(\metastore\DropConstraintRequest $req); /** + * @param \metastore\AddPrimaryKeyRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_primary_key(\metastore\AddPrimaryKeyRequest $req); + /** + * @param \metastore\AddForeignKeyRequest $req + * @throws \metastore\NoSuchObjectException + * @throws \metastore\MetaException + */ + public function add_foreign_key(\metastore\AddForeignKeyRequest $req); + /** * @param string $dbname * @param string $name * @param bool $deleteData @@ -2310,6 +2322,114 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas return; } + public function add_primary_key(\metastore\AddPrimaryKeyRequest $req) + { + $this->send_add_primary_key($req); + $this->recv_add_primary_key(); + } + + public function send_add_primary_key(\metastore\AddPrimaryKeyRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_primary_key_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'add_primary_key', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_primary_key', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_primary_key() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_primary_key_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_add_primary_key_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + return; + } + + public function add_foreign_key(\metastore\AddForeignKeyRequest $req) + { + $this->send_add_foreign_key($req); + $this->recv_add_foreign_key(); + } + + public function send_add_foreign_key(\metastore\AddForeignKeyRequest $req) + { + $args = new \metastore\ThriftHiveMetastore_add_foreign_key_args(); + $args->req = $req; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'add_foreign_key', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('add_foreign_key', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_add_foreign_key() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_add_foreign_key_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_add_foreign_key_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + return; + } + public function drop_table($dbname, $name, $deleteData) { $this->send_drop_table($dbname, $name, $deleteData); @@ -10672,14 +10792,14 @@ class ThriftHiveMetastore_get_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size546 = 0; - $_etype549 = 0; - $xfer += $input->readListBegin($_etype549, $_size546); - for ($_i550 = 0; $_i550 < $_size546; ++$_i550) + $_size560 = 0; + $_etype563 = 0; + $xfer += $input->readListBegin($_etype563, $_size560); + for ($_i564 = 0; $_i564 < $_size560; ++$_i564) { - $elem551 = null; - $xfer += $input->readString($elem551); - $this->success []= $elem551; + $elem565 = null; + $xfer += $input->readString($elem565); + $this->success []= $elem565; } $xfer += $input->readListEnd(); } else { @@ -10715,9 +10835,9 @@ class ThriftHiveMetastore_get_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter552) + foreach ($this->success as $iter566) { - $xfer += $output->writeString($iter552); + $xfer += $output->writeString($iter566); } } $output->writeListEnd(); @@ -10848,14 +10968,14 @@ class ThriftHiveMetastore_get_all_databases_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size553 = 0; - $_etype556 = 0; - $xfer += $input->readListBegin($_etype556, $_size553); - for ($_i557 = 0; $_i557 < $_size553; ++$_i557) + $_size567 = 0; + $_etype570 = 0; + $xfer += $input->readListBegin($_etype570, $_size567); + for ($_i571 = 0; $_i571 < $_size567; ++$_i571) { - $elem558 = null; - $xfer += $input->readString($elem558); - $this->success []= $elem558; + $elem572 = null; + $xfer += $input->readString($elem572); + $this->success []= $elem572; } $xfer += $input->readListEnd(); } else { @@ -10891,9 +11011,9 @@ class ThriftHiveMetastore_get_all_databases_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter559) + foreach ($this->success as $iter573) { - $xfer += $output->writeString($iter559); + $xfer += $output->writeString($iter573); } } $output->writeListEnd(); @@ -11894,18 +12014,18 @@ class ThriftHiveMetastore_get_type_all_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size560 = 0; - $_ktype561 = 0; - $_vtype562 = 0; - $xfer += $input->readMapBegin($_ktype561, $_vtype562, $_size560); - for ($_i564 = 0; $_i564 < $_size560; ++$_i564) + $_size574 = 0; + $_ktype575 = 0; + $_vtype576 = 0; + $xfer += $input->readMapBegin($_ktype575, $_vtype576, $_size574); + for ($_i578 = 0; $_i578 < $_size574; ++$_i578) { - $key565 = ''; - $val566 = new \metastore\Type(); - $xfer += $input->readString($key565); - $val566 = new \metastore\Type(); - $xfer += $val566->read($input); - $this->success[$key565] = $val566; + $key579 = ''; + $val580 = new \metastore\Type(); + $xfer += $input->readString($key579); + $val580 = new \metastore\Type(); + $xfer += $val580->read($input); + $this->success[$key579] = $val580; } $xfer += $input->readMapEnd(); } else { @@ -11941,10 +12061,10 @@ class ThriftHiveMetastore_get_type_all_result { { $output->writeMapBegin(TType::STRING, TType::STRUCT, count($this->success)); { - foreach ($this->success as $kiter567 => $viter568) + foreach ($this->success as $kiter581 => $viter582) { - $xfer += $output->writeString($kiter567); - $xfer += $viter568->write($output); + $xfer += $output->writeString($kiter581); + $xfer += $viter582->write($output); } } $output->writeMapEnd(); @@ -12148,15 +12268,15 @@ class ThriftHiveMetastore_get_fields_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size569 = 0; - $_etype572 = 0; - $xfer += $input->readListBegin($_etype572, $_size569); - for ($_i573 = 0; $_i573 < $_size569; ++$_i573) + $_size583 = 0; + $_etype586 = 0; + $xfer += $input->readListBegin($_etype586, $_size583); + for ($_i587 = 0; $_i587 < $_size583; ++$_i587) { - $elem574 = null; - $elem574 = new \metastore\FieldSchema(); - $xfer += $elem574->read($input); - $this->success []= $elem574; + $elem588 = null; + $elem588 = new \metastore\FieldSchema(); + $xfer += $elem588->read($input); + $this->success []= $elem588; } $xfer += $input->readListEnd(); } else { @@ -12208,9 +12328,9 @@ class ThriftHiveMetastore_get_fields_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter575) + foreach ($this->success as $iter589) { - $xfer += $iter575->write($output); + $xfer += $iter589->write($output); } } $output->writeListEnd(); @@ -12452,15 +12572,15 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size576 = 0; - $_etype579 = 0; - $xfer += $input->readListBegin($_etype579, $_size576); - for ($_i580 = 0; $_i580 < $_size576; ++$_i580) + $_size590 = 0; + $_etype593 = 0; + $xfer += $input->readListBegin($_etype593, $_size590); + for ($_i594 = 0; $_i594 < $_size590; ++$_i594) { - $elem581 = null; - $elem581 = new \metastore\FieldSchema(); - $xfer += $elem581->read($input); - $this->success []= $elem581; + $elem595 = null; + $elem595 = new \metastore\FieldSchema(); + $xfer += $elem595->read($input); + $this->success []= $elem595; } $xfer += $input->readListEnd(); } else { @@ -12512,9 +12632,9 @@ class ThriftHiveMetastore_get_fields_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter582) + foreach ($this->success as $iter596) { - $xfer += $iter582->write($output); + $xfer += $iter596->write($output); } } $output->writeListEnd(); @@ -12728,15 +12848,15 @@ class ThriftHiveMetastore_get_schema_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size583 = 0; - $_etype586 = 0; - $xfer += $input->readListBegin($_etype586, $_size583); - for ($_i587 = 0; $_i587 < $_size583; ++$_i587) + $_size597 = 0; + $_etype600 = 0; + $xfer += $input->readListBegin($_etype600, $_size597); + for ($_i601 = 0; $_i601 < $_size597; ++$_i601) { - $elem588 = null; - $elem588 = new \metastore\FieldSchema(); - $xfer += $elem588->read($input); - $this->success []= $elem588; + $elem602 = null; + $elem602 = new \metastore\FieldSchema(); + $xfer += $elem602->read($input); + $this->success []= $elem602; } $xfer += $input->readListEnd(); } else { @@ -12788,9 +12908,9 @@ class ThriftHiveMetastore_get_schema_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter589) + foreach ($this->success as $iter603) { - $xfer += $iter589->write($output); + $xfer += $iter603->write($output); } } $output->writeListEnd(); @@ -13032,15 +13152,15 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size590 = 0; - $_etype593 = 0; - $xfer += $input->readListBegin($_etype593, $_size590); - for ($_i594 = 0; $_i594 < $_size590; ++$_i594) + $_size604 = 0; + $_etype607 = 0; + $xfer += $input->readListBegin($_etype607, $_size604); + for ($_i608 = 0; $_i608 < $_size604; ++$_i608) { - $elem595 = null; - $elem595 = new \metastore\FieldSchema(); - $xfer += $elem595->read($input); - $this->success []= $elem595; + $elem609 = null; + $elem609 = new \metastore\FieldSchema(); + $xfer += $elem609->read($input); + $this->success []= $elem609; } $xfer += $input->readListEnd(); } else { @@ -13092,9 +13212,9 @@ class ThriftHiveMetastore_get_schema_with_environment_context_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter596) + foreach ($this->success as $iter610) { - $xfer += $iter596->write($output); + $xfer += $iter610->write($output); } } $output->writeListEnd(); @@ -13702,15 +13822,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 2: if ($ftype == TType::LST) { $this->primaryKeys = array(); - $_size597 = 0; - $_etype600 = 0; - $xfer += $input->readListBegin($_etype600, $_size597); - for ($_i601 = 0; $_i601 < $_size597; ++$_i601) + $_size611 = 0; + $_etype614 = 0; + $xfer += $input->readListBegin($_etype614, $_size611); + for ($_i615 = 0; $_i615 < $_size611; ++$_i615) { - $elem602 = null; - $elem602 = new \metastore\SQLPrimaryKey(); - $xfer += $elem602->read($input); - $this->primaryKeys []= $elem602; + $elem616 = null; + $elem616 = new \metastore\SQLPrimaryKey(); + $xfer += $elem616->read($input); + $this->primaryKeys []= $elem616; } $xfer += $input->readListEnd(); } else { @@ -13720,15 +13840,15 @@ class ThriftHiveMetastore_create_table_with_constraints_args { case 3: if ($ftype == TType::LST) { $this->foreignKeys = array(); - $_size603 = 0; - $_etype606 = 0; - $xfer += $input->readListBegin($_etype606, $_size603); - for ($_i607 = 0; $_i607 < $_size603; ++$_i607) + $_size617 = 0; + $_etype620 = 0; + $xfer += $input->readListBegin($_etype620, $_size617); + for ($_i621 = 0; $_i621 < $_size617; ++$_i621) { - $elem608 = null; - $elem608 = new \metastore\SQLForeignKey(); - $xfer += $elem608->read($input); - $this->foreignKeys []= $elem608; + $elem622 = null; + $elem622 = new \metastore\SQLForeignKey(); + $xfer += $elem622->read($input); + $this->foreignKeys []= $elem622; } $xfer += $input->readListEnd(); } else { @@ -13764,9 +13884,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->primaryKeys)); { - foreach ($this->primaryKeys as $iter609) + foreach ($this->primaryKeys as $iter623) { - $xfer += $iter609->write($output); + $xfer += $iter623->write($output); } } $output->writeListEnd(); @@ -13781,9 +13901,9 @@ class ThriftHiveMetastore_create_table_with_constraints_args { { $output->writeListBegin(TType::STRUCT, count($this->foreignKeys)); { - foreach ($this->foreignKeys as $iter610) + foreach ($this->foreignKeys as $iter624) { - $xfer += $iter610->write($output); + $xfer += $iter624->write($output); } } $output->writeListEnd(); @@ -14131,6 +14251,370 @@ class ThriftHiveMetastore_drop_constraint_result { } +class ThriftHiveMetastore_add_primary_key_args { + static $_TSPEC; + + /** + * @var \metastore\AddPrimaryKeyRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\AddPrimaryKeyRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_primary_key_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->req = new \metastore\AddPrimaryKeyRequest(); + $xfer += $this->req->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_add_primary_key_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_add_primary_key_result { + static $_TSPEC; + + /** + * @var \metastore\NoSuchObjectException + */ + public $o1 = null; + /** + * @var \metastore\MetaException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 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['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_primary_key_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 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_add_primary_key_result'); + 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_add_foreign_key_args { + static $_TSPEC; + + /** + * @var \metastore\AddForeignKeyRequest + */ + public $req = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'req', + 'type' => TType::STRUCT, + 'class' => '\metastore\AddForeignKeyRequest', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['req'])) { + $this->req = $vals['req']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_foreign_key_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->req = new \metastore\AddForeignKeyRequest(); + $xfer += $this->req->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_add_foreign_key_args'); + if ($this->req !== null) { + if (!is_object($this->req)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('req', TType::STRUCT, 1); + $xfer += $this->req->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_add_foreign_key_result { + static $_TSPEC; + + /** + * @var \metastore\NoSuchObjectException + */ + public $o1 = null; + /** + * @var \metastore\MetaException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 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['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_add_foreign_key_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 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_add_foreign_key_result'); + 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_drop_table_args { static $_TSPEC; @@ -14765,14 +15249,14 @@ class ThriftHiveMetastore_get_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size611 = 0; - $_etype614 = 0; - $xfer += $input->readListBegin($_etype614, $_size611); - for ($_i615 = 0; $_i615 < $_size611; ++$_i615) + $_size625 = 0; + $_etype628 = 0; + $xfer += $input->readListBegin($_etype628, $_size625); + for ($_i629 = 0; $_i629 < $_size625; ++$_i629) { - $elem616 = null; - $xfer += $input->readString($elem616); - $this->success []= $elem616; + $elem630 = null; + $xfer += $input->readString($elem630); + $this->success []= $elem630; } $xfer += $input->readListEnd(); } else { @@ -14808,9 +15292,9 @@ class ThriftHiveMetastore_get_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter617) + foreach ($this->success as $iter631) { - $xfer += $output->writeString($iter617); + $xfer += $output->writeString($iter631); } } $output->writeListEnd(); @@ -14915,14 +15399,14 @@ class ThriftHiveMetastore_get_table_meta_args { case 3: if ($ftype == TType::LST) { $this->tbl_types = array(); - $_size618 = 0; - $_etype621 = 0; - $xfer += $input->readListBegin($_etype621, $_size618); - for ($_i622 = 0; $_i622 < $_size618; ++$_i622) + $_size632 = 0; + $_etype635 = 0; + $xfer += $input->readListBegin($_etype635, $_size632); + for ($_i636 = 0; $_i636 < $_size632; ++$_i636) { - $elem623 = null; - $xfer += $input->readString($elem623); - $this->tbl_types []= $elem623; + $elem637 = null; + $xfer += $input->readString($elem637); + $this->tbl_types []= $elem637; } $xfer += $input->readListEnd(); } else { @@ -14960,9 +15444,9 @@ class ThriftHiveMetastore_get_table_meta_args { { $output->writeListBegin(TType::STRING, count($this->tbl_types)); { - foreach ($this->tbl_types as $iter624) + foreach ($this->tbl_types as $iter638) { - $xfer += $output->writeString($iter624); + $xfer += $output->writeString($iter638); } } $output->writeListEnd(); @@ -15039,15 +15523,15 @@ class ThriftHiveMetastore_get_table_meta_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size625 = 0; - $_etype628 = 0; - $xfer += $input->readListBegin($_etype628, $_size625); - for ($_i629 = 0; $_i629 < $_size625; ++$_i629) + $_size639 = 0; + $_etype642 = 0; + $xfer += $input->readListBegin($_etype642, $_size639); + for ($_i643 = 0; $_i643 < $_size639; ++$_i643) { - $elem630 = null; - $elem630 = new \metastore\TableMeta(); - $xfer += $elem630->read($input); - $this->success []= $elem630; + $elem644 = null; + $elem644 = new \metastore\TableMeta(); + $xfer += $elem644->read($input); + $this->success []= $elem644; } $xfer += $input->readListEnd(); } else { @@ -15083,9 +15567,9 @@ class ThriftHiveMetastore_get_table_meta_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter631) + foreach ($this->success as $iter645) { - $xfer += $iter631->write($output); + $xfer += $iter645->write($output); } } $output->writeListEnd(); @@ -15241,14 +15725,14 @@ class ThriftHiveMetastore_get_all_tables_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size632 = 0; - $_etype635 = 0; - $xfer += $input->readListBegin($_etype635, $_size632); - for ($_i636 = 0; $_i636 < $_size632; ++$_i636) + $_size646 = 0; + $_etype649 = 0; + $xfer += $input->readListBegin($_etype649, $_size646); + for ($_i650 = 0; $_i650 < $_size646; ++$_i650) { - $elem637 = null; - $xfer += $input->readString($elem637); - $this->success []= $elem637; + $elem651 = null; + $xfer += $input->readString($elem651); + $this->success []= $elem651; } $xfer += $input->readListEnd(); } else { @@ -15284,9 +15768,9 @@ class ThriftHiveMetastore_get_all_tables_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter638) + foreach ($this->success as $iter652) { - $xfer += $output->writeString($iter638); + $xfer += $output->writeString($iter652); } } $output->writeListEnd(); @@ -15601,14 +16085,14 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { case 2: if ($ftype == TType::LST) { $this->tbl_names = array(); - $_size639 = 0; - $_etype642 = 0; - $xfer += $input->readListBegin($_etype642, $_size639); - for ($_i643 = 0; $_i643 < $_size639; ++$_i643) + $_size653 = 0; + $_etype656 = 0; + $xfer += $input->readListBegin($_etype656, $_size653); + for ($_i657 = 0; $_i657 < $_size653; ++$_i657) { - $elem644 = null; - $xfer += $input->readString($elem644); - $this->tbl_names []= $elem644; + $elem658 = null; + $xfer += $input->readString($elem658); + $this->tbl_names []= $elem658; } $xfer += $input->readListEnd(); } else { @@ -15641,9 +16125,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_args { { $output->writeListBegin(TType::STRING, count($this->tbl_names)); { - foreach ($this->tbl_names as $iter645) + foreach ($this->tbl_names as $iter659) { - $xfer += $output->writeString($iter645); + $xfer += $output->writeString($iter659); } } $output->writeListEnd(); @@ -15744,15 +16228,15 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size646 = 0; - $_etype649 = 0; - $xfer += $input->readListBegin($_etype649, $_size646); - for ($_i650 = 0; $_i650 < $_size646; ++$_i650) + $_size660 = 0; + $_etype663 = 0; + $xfer += $input->readListBegin($_etype663, $_size660); + for ($_i664 = 0; $_i664 < $_size660; ++$_i664) { - $elem651 = null; - $elem651 = new \metastore\Table(); - $xfer += $elem651->read($input); - $this->success []= $elem651; + $elem665 = null; + $elem665 = new \metastore\Table(); + $xfer += $elem665->read($input); + $this->success []= $elem665; } $xfer += $input->readListEnd(); } else { @@ -15804,9 +16288,9 @@ class ThriftHiveMetastore_get_table_objects_by_name_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter652) + foreach ($this->success as $iter666) { - $xfer += $iter652->write($output); + $xfer += $iter666->write($output); } } $output->writeListEnd(); @@ -16042,14 +16526,14 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size653 = 0; - $_etype656 = 0; - $xfer += $input->readListBegin($_etype656, $_size653); - for ($_i657 = 0; $_i657 < $_size653; ++$_i657) + $_size667 = 0; + $_etype670 = 0; + $xfer += $input->readListBegin($_etype670, $_size667); + for ($_i671 = 0; $_i671 < $_size667; ++$_i671) { - $elem658 = null; - $xfer += $input->readString($elem658); - $this->success []= $elem658; + $elem672 = null; + $xfer += $input->readString($elem672); + $this->success []= $elem672; } $xfer += $input->readListEnd(); } else { @@ -16101,9 +16585,9 @@ class ThriftHiveMetastore_get_table_names_by_filter_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter659) + foreach ($this->success as $iter673) { - $xfer += $output->writeString($iter659); + $xfer += $output->writeString($iter673); } } $output->writeListEnd(); @@ -17416,15 +17900,15 @@ class ThriftHiveMetastore_add_partitions_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size660 = 0; - $_etype663 = 0; - $xfer += $input->readListBegin($_etype663, $_size660); - for ($_i664 = 0; $_i664 < $_size660; ++$_i664) + $_size674 = 0; + $_etype677 = 0; + $xfer += $input->readListBegin($_etype677, $_size674); + for ($_i678 = 0; $_i678 < $_size674; ++$_i678) { - $elem665 = null; - $elem665 = new \metastore\Partition(); - $xfer += $elem665->read($input); - $this->new_parts []= $elem665; + $elem679 = null; + $elem679 = new \metastore\Partition(); + $xfer += $elem679->read($input); + $this->new_parts []= $elem679; } $xfer += $input->readListEnd(); } else { @@ -17452,9 +17936,9 @@ class ThriftHiveMetastore_add_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter666) + foreach ($this->new_parts as $iter680) { - $xfer += $iter666->write($output); + $xfer += $iter680->write($output); } } $output->writeListEnd(); @@ -17669,15 +18153,15 @@ class ThriftHiveMetastore_add_partitions_pspec_args { case 1: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size667 = 0; - $_etype670 = 0; - $xfer += $input->readListBegin($_etype670, $_size667); - for ($_i671 = 0; $_i671 < $_size667; ++$_i671) + $_size681 = 0; + $_etype684 = 0; + $xfer += $input->readListBegin($_etype684, $_size681); + for ($_i685 = 0; $_i685 < $_size681; ++$_i685) { - $elem672 = null; - $elem672 = new \metastore\PartitionSpec(); - $xfer += $elem672->read($input); - $this->new_parts []= $elem672; + $elem686 = null; + $elem686 = new \metastore\PartitionSpec(); + $xfer += $elem686->read($input); + $this->new_parts []= $elem686; } $xfer += $input->readListEnd(); } else { @@ -17705,9 +18189,9 @@ class ThriftHiveMetastore_add_partitions_pspec_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter673) + foreach ($this->new_parts as $iter687) { - $xfer += $iter673->write($output); + $xfer += $iter687->write($output); } } $output->writeListEnd(); @@ -17957,14 +18441,14 @@ class ThriftHiveMetastore_append_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size674 = 0; - $_etype677 = 0; - $xfer += $input->readListBegin($_etype677, $_size674); - for ($_i678 = 0; $_i678 < $_size674; ++$_i678) + $_size688 = 0; + $_etype691 = 0; + $xfer += $input->readListBegin($_etype691, $_size688); + for ($_i692 = 0; $_i692 < $_size688; ++$_i692) { - $elem679 = null; - $xfer += $input->readString($elem679); - $this->part_vals []= $elem679; + $elem693 = null; + $xfer += $input->readString($elem693); + $this->part_vals []= $elem693; } $xfer += $input->readListEnd(); } else { @@ -18002,9 +18486,9 @@ class ThriftHiveMetastore_append_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter680) + foreach ($this->part_vals as $iter694) { - $xfer += $output->writeString($iter680); + $xfer += $output->writeString($iter694); } } $output->writeListEnd(); @@ -18506,14 +18990,14 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size681 = 0; - $_etype684 = 0; - $xfer += $input->readListBegin($_etype684, $_size681); - for ($_i685 = 0; $_i685 < $_size681; ++$_i685) + $_size695 = 0; + $_etype698 = 0; + $xfer += $input->readListBegin($_etype698, $_size695); + for ($_i699 = 0; $_i699 < $_size695; ++$_i699) { - $elem686 = null; - $xfer += $input->readString($elem686); - $this->part_vals []= $elem686; + $elem700 = null; + $xfer += $input->readString($elem700); + $this->part_vals []= $elem700; } $xfer += $input->readListEnd(); } else { @@ -18559,9 +19043,9 @@ class ThriftHiveMetastore_append_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter687) + foreach ($this->part_vals as $iter701) { - $xfer += $output->writeString($iter687); + $xfer += $output->writeString($iter701); } } $output->writeListEnd(); @@ -19415,14 +19899,14 @@ class ThriftHiveMetastore_drop_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size688 = 0; - $_etype691 = 0; - $xfer += $input->readListBegin($_etype691, $_size688); - for ($_i692 = 0; $_i692 < $_size688; ++$_i692) + $_size702 = 0; + $_etype705 = 0; + $xfer += $input->readListBegin($_etype705, $_size702); + for ($_i706 = 0; $_i706 < $_size702; ++$_i706) { - $elem693 = null; - $xfer += $input->readString($elem693); - $this->part_vals []= $elem693; + $elem707 = null; + $xfer += $input->readString($elem707); + $this->part_vals []= $elem707; } $xfer += $input->readListEnd(); } else { @@ -19467,9 +19951,9 @@ class ThriftHiveMetastore_drop_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter694) + foreach ($this->part_vals as $iter708) { - $xfer += $output->writeString($iter694); + $xfer += $output->writeString($iter708); } } $output->writeListEnd(); @@ -19722,14 +20206,14 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size695 = 0; - $_etype698 = 0; - $xfer += $input->readListBegin($_etype698, $_size695); - for ($_i699 = 0; $_i699 < $_size695; ++$_i699) + $_size709 = 0; + $_etype712 = 0; + $xfer += $input->readListBegin($_etype712, $_size709); + for ($_i713 = 0; $_i713 < $_size709; ++$_i713) { - $elem700 = null; - $xfer += $input->readString($elem700); - $this->part_vals []= $elem700; + $elem714 = null; + $xfer += $input->readString($elem714); + $this->part_vals []= $elem714; } $xfer += $input->readListEnd(); } else { @@ -19782,9 +20266,9 @@ class ThriftHiveMetastore_drop_partition_with_environment_context_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter701) + foreach ($this->part_vals as $iter715) { - $xfer += $output->writeString($iter701); + $xfer += $output->writeString($iter715); } } $output->writeListEnd(); @@ -20798,14 +21282,14 @@ class ThriftHiveMetastore_get_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size702 = 0; - $_etype705 = 0; - $xfer += $input->readListBegin($_etype705, $_size702); - for ($_i706 = 0; $_i706 < $_size702; ++$_i706) + $_size716 = 0; + $_etype719 = 0; + $xfer += $input->readListBegin($_etype719, $_size716); + for ($_i720 = 0; $_i720 < $_size716; ++$_i720) { - $elem707 = null; - $xfer += $input->readString($elem707); - $this->part_vals []= $elem707; + $elem721 = null; + $xfer += $input->readString($elem721); + $this->part_vals []= $elem721; } $xfer += $input->readListEnd(); } else { @@ -20843,9 +21327,9 @@ class ThriftHiveMetastore_get_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter708) + foreach ($this->part_vals as $iter722) { - $xfer += $output->writeString($iter708); + $xfer += $output->writeString($iter722); } } $output->writeListEnd(); @@ -21087,17 +21571,17 @@ class ThriftHiveMetastore_exchange_partition_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size709 = 0; - $_ktype710 = 0; - $_vtype711 = 0; - $xfer += $input->readMapBegin($_ktype710, $_vtype711, $_size709); - for ($_i713 = 0; $_i713 < $_size709; ++$_i713) + $_size723 = 0; + $_ktype724 = 0; + $_vtype725 = 0; + $xfer += $input->readMapBegin($_ktype724, $_vtype725, $_size723); + for ($_i727 = 0; $_i727 < $_size723; ++$_i727) { - $key714 = ''; - $val715 = ''; - $xfer += $input->readString($key714); - $xfer += $input->readString($val715); - $this->partitionSpecs[$key714] = $val715; + $key728 = ''; + $val729 = ''; + $xfer += $input->readString($key728); + $xfer += $input->readString($val729); + $this->partitionSpecs[$key728] = $val729; } $xfer += $input->readMapEnd(); } else { @@ -21153,10 +21637,10 @@ class ThriftHiveMetastore_exchange_partition_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter716 => $viter717) + foreach ($this->partitionSpecs as $kiter730 => $viter731) { - $xfer += $output->writeString($kiter716); - $xfer += $output->writeString($viter717); + $xfer += $output->writeString($kiter730); + $xfer += $output->writeString($viter731); } } $output->writeMapEnd(); @@ -21468,17 +21952,17 @@ class ThriftHiveMetastore_exchange_partitions_args { case 1: if ($ftype == TType::MAP) { $this->partitionSpecs = array(); - $_size718 = 0; - $_ktype719 = 0; - $_vtype720 = 0; - $xfer += $input->readMapBegin($_ktype719, $_vtype720, $_size718); - for ($_i722 = 0; $_i722 < $_size718; ++$_i722) + $_size732 = 0; + $_ktype733 = 0; + $_vtype734 = 0; + $xfer += $input->readMapBegin($_ktype733, $_vtype734, $_size732); + for ($_i736 = 0; $_i736 < $_size732; ++$_i736) { - $key723 = ''; - $val724 = ''; - $xfer += $input->readString($key723); - $xfer += $input->readString($val724); - $this->partitionSpecs[$key723] = $val724; + $key737 = ''; + $val738 = ''; + $xfer += $input->readString($key737); + $xfer += $input->readString($val738); + $this->partitionSpecs[$key737] = $val738; } $xfer += $input->readMapEnd(); } else { @@ -21534,10 +22018,10 @@ class ThriftHiveMetastore_exchange_partitions_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->partitionSpecs)); { - foreach ($this->partitionSpecs as $kiter725 => $viter726) + foreach ($this->partitionSpecs as $kiter739 => $viter740) { - $xfer += $output->writeString($kiter725); - $xfer += $output->writeString($viter726); + $xfer += $output->writeString($kiter739); + $xfer += $output->writeString($viter740); } } $output->writeMapEnd(); @@ -21670,15 +22154,15 @@ class ThriftHiveMetastore_exchange_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size727 = 0; - $_etype730 = 0; - $xfer += $input->readListBegin($_etype730, $_size727); - for ($_i731 = 0; $_i731 < $_size727; ++$_i731) + $_size741 = 0; + $_etype744 = 0; + $xfer += $input->readListBegin($_etype744, $_size741); + for ($_i745 = 0; $_i745 < $_size741; ++$_i745) { - $elem732 = null; - $elem732 = new \metastore\Partition(); - $xfer += $elem732->read($input); - $this->success []= $elem732; + $elem746 = null; + $elem746 = new \metastore\Partition(); + $xfer += $elem746->read($input); + $this->success []= $elem746; } $xfer += $input->readListEnd(); } else { @@ -21738,9 +22222,9 @@ class ThriftHiveMetastore_exchange_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter733) + foreach ($this->success as $iter747) { - $xfer += $iter733->write($output); + $xfer += $iter747->write($output); } } $output->writeListEnd(); @@ -21886,14 +22370,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size734 = 0; - $_etype737 = 0; - $xfer += $input->readListBegin($_etype737, $_size734); - for ($_i738 = 0; $_i738 < $_size734; ++$_i738) + $_size748 = 0; + $_etype751 = 0; + $xfer += $input->readListBegin($_etype751, $_size748); + for ($_i752 = 0; $_i752 < $_size748; ++$_i752) { - $elem739 = null; - $xfer += $input->readString($elem739); - $this->part_vals []= $elem739; + $elem753 = null; + $xfer += $input->readString($elem753); + $this->part_vals []= $elem753; } $xfer += $input->readListEnd(); } else { @@ -21910,14 +22394,14 @@ class ThriftHiveMetastore_get_partition_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size740 = 0; - $_etype743 = 0; - $xfer += $input->readListBegin($_etype743, $_size740); - for ($_i744 = 0; $_i744 < $_size740; ++$_i744) + $_size754 = 0; + $_etype757 = 0; + $xfer += $input->readListBegin($_etype757, $_size754); + for ($_i758 = 0; $_i758 < $_size754; ++$_i758) { - $elem745 = null; - $xfer += $input->readString($elem745); - $this->group_names []= $elem745; + $elem759 = null; + $xfer += $input->readString($elem759); + $this->group_names []= $elem759; } $xfer += $input->readListEnd(); } else { @@ -21955,9 +22439,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter746) + foreach ($this->part_vals as $iter760) { - $xfer += $output->writeString($iter746); + $xfer += $output->writeString($iter760); } } $output->writeListEnd(); @@ -21977,9 +22461,9 @@ class ThriftHiveMetastore_get_partition_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter747) + foreach ($this->group_names as $iter761) { - $xfer += $output->writeString($iter747); + $xfer += $output->writeString($iter761); } } $output->writeListEnd(); @@ -22570,15 +23054,15 @@ class ThriftHiveMetastore_get_partitions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size748 = 0; - $_etype751 = 0; - $xfer += $input->readListBegin($_etype751, $_size748); - for ($_i752 = 0; $_i752 < $_size748; ++$_i752) + $_size762 = 0; + $_etype765 = 0; + $xfer += $input->readListBegin($_etype765, $_size762); + for ($_i766 = 0; $_i766 < $_size762; ++$_i766) { - $elem753 = null; - $elem753 = new \metastore\Partition(); - $xfer += $elem753->read($input); - $this->success []= $elem753; + $elem767 = null; + $elem767 = new \metastore\Partition(); + $xfer += $elem767->read($input); + $this->success []= $elem767; } $xfer += $input->readListEnd(); } else { @@ -22622,9 +23106,9 @@ class ThriftHiveMetastore_get_partitions_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter754) + foreach ($this->success as $iter768) { - $xfer += $iter754->write($output); + $xfer += $iter768->write($output); } } $output->writeListEnd(); @@ -22770,14 +23254,14 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { case 5: if ($ftype == TType::LST) { $this->group_names = array(); - $_size755 = 0; - $_etype758 = 0; - $xfer += $input->readListBegin($_etype758, $_size755); - for ($_i759 = 0; $_i759 < $_size755; ++$_i759) + $_size769 = 0; + $_etype772 = 0; + $xfer += $input->readListBegin($_etype772, $_size769); + for ($_i773 = 0; $_i773 < $_size769; ++$_i773) { - $elem760 = null; - $xfer += $input->readString($elem760); - $this->group_names []= $elem760; + $elem774 = null; + $xfer += $input->readString($elem774); + $this->group_names []= $elem774; } $xfer += $input->readListEnd(); } else { @@ -22825,9 +23309,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter761) + foreach ($this->group_names as $iter775) { - $xfer += $output->writeString($iter761); + $xfer += $output->writeString($iter775); } } $output->writeListEnd(); @@ -22916,15 +23400,15 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size762 = 0; - $_etype765 = 0; - $xfer += $input->readListBegin($_etype765, $_size762); - for ($_i766 = 0; $_i766 < $_size762; ++$_i766) + $_size776 = 0; + $_etype779 = 0; + $xfer += $input->readListBegin($_etype779, $_size776); + for ($_i780 = 0; $_i780 < $_size776; ++$_i780) { - $elem767 = null; - $elem767 = new \metastore\Partition(); - $xfer += $elem767->read($input); - $this->success []= $elem767; + $elem781 = null; + $elem781 = new \metastore\Partition(); + $xfer += $elem781->read($input); + $this->success []= $elem781; } $xfer += $input->readListEnd(); } else { @@ -22968,9 +23452,9 @@ class ThriftHiveMetastore_get_partitions_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter768) + foreach ($this->success as $iter782) { - $xfer += $iter768->write($output); + $xfer += $iter782->write($output); } } $output->writeListEnd(); @@ -23190,15 +23674,15 @@ class ThriftHiveMetastore_get_partitions_pspec_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size769 = 0; - $_etype772 = 0; - $xfer += $input->readListBegin($_etype772, $_size769); - for ($_i773 = 0; $_i773 < $_size769; ++$_i773) + $_size783 = 0; + $_etype786 = 0; + $xfer += $input->readListBegin($_etype786, $_size783); + for ($_i787 = 0; $_i787 < $_size783; ++$_i787) { - $elem774 = null; - $elem774 = new \metastore\PartitionSpec(); - $xfer += $elem774->read($input); - $this->success []= $elem774; + $elem788 = null; + $elem788 = new \metastore\PartitionSpec(); + $xfer += $elem788->read($input); + $this->success []= $elem788; } $xfer += $input->readListEnd(); } else { @@ -23242,9 +23726,9 @@ class ThriftHiveMetastore_get_partitions_pspec_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter775) + foreach ($this->success as $iter789) { - $xfer += $iter775->write($output); + $xfer += $iter789->write($output); } } $output->writeListEnd(); @@ -23451,14 +23935,14 @@ class ThriftHiveMetastore_get_partition_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size776 = 0; - $_etype779 = 0; - $xfer += $input->readListBegin($_etype779, $_size776); - for ($_i780 = 0; $_i780 < $_size776; ++$_i780) + $_size790 = 0; + $_etype793 = 0; + $xfer += $input->readListBegin($_etype793, $_size790); + for ($_i794 = 0; $_i794 < $_size790; ++$_i794) { - $elem781 = null; - $xfer += $input->readString($elem781); - $this->success []= $elem781; + $elem795 = null; + $xfer += $input->readString($elem795); + $this->success []= $elem795; } $xfer += $input->readListEnd(); } else { @@ -23494,9 +23978,9 @@ class ThriftHiveMetastore_get_partition_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter782) + foreach ($this->success as $iter796) { - $xfer += $output->writeString($iter782); + $xfer += $output->writeString($iter796); } } $output->writeListEnd(); @@ -23612,14 +24096,14 @@ class ThriftHiveMetastore_get_partitions_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size783 = 0; - $_etype786 = 0; - $xfer += $input->readListBegin($_etype786, $_size783); - for ($_i787 = 0; $_i787 < $_size783; ++$_i787) + $_size797 = 0; + $_etype800 = 0; + $xfer += $input->readListBegin($_etype800, $_size797); + for ($_i801 = 0; $_i801 < $_size797; ++$_i801) { - $elem788 = null; - $xfer += $input->readString($elem788); - $this->part_vals []= $elem788; + $elem802 = null; + $xfer += $input->readString($elem802); + $this->part_vals []= $elem802; } $xfer += $input->readListEnd(); } else { @@ -23664,9 +24148,9 @@ class ThriftHiveMetastore_get_partitions_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter789) + foreach ($this->part_vals as $iter803) { - $xfer += $output->writeString($iter789); + $xfer += $output->writeString($iter803); } } $output->writeListEnd(); @@ -23760,15 +24244,15 @@ class ThriftHiveMetastore_get_partitions_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size790 = 0; - $_etype793 = 0; - $xfer += $input->readListBegin($_etype793, $_size790); - for ($_i794 = 0; $_i794 < $_size790; ++$_i794) + $_size804 = 0; + $_etype807 = 0; + $xfer += $input->readListBegin($_etype807, $_size804); + for ($_i808 = 0; $_i808 < $_size804; ++$_i808) { - $elem795 = null; - $elem795 = new \metastore\Partition(); - $xfer += $elem795->read($input); - $this->success []= $elem795; + $elem809 = null; + $elem809 = new \metastore\Partition(); + $xfer += $elem809->read($input); + $this->success []= $elem809; } $xfer += $input->readListEnd(); } else { @@ -23812,9 +24296,9 @@ class ThriftHiveMetastore_get_partitions_ps_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter796) + foreach ($this->success as $iter810) { - $xfer += $iter796->write($output); + $xfer += $iter810->write($output); } } $output->writeListEnd(); @@ -23961,14 +24445,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size797 = 0; - $_etype800 = 0; - $xfer += $input->readListBegin($_etype800, $_size797); - for ($_i801 = 0; $_i801 < $_size797; ++$_i801) + $_size811 = 0; + $_etype814 = 0; + $xfer += $input->readListBegin($_etype814, $_size811); + for ($_i815 = 0; $_i815 < $_size811; ++$_i815) { - $elem802 = null; - $xfer += $input->readString($elem802); - $this->part_vals []= $elem802; + $elem816 = null; + $xfer += $input->readString($elem816); + $this->part_vals []= $elem816; } $xfer += $input->readListEnd(); } else { @@ -23992,14 +24476,14 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { case 6: if ($ftype == TType::LST) { $this->group_names = array(); - $_size803 = 0; - $_etype806 = 0; - $xfer += $input->readListBegin($_etype806, $_size803); - for ($_i807 = 0; $_i807 < $_size803; ++$_i807) + $_size817 = 0; + $_etype820 = 0; + $xfer += $input->readListBegin($_etype820, $_size817); + for ($_i821 = 0; $_i821 < $_size817; ++$_i821) { - $elem808 = null; - $xfer += $input->readString($elem808); - $this->group_names []= $elem808; + $elem822 = null; + $xfer += $input->readString($elem822); + $this->group_names []= $elem822; } $xfer += $input->readListEnd(); } else { @@ -24037,9 +24521,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter809) + foreach ($this->part_vals as $iter823) { - $xfer += $output->writeString($iter809); + $xfer += $output->writeString($iter823); } } $output->writeListEnd(); @@ -24064,9 +24548,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter810) + foreach ($this->group_names as $iter824) { - $xfer += $output->writeString($iter810); + $xfer += $output->writeString($iter824); } } $output->writeListEnd(); @@ -24155,15 +24639,15 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size811 = 0; - $_etype814 = 0; - $xfer += $input->readListBegin($_etype814, $_size811); - for ($_i815 = 0; $_i815 < $_size811; ++$_i815) + $_size825 = 0; + $_etype828 = 0; + $xfer += $input->readListBegin($_etype828, $_size825); + for ($_i829 = 0; $_i829 < $_size825; ++$_i829) { - $elem816 = null; - $elem816 = new \metastore\Partition(); - $xfer += $elem816->read($input); - $this->success []= $elem816; + $elem830 = null; + $elem830 = new \metastore\Partition(); + $xfer += $elem830->read($input); + $this->success []= $elem830; } $xfer += $input->readListEnd(); } else { @@ -24207,9 +24691,9 @@ class ThriftHiveMetastore_get_partitions_ps_with_auth_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter817) + foreach ($this->success as $iter831) { - $xfer += $iter817->write($output); + $xfer += $iter831->write($output); } } $output->writeListEnd(); @@ -24330,14 +24814,14 @@ class ThriftHiveMetastore_get_partition_names_ps_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size818 = 0; - $_etype821 = 0; - $xfer += $input->readListBegin($_etype821, $_size818); - for ($_i822 = 0; $_i822 < $_size818; ++$_i822) + $_size832 = 0; + $_etype835 = 0; + $xfer += $input->readListBegin($_etype835, $_size832); + for ($_i836 = 0; $_i836 < $_size832; ++$_i836) { - $elem823 = null; - $xfer += $input->readString($elem823); - $this->part_vals []= $elem823; + $elem837 = null; + $xfer += $input->readString($elem837); + $this->part_vals []= $elem837; } $xfer += $input->readListEnd(); } else { @@ -24382,9 +24866,9 @@ class ThriftHiveMetastore_get_partition_names_ps_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter824) + foreach ($this->part_vals as $iter838) { - $xfer += $output->writeString($iter824); + $xfer += $output->writeString($iter838); } } $output->writeListEnd(); @@ -24477,14 +24961,14 @@ class ThriftHiveMetastore_get_partition_names_ps_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size825 = 0; - $_etype828 = 0; - $xfer += $input->readListBegin($_etype828, $_size825); - for ($_i829 = 0; $_i829 < $_size825; ++$_i829) + $_size839 = 0; + $_etype842 = 0; + $xfer += $input->readListBegin($_etype842, $_size839); + for ($_i843 = 0; $_i843 < $_size839; ++$_i843) { - $elem830 = null; - $xfer += $input->readString($elem830); - $this->success []= $elem830; + $elem844 = null; + $xfer += $input->readString($elem844); + $this->success []= $elem844; } $xfer += $input->readListEnd(); } else { @@ -24528,9 +25012,9 @@ class ThriftHiveMetastore_get_partition_names_ps_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter831) + foreach ($this->success as $iter845) { - $xfer += $output->writeString($iter831); + $xfer += $output->writeString($iter845); } } $output->writeListEnd(); @@ -24773,15 +25257,15 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size832 = 0; - $_etype835 = 0; - $xfer += $input->readListBegin($_etype835, $_size832); - for ($_i836 = 0; $_i836 < $_size832; ++$_i836) + $_size846 = 0; + $_etype849 = 0; + $xfer += $input->readListBegin($_etype849, $_size846); + for ($_i850 = 0; $_i850 < $_size846; ++$_i850) { - $elem837 = null; - $elem837 = new \metastore\Partition(); - $xfer += $elem837->read($input); - $this->success []= $elem837; + $elem851 = null; + $elem851 = new \metastore\Partition(); + $xfer += $elem851->read($input); + $this->success []= $elem851; } $xfer += $input->readListEnd(); } else { @@ -24825,9 +25309,9 @@ class ThriftHiveMetastore_get_partitions_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter838) + foreach ($this->success as $iter852) { - $xfer += $iter838->write($output); + $xfer += $iter852->write($output); } } $output->writeListEnd(); @@ -25070,15 +25554,15 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size839 = 0; - $_etype842 = 0; - $xfer += $input->readListBegin($_etype842, $_size839); - for ($_i843 = 0; $_i843 < $_size839; ++$_i843) + $_size853 = 0; + $_etype856 = 0; + $xfer += $input->readListBegin($_etype856, $_size853); + for ($_i857 = 0; $_i857 < $_size853; ++$_i857) { - $elem844 = null; - $elem844 = new \metastore\PartitionSpec(); - $xfer += $elem844->read($input); - $this->success []= $elem844; + $elem858 = null; + $elem858 = new \metastore\PartitionSpec(); + $xfer += $elem858->read($input); + $this->success []= $elem858; } $xfer += $input->readListEnd(); } else { @@ -25122,9 +25606,9 @@ class ThriftHiveMetastore_get_part_specs_by_filter_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter845) + foreach ($this->success as $iter859) { - $xfer += $iter845->write($output); + $xfer += $iter859->write($output); } } $output->writeListEnd(); @@ -25690,14 +26174,14 @@ class ThriftHiveMetastore_get_partitions_by_names_args { case 3: if ($ftype == TType::LST) { $this->names = array(); - $_size846 = 0; - $_etype849 = 0; - $xfer += $input->readListBegin($_etype849, $_size846); - for ($_i850 = 0; $_i850 < $_size846; ++$_i850) + $_size860 = 0; + $_etype863 = 0; + $xfer += $input->readListBegin($_etype863, $_size860); + for ($_i864 = 0; $_i864 < $_size860; ++$_i864) { - $elem851 = null; - $xfer += $input->readString($elem851); - $this->names []= $elem851; + $elem865 = null; + $xfer += $input->readString($elem865); + $this->names []= $elem865; } $xfer += $input->readListEnd(); } else { @@ -25735,9 +26219,9 @@ class ThriftHiveMetastore_get_partitions_by_names_args { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter852) + foreach ($this->names as $iter866) { - $xfer += $output->writeString($iter852); + $xfer += $output->writeString($iter866); } } $output->writeListEnd(); @@ -25826,15 +26310,15 @@ class ThriftHiveMetastore_get_partitions_by_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size853 = 0; - $_etype856 = 0; - $xfer += $input->readListBegin($_etype856, $_size853); - for ($_i857 = 0; $_i857 < $_size853; ++$_i857) + $_size867 = 0; + $_etype870 = 0; + $xfer += $input->readListBegin($_etype870, $_size867); + for ($_i871 = 0; $_i871 < $_size867; ++$_i871) { - $elem858 = null; - $elem858 = new \metastore\Partition(); - $xfer += $elem858->read($input); - $this->success []= $elem858; + $elem872 = null; + $elem872 = new \metastore\Partition(); + $xfer += $elem872->read($input); + $this->success []= $elem872; } $xfer += $input->readListEnd(); } else { @@ -25878,9 +26362,9 @@ class ThriftHiveMetastore_get_partitions_by_names_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter859) + foreach ($this->success as $iter873) { - $xfer += $iter859->write($output); + $xfer += $iter873->write($output); } } $output->writeListEnd(); @@ -26219,15 +26703,15 @@ class ThriftHiveMetastore_alter_partitions_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size860 = 0; - $_etype863 = 0; - $xfer += $input->readListBegin($_etype863, $_size860); - for ($_i864 = 0; $_i864 < $_size860; ++$_i864) + $_size874 = 0; + $_etype877 = 0; + $xfer += $input->readListBegin($_etype877, $_size874); + for ($_i878 = 0; $_i878 < $_size874; ++$_i878) { - $elem865 = null; - $elem865 = new \metastore\Partition(); - $xfer += $elem865->read($input); - $this->new_parts []= $elem865; + $elem879 = null; + $elem879 = new \metastore\Partition(); + $xfer += $elem879->read($input); + $this->new_parts []= $elem879; } $xfer += $input->readListEnd(); } else { @@ -26265,9 +26749,9 @@ class ThriftHiveMetastore_alter_partitions_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter866) + foreach ($this->new_parts as $iter880) { - $xfer += $iter866->write($output); + $xfer += $iter880->write($output); } } $output->writeListEnd(); @@ -26482,15 +26966,15 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { case 3: if ($ftype == TType::LST) { $this->new_parts = array(); - $_size867 = 0; - $_etype870 = 0; - $xfer += $input->readListBegin($_etype870, $_size867); - for ($_i871 = 0; $_i871 < $_size867; ++$_i871) + $_size881 = 0; + $_etype884 = 0; + $xfer += $input->readListBegin($_etype884, $_size881); + for ($_i885 = 0; $_i885 < $_size881; ++$_i885) { - $elem872 = null; - $elem872 = new \metastore\Partition(); - $xfer += $elem872->read($input); - $this->new_parts []= $elem872; + $elem886 = null; + $elem886 = new \metastore\Partition(); + $xfer += $elem886->read($input); + $this->new_parts []= $elem886; } $xfer += $input->readListEnd(); } else { @@ -26536,9 +27020,9 @@ class ThriftHiveMetastore_alter_partitions_with_environment_context_args { { $output->writeListBegin(TType::STRUCT, count($this->new_parts)); { - foreach ($this->new_parts as $iter873) + foreach ($this->new_parts as $iter887) { - $xfer += $iter873->write($output); + $xfer += $iter887->write($output); } } $output->writeListEnd(); @@ -27016,14 +27500,14 @@ class ThriftHiveMetastore_rename_partition_args { case 3: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size874 = 0; - $_etype877 = 0; - $xfer += $input->readListBegin($_etype877, $_size874); - for ($_i878 = 0; $_i878 < $_size874; ++$_i878) + $_size888 = 0; + $_etype891 = 0; + $xfer += $input->readListBegin($_etype891, $_size888); + for ($_i892 = 0; $_i892 < $_size888; ++$_i892) { - $elem879 = null; - $xfer += $input->readString($elem879); - $this->part_vals []= $elem879; + $elem893 = null; + $xfer += $input->readString($elem893); + $this->part_vals []= $elem893; } $xfer += $input->readListEnd(); } else { @@ -27069,9 +27553,9 @@ class ThriftHiveMetastore_rename_partition_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter880) + foreach ($this->part_vals as $iter894) { - $xfer += $output->writeString($iter880); + $xfer += $output->writeString($iter894); } } $output->writeListEnd(); @@ -27256,14 +27740,14 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { case 1: if ($ftype == TType::LST) { $this->part_vals = array(); - $_size881 = 0; - $_etype884 = 0; - $xfer += $input->readListBegin($_etype884, $_size881); - for ($_i885 = 0; $_i885 < $_size881; ++$_i885) + $_size895 = 0; + $_etype898 = 0; + $xfer += $input->readListBegin($_etype898, $_size895); + for ($_i899 = 0; $_i899 < $_size895; ++$_i899) { - $elem886 = null; - $xfer += $input->readString($elem886); - $this->part_vals []= $elem886; + $elem900 = null; + $xfer += $input->readString($elem900); + $this->part_vals []= $elem900; } $xfer += $input->readListEnd(); } else { @@ -27298,9 +27782,9 @@ class ThriftHiveMetastore_partition_name_has_valid_characters_args { { $output->writeListBegin(TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $iter887) + foreach ($this->part_vals as $iter901) { - $xfer += $output->writeString($iter887); + $xfer += $output->writeString($iter901); } } $output->writeListEnd(); @@ -27754,14 +28238,14 @@ class ThriftHiveMetastore_partition_name_to_vals_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size888 = 0; - $_etype891 = 0; - $xfer += $input->readListBegin($_etype891, $_size888); - for ($_i892 = 0; $_i892 < $_size888; ++$_i892) + $_size902 = 0; + $_etype905 = 0; + $xfer += $input->readListBegin($_etype905, $_size902); + for ($_i906 = 0; $_i906 < $_size902; ++$_i906) { - $elem893 = null; - $xfer += $input->readString($elem893); - $this->success []= $elem893; + $elem907 = null; + $xfer += $input->readString($elem907); + $this->success []= $elem907; } $xfer += $input->readListEnd(); } else { @@ -27797,9 +28281,9 @@ class ThriftHiveMetastore_partition_name_to_vals_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter894) + foreach ($this->success as $iter908) { - $xfer += $output->writeString($iter894); + $xfer += $output->writeString($iter908); } } $output->writeListEnd(); @@ -27959,17 +28443,17 @@ class ThriftHiveMetastore_partition_name_to_spec_result { case 0: if ($ftype == TType::MAP) { $this->success = array(); - $_size895 = 0; - $_ktype896 = 0; - $_vtype897 = 0; - $xfer += $input->readMapBegin($_ktype896, $_vtype897, $_size895); - for ($_i899 = 0; $_i899 < $_size895; ++$_i899) + $_size909 = 0; + $_ktype910 = 0; + $_vtype911 = 0; + $xfer += $input->readMapBegin($_ktype910, $_vtype911, $_size909); + for ($_i913 = 0; $_i913 < $_size909; ++$_i913) { - $key900 = ''; - $val901 = ''; - $xfer += $input->readString($key900); - $xfer += $input->readString($val901); - $this->success[$key900] = $val901; + $key914 = ''; + $val915 = ''; + $xfer += $input->readString($key914); + $xfer += $input->readString($val915); + $this->success[$key914] = $val915; } $xfer += $input->readMapEnd(); } else { @@ -28005,10 +28489,10 @@ class ThriftHiveMetastore_partition_name_to_spec_result { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->success)); { - foreach ($this->success as $kiter902 => $viter903) + foreach ($this->success as $kiter916 => $viter917) { - $xfer += $output->writeString($kiter902); - $xfer += $output->writeString($viter903); + $xfer += $output->writeString($kiter916); + $xfer += $output->writeString($viter917); } } $output->writeMapEnd(); @@ -28128,17 +28612,17 @@ class ThriftHiveMetastore_markPartitionForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size904 = 0; - $_ktype905 = 0; - $_vtype906 = 0; - $xfer += $input->readMapBegin($_ktype905, $_vtype906, $_size904); - for ($_i908 = 0; $_i908 < $_size904; ++$_i908) + $_size918 = 0; + $_ktype919 = 0; + $_vtype920 = 0; + $xfer += $input->readMapBegin($_ktype919, $_vtype920, $_size918); + for ($_i922 = 0; $_i922 < $_size918; ++$_i922) { - $key909 = ''; - $val910 = ''; - $xfer += $input->readString($key909); - $xfer += $input->readString($val910); - $this->part_vals[$key909] = $val910; + $key923 = ''; + $val924 = ''; + $xfer += $input->readString($key923); + $xfer += $input->readString($val924); + $this->part_vals[$key923] = $val924; } $xfer += $input->readMapEnd(); } else { @@ -28183,10 +28667,10 @@ class ThriftHiveMetastore_markPartitionForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter911 => $viter912) + foreach ($this->part_vals as $kiter925 => $viter926) { - $xfer += $output->writeString($kiter911); - $xfer += $output->writeString($viter912); + $xfer += $output->writeString($kiter925); + $xfer += $output->writeString($viter926); } } $output->writeMapEnd(); @@ -28508,17 +28992,17 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { case 3: if ($ftype == TType::MAP) { $this->part_vals = array(); - $_size913 = 0; - $_ktype914 = 0; - $_vtype915 = 0; - $xfer += $input->readMapBegin($_ktype914, $_vtype915, $_size913); - for ($_i917 = 0; $_i917 < $_size913; ++$_i917) + $_size927 = 0; + $_ktype928 = 0; + $_vtype929 = 0; + $xfer += $input->readMapBegin($_ktype928, $_vtype929, $_size927); + for ($_i931 = 0; $_i931 < $_size927; ++$_i931) { - $key918 = ''; - $val919 = ''; - $xfer += $input->readString($key918); - $xfer += $input->readString($val919); - $this->part_vals[$key918] = $val919; + $key932 = ''; + $val933 = ''; + $xfer += $input->readString($key932); + $xfer += $input->readString($val933); + $this->part_vals[$key932] = $val933; } $xfer += $input->readMapEnd(); } else { @@ -28563,10 +29047,10 @@ class ThriftHiveMetastore_isPartitionMarkedForEvent_args { { $output->writeMapBegin(TType::STRING, TType::STRING, count($this->part_vals)); { - foreach ($this->part_vals as $kiter920 => $viter921) + foreach ($this->part_vals as $kiter934 => $viter935) { - $xfer += $output->writeString($kiter920); - $xfer += $output->writeString($viter921); + $xfer += $output->writeString($kiter934); + $xfer += $output->writeString($viter935); } } $output->writeMapEnd(); @@ -30040,15 +30524,15 @@ class ThriftHiveMetastore_get_indexes_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size922 = 0; - $_etype925 = 0; - $xfer += $input->readListBegin($_etype925, $_size922); - for ($_i926 = 0; $_i926 < $_size922; ++$_i926) + $_size936 = 0; + $_etype939 = 0; + $xfer += $input->readListBegin($_etype939, $_size936); + for ($_i940 = 0; $_i940 < $_size936; ++$_i940) { - $elem927 = null; - $elem927 = new \metastore\Index(); - $xfer += $elem927->read($input); - $this->success []= $elem927; + $elem941 = null; + $elem941 = new \metastore\Index(); + $xfer += $elem941->read($input); + $this->success []= $elem941; } $xfer += $input->readListEnd(); } else { @@ -30092,9 +30576,9 @@ class ThriftHiveMetastore_get_indexes_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter928) + foreach ($this->success as $iter942) { - $xfer += $iter928->write($output); + $xfer += $iter942->write($output); } } $output->writeListEnd(); @@ -30301,14 +30785,14 @@ class ThriftHiveMetastore_get_index_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size929 = 0; - $_etype932 = 0; - $xfer += $input->readListBegin($_etype932, $_size929); - for ($_i933 = 0; $_i933 < $_size929; ++$_i933) + $_size943 = 0; + $_etype946 = 0; + $xfer += $input->readListBegin($_etype946, $_size943); + for ($_i947 = 0; $_i947 < $_size943; ++$_i947) { - $elem934 = null; - $xfer += $input->readString($elem934); - $this->success []= $elem934; + $elem948 = null; + $xfer += $input->readString($elem948); + $this->success []= $elem948; } $xfer += $input->readListEnd(); } else { @@ -30344,9 +30828,9 @@ class ThriftHiveMetastore_get_index_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter935) + foreach ($this->success as $iter949) { - $xfer += $output->writeString($iter935); + $xfer += $output->writeString($iter949); } } $output->writeListEnd(); @@ -34240,14 +34724,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size936 = 0; - $_etype939 = 0; - $xfer += $input->readListBegin($_etype939, $_size936); - for ($_i940 = 0; $_i940 < $_size936; ++$_i940) + $_size950 = 0; + $_etype953 = 0; + $xfer += $input->readListBegin($_etype953, $_size950); + for ($_i954 = 0; $_i954 < $_size950; ++$_i954) { - $elem941 = null; - $xfer += $input->readString($elem941); - $this->success []= $elem941; + $elem955 = null; + $xfer += $input->readString($elem955); + $this->success []= $elem955; } $xfer += $input->readListEnd(); } else { @@ -34283,9 +34767,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter942) + foreach ($this->success as $iter956) { - $xfer += $output->writeString($iter942); + $xfer += $output->writeString($iter956); } } $output->writeListEnd(); @@ -35154,14 +35638,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size943 = 0; - $_etype946 = 0; - $xfer += $input->readListBegin($_etype946, $_size943); - for ($_i947 = 0; $_i947 < $_size943; ++$_i947) + $_size957 = 0; + $_etype960 = 0; + $xfer += $input->readListBegin($_etype960, $_size957); + for ($_i961 = 0; $_i961 < $_size957; ++$_i961) { - $elem948 = null; - $xfer += $input->readString($elem948); - $this->success []= $elem948; + $elem962 = null; + $xfer += $input->readString($elem962); + $this->success []= $elem962; } $xfer += $input->readListEnd(); } else { @@ -35197,9 +35681,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter949) + foreach ($this->success as $iter963) { - $xfer += $output->writeString($iter949); + $xfer += $output->writeString($iter963); } } $output->writeListEnd(); @@ -35890,15 +36374,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size950 = 0; - $_etype953 = 0; - $xfer += $input->readListBegin($_etype953, $_size950); - for ($_i954 = 0; $_i954 < $_size950; ++$_i954) + $_size964 = 0; + $_etype967 = 0; + $xfer += $input->readListBegin($_etype967, $_size964); + for ($_i968 = 0; $_i968 < $_size964; ++$_i968) { - $elem955 = null; - $elem955 = new \metastore\Role(); - $xfer += $elem955->read($input); - $this->success []= $elem955; + $elem969 = null; + $elem969 = new \metastore\Role(); + $xfer += $elem969->read($input); + $this->success []= $elem969; } $xfer += $input->readListEnd(); } else { @@ -35934,9 +36418,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter956) + foreach ($this->success as $iter970) { - $xfer += $iter956->write($output); + $xfer += $iter970->write($output); } } $output->writeListEnd(); @@ -36598,14 +37082,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = array(); - $_size957 = 0; - $_etype960 = 0; - $xfer += $input->readListBegin($_etype960, $_size957); - for ($_i961 = 0; $_i961 < $_size957; ++$_i961) + $_size971 = 0; + $_etype974 = 0; + $xfer += $input->readListBegin($_etype974, $_size971); + for ($_i975 = 0; $_i975 < $_size971; ++$_i975) { - $elem962 = null; - $xfer += $input->readString($elem962); - $this->group_names []= $elem962; + $elem976 = null; + $xfer += $input->readString($elem976); + $this->group_names []= $elem976; } $xfer += $input->readListEnd(); } else { @@ -36646,9 +37130,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter963) + foreach ($this->group_names as $iter977) { - $xfer += $output->writeString($iter963); + $xfer += $output->writeString($iter977); } } $output->writeListEnd(); @@ -36956,15 +37440,15 @@ class ThriftHiveMetastore_list_privileges_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size964 = 0; - $_etype967 = 0; - $xfer += $input->readListBegin($_etype967, $_size964); - for ($_i968 = 0; $_i968 < $_size964; ++$_i968) + $_size978 = 0; + $_etype981 = 0; + $xfer += $input->readListBegin($_etype981, $_size978); + for ($_i982 = 0; $_i982 < $_size978; ++$_i982) { - $elem969 = null; - $elem969 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem969->read($input); - $this->success []= $elem969; + $elem983 = null; + $elem983 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem983->read($input); + $this->success []= $elem983; } $xfer += $input->readListEnd(); } else { @@ -37000,9 +37484,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter970) + foreach ($this->success as $iter984) { - $xfer += $iter970->write($output); + $xfer += $iter984->write($output); } } $output->writeListEnd(); @@ -37634,14 +38118,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = array(); - $_size971 = 0; - $_etype974 = 0; - $xfer += $input->readListBegin($_etype974, $_size971); - for ($_i975 = 0; $_i975 < $_size971; ++$_i975) + $_size985 = 0; + $_etype988 = 0; + $xfer += $input->readListBegin($_etype988, $_size985); + for ($_i989 = 0; $_i989 < $_size985; ++$_i989) { - $elem976 = null; - $xfer += $input->readString($elem976); - $this->group_names []= $elem976; + $elem990 = null; + $xfer += $input->readString($elem990); + $this->group_names []= $elem990; } $xfer += $input->readListEnd(); } else { @@ -37674,9 +38158,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter977) + foreach ($this->group_names as $iter991) { - $xfer += $output->writeString($iter977); + $xfer += $output->writeString($iter991); } } $output->writeListEnd(); @@ -37752,14 +38236,14 @@ class ThriftHiveMetastore_set_ugi_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size978 = 0; - $_etype981 = 0; - $xfer += $input->readListBegin($_etype981, $_size978); - for ($_i982 = 0; $_i982 < $_size978; ++$_i982) + $_size992 = 0; + $_etype995 = 0; + $xfer += $input->readListBegin($_etype995, $_size992); + for ($_i996 = 0; $_i996 < $_size992; ++$_i996) { - $elem983 = null; - $xfer += $input->readString($elem983); - $this->success []= $elem983; + $elem997 = null; + $xfer += $input->readString($elem997); + $this->success []= $elem997; } $xfer += $input->readListEnd(); } else { @@ -37795,9 +38279,9 @@ class ThriftHiveMetastore_set_ugi_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter984) + foreach ($this->success as $iter998) { - $xfer += $output->writeString($iter984); + $xfer += $output->writeString($iter998); } } $output->writeListEnd(); @@ -38914,14 +39398,14 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size985 = 0; - $_etype988 = 0; - $xfer += $input->readListBegin($_etype988, $_size985); - for ($_i989 = 0; $_i989 < $_size985; ++$_i989) + $_size999 = 0; + $_etype1002 = 0; + $xfer += $input->readListBegin($_etype1002, $_size999); + for ($_i1003 = 0; $_i1003 < $_size999; ++$_i1003) { - $elem990 = null; - $xfer += $input->readString($elem990); - $this->success []= $elem990; + $elem1004 = null; + $xfer += $input->readString($elem1004); + $this->success []= $elem1004; } $xfer += $input->readListEnd(); } else { @@ -38949,9 +39433,9 @@ class ThriftHiveMetastore_get_all_token_identifiers_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter991) + foreach ($this->success as $iter1005) { - $xfer += $output->writeString($iter991); + $xfer += $output->writeString($iter1005); } } $output->writeListEnd(); @@ -39590,14 +40074,14 @@ class ThriftHiveMetastore_get_master_keys_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size992 = 0; - $_etype995 = 0; - $xfer += $input->readListBegin($_etype995, $_size992); - for ($_i996 = 0; $_i996 < $_size992; ++$_i996) + $_size1006 = 0; + $_etype1009 = 0; + $xfer += $input->readListBegin($_etype1009, $_size1006); + for ($_i1010 = 0; $_i1010 < $_size1006; ++$_i1010) { - $elem997 = null; - $xfer += $input->readString($elem997); - $this->success []= $elem997; + $elem1011 = null; + $xfer += $input->readString($elem1011); + $this->success []= $elem1011; } $xfer += $input->readListEnd(); } else { @@ -39625,9 +40109,9 @@ class ThriftHiveMetastore_get_master_keys_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter998) + foreach ($this->success as $iter1012) { - $xfer += $output->writeString($iter998); + $xfer += $output->writeString($iter1012); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index c9e44f9..f67e61f 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -9274,6 +9274,212 @@ class DropConstraintRequest { } +class AddPrimaryKeyRequest { + static $_TSPEC; + + /** + * @var \metastore\SQLPrimaryKey[] + */ + public $primaryKeyCols = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'primaryKeyCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLPrimaryKey', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['primaryKeyCols'])) { + $this->primaryKeyCols = $vals['primaryKeyCols']; + } + } + } + + public function getName() { + return 'AddPrimaryKeyRequest'; + } + + 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->primaryKeyCols = array(); + $_size299 = 0; + $_etype302 = 0; + $xfer += $input->readListBegin($_etype302, $_size299); + for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + { + $elem304 = null; + $elem304 = new \metastore\SQLPrimaryKey(); + $xfer += $elem304->read($input); + $this->primaryKeyCols []= $elem304; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('AddPrimaryKeyRequest'); + if ($this->primaryKeyCols !== null) { + if (!is_array($this->primaryKeyCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('primaryKeyCols', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->primaryKeyCols)); + { + foreach ($this->primaryKeyCols as $iter305) + { + $xfer += $iter305->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class AddForeignKeyRequest { + static $_TSPEC; + + /** + * @var \metastore\SQLForeignKey[] + */ + public $foreignKeyCols = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'foreignKeyCols', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLForeignKey', + ), + ), + ); + } + if (is_array($vals)) { + if (isset($vals['foreignKeyCols'])) { + $this->foreignKeyCols = $vals['foreignKeyCols']; + } + } + } + + public function getName() { + return 'AddForeignKeyRequest'; + } + + 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->foreignKeyCols = array(); + $_size306 = 0; + $_etype309 = 0; + $xfer += $input->readListBegin($_etype309, $_size306); + for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + { + $elem311 = null; + $elem311 = new \metastore\SQLForeignKey(); + $xfer += $elem311->read($input); + $this->foreignKeyCols []= $elem311; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('AddForeignKeyRequest'); + if ($this->foreignKeyCols !== null) { + if (!is_array($this->foreignKeyCols)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('foreignKeyCols', TType::LST, 1); + { + $output->writeListBegin(TType::STRUCT, count($this->foreignKeyCols)); + { + foreach ($this->foreignKeyCols as $iter312) + { + $xfer += $iter312->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class PartitionsByExprResult { static $_TSPEC; @@ -9336,15 +9542,15 @@ class PartitionsByExprResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size299 = 0; - $_etype302 = 0; - $xfer += $input->readListBegin($_etype302, $_size299); - for ($_i303 = 0; $_i303 < $_size299; ++$_i303) + $_size313 = 0; + $_etype316 = 0; + $xfer += $input->readListBegin($_etype316, $_size313); + for ($_i317 = 0; $_i317 < $_size313; ++$_i317) { - $elem304 = null; - $elem304 = new \metastore\Partition(); - $xfer += $elem304->read($input); - $this->partitions []= $elem304; + $elem318 = null; + $elem318 = new \metastore\Partition(); + $xfer += $elem318->read($input); + $this->partitions []= $elem318; } $xfer += $input->readListEnd(); } else { @@ -9379,9 +9585,9 @@ class PartitionsByExprResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter305) + foreach ($this->partitions as $iter319) { - $xfer += $iter305->write($output); + $xfer += $iter319->write($output); } } $output->writeListEnd(); @@ -9618,15 +9824,15 @@ class TableStatsResult { case 1: if ($ftype == TType::LST) { $this->tableStats = array(); - $_size306 = 0; - $_etype309 = 0; - $xfer += $input->readListBegin($_etype309, $_size306); - for ($_i310 = 0; $_i310 < $_size306; ++$_i310) + $_size320 = 0; + $_etype323 = 0; + $xfer += $input->readListBegin($_etype323, $_size320); + for ($_i324 = 0; $_i324 < $_size320; ++$_i324) { - $elem311 = null; - $elem311 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem311->read($input); - $this->tableStats []= $elem311; + $elem325 = null; + $elem325 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem325->read($input); + $this->tableStats []= $elem325; } $xfer += $input->readListEnd(); } else { @@ -9654,9 +9860,9 @@ class TableStatsResult { { $output->writeListBegin(TType::STRUCT, count($this->tableStats)); { - foreach ($this->tableStats as $iter312) + foreach ($this->tableStats as $iter326) { - $xfer += $iter312->write($output); + $xfer += $iter326->write($output); } } $output->writeListEnd(); @@ -9729,28 +9935,28 @@ class PartitionsStatsResult { case 1: if ($ftype == TType::MAP) { $this->partStats = array(); - $_size313 = 0; - $_ktype314 = 0; - $_vtype315 = 0; - $xfer += $input->readMapBegin($_ktype314, $_vtype315, $_size313); - for ($_i317 = 0; $_i317 < $_size313; ++$_i317) + $_size327 = 0; + $_ktype328 = 0; + $_vtype329 = 0; + $xfer += $input->readMapBegin($_ktype328, $_vtype329, $_size327); + for ($_i331 = 0; $_i331 < $_size327; ++$_i331) { - $key318 = ''; - $val319 = array(); - $xfer += $input->readString($key318); - $val319 = array(); - $_size320 = 0; - $_etype323 = 0; - $xfer += $input->readListBegin($_etype323, $_size320); - for ($_i324 = 0; $_i324 < $_size320; ++$_i324) + $key332 = ''; + $val333 = array(); + $xfer += $input->readString($key332); + $val333 = array(); + $_size334 = 0; + $_etype337 = 0; + $xfer += $input->readListBegin($_etype337, $_size334); + for ($_i338 = 0; $_i338 < $_size334; ++$_i338) { - $elem325 = null; - $elem325 = new \metastore\ColumnStatisticsObj(); - $xfer += $elem325->read($input); - $val319 []= $elem325; + $elem339 = null; + $elem339 = new \metastore\ColumnStatisticsObj(); + $xfer += $elem339->read($input); + $val333 []= $elem339; } $xfer += $input->readListEnd(); - $this->partStats[$key318] = $val319; + $this->partStats[$key332] = $val333; } $xfer += $input->readMapEnd(); } else { @@ -9778,15 +9984,15 @@ class PartitionsStatsResult { { $output->writeMapBegin(TType::STRING, TType::LST, count($this->partStats)); { - foreach ($this->partStats as $kiter326 => $viter327) + foreach ($this->partStats as $kiter340 => $viter341) { - $xfer += $output->writeString($kiter326); + $xfer += $output->writeString($kiter340); { - $output->writeListBegin(TType::STRUCT, count($viter327)); + $output->writeListBegin(TType::STRUCT, count($viter341)); { - foreach ($viter327 as $iter328) + foreach ($viter341 as $iter342) { - $xfer += $iter328->write($output); + $xfer += $iter342->write($output); } } $output->writeListEnd(); @@ -9890,14 +10096,14 @@ class TableStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size329 = 0; - $_etype332 = 0; - $xfer += $input->readListBegin($_etype332, $_size329); - for ($_i333 = 0; $_i333 < $_size329; ++$_i333) + $_size343 = 0; + $_etype346 = 0; + $xfer += $input->readListBegin($_etype346, $_size343); + for ($_i347 = 0; $_i347 < $_size343; ++$_i347) { - $elem334 = null; - $xfer += $input->readString($elem334); - $this->colNames []= $elem334; + $elem348 = null; + $xfer += $input->readString($elem348); + $this->colNames []= $elem348; } $xfer += $input->readListEnd(); } else { @@ -9935,9 +10141,9 @@ class TableStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter335) + foreach ($this->colNames as $iter349) { - $xfer += $output->writeString($iter335); + $xfer += $output->writeString($iter349); } } $output->writeListEnd(); @@ -10052,14 +10258,14 @@ class PartitionsStatsRequest { case 3: if ($ftype == TType::LST) { $this->colNames = array(); - $_size336 = 0; - $_etype339 = 0; - $xfer += $input->readListBegin($_etype339, $_size336); - for ($_i340 = 0; $_i340 < $_size336; ++$_i340) + $_size350 = 0; + $_etype353 = 0; + $xfer += $input->readListBegin($_etype353, $_size350); + for ($_i354 = 0; $_i354 < $_size350; ++$_i354) { - $elem341 = null; - $xfer += $input->readString($elem341); - $this->colNames []= $elem341; + $elem355 = null; + $xfer += $input->readString($elem355); + $this->colNames []= $elem355; } $xfer += $input->readListEnd(); } else { @@ -10069,14 +10275,14 @@ class PartitionsStatsRequest { case 4: if ($ftype == TType::LST) { $this->partNames = array(); - $_size342 = 0; - $_etype345 = 0; - $xfer += $input->readListBegin($_etype345, $_size342); - for ($_i346 = 0; $_i346 < $_size342; ++$_i346) + $_size356 = 0; + $_etype359 = 0; + $xfer += $input->readListBegin($_etype359, $_size356); + for ($_i360 = 0; $_i360 < $_size356; ++$_i360) { - $elem347 = null; - $xfer += $input->readString($elem347); - $this->partNames []= $elem347; + $elem361 = null; + $xfer += $input->readString($elem361); + $this->partNames []= $elem361; } $xfer += $input->readListEnd(); } else { @@ -10114,9 +10320,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->colNames)); { - foreach ($this->colNames as $iter348) + foreach ($this->colNames as $iter362) { - $xfer += $output->writeString($iter348); + $xfer += $output->writeString($iter362); } } $output->writeListEnd(); @@ -10131,9 +10337,9 @@ class PartitionsStatsRequest { { $output->writeListBegin(TType::STRING, count($this->partNames)); { - foreach ($this->partNames as $iter349) + foreach ($this->partNames as $iter363) { - $xfer += $output->writeString($iter349); + $xfer += $output->writeString($iter363); } } $output->writeListEnd(); @@ -10198,15 +10404,15 @@ class AddPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size350 = 0; - $_etype353 = 0; - $xfer += $input->readListBegin($_etype353, $_size350); - for ($_i354 = 0; $_i354 < $_size350; ++$_i354) + $_size364 = 0; + $_etype367 = 0; + $xfer += $input->readListBegin($_etype367, $_size364); + for ($_i368 = 0; $_i368 < $_size364; ++$_i368) { - $elem355 = null; - $elem355 = new \metastore\Partition(); - $xfer += $elem355->read($input); - $this->partitions []= $elem355; + $elem369 = null; + $elem369 = new \metastore\Partition(); + $xfer += $elem369->read($input); + $this->partitions []= $elem369; } $xfer += $input->readListEnd(); } else { @@ -10234,9 +10440,9 @@ class AddPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter356) + foreach ($this->partitions as $iter370) { - $xfer += $iter356->write($output); + $xfer += $iter370->write($output); } } $output->writeListEnd(); @@ -10359,15 +10565,15 @@ class AddPartitionsRequest { case 3: if ($ftype == TType::LST) { $this->parts = array(); - $_size357 = 0; - $_etype360 = 0; - $xfer += $input->readListBegin($_etype360, $_size357); - for ($_i361 = 0; $_i361 < $_size357; ++$_i361) + $_size371 = 0; + $_etype374 = 0; + $xfer += $input->readListBegin($_etype374, $_size371); + for ($_i375 = 0; $_i375 < $_size371; ++$_i375) { - $elem362 = null; - $elem362 = new \metastore\Partition(); - $xfer += $elem362->read($input); - $this->parts []= $elem362; + $elem376 = null; + $elem376 = new \metastore\Partition(); + $xfer += $elem376->read($input); + $this->parts []= $elem376; } $xfer += $input->readListEnd(); } else { @@ -10419,9 +10625,9 @@ class AddPartitionsRequest { { $output->writeListBegin(TType::STRUCT, count($this->parts)); { - foreach ($this->parts as $iter363) + foreach ($this->parts as $iter377) { - $xfer += $iter363->write($output); + $xfer += $iter377->write($output); } } $output->writeListEnd(); @@ -10496,15 +10702,15 @@ class DropPartitionsResult { case 1: if ($ftype == TType::LST) { $this->partitions = array(); - $_size364 = 0; - $_etype367 = 0; - $xfer += $input->readListBegin($_etype367, $_size364); - for ($_i368 = 0; $_i368 < $_size364; ++$_i368) + $_size378 = 0; + $_etype381 = 0; + $xfer += $input->readListBegin($_etype381, $_size378); + for ($_i382 = 0; $_i382 < $_size378; ++$_i382) { - $elem369 = null; - $elem369 = new \metastore\Partition(); - $xfer += $elem369->read($input); - $this->partitions []= $elem369; + $elem383 = null; + $elem383 = new \metastore\Partition(); + $xfer += $elem383->read($input); + $this->partitions []= $elem383; } $xfer += $input->readListEnd(); } else { @@ -10532,9 +10738,9 @@ class DropPartitionsResult { { $output->writeListBegin(TType::STRUCT, count($this->partitions)); { - foreach ($this->partitions as $iter370) + foreach ($this->partitions as $iter384) { - $xfer += $iter370->write($output); + $xfer += $iter384->write($output); } } $output->writeListEnd(); @@ -10712,14 +10918,14 @@ class RequestPartsSpec { case 1: if ($ftype == TType::LST) { $this->names = array(); - $_size371 = 0; - $_etype374 = 0; - $xfer += $input->readListBegin($_etype374, $_size371); - for ($_i375 = 0; $_i375 < $_size371; ++$_i375) + $_size385 = 0; + $_etype388 = 0; + $xfer += $input->readListBegin($_etype388, $_size385); + for ($_i389 = 0; $_i389 < $_size385; ++$_i389) { - $elem376 = null; - $xfer += $input->readString($elem376); - $this->names []= $elem376; + $elem390 = null; + $xfer += $input->readString($elem390); + $this->names []= $elem390; } $xfer += $input->readListEnd(); } else { @@ -10729,15 +10935,15 @@ class RequestPartsSpec { case 2: if ($ftype == TType::LST) { $this->exprs = array(); - $_size377 = 0; - $_etype380 = 0; - $xfer += $input->readListBegin($_etype380, $_size377); - for ($_i381 = 0; $_i381 < $_size377; ++$_i381) + $_size391 = 0; + $_etype394 = 0; + $xfer += $input->readListBegin($_etype394, $_size391); + for ($_i395 = 0; $_i395 < $_size391; ++$_i395) { - $elem382 = null; - $elem382 = new \metastore\DropPartitionsExpr(); - $xfer += $elem382->read($input); - $this->exprs []= $elem382; + $elem396 = null; + $elem396 = new \metastore\DropPartitionsExpr(); + $xfer += $elem396->read($input); + $this->exprs []= $elem396; } $xfer += $input->readListEnd(); } else { @@ -10765,9 +10971,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRING, count($this->names)); { - foreach ($this->names as $iter383) + foreach ($this->names as $iter397) { - $xfer += $output->writeString($iter383); + $xfer += $output->writeString($iter397); } } $output->writeListEnd(); @@ -10782,9 +10988,9 @@ class RequestPartsSpec { { $output->writeListBegin(TType::STRUCT, count($this->exprs)); { - foreach ($this->exprs as $iter384) + foreach ($this->exprs as $iter398) { - $xfer += $iter384->write($output); + $xfer += $iter398->write($output); } } $output->writeListEnd(); @@ -11319,15 +11525,15 @@ class Function { case 8: if ($ftype == TType::LST) { $this->resourceUris = array(); - $_size385 = 0; - $_etype388 = 0; - $xfer += $input->readListBegin($_etype388, $_size385); - for ($_i389 = 0; $_i389 < $_size385; ++$_i389) + $_size399 = 0; + $_etype402 = 0; + $xfer += $input->readListBegin($_etype402, $_size399); + for ($_i403 = 0; $_i403 < $_size399; ++$_i403) { - $elem390 = null; - $elem390 = new \metastore\ResourceUri(); - $xfer += $elem390->read($input); - $this->resourceUris []= $elem390; + $elem404 = null; + $elem404 = new \metastore\ResourceUri(); + $xfer += $elem404->read($input); + $this->resourceUris []= $elem404; } $xfer += $input->readListEnd(); } else { @@ -11390,9 +11596,9 @@ class Function { { $output->writeListBegin(TType::STRUCT, count($this->resourceUris)); { - foreach ($this->resourceUris as $iter391) + foreach ($this->resourceUris as $iter405) { - $xfer += $iter391->write($output); + $xfer += $iter405->write($output); } } $output->writeListEnd(); @@ -11688,15 +11894,15 @@ class GetOpenTxnsInfoResponse { case 2: if ($ftype == TType::LST) { $this->open_txns = array(); - $_size392 = 0; - $_etype395 = 0; - $xfer += $input->readListBegin($_etype395, $_size392); - for ($_i396 = 0; $_i396 < $_size392; ++$_i396) + $_size406 = 0; + $_etype409 = 0; + $xfer += $input->readListBegin($_etype409, $_size406); + for ($_i410 = 0; $_i410 < $_size406; ++$_i410) { - $elem397 = null; - $elem397 = new \metastore\TxnInfo(); - $xfer += $elem397->read($input); - $this->open_txns []= $elem397; + $elem411 = null; + $elem411 = new \metastore\TxnInfo(); + $xfer += $elem411->read($input); + $this->open_txns []= $elem411; } $xfer += $input->readListEnd(); } else { @@ -11729,9 +11935,9 @@ class GetOpenTxnsInfoResponse { { $output->writeListBegin(TType::STRUCT, count($this->open_txns)); { - foreach ($this->open_txns as $iter398) + foreach ($this->open_txns as $iter412) { - $xfer += $iter398->write($output); + $xfer += $iter412->write($output); } } $output->writeListEnd(); @@ -11813,17 +12019,17 @@ class GetOpenTxnsResponse { case 2: if ($ftype == TType::SET) { $this->open_txns = array(); - $_size399 = 0; - $_etype402 = 0; - $xfer += $input->readSetBegin($_etype402, $_size399); - for ($_i403 = 0; $_i403 < $_size399; ++$_i403) + $_size413 = 0; + $_etype416 = 0; + $xfer += $input->readSetBegin($_etype416, $_size413); + for ($_i417 = 0; $_i417 < $_size413; ++$_i417) { - $elem404 = null; - $xfer += $input->readI64($elem404); - if (is_scalar($elem404)) { - $this->open_txns[$elem404] = true; + $elem418 = null; + $xfer += $input->readI64($elem418); + if (is_scalar($elem418)) { + $this->open_txns[$elem418] = true; } else { - $this->open_txns []= $elem404; + $this->open_txns []= $elem418; } } $xfer += $input->readSetEnd(); @@ -11857,12 +12063,12 @@ class GetOpenTxnsResponse { { $output->writeSetBegin(TType::I64, count($this->open_txns)); { - foreach ($this->open_txns as $iter405 => $iter406) + foreach ($this->open_txns as $iter419 => $iter420) { - if (is_scalar($iter406)) { - $xfer += $output->writeI64($iter405); + if (is_scalar($iter420)) { + $xfer += $output->writeI64($iter419); } else { - $xfer += $output->writeI64($iter406); + $xfer += $output->writeI64($iter420); } } } @@ -12071,14 +12277,14 @@ class OpenTxnsResponse { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size407 = 0; - $_etype410 = 0; - $xfer += $input->readListBegin($_etype410, $_size407); - for ($_i411 = 0; $_i411 < $_size407; ++$_i411) + $_size421 = 0; + $_etype424 = 0; + $xfer += $input->readListBegin($_etype424, $_size421); + for ($_i425 = 0; $_i425 < $_size421; ++$_i425) { - $elem412 = null; - $xfer += $input->readI64($elem412); - $this->txn_ids []= $elem412; + $elem426 = null; + $xfer += $input->readI64($elem426); + $this->txn_ids []= $elem426; } $xfer += $input->readListEnd(); } else { @@ -12106,9 +12312,9 @@ class OpenTxnsResponse { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter413) + foreach ($this->txn_ids as $iter427) { - $xfer += $output->writeI64($iter413); + $xfer += $output->writeI64($iter427); } } $output->writeListEnd(); @@ -12247,14 +12453,14 @@ class AbortTxnsRequest { case 1: if ($ftype == TType::LST) { $this->txn_ids = array(); - $_size414 = 0; - $_etype417 = 0; - $xfer += $input->readListBegin($_etype417, $_size414); - for ($_i418 = 0; $_i418 < $_size414; ++$_i418) + $_size428 = 0; + $_etype431 = 0; + $xfer += $input->readListBegin($_etype431, $_size428); + for ($_i432 = 0; $_i432 < $_size428; ++$_i432) { - $elem419 = null; - $xfer += $input->readI64($elem419); - $this->txn_ids []= $elem419; + $elem433 = null; + $xfer += $input->readI64($elem433); + $this->txn_ids []= $elem433; } $xfer += $input->readListEnd(); } else { @@ -12282,9 +12488,9 @@ class AbortTxnsRequest { { $output->writeListBegin(TType::I64, count($this->txn_ids)); { - foreach ($this->txn_ids as $iter420) + foreach ($this->txn_ids as $iter434) { - $xfer += $output->writeI64($iter420); + $xfer += $output->writeI64($iter434); } } $output->writeListEnd(); @@ -12635,15 +12841,15 @@ class LockRequest { case 1: if ($ftype == TType::LST) { $this->component = array(); - $_size421 = 0; - $_etype424 = 0; - $xfer += $input->readListBegin($_etype424, $_size421); - for ($_i425 = 0; $_i425 < $_size421; ++$_i425) + $_size435 = 0; + $_etype438 = 0; + $xfer += $input->readListBegin($_etype438, $_size435); + for ($_i439 = 0; $_i439 < $_size435; ++$_i439) { - $elem426 = null; - $elem426 = new \metastore\LockComponent(); - $xfer += $elem426->read($input); - $this->component []= $elem426; + $elem440 = null; + $elem440 = new \metastore\LockComponent(); + $xfer += $elem440->read($input); + $this->component []= $elem440; } $xfer += $input->readListEnd(); } else { @@ -12699,9 +12905,9 @@ class LockRequest { { $output->writeListBegin(TType::STRUCT, count($this->component)); { - foreach ($this->component as $iter427) + foreach ($this->component as $iter441) { - $xfer += $iter427->write($output); + $xfer += $iter441->write($output); } } $output->writeListEnd(); @@ -13644,15 +13850,15 @@ class ShowLocksResponse { case 1: if ($ftype == TType::LST) { $this->locks = array(); - $_size428 = 0; - $_etype431 = 0; - $xfer += $input->readListBegin($_etype431, $_size428); - for ($_i432 = 0; $_i432 < $_size428; ++$_i432) + $_size442 = 0; + $_etype445 = 0; + $xfer += $input->readListBegin($_etype445, $_size442); + for ($_i446 = 0; $_i446 < $_size442; ++$_i446) { - $elem433 = null; - $elem433 = new \metastore\ShowLocksResponseElement(); - $xfer += $elem433->read($input); - $this->locks []= $elem433; + $elem447 = null; + $elem447 = new \metastore\ShowLocksResponseElement(); + $xfer += $elem447->read($input); + $this->locks []= $elem447; } $xfer += $input->readListEnd(); } else { @@ -13680,9 +13886,9 @@ class ShowLocksResponse { { $output->writeListBegin(TType::STRUCT, count($this->locks)); { - foreach ($this->locks as $iter434) + foreach ($this->locks as $iter448) { - $xfer += $iter434->write($output); + $xfer += $iter448->write($output); } } $output->writeListEnd(); @@ -13957,17 +14163,17 @@ class HeartbeatTxnRangeResponse { case 1: if ($ftype == TType::SET) { $this->aborted = array(); - $_size435 = 0; - $_etype438 = 0; - $xfer += $input->readSetBegin($_etype438, $_size435); - for ($_i439 = 0; $_i439 < $_size435; ++$_i439) + $_size449 = 0; + $_etype452 = 0; + $xfer += $input->readSetBegin($_etype452, $_size449); + for ($_i453 = 0; $_i453 < $_size449; ++$_i453) { - $elem440 = null; - $xfer += $input->readI64($elem440); - if (is_scalar($elem440)) { - $this->aborted[$elem440] = true; + $elem454 = null; + $xfer += $input->readI64($elem454); + if (is_scalar($elem454)) { + $this->aborted[$elem454] = true; } else { - $this->aborted []= $elem440; + $this->aborted []= $elem454; } } $xfer += $input->readSetEnd(); @@ -13978,17 +14184,17 @@ class HeartbeatTxnRangeResponse { case 2: if ($ftype == TType::SET) { $this->nosuch = array(); - $_size441 = 0; - $_etype444 = 0; - $xfer += $input->readSetBegin($_etype444, $_size441); - for ($_i445 = 0; $_i445 < $_size441; ++$_i445) + $_size455 = 0; + $_etype458 = 0; + $xfer += $input->readSetBegin($_etype458, $_size455); + for ($_i459 = 0; $_i459 < $_size455; ++$_i459) { - $elem446 = null; - $xfer += $input->readI64($elem446); - if (is_scalar($elem446)) { - $this->nosuch[$elem446] = true; + $elem460 = null; + $xfer += $input->readI64($elem460); + if (is_scalar($elem460)) { + $this->nosuch[$elem460] = true; } else { - $this->nosuch []= $elem446; + $this->nosuch []= $elem460; } } $xfer += $input->readSetEnd(); @@ -14017,12 +14223,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->aborted)); { - foreach ($this->aborted as $iter447 => $iter448) + foreach ($this->aborted as $iter461 => $iter462) { - if (is_scalar($iter448)) { - $xfer += $output->writeI64($iter447); + if (is_scalar($iter462)) { + $xfer += $output->writeI64($iter461); } else { - $xfer += $output->writeI64($iter448); + $xfer += $output->writeI64($iter462); } } } @@ -14038,12 +14244,12 @@ class HeartbeatTxnRangeResponse { { $output->writeSetBegin(TType::I64, count($this->nosuch)); { - foreach ($this->nosuch as $iter449 => $iter450) + foreach ($this->nosuch as $iter463 => $iter464) { - if (is_scalar($iter450)) { - $xfer += $output->writeI64($iter449); + if (is_scalar($iter464)) { + $xfer += $output->writeI64($iter463); } else { - $xfer += $output->writeI64($iter450); + $xfer += $output->writeI64($iter464); } } } @@ -14654,15 +14860,15 @@ class ShowCompactResponse { case 1: if ($ftype == TType::LST) { $this->compacts = array(); - $_size451 = 0; - $_etype454 = 0; - $xfer += $input->readListBegin($_etype454, $_size451); - for ($_i455 = 0; $_i455 < $_size451; ++$_i455) + $_size465 = 0; + $_etype468 = 0; + $xfer += $input->readListBegin($_etype468, $_size465); + for ($_i469 = 0; $_i469 < $_size465; ++$_i469) { - $elem456 = null; - $elem456 = new \metastore\ShowCompactResponseElement(); - $xfer += $elem456->read($input); - $this->compacts []= $elem456; + $elem470 = null; + $elem470 = new \metastore\ShowCompactResponseElement(); + $xfer += $elem470->read($input); + $this->compacts []= $elem470; } $xfer += $input->readListEnd(); } else { @@ -14690,9 +14896,9 @@ class ShowCompactResponse { { $output->writeListBegin(TType::STRUCT, count($this->compacts)); { - foreach ($this->compacts as $iter457) + foreach ($this->compacts as $iter471) { - $xfer += $iter457->write($output); + $xfer += $iter471->write($output); } } $output->writeListEnd(); @@ -14810,14 +15016,14 @@ class AddDynamicPartitions { case 4: if ($ftype == TType::LST) { $this->partitionnames = array(); - $_size458 = 0; - $_etype461 = 0; - $xfer += $input->readListBegin($_etype461, $_size458); - for ($_i462 = 0; $_i462 < $_size458; ++$_i462) + $_size472 = 0; + $_etype475 = 0; + $xfer += $input->readListBegin($_etype475, $_size472); + for ($_i476 = 0; $_i476 < $_size472; ++$_i476) { - $elem463 = null; - $xfer += $input->readString($elem463); - $this->partitionnames []= $elem463; + $elem477 = null; + $xfer += $input->readString($elem477); + $this->partitionnames []= $elem477; } $xfer += $input->readListEnd(); } else { @@ -14860,9 +15066,9 @@ class AddDynamicPartitions { { $output->writeListBegin(TType::STRING, count($this->partitionnames)); { - foreach ($this->partitionnames as $iter464) + foreach ($this->partitionnames as $iter478) { - $xfer += $output->writeString($iter464); + $xfer += $output->writeString($iter478); } } $output->writeListEnd(); @@ -15215,15 +15421,15 @@ class NotificationEventResponse { case 1: if ($ftype == TType::LST) { $this->events = array(); - $_size465 = 0; - $_etype468 = 0; - $xfer += $input->readListBegin($_etype468, $_size465); - for ($_i469 = 0; $_i469 < $_size465; ++$_i469) + $_size479 = 0; + $_etype482 = 0; + $xfer += $input->readListBegin($_etype482, $_size479); + for ($_i483 = 0; $_i483 < $_size479; ++$_i483) { - $elem470 = null; - $elem470 = new \metastore\NotificationEvent(); - $xfer += $elem470->read($input); - $this->events []= $elem470; + $elem484 = null; + $elem484 = new \metastore\NotificationEvent(); + $xfer += $elem484->read($input); + $this->events []= $elem484; } $xfer += $input->readListEnd(); } else { @@ -15251,9 +15457,9 @@ class NotificationEventResponse { { $output->writeListBegin(TType::STRUCT, count($this->events)); { - foreach ($this->events as $iter471) + foreach ($this->events as $iter485) { - $xfer += $iter471->write($output); + $xfer += $iter485->write($output); } } $output->writeListEnd(); @@ -15392,14 +15598,14 @@ class InsertEventRequestData { case 1: if ($ftype == TType::LST) { $this->filesAdded = array(); - $_size472 = 0; - $_etype475 = 0; - $xfer += $input->readListBegin($_etype475, $_size472); - for ($_i476 = 0; $_i476 < $_size472; ++$_i476) + $_size486 = 0; + $_etype489 = 0; + $xfer += $input->readListBegin($_etype489, $_size486); + for ($_i490 = 0; $_i490 < $_size486; ++$_i490) { - $elem477 = null; - $xfer += $input->readString($elem477); - $this->filesAdded []= $elem477; + $elem491 = null; + $xfer += $input->readString($elem491); + $this->filesAdded []= $elem491; } $xfer += $input->readListEnd(); } else { @@ -15427,9 +15633,9 @@ class InsertEventRequestData { { $output->writeListBegin(TType::STRING, count($this->filesAdded)); { - foreach ($this->filesAdded as $iter478) + foreach ($this->filesAdded as $iter492) { - $xfer += $output->writeString($iter478); + $xfer += $output->writeString($iter492); } } $output->writeListEnd(); @@ -15647,14 +15853,14 @@ class FireEventRequest { case 5: if ($ftype == TType::LST) { $this->partitionVals = array(); - $_size479 = 0; - $_etype482 = 0; - $xfer += $input->readListBegin($_etype482, $_size479); - for ($_i483 = 0; $_i483 < $_size479; ++$_i483) + $_size493 = 0; + $_etype496 = 0; + $xfer += $input->readListBegin($_etype496, $_size493); + for ($_i497 = 0; $_i497 < $_size493; ++$_i497) { - $elem484 = null; - $xfer += $input->readString($elem484); - $this->partitionVals []= $elem484; + $elem498 = null; + $xfer += $input->readString($elem498); + $this->partitionVals []= $elem498; } $xfer += $input->readListEnd(); } else { @@ -15705,9 +15911,9 @@ class FireEventRequest { { $output->writeListBegin(TType::STRING, count($this->partitionVals)); { - foreach ($this->partitionVals as $iter485) + foreach ($this->partitionVals as $iter499) { - $xfer += $output->writeString($iter485); + $xfer += $output->writeString($iter499); } } $output->writeListEnd(); @@ -15935,18 +16141,18 @@ class GetFileMetadataByExprResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size486 = 0; - $_ktype487 = 0; - $_vtype488 = 0; - $xfer += $input->readMapBegin($_ktype487, $_vtype488, $_size486); - for ($_i490 = 0; $_i490 < $_size486; ++$_i490) + $_size500 = 0; + $_ktype501 = 0; + $_vtype502 = 0; + $xfer += $input->readMapBegin($_ktype501, $_vtype502, $_size500); + for ($_i504 = 0; $_i504 < $_size500; ++$_i504) { - $key491 = 0; - $val492 = new \metastore\MetadataPpdResult(); - $xfer += $input->readI64($key491); - $val492 = new \metastore\MetadataPpdResult(); - $xfer += $val492->read($input); - $this->metadata[$key491] = $val492; + $key505 = 0; + $val506 = new \metastore\MetadataPpdResult(); + $xfer += $input->readI64($key505); + $val506 = new \metastore\MetadataPpdResult(); + $xfer += $val506->read($input); + $this->metadata[$key505] = $val506; } $xfer += $input->readMapEnd(); } else { @@ -15981,10 +16187,10 @@ class GetFileMetadataByExprResult { { $output->writeMapBegin(TType::I64, TType::STRUCT, count($this->metadata)); { - foreach ($this->metadata as $kiter493 => $viter494) + foreach ($this->metadata as $kiter507 => $viter508) { - $xfer += $output->writeI64($kiter493); - $xfer += $viter494->write($output); + $xfer += $output->writeI64($kiter507); + $xfer += $viter508->write($output); } } $output->writeMapEnd(); @@ -16086,14 +16292,14 @@ class GetFileMetadataByExprRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size495 = 0; - $_etype498 = 0; - $xfer += $input->readListBegin($_etype498, $_size495); - for ($_i499 = 0; $_i499 < $_size495; ++$_i499) + $_size509 = 0; + $_etype512 = 0; + $xfer += $input->readListBegin($_etype512, $_size509); + for ($_i513 = 0; $_i513 < $_size509; ++$_i513) { - $elem500 = null; - $xfer += $input->readI64($elem500); - $this->fileIds []= $elem500; + $elem514 = null; + $xfer += $input->readI64($elem514); + $this->fileIds []= $elem514; } $xfer += $input->readListEnd(); } else { @@ -16142,9 +16348,9 @@ class GetFileMetadataByExprRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter501) + foreach ($this->fileIds as $iter515) { - $xfer += $output->writeI64($iter501); + $xfer += $output->writeI64($iter515); } } $output->writeListEnd(); @@ -16238,17 +16444,17 @@ class GetFileMetadataResult { case 1: if ($ftype == TType::MAP) { $this->metadata = array(); - $_size502 = 0; - $_ktype503 = 0; - $_vtype504 = 0; - $xfer += $input->readMapBegin($_ktype503, $_vtype504, $_size502); - for ($_i506 = 0; $_i506 < $_size502; ++$_i506) + $_size516 = 0; + $_ktype517 = 0; + $_vtype518 = 0; + $xfer += $input->readMapBegin($_ktype517, $_vtype518, $_size516); + for ($_i520 = 0; $_i520 < $_size516; ++$_i520) { - $key507 = 0; - $val508 = ''; - $xfer += $input->readI64($key507); - $xfer += $input->readString($val508); - $this->metadata[$key507] = $val508; + $key521 = 0; + $val522 = ''; + $xfer += $input->readI64($key521); + $xfer += $input->readString($val522); + $this->metadata[$key521] = $val522; } $xfer += $input->readMapEnd(); } else { @@ -16283,10 +16489,10 @@ class GetFileMetadataResult { { $output->writeMapBegin(TType::I64, TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $kiter509 => $viter510) + foreach ($this->metadata as $kiter523 => $viter524) { - $xfer += $output->writeI64($kiter509); - $xfer += $output->writeString($viter510); + $xfer += $output->writeI64($kiter523); + $xfer += $output->writeString($viter524); } } $output->writeMapEnd(); @@ -16355,14 +16561,14 @@ class GetFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size511 = 0; - $_etype514 = 0; - $xfer += $input->readListBegin($_etype514, $_size511); - for ($_i515 = 0; $_i515 < $_size511; ++$_i515) + $_size525 = 0; + $_etype528 = 0; + $xfer += $input->readListBegin($_etype528, $_size525); + for ($_i529 = 0; $_i529 < $_size525; ++$_i529) { - $elem516 = null; - $xfer += $input->readI64($elem516); - $this->fileIds []= $elem516; + $elem530 = null; + $xfer += $input->readI64($elem530); + $this->fileIds []= $elem530; } $xfer += $input->readListEnd(); } else { @@ -16390,9 +16596,9 @@ class GetFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter517) + foreach ($this->fileIds as $iter531) { - $xfer += $output->writeI64($iter517); + $xfer += $output->writeI64($iter531); } } $output->writeListEnd(); @@ -16532,14 +16738,14 @@ class PutFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size518 = 0; - $_etype521 = 0; - $xfer += $input->readListBegin($_etype521, $_size518); - for ($_i522 = 0; $_i522 < $_size518; ++$_i522) + $_size532 = 0; + $_etype535 = 0; + $xfer += $input->readListBegin($_etype535, $_size532); + for ($_i536 = 0; $_i536 < $_size532; ++$_i536) { - $elem523 = null; - $xfer += $input->readI64($elem523); - $this->fileIds []= $elem523; + $elem537 = null; + $xfer += $input->readI64($elem537); + $this->fileIds []= $elem537; } $xfer += $input->readListEnd(); } else { @@ -16549,14 +16755,14 @@ class PutFileMetadataRequest { case 2: if ($ftype == TType::LST) { $this->metadata = array(); - $_size524 = 0; - $_etype527 = 0; - $xfer += $input->readListBegin($_etype527, $_size524); - for ($_i528 = 0; $_i528 < $_size524; ++$_i528) + $_size538 = 0; + $_etype541 = 0; + $xfer += $input->readListBegin($_etype541, $_size538); + for ($_i542 = 0; $_i542 < $_size538; ++$_i542) { - $elem529 = null; - $xfer += $input->readString($elem529); - $this->metadata []= $elem529; + $elem543 = null; + $xfer += $input->readString($elem543); + $this->metadata []= $elem543; } $xfer += $input->readListEnd(); } else { @@ -16591,9 +16797,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter530) + foreach ($this->fileIds as $iter544) { - $xfer += $output->writeI64($iter530); + $xfer += $output->writeI64($iter544); } } $output->writeListEnd(); @@ -16608,9 +16814,9 @@ class PutFileMetadataRequest { { $output->writeListBegin(TType::STRING, count($this->metadata)); { - foreach ($this->metadata as $iter531) + foreach ($this->metadata as $iter545) { - $xfer += $output->writeString($iter531); + $xfer += $output->writeString($iter545); } } $output->writeListEnd(); @@ -16729,14 +16935,14 @@ class ClearFileMetadataRequest { case 1: if ($ftype == TType::LST) { $this->fileIds = array(); - $_size532 = 0; - $_etype535 = 0; - $xfer += $input->readListBegin($_etype535, $_size532); - for ($_i536 = 0; $_i536 < $_size532; ++$_i536) + $_size546 = 0; + $_etype549 = 0; + $xfer += $input->readListBegin($_etype549, $_size546); + for ($_i550 = 0; $_i550 < $_size546; ++$_i550) { - $elem537 = null; - $xfer += $input->readI64($elem537); - $this->fileIds []= $elem537; + $elem551 = null; + $xfer += $input->readI64($elem551); + $this->fileIds []= $elem551; } $xfer += $input->readListEnd(); } else { @@ -16764,9 +16970,9 @@ class ClearFileMetadataRequest { { $output->writeListBegin(TType::I64, count($this->fileIds)); { - foreach ($this->fileIds as $iter538) + foreach ($this->fileIds as $iter552) { - $xfer += $output->writeI64($iter538); + $xfer += $output->writeI64($iter552); } } $output->writeListEnd(); @@ -17050,15 +17256,15 @@ class GetAllFunctionsResponse { case 1: if ($ftype == TType::LST) { $this->functions = array(); - $_size539 = 0; - $_etype542 = 0; - $xfer += $input->readListBegin($_etype542, $_size539); - for ($_i543 = 0; $_i543 < $_size539; ++$_i543) + $_size553 = 0; + $_etype556 = 0; + $xfer += $input->readListBegin($_etype556, $_size553); + for ($_i557 = 0; $_i557 < $_size553; ++$_i557) { - $elem544 = null; - $elem544 = new \metastore\Function(); - $xfer += $elem544->read($input); - $this->functions []= $elem544; + $elem558 = null; + $elem558 = new \metastore\Function(); + $xfer += $elem558->read($input); + $this->functions []= $elem558; } $xfer += $input->readListEnd(); } else { @@ -17086,9 +17292,9 @@ class GetAllFunctionsResponse { { $output->writeListBegin(TType::STRUCT, count($this->functions)); { - foreach ($this->functions as $iter545) + foreach ($this->functions as $iter559) { - $xfer += $iter545->write($output); + $xfer += $iter559->write($output); } } $output->writeListEnd(); diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote index 6dfe353..c58ccf2 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -44,6 +44,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' void create_table_with_environment_context(Table tbl, EnvironmentContext environment_context)') print(' void create_table_with_constraints(Table tbl, primaryKeys, foreignKeys)') print(' void drop_constraint(DropConstraintRequest req)') + print(' void add_primary_key(AddPrimaryKeyRequest req)') + print(' void add_foreign_key(AddForeignKeyRequest req)') print(' void drop_table(string dbname, string name, bool deleteData)') print(' void drop_table_with_environment_context(string dbname, string name, bool deleteData, EnvironmentContext environment_context)') print(' get_tables(string db_name, string pattern)') @@ -360,6 +362,18 @@ elif cmd == 'drop_constraint': sys.exit(1) pp.pprint(client.drop_constraint(eval(args[0]),)) +elif cmd == 'add_primary_key': + if len(args) != 1: + print('add_primary_key requires 1 args') + sys.exit(1) + pp.pprint(client.add_primary_key(eval(args[0]),)) + +elif cmd == 'add_foreign_key': + if len(args) != 1: + print('add_foreign_key requires 1 args') + sys.exit(1) + pp.pprint(client.add_foreign_key(eval(args[0]),)) + elif cmd == 'drop_table': if len(args) != 3: print('drop_table requires 3 args') diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py index 8eef585..0d70bb2 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -172,6 +172,20 @@ def drop_constraint(self, req): """ pass + def add_primary_key(self, req): + """ + Parameters: + - req + """ + pass + + def add_foreign_key(self, req): + """ + Parameters: + - req + """ + pass + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -1915,6 +1929,72 @@ def recv_drop_constraint(self): raise result.o3 return + def add_primary_key(self, req): + """ + Parameters: + - req + """ + self.send_add_primary_key(req) + self.recv_add_primary_key() + + def send_add_primary_key(self, req): + self._oprot.writeMessageBegin('add_primary_key', TMessageType.CALL, self._seqid) + args = add_primary_key_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_primary_key(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = add_primary_key_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + return + + def add_foreign_key(self, req): + """ + Parameters: + - req + """ + self.send_add_foreign_key(req) + self.recv_add_foreign_key() + + def send_add_foreign_key(self, req): + self._oprot.writeMessageBegin('add_foreign_key', TMessageType.CALL, self._seqid) + args = add_foreign_key_args() + args.req = req + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_add_foreign_key(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = add_foreign_key_result() + result.read(iprot) + iprot.readMessageEnd() + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + return + def drop_table(self, dbname, name, deleteData): """ Parameters: @@ -6540,6 +6620,8 @@ def __init__(self, handler): self._processMap["create_table_with_environment_context"] = Processor.process_create_table_with_environment_context self._processMap["create_table_with_constraints"] = Processor.process_create_table_with_constraints self._processMap["drop_constraint"] = Processor.process_drop_constraint + self._processMap["add_primary_key"] = Processor.process_add_primary_key + self._processMap["add_foreign_key"] = Processor.process_add_foreign_key self._processMap["drop_table"] = Processor.process_drop_table self._processMap["drop_table_with_environment_context"] = Processor.process_drop_table_with_environment_context self._processMap["get_tables"] = Processor.process_get_tables @@ -7207,6 +7289,56 @@ def process_drop_constraint(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_add_primary_key(self, seqid, iprot, oprot): + args = add_primary_key_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_primary_key_result() + try: + self._handler.add_primary_key(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("add_primary_key", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_add_foreign_key(self, seqid, iprot, oprot): + args = add_foreign_key_args() + args.read(iprot) + iprot.readMessageEnd() + result = add_foreign_key_result() + try: + self._handler.add_foreign_key(args.req) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except NoSuchObjectException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except MetaException as o2: + msg_type = TMessageType.REPLY + result.o2 = o2 + except Exception as ex: + msg_type = TMessageType.EXCEPTION + logging.exception(ex) + result = TApplicationException(TApplicationException.INTERNAL_ERROR, 'Internal error') + oprot.writeMessageBegin("add_foreign_key", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_drop_table(self, seqid, iprot, oprot): args = drop_table_args() args.read(iprot) @@ -11166,10 +11298,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype546, _size543) = iprot.readListBegin() - for _i547 in xrange(_size543): - _elem548 = iprot.readString() - self.success.append(_elem548) + (_etype560, _size557) = iprot.readListBegin() + for _i561 in xrange(_size557): + _elem562 = iprot.readString() + self.success.append(_elem562) iprot.readListEnd() else: iprot.skip(ftype) @@ -11192,8 +11324,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 iter549 in self.success: - oprot.writeString(iter549) + for iter563 in self.success: + oprot.writeString(iter563) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -11298,10 +11430,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype553, _size550) = iprot.readListBegin() - for _i554 in xrange(_size550): - _elem555 = iprot.readString() - self.success.append(_elem555) + (_etype567, _size564) = iprot.readListBegin() + for _i568 in xrange(_size564): + _elem569 = iprot.readString() + self.success.append(_elem569) iprot.readListEnd() else: iprot.skip(ftype) @@ -11324,8 +11456,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 iter556 in self.success: - oprot.writeString(iter556) + for iter570 in self.success: + oprot.writeString(iter570) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12095,12 +12227,12 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype558, _vtype559, _size557 ) = iprot.readMapBegin() - for _i561 in xrange(_size557): - _key562 = iprot.readString() - _val563 = Type() - _val563.read(iprot) - self.success[_key562] = _val563 + (_ktype572, _vtype573, _size571 ) = iprot.readMapBegin() + for _i575 in xrange(_size571): + _key576 = iprot.readString() + _val577 = Type() + _val577.read(iprot) + self.success[_key576] = _val577 iprot.readMapEnd() else: iprot.skip(ftype) @@ -12123,9 +12255,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 kiter564,viter565 in self.success.items(): - oprot.writeString(kiter564) - viter565.write(oprot) + for kiter578,viter579 in self.success.items(): + oprot.writeString(kiter578) + viter579.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -12268,11 +12400,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype569, _size566) = iprot.readListBegin() - for _i570 in xrange(_size566): - _elem571 = FieldSchema() - _elem571.read(iprot) - self.success.append(_elem571) + (_etype583, _size580) = iprot.readListBegin() + for _i584 in xrange(_size580): + _elem585 = FieldSchema() + _elem585.read(iprot) + self.success.append(_elem585) iprot.readListEnd() else: iprot.skip(ftype) @@ -12307,8 +12439,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 iter572 in self.success: - iter572.write(oprot) + for iter586 in self.success: + iter586.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12475,11 +12607,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype576, _size573) = iprot.readListBegin() - for _i577 in xrange(_size573): - _elem578 = FieldSchema() - _elem578.read(iprot) - self.success.append(_elem578) + (_etype590, _size587) = iprot.readListBegin() + for _i591 in xrange(_size587): + _elem592 = FieldSchema() + _elem592.read(iprot) + self.success.append(_elem592) iprot.readListEnd() else: iprot.skip(ftype) @@ -12514,8 +12646,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 iter579 in self.success: - iter579.write(oprot) + for iter593 in self.success: + iter593.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12668,11 +12800,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype583, _size580) = iprot.readListBegin() - for _i584 in xrange(_size580): - _elem585 = FieldSchema() - _elem585.read(iprot) - self.success.append(_elem585) + (_etype597, _size594) = iprot.readListBegin() + for _i598 in xrange(_size594): + _elem599 = FieldSchema() + _elem599.read(iprot) + self.success.append(_elem599) iprot.readListEnd() else: iprot.skip(ftype) @@ -12707,8 +12839,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 iter586 in self.success: - iter586.write(oprot) + for iter600 in self.success: + iter600.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -12875,11 +13007,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype590, _size587) = iprot.readListBegin() - for _i591 in xrange(_size587): - _elem592 = FieldSchema() - _elem592.read(iprot) - self.success.append(_elem592) + (_etype604, _size601) = iprot.readListBegin() + for _i605 in xrange(_size601): + _elem606 = FieldSchema() + _elem606.read(iprot) + self.success.append(_elem606) iprot.readListEnd() else: iprot.skip(ftype) @@ -12914,8 +13046,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 iter593 in self.success: - iter593.write(oprot) + for iter607 in self.success: + iter607.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -13356,22 +13488,22 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.primaryKeys = [] - (_etype597, _size594) = iprot.readListBegin() - for _i598 in xrange(_size594): - _elem599 = SQLPrimaryKey() - _elem599.read(iprot) - self.primaryKeys.append(_elem599) + (_etype611, _size608) = iprot.readListBegin() + for _i612 in xrange(_size608): + _elem613 = SQLPrimaryKey() + _elem613.read(iprot) + self.primaryKeys.append(_elem613) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 3: if ftype == TType.LIST: self.foreignKeys = [] - (_etype603, _size600) = iprot.readListBegin() - for _i604 in xrange(_size600): - _elem605 = SQLForeignKey() - _elem605.read(iprot) - self.foreignKeys.append(_elem605) + (_etype617, _size614) = iprot.readListBegin() + for _i618 in xrange(_size614): + _elem619 = SQLForeignKey() + _elem619.read(iprot) + self.foreignKeys.append(_elem619) iprot.readListEnd() else: iprot.skip(ftype) @@ -13392,15 +13524,15 @@ def write(self, oprot): if self.primaryKeys is not None: oprot.writeFieldBegin('primaryKeys', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.primaryKeys)) - for iter606 in self.primaryKeys: - iter606.write(oprot) + for iter620 in self.primaryKeys: + iter620.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.foreignKeys is not None: oprot.writeFieldBegin('foreignKeys', TType.LIST, 3) oprot.writeListBegin(TType.STRUCT, len(self.foreignKeys)) - for iter607 in self.foreignKeys: - iter607.write(oprot) + for iter621 in self.foreignKeys: + iter621.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -13682,6 +13814,298 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class add_primary_key_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddPrimaryKeyRequest, AddPrimaryKeyRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + 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.req = AddPrimaryKeyRequest() + self.req.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('add_primary_key_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + 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 add_primary_key_result: + """ + Attributes: + - o1 + - o2 + """ + + 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, o1=None, o2=None,): + 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 == 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('add_primary_key_result') + 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 __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + 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 add_foreign_key_args: + """ + Attributes: + - req + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRUCT, 'req', (AddForeignKeyRequest, AddForeignKeyRequest.thrift_spec), None, ), # 1 + ) + + def __init__(self, req=None,): + self.req = req + + 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.req = AddForeignKeyRequest() + self.req.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('add_foreign_key_args') + if self.req is not None: + oprot.writeFieldBegin('req', TType.STRUCT, 1) + self.req.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.req) + return value + + 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 add_foreign_key_result: + """ + Attributes: + - o1 + - o2 + """ + + 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, o1=None, o2=None,): + 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 == 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('add_foreign_key_result') + 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 __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.o1) + value = (value * 31) ^ hash(self.o2) + return value + + 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 drop_table_args: """ Attributes: @@ -14144,10 +14568,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype611, _size608) = iprot.readListBegin() - for _i612 in xrange(_size608): - _elem613 = iprot.readString() - self.success.append(_elem613) + (_etype625, _size622) = iprot.readListBegin() + for _i626 in xrange(_size622): + _elem627 = iprot.readString() + self.success.append(_elem627) iprot.readListEnd() else: iprot.skip(ftype) @@ -14170,8 +14594,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 iter614 in self.success: - oprot.writeString(iter614) + for iter628 in self.success: + oprot.writeString(iter628) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14244,10 +14668,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.tbl_types = [] - (_etype618, _size615) = iprot.readListBegin() - for _i619 in xrange(_size615): - _elem620 = iprot.readString() - self.tbl_types.append(_elem620) + (_etype632, _size629) = iprot.readListBegin() + for _i633 in xrange(_size629): + _elem634 = iprot.readString() + self.tbl_types.append(_elem634) iprot.readListEnd() else: iprot.skip(ftype) @@ -14272,8 +14696,8 @@ def write(self, oprot): if self.tbl_types is not None: oprot.writeFieldBegin('tbl_types', TType.LIST, 3) oprot.writeListBegin(TType.STRING, len(self.tbl_types)) - for iter621 in self.tbl_types: - oprot.writeString(iter621) + for iter635 in self.tbl_types: + oprot.writeString(iter635) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14329,11 +14753,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype625, _size622) = iprot.readListBegin() - for _i626 in xrange(_size622): - _elem627 = TableMeta() - _elem627.read(iprot) - self.success.append(_elem627) + (_etype639, _size636) = iprot.readListBegin() + for _i640 in xrange(_size636): + _elem641 = TableMeta() + _elem641.read(iprot) + self.success.append(_elem641) iprot.readListEnd() else: iprot.skip(ftype) @@ -14356,8 +14780,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 iter628 in self.success: - iter628.write(oprot) + for iter642 in self.success: + iter642.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14481,10 +14905,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype632, _size629) = iprot.readListBegin() - for _i633 in xrange(_size629): - _elem634 = iprot.readString() - self.success.append(_elem634) + (_etype646, _size643) = iprot.readListBegin() + for _i647 in xrange(_size643): + _elem648 = iprot.readString() + self.success.append(_elem648) iprot.readListEnd() else: iprot.skip(ftype) @@ -14507,8 +14931,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 iter635 in self.success: - oprot.writeString(iter635) + for iter649 in self.success: + oprot.writeString(iter649) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -14744,10 +15168,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.tbl_names = [] - (_etype639, _size636) = iprot.readListBegin() - for _i640 in xrange(_size636): - _elem641 = iprot.readString() - self.tbl_names.append(_elem641) + (_etype653, _size650) = iprot.readListBegin() + for _i654 in xrange(_size650): + _elem655 = iprot.readString() + self.tbl_names.append(_elem655) iprot.readListEnd() else: iprot.skip(ftype) @@ -14768,8 +15192,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 iter642 in self.tbl_names: - oprot.writeString(iter642) + for iter656 in self.tbl_names: + oprot.writeString(iter656) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -14830,11 +15254,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype646, _size643) = iprot.readListBegin() - for _i647 in xrange(_size643): - _elem648 = Table() - _elem648.read(iprot) - self.success.append(_elem648) + (_etype660, _size657) = iprot.readListBegin() + for _i661 in xrange(_size657): + _elem662 = Table() + _elem662.read(iprot) + self.success.append(_elem662) iprot.readListEnd() else: iprot.skip(ftype) @@ -14869,8 +15293,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 iter649 in self.success: - iter649.write(oprot) + for iter663 in self.success: + iter663.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -15036,10 +15460,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype653, _size650) = iprot.readListBegin() - for _i654 in xrange(_size650): - _elem655 = iprot.readString() - self.success.append(_elem655) + (_etype667, _size664) = iprot.readListBegin() + for _i668 in xrange(_size664): + _elem669 = iprot.readString() + self.success.append(_elem669) iprot.readListEnd() else: iprot.skip(ftype) @@ -15074,8 +15498,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 iter656 in self.success: - oprot.writeString(iter656) + for iter670 in self.success: + oprot.writeString(iter670) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -16045,11 +16469,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype660, _size657) = iprot.readListBegin() - for _i661 in xrange(_size657): - _elem662 = Partition() - _elem662.read(iprot) - self.new_parts.append(_elem662) + (_etype674, _size671) = iprot.readListBegin() + for _i675 in xrange(_size671): + _elem676 = Partition() + _elem676.read(iprot) + self.new_parts.append(_elem676) iprot.readListEnd() else: iprot.skip(ftype) @@ -16066,8 +16490,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 iter663 in self.new_parts: - iter663.write(oprot) + for iter677 in self.new_parts: + iter677.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16225,11 +16649,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.new_parts = [] - (_etype667, _size664) = iprot.readListBegin() - for _i668 in xrange(_size664): - _elem669 = PartitionSpec() - _elem669.read(iprot) - self.new_parts.append(_elem669) + (_etype681, _size678) = iprot.readListBegin() + for _i682 in xrange(_size678): + _elem683 = PartitionSpec() + _elem683.read(iprot) + self.new_parts.append(_elem683) iprot.readListEnd() else: iprot.skip(ftype) @@ -16246,8 +16670,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 iter670 in self.new_parts: - iter670.write(oprot) + for iter684 in self.new_parts: + iter684.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16421,10 +16845,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype674, _size671) = iprot.readListBegin() - for _i675 in xrange(_size671): - _elem676 = iprot.readString() - self.part_vals.append(_elem676) + (_etype688, _size685) = iprot.readListBegin() + for _i689 in xrange(_size685): + _elem690 = iprot.readString() + self.part_vals.append(_elem690) iprot.readListEnd() else: iprot.skip(ftype) @@ -16449,8 +16873,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 iter677 in self.part_vals: - oprot.writeString(iter677) + for iter691 in self.part_vals: + oprot.writeString(iter691) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -16803,10 +17227,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype681, _size678) = iprot.readListBegin() - for _i682 in xrange(_size678): - _elem683 = iprot.readString() - self.part_vals.append(_elem683) + (_etype695, _size692) = iprot.readListBegin() + for _i696 in xrange(_size692): + _elem697 = iprot.readString() + self.part_vals.append(_elem697) iprot.readListEnd() else: iprot.skip(ftype) @@ -16837,8 +17261,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 iter684 in self.part_vals: - oprot.writeString(iter684) + for iter698 in self.part_vals: + oprot.writeString(iter698) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -17433,10 +17857,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype688, _size685) = iprot.readListBegin() - for _i689 in xrange(_size685): - _elem690 = iprot.readString() - self.part_vals.append(_elem690) + (_etype702, _size699) = iprot.readListBegin() + for _i703 in xrange(_size699): + _elem704 = iprot.readString() + self.part_vals.append(_elem704) iprot.readListEnd() else: iprot.skip(ftype) @@ -17466,8 +17890,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 iter691 in self.part_vals: - oprot.writeString(iter691) + for iter705 in self.part_vals: + oprot.writeString(iter705) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -17640,10 +18064,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype695, _size692) = iprot.readListBegin() - for _i696 in xrange(_size692): - _elem697 = iprot.readString() - self.part_vals.append(_elem697) + (_etype709, _size706) = iprot.readListBegin() + for _i710 in xrange(_size706): + _elem711 = iprot.readString() + self.part_vals.append(_elem711) iprot.readListEnd() else: iprot.skip(ftype) @@ -17679,8 +18103,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 iter698 in self.part_vals: - oprot.writeString(iter698) + for iter712 in self.part_vals: + oprot.writeString(iter712) oprot.writeListEnd() oprot.writeFieldEnd() if self.deleteData is not None: @@ -18417,10 +18841,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype702, _size699) = iprot.readListBegin() - for _i703 in xrange(_size699): - _elem704 = iprot.readString() - self.part_vals.append(_elem704) + (_etype716, _size713) = iprot.readListBegin() + for _i717 in xrange(_size713): + _elem718 = iprot.readString() + self.part_vals.append(_elem718) iprot.readListEnd() else: iprot.skip(ftype) @@ -18445,8 +18869,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 iter705 in self.part_vals: - oprot.writeString(iter705) + for iter719 in self.part_vals: + oprot.writeString(iter719) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -18605,11 +19029,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype707, _vtype708, _size706 ) = iprot.readMapBegin() - for _i710 in xrange(_size706): - _key711 = iprot.readString() - _val712 = iprot.readString() - self.partitionSpecs[_key711] = _val712 + (_ktype721, _vtype722, _size720 ) = iprot.readMapBegin() + for _i724 in xrange(_size720): + _key725 = iprot.readString() + _val726 = iprot.readString() + self.partitionSpecs[_key725] = _val726 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18646,9 +19070,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 kiter713,viter714 in self.partitionSpecs.items(): - oprot.writeString(kiter713) - oprot.writeString(viter714) + for kiter727,viter728 in self.partitionSpecs.items(): + oprot.writeString(kiter727) + oprot.writeString(viter728) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -18853,11 +19277,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partitionSpecs = {} - (_ktype716, _vtype717, _size715 ) = iprot.readMapBegin() - for _i719 in xrange(_size715): - _key720 = iprot.readString() - _val721 = iprot.readString() - self.partitionSpecs[_key720] = _val721 + (_ktype730, _vtype731, _size729 ) = iprot.readMapBegin() + for _i733 in xrange(_size729): + _key734 = iprot.readString() + _val735 = iprot.readString() + self.partitionSpecs[_key734] = _val735 iprot.readMapEnd() else: iprot.skip(ftype) @@ -18894,9 +19318,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 kiter722,viter723 in self.partitionSpecs.items(): - oprot.writeString(kiter722) - oprot.writeString(viter723) + for kiter736,viter737 in self.partitionSpecs.items(): + oprot.writeString(kiter736) + oprot.writeString(viter737) oprot.writeMapEnd() oprot.writeFieldEnd() if self.source_db is not None: @@ -18979,11 +19403,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype727, _size724) = iprot.readListBegin() - for _i728 in xrange(_size724): - _elem729 = Partition() - _elem729.read(iprot) - self.success.append(_elem729) + (_etype741, _size738) = iprot.readListBegin() + for _i742 in xrange(_size738): + _elem743 = Partition() + _elem743.read(iprot) + self.success.append(_elem743) iprot.readListEnd() else: iprot.skip(ftype) @@ -19024,8 +19448,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 iter730 in self.success: - iter730.write(oprot) + for iter744 in self.success: + iter744.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19119,10 +19543,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype734, _size731) = iprot.readListBegin() - for _i735 in xrange(_size731): - _elem736 = iprot.readString() - self.part_vals.append(_elem736) + (_etype748, _size745) = iprot.readListBegin() + for _i749 in xrange(_size745): + _elem750 = iprot.readString() + self.part_vals.append(_elem750) iprot.readListEnd() else: iprot.skip(ftype) @@ -19134,10 +19558,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype740, _size737) = iprot.readListBegin() - for _i741 in xrange(_size737): - _elem742 = iprot.readString() - self.group_names.append(_elem742) + (_etype754, _size751) = iprot.readListBegin() + for _i755 in xrange(_size751): + _elem756 = iprot.readString() + self.group_names.append(_elem756) iprot.readListEnd() else: iprot.skip(ftype) @@ -19162,8 +19586,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 iter743 in self.part_vals: - oprot.writeString(iter743) + for iter757 in self.part_vals: + oprot.writeString(iter757) oprot.writeListEnd() oprot.writeFieldEnd() if self.user_name is not None: @@ -19173,8 +19597,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 iter744 in self.group_names: - oprot.writeString(iter744) + for iter758 in self.group_names: + oprot.writeString(iter758) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19603,11 +20027,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype748, _size745) = iprot.readListBegin() - for _i749 in xrange(_size745): - _elem750 = Partition() - _elem750.read(iprot) - self.success.append(_elem750) + (_etype762, _size759) = iprot.readListBegin() + for _i763 in xrange(_size759): + _elem764 = Partition() + _elem764.read(iprot) + self.success.append(_elem764) iprot.readListEnd() else: iprot.skip(ftype) @@ -19636,8 +20060,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 iter751 in self.success: - iter751.write(oprot) + for iter765 in self.success: + iter765.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -19731,10 +20155,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.group_names = [] - (_etype755, _size752) = iprot.readListBegin() - for _i756 in xrange(_size752): - _elem757 = iprot.readString() - self.group_names.append(_elem757) + (_etype769, _size766) = iprot.readListBegin() + for _i770 in xrange(_size766): + _elem771 = iprot.readString() + self.group_names.append(_elem771) iprot.readListEnd() else: iprot.skip(ftype) @@ -19767,8 +20191,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 iter758 in self.group_names: - oprot.writeString(iter758) + for iter772 in self.group_names: + oprot.writeString(iter772) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -19829,11 +20253,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype762, _size759) = iprot.readListBegin() - for _i763 in xrange(_size759): - _elem764 = Partition() - _elem764.read(iprot) - self.success.append(_elem764) + (_etype776, _size773) = iprot.readListBegin() + for _i777 in xrange(_size773): + _elem778 = Partition() + _elem778.read(iprot) + self.success.append(_elem778) iprot.readListEnd() else: iprot.skip(ftype) @@ -19862,8 +20286,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 iter765 in self.success: - iter765.write(oprot) + for iter779 in self.success: + iter779.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20021,11 +20445,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype769, _size766) = iprot.readListBegin() - for _i770 in xrange(_size766): - _elem771 = PartitionSpec() - _elem771.read(iprot) - self.success.append(_elem771) + (_etype783, _size780) = iprot.readListBegin() + for _i784 in xrange(_size780): + _elem785 = PartitionSpec() + _elem785.read(iprot) + self.success.append(_elem785) iprot.readListEnd() else: iprot.skip(ftype) @@ -20054,8 +20478,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 iter772 in self.success: - iter772.write(oprot) + for iter786 in self.success: + iter786.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20210,10 +20634,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype776, _size773) = iprot.readListBegin() - for _i777 in xrange(_size773): - _elem778 = iprot.readString() - self.success.append(_elem778) + (_etype790, _size787) = iprot.readListBegin() + for _i791 in xrange(_size787): + _elem792 = iprot.readString() + self.success.append(_elem792) iprot.readListEnd() else: iprot.skip(ftype) @@ -20236,8 +20660,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 iter779 in self.success: - oprot.writeString(iter779) + for iter793 in self.success: + oprot.writeString(iter793) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -20313,10 +20737,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype783, _size780) = iprot.readListBegin() - for _i784 in xrange(_size780): - _elem785 = iprot.readString() - self.part_vals.append(_elem785) + (_etype797, _size794) = iprot.readListBegin() + for _i798 in xrange(_size794): + _elem799 = iprot.readString() + self.part_vals.append(_elem799) iprot.readListEnd() else: iprot.skip(ftype) @@ -20346,8 +20770,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 iter786 in self.part_vals: - oprot.writeString(iter786) + for iter800 in self.part_vals: + oprot.writeString(iter800) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -20411,11 +20835,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype790, _size787) = iprot.readListBegin() - for _i791 in xrange(_size787): - _elem792 = Partition() - _elem792.read(iprot) - self.success.append(_elem792) + (_etype804, _size801) = iprot.readListBegin() + for _i805 in xrange(_size801): + _elem806 = Partition() + _elem806.read(iprot) + self.success.append(_elem806) iprot.readListEnd() else: iprot.skip(ftype) @@ -20444,8 +20868,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 iter793 in self.success: - iter793.write(oprot) + for iter807 in self.success: + iter807.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20532,10 +20956,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype797, _size794) = iprot.readListBegin() - for _i798 in xrange(_size794): - _elem799 = iprot.readString() - self.part_vals.append(_elem799) + (_etype811, _size808) = iprot.readListBegin() + for _i812 in xrange(_size808): + _elem813 = iprot.readString() + self.part_vals.append(_elem813) iprot.readListEnd() else: iprot.skip(ftype) @@ -20552,10 +20976,10 @@ def read(self, iprot): elif fid == 6: if ftype == TType.LIST: self.group_names = [] - (_etype803, _size800) = iprot.readListBegin() - for _i804 in xrange(_size800): - _elem805 = iprot.readString() - self.group_names.append(_elem805) + (_etype817, _size814) = iprot.readListBegin() + for _i818 in xrange(_size814): + _elem819 = iprot.readString() + self.group_names.append(_elem819) iprot.readListEnd() else: iprot.skip(ftype) @@ -20580,8 +21004,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 iter806 in self.part_vals: - oprot.writeString(iter806) + for iter820 in self.part_vals: + oprot.writeString(iter820) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -20595,8 +21019,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 iter807 in self.group_names: - oprot.writeString(iter807) + for iter821 in self.group_names: + oprot.writeString(iter821) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -20658,11 +21082,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype811, _size808) = iprot.readListBegin() - for _i812 in xrange(_size808): - _elem813 = Partition() - _elem813.read(iprot) - self.success.append(_elem813) + (_etype825, _size822) = iprot.readListBegin() + for _i826 in xrange(_size822): + _elem827 = Partition() + _elem827.read(iprot) + self.success.append(_elem827) iprot.readListEnd() else: iprot.skip(ftype) @@ -20691,8 +21115,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 iter814 in self.success: - iter814.write(oprot) + for iter828 in self.success: + iter828.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -20773,10 +21197,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype818, _size815) = iprot.readListBegin() - for _i819 in xrange(_size815): - _elem820 = iprot.readString() - self.part_vals.append(_elem820) + (_etype832, _size829) = iprot.readListBegin() + for _i833 in xrange(_size829): + _elem834 = iprot.readString() + self.part_vals.append(_elem834) iprot.readListEnd() else: iprot.skip(ftype) @@ -20806,8 +21230,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 iter821 in self.part_vals: - oprot.writeString(iter821) + for iter835 in self.part_vals: + oprot.writeString(iter835) oprot.writeListEnd() oprot.writeFieldEnd() if self.max_parts is not None: @@ -20871,10 +21295,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype825, _size822) = iprot.readListBegin() - for _i826 in xrange(_size822): - _elem827 = iprot.readString() - self.success.append(_elem827) + (_etype839, _size836) = iprot.readListBegin() + for _i840 in xrange(_size836): + _elem841 = iprot.readString() + self.success.append(_elem841) iprot.readListEnd() else: iprot.skip(ftype) @@ -20903,8 +21327,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 iter828 in self.success: - oprot.writeString(iter828) + for iter842 in self.success: + oprot.writeString(iter842) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21075,11 +21499,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype832, _size829) = iprot.readListBegin() - for _i833 in xrange(_size829): - _elem834 = Partition() - _elem834.read(iprot) - self.success.append(_elem834) + (_etype846, _size843) = iprot.readListBegin() + for _i847 in xrange(_size843): + _elem848 = Partition() + _elem848.read(iprot) + self.success.append(_elem848) iprot.readListEnd() else: iprot.skip(ftype) @@ -21108,8 +21532,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 iter835 in self.success: - iter835.write(oprot) + for iter849 in self.success: + iter849.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21280,11 +21704,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype839, _size836) = iprot.readListBegin() - for _i840 in xrange(_size836): - _elem841 = PartitionSpec() - _elem841.read(iprot) - self.success.append(_elem841) + (_etype853, _size850) = iprot.readListBegin() + for _i854 in xrange(_size850): + _elem855 = PartitionSpec() + _elem855.read(iprot) + self.success.append(_elem855) iprot.readListEnd() else: iprot.skip(ftype) @@ -21313,8 +21737,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 iter842 in self.success: - iter842.write(oprot) + for iter856 in self.success: + iter856.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -21734,10 +22158,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.names = [] - (_etype846, _size843) = iprot.readListBegin() - for _i847 in xrange(_size843): - _elem848 = iprot.readString() - self.names.append(_elem848) + (_etype860, _size857) = iprot.readListBegin() + for _i861 in xrange(_size857): + _elem862 = iprot.readString() + self.names.append(_elem862) iprot.readListEnd() else: iprot.skip(ftype) @@ -21762,8 +22186,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 iter849 in self.names: - oprot.writeString(iter849) + for iter863 in self.names: + oprot.writeString(iter863) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -21822,11 +22246,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype853, _size850) = iprot.readListBegin() - for _i854 in xrange(_size850): - _elem855 = Partition() - _elem855.read(iprot) - self.success.append(_elem855) + (_etype867, _size864) = iprot.readListBegin() + for _i868 in xrange(_size864): + _elem869 = Partition() + _elem869.read(iprot) + self.success.append(_elem869) iprot.readListEnd() else: iprot.skip(ftype) @@ -21855,8 +22279,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 iter856 in self.success: - iter856.write(oprot) + for iter870 in self.success: + iter870.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -22106,11 +22530,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype860, _size857) = iprot.readListBegin() - for _i861 in xrange(_size857): - _elem862 = Partition() - _elem862.read(iprot) - self.new_parts.append(_elem862) + (_etype874, _size871) = iprot.readListBegin() + for _i875 in xrange(_size871): + _elem876 = Partition() + _elem876.read(iprot) + self.new_parts.append(_elem876) iprot.readListEnd() else: iprot.skip(ftype) @@ -22135,8 +22559,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 iter863 in self.new_parts: - iter863.write(oprot) + for iter877 in self.new_parts: + iter877.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -22289,11 +22713,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.new_parts = [] - (_etype867, _size864) = iprot.readListBegin() - for _i868 in xrange(_size864): - _elem869 = Partition() - _elem869.read(iprot) - self.new_parts.append(_elem869) + (_etype881, _size878) = iprot.readListBegin() + for _i882 in xrange(_size878): + _elem883 = Partition() + _elem883.read(iprot) + self.new_parts.append(_elem883) iprot.readListEnd() else: iprot.skip(ftype) @@ -22324,8 +22748,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 iter870 in self.new_parts: - iter870.write(oprot) + for iter884 in self.new_parts: + iter884.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.environment_context is not None: @@ -22669,10 +23093,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.part_vals = [] - (_etype874, _size871) = iprot.readListBegin() - for _i875 in xrange(_size871): - _elem876 = iprot.readString() - self.part_vals.append(_elem876) + (_etype888, _size885) = iprot.readListBegin() + for _i889 in xrange(_size885): + _elem890 = iprot.readString() + self.part_vals.append(_elem890) iprot.readListEnd() else: iprot.skip(ftype) @@ -22703,8 +23127,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 iter877 in self.part_vals: - oprot.writeString(iter877) + for iter891 in self.part_vals: + oprot.writeString(iter891) oprot.writeListEnd() oprot.writeFieldEnd() if self.new_part is not None: @@ -22846,10 +23270,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.part_vals = [] - (_etype881, _size878) = iprot.readListBegin() - for _i882 in xrange(_size878): - _elem883 = iprot.readString() - self.part_vals.append(_elem883) + (_etype895, _size892) = iprot.readListBegin() + for _i896 in xrange(_size892): + _elem897 = iprot.readString() + self.part_vals.append(_elem897) iprot.readListEnd() else: iprot.skip(ftype) @@ -22871,8 +23295,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 iter884 in self.part_vals: - oprot.writeString(iter884) + for iter898 in self.part_vals: + oprot.writeString(iter898) oprot.writeListEnd() oprot.writeFieldEnd() if self.throw_exception is not None: @@ -23230,10 +23654,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype888, _size885) = iprot.readListBegin() - for _i889 in xrange(_size885): - _elem890 = iprot.readString() - self.success.append(_elem890) + (_etype902, _size899) = iprot.readListBegin() + for _i903 in xrange(_size899): + _elem904 = iprot.readString() + self.success.append(_elem904) iprot.readListEnd() else: iprot.skip(ftype) @@ -23256,8 +23680,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 iter891 in self.success: - oprot.writeString(iter891) + for iter905 in self.success: + oprot.writeString(iter905) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23381,11 +23805,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.MAP: self.success = {} - (_ktype893, _vtype894, _size892 ) = iprot.readMapBegin() - for _i896 in xrange(_size892): - _key897 = iprot.readString() - _val898 = iprot.readString() - self.success[_key897] = _val898 + (_ktype907, _vtype908, _size906 ) = iprot.readMapBegin() + for _i910 in xrange(_size906): + _key911 = iprot.readString() + _val912 = iprot.readString() + self.success[_key911] = _val912 iprot.readMapEnd() else: iprot.skip(ftype) @@ -23408,9 +23832,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 kiter899,viter900 in self.success.items(): - oprot.writeString(kiter899) - oprot.writeString(viter900) + for kiter913,viter914 in self.success.items(): + oprot.writeString(kiter913) + oprot.writeString(viter914) oprot.writeMapEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -23486,11 +23910,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype902, _vtype903, _size901 ) = iprot.readMapBegin() - for _i905 in xrange(_size901): - _key906 = iprot.readString() - _val907 = iprot.readString() - self.part_vals[_key906] = _val907 + (_ktype916, _vtype917, _size915 ) = iprot.readMapBegin() + for _i919 in xrange(_size915): + _key920 = iprot.readString() + _val921 = iprot.readString() + self.part_vals[_key920] = _val921 iprot.readMapEnd() else: iprot.skip(ftype) @@ -23520,9 +23944,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 kiter908,viter909 in self.part_vals.items(): - oprot.writeString(kiter908) - oprot.writeString(viter909) + for kiter922,viter923 in self.part_vals.items(): + oprot.writeString(kiter922) + oprot.writeString(viter923) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -23736,11 +24160,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.MAP: self.part_vals = {} - (_ktype911, _vtype912, _size910 ) = iprot.readMapBegin() - for _i914 in xrange(_size910): - _key915 = iprot.readString() - _val916 = iprot.readString() - self.part_vals[_key915] = _val916 + (_ktype925, _vtype926, _size924 ) = iprot.readMapBegin() + for _i928 in xrange(_size924): + _key929 = iprot.readString() + _val930 = iprot.readString() + self.part_vals[_key929] = _val930 iprot.readMapEnd() else: iprot.skip(ftype) @@ -23770,9 +24194,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 kiter917,viter918 in self.part_vals.items(): - oprot.writeString(kiter917) - oprot.writeString(viter918) + for kiter931,viter932 in self.part_vals.items(): + oprot.writeString(kiter931) + oprot.writeString(viter932) oprot.writeMapEnd() oprot.writeFieldEnd() if self.eventType is not None: @@ -24827,11 +25251,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype922, _size919) = iprot.readListBegin() - for _i923 in xrange(_size919): - _elem924 = Index() - _elem924.read(iprot) - self.success.append(_elem924) + (_etype936, _size933) = iprot.readListBegin() + for _i937 in xrange(_size933): + _elem938 = Index() + _elem938.read(iprot) + self.success.append(_elem938) iprot.readListEnd() else: iprot.skip(ftype) @@ -24860,8 +25284,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 iter925 in self.success: - iter925.write(oprot) + for iter939 in self.success: + iter939.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -25016,10 +25440,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype929, _size926) = iprot.readListBegin() - for _i930 in xrange(_size926): - _elem931 = iprot.readString() - self.success.append(_elem931) + (_etype943, _size940) = iprot.readListBegin() + for _i944 in xrange(_size940): + _elem945 = iprot.readString() + self.success.append(_elem945) iprot.readListEnd() else: iprot.skip(ftype) @@ -25042,8 +25466,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 iter932 in self.success: - oprot.writeString(iter932) + for iter946 in self.success: + oprot.writeString(iter946) oprot.writeListEnd() oprot.writeFieldEnd() if self.o2 is not None: @@ -27909,10 +28333,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype936, _size933) = iprot.readListBegin() - for _i937 in xrange(_size933): - _elem938 = iprot.readString() - self.success.append(_elem938) + (_etype950, _size947) = iprot.readListBegin() + for _i951 in xrange(_size947): + _elem952 = iprot.readString() + self.success.append(_elem952) iprot.readListEnd() else: iprot.skip(ftype) @@ -27935,8 +28359,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 iter939 in self.success: - oprot.writeString(iter939) + for iter953 in self.success: + oprot.writeString(iter953) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28624,10 +29048,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype943, _size940) = iprot.readListBegin() - for _i944 in xrange(_size940): - _elem945 = iprot.readString() - self.success.append(_elem945) + (_etype957, _size954) = iprot.readListBegin() + for _i958 in xrange(_size954): + _elem959 = iprot.readString() + self.success.append(_elem959) iprot.readListEnd() else: iprot.skip(ftype) @@ -28650,8 +29074,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 iter946 in self.success: - oprot.writeString(iter946) + for iter960 in self.success: + oprot.writeString(iter960) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29165,11 +29589,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype950, _size947) = iprot.readListBegin() - for _i951 in xrange(_size947): - _elem952 = Role() - _elem952.read(iprot) - self.success.append(_elem952) + (_etype964, _size961) = iprot.readListBegin() + for _i965 in xrange(_size961): + _elem966 = Role() + _elem966.read(iprot) + self.success.append(_elem966) iprot.readListEnd() else: iprot.skip(ftype) @@ -29192,8 +29616,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 iter953 in self.success: - iter953.write(oprot) + for iter967 in self.success: + iter967.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29702,10 +30126,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype957, _size954) = iprot.readListBegin() - for _i958 in xrange(_size954): - _elem959 = iprot.readString() - self.group_names.append(_elem959) + (_etype971, _size968) = iprot.readListBegin() + for _i972 in xrange(_size968): + _elem973 = iprot.readString() + self.group_names.append(_elem973) iprot.readListEnd() else: iprot.skip(ftype) @@ -29730,8 +30154,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 iter960 in self.group_names: - oprot.writeString(iter960) + for iter974 in self.group_names: + oprot.writeString(iter974) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29958,11 +30382,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype964, _size961) = iprot.readListBegin() - for _i965 in xrange(_size961): - _elem966 = HiveObjectPrivilege() - _elem966.read(iprot) - self.success.append(_elem966) + (_etype978, _size975) = iprot.readListBegin() + for _i979 in xrange(_size975): + _elem980 = HiveObjectPrivilege() + _elem980.read(iprot) + self.success.append(_elem980) iprot.readListEnd() else: iprot.skip(ftype) @@ -29985,8 +30409,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 iter967 in self.success: - iter967.write(oprot) + for iter981 in self.success: + iter981.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -30484,10 +30908,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype971, _size968) = iprot.readListBegin() - for _i972 in xrange(_size968): - _elem973 = iprot.readString() - self.group_names.append(_elem973) + (_etype985, _size982) = iprot.readListBegin() + for _i986 in xrange(_size982): + _elem987 = iprot.readString() + self.group_names.append(_elem987) iprot.readListEnd() else: iprot.skip(ftype) @@ -30508,8 +30932,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 iter974 in self.group_names: - oprot.writeString(iter974) + for iter988 in self.group_names: + oprot.writeString(iter988) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -30564,10 +30988,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype978, _size975) = iprot.readListBegin() - for _i979 in xrange(_size975): - _elem980 = iprot.readString() - self.success.append(_elem980) + (_etype992, _size989) = iprot.readListBegin() + for _i993 in xrange(_size989): + _elem994 = iprot.readString() + self.success.append(_elem994) iprot.readListEnd() else: iprot.skip(ftype) @@ -30590,8 +31014,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 iter981 in self.success: - oprot.writeString(iter981) + for iter995 in self.success: + oprot.writeString(iter995) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -31523,10 +31947,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype985, _size982) = iprot.readListBegin() - for _i986 in xrange(_size982): - _elem987 = iprot.readString() - self.success.append(_elem987) + (_etype999, _size996) = iprot.readListBegin() + for _i1000 in xrange(_size996): + _elem1001 = iprot.readString() + self.success.append(_elem1001) iprot.readListEnd() else: iprot.skip(ftype) @@ -31543,8 +31967,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 iter988 in self.success: - oprot.writeString(iter988) + for iter1002 in self.success: + oprot.writeString(iter1002) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -32071,10 +32495,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype992, _size989) = iprot.readListBegin() - for _i993 in xrange(_size989): - _elem994 = iprot.readString() - self.success.append(_elem994) + (_etype1006, _size1003) = iprot.readListBegin() + for _i1007 in xrange(_size1003): + _elem1008 = iprot.readString() + self.success.append(_elem1008) iprot.readListEnd() else: iprot.skip(ftype) @@ -32091,8 +32515,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 iter995 in self.success: - oprot.writeString(iter995) + for iter1009 in self.success: + oprot.writeString(iter1009) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py index 06527e3..b47bb59 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -6353,6 +6353,158 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class AddPrimaryKeyRequest: + """ + Attributes: + - primaryKeyCols + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'primaryKeyCols', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 1 + ) + + def __init__(self, primaryKeyCols=None,): + self.primaryKeyCols = primaryKeyCols + + 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.primaryKeyCols = [] + (_etype302, _size299) = iprot.readListBegin() + for _i303 in xrange(_size299): + _elem304 = SQLPrimaryKey() + _elem304.read(iprot) + self.primaryKeyCols.append(_elem304) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('AddPrimaryKeyRequest') + if self.primaryKeyCols is not None: + oprot.writeFieldBegin('primaryKeyCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.primaryKeyCols)) + for iter305 in self.primaryKeyCols: + iter305.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.primaryKeyCols is None: + raise TProtocol.TProtocolException(message='Required field primaryKeyCols is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.primaryKeyCols) + return value + + 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 AddForeignKeyRequest: + """ + Attributes: + - foreignKeyCols + """ + + thrift_spec = ( + None, # 0 + (1, TType.LIST, 'foreignKeyCols', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 1 + ) + + def __init__(self, foreignKeyCols=None,): + self.foreignKeyCols = foreignKeyCols + + 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.foreignKeyCols = [] + (_etype309, _size306) = iprot.readListBegin() + for _i310 in xrange(_size306): + _elem311 = SQLForeignKey() + _elem311.read(iprot) + self.foreignKeyCols.append(_elem311) + iprot.readListEnd() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('AddForeignKeyRequest') + if self.foreignKeyCols is not None: + oprot.writeFieldBegin('foreignKeyCols', TType.LIST, 1) + oprot.writeListBegin(TType.STRUCT, len(self.foreignKeyCols)) + for iter312 in self.foreignKeyCols: + iter312.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + if self.foreignKeyCols is None: + raise TProtocol.TProtocolException(message='Required field foreignKeyCols is unset!') + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.foreignKeyCols) + return value + + 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 PartitionsByExprResult: """ Attributes: @@ -6382,11 +6534,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype302, _size299) = iprot.readListBegin() - for _i303 in xrange(_size299): - _elem304 = Partition() - _elem304.read(iprot) - self.partitions.append(_elem304) + (_etype316, _size313) = iprot.readListBegin() + for _i317 in xrange(_size313): + _elem318 = Partition() + _elem318.read(iprot) + self.partitions.append(_elem318) iprot.readListEnd() else: iprot.skip(ftype) @@ -6408,8 +6560,8 @@ def write(self, oprot): if self.partitions is not None: oprot.writeFieldBegin('partitions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.partitions)) - for iter305 in self.partitions: - iter305.write(oprot) + for iter319 in self.partitions: + iter319.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.hasUnknownPartitions is not None: @@ -6593,11 +6745,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.tableStats = [] - (_etype309, _size306) = iprot.readListBegin() - for _i310 in xrange(_size306): - _elem311 = ColumnStatisticsObj() - _elem311.read(iprot) - self.tableStats.append(_elem311) + (_etype323, _size320) = iprot.readListBegin() + for _i324 in xrange(_size320): + _elem325 = ColumnStatisticsObj() + _elem325.read(iprot) + self.tableStats.append(_elem325) iprot.readListEnd() else: iprot.skip(ftype) @@ -6614,8 +6766,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 iter312 in self.tableStats: - iter312.write(oprot) + for iter326 in self.tableStats: + iter326.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6669,17 +6821,17 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.partStats = {} - (_ktype314, _vtype315, _size313 ) = iprot.readMapBegin() - for _i317 in xrange(_size313): - _key318 = iprot.readString() - _val319 = [] - (_etype323, _size320) = iprot.readListBegin() - for _i324 in xrange(_size320): - _elem325 = ColumnStatisticsObj() - _elem325.read(iprot) - _val319.append(_elem325) + (_ktype328, _vtype329, _size327 ) = iprot.readMapBegin() + for _i331 in xrange(_size327): + _key332 = iprot.readString() + _val333 = [] + (_etype337, _size334) = iprot.readListBegin() + for _i338 in xrange(_size334): + _elem339 = ColumnStatisticsObj() + _elem339.read(iprot) + _val333.append(_elem339) iprot.readListEnd() - self.partStats[_key318] = _val319 + self.partStats[_key332] = _val333 iprot.readMapEnd() else: iprot.skip(ftype) @@ -6696,11 +6848,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 kiter326,viter327 in self.partStats.items(): - oprot.writeString(kiter326) - oprot.writeListBegin(TType.STRUCT, len(viter327)) - for iter328 in viter327: - iter328.write(oprot) + for kiter340,viter341 in self.partStats.items(): + oprot.writeString(kiter340) + oprot.writeListBegin(TType.STRUCT, len(viter341)) + for iter342 in viter341: + iter342.write(oprot) oprot.writeListEnd() oprot.writeMapEnd() oprot.writeFieldEnd() @@ -6771,10 +6923,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype332, _size329) = iprot.readListBegin() - for _i333 in xrange(_size329): - _elem334 = iprot.readString() - self.colNames.append(_elem334) + (_etype346, _size343) = iprot.readListBegin() + for _i347 in xrange(_size343): + _elem348 = iprot.readString() + self.colNames.append(_elem348) iprot.readListEnd() else: iprot.skip(ftype) @@ -6799,8 +6951,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 iter335 in self.colNames: - oprot.writeString(iter335) + for iter349 in self.colNames: + oprot.writeString(iter349) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6879,20 +7031,20 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.colNames = [] - (_etype339, _size336) = iprot.readListBegin() - for _i340 in xrange(_size336): - _elem341 = iprot.readString() - self.colNames.append(_elem341) + (_etype353, _size350) = iprot.readListBegin() + for _i354 in xrange(_size350): + _elem355 = iprot.readString() + self.colNames.append(_elem355) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 4: if ftype == TType.LIST: self.partNames = [] - (_etype345, _size342) = iprot.readListBegin() - for _i346 in xrange(_size342): - _elem347 = iprot.readString() - self.partNames.append(_elem347) + (_etype359, _size356) = iprot.readListBegin() + for _i360 in xrange(_size356): + _elem361 = iprot.readString() + self.partNames.append(_elem361) iprot.readListEnd() else: iprot.skip(ftype) @@ -6917,15 +7069,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 iter348 in self.colNames: - oprot.writeString(iter348) + for iter362 in self.colNames: + oprot.writeString(iter362) oprot.writeListEnd() oprot.writeFieldEnd() if self.partNames is not None: oprot.writeFieldBegin('partNames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partNames)) - for iter349 in self.partNames: - oprot.writeString(iter349) + for iter363 in self.partNames: + oprot.writeString(iter363) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -6988,11 +7140,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype353, _size350) = iprot.readListBegin() - for _i354 in xrange(_size350): - _elem355 = Partition() - _elem355.read(iprot) - self.partitions.append(_elem355) + (_etype367, _size364) = iprot.readListBegin() + for _i368 in xrange(_size364): + _elem369 = Partition() + _elem369.read(iprot) + self.partitions.append(_elem369) iprot.readListEnd() else: iprot.skip(ftype) @@ -7009,8 +7161,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 iter356 in self.partitions: - iter356.write(oprot) + for iter370 in self.partitions: + iter370.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7084,11 +7236,11 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.parts = [] - (_etype360, _size357) = iprot.readListBegin() - for _i361 in xrange(_size357): - _elem362 = Partition() - _elem362.read(iprot) - self.parts.append(_elem362) + (_etype374, _size371) = iprot.readListBegin() + for _i375 in xrange(_size371): + _elem376 = Partition() + _elem376.read(iprot) + self.parts.append(_elem376) iprot.readListEnd() else: iprot.skip(ftype) @@ -7123,8 +7275,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 iter363 in self.parts: - iter363.write(oprot) + for iter377 in self.parts: + iter377.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.ifNotExists is not None: @@ -7196,11 +7348,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.partitions = [] - (_etype367, _size364) = iprot.readListBegin() - for _i368 in xrange(_size364): - _elem369 = Partition() - _elem369.read(iprot) - self.partitions.append(_elem369) + (_etype381, _size378) = iprot.readListBegin() + for _i382 in xrange(_size378): + _elem383 = Partition() + _elem383.read(iprot) + self.partitions.append(_elem383) iprot.readListEnd() else: iprot.skip(ftype) @@ -7217,8 +7369,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 iter370 in self.partitions: - iter370.write(oprot) + for iter384 in self.partitions: + iter384.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7353,21 +7505,21 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.names = [] - (_etype374, _size371) = iprot.readListBegin() - for _i375 in xrange(_size371): - _elem376 = iprot.readString() - self.names.append(_elem376) + (_etype388, _size385) = iprot.readListBegin() + for _i389 in xrange(_size385): + _elem390 = iprot.readString() + self.names.append(_elem390) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.exprs = [] - (_etype380, _size377) = iprot.readListBegin() - for _i381 in xrange(_size377): - _elem382 = DropPartitionsExpr() - _elem382.read(iprot) - self.exprs.append(_elem382) + (_etype394, _size391) = iprot.readListBegin() + for _i395 in xrange(_size391): + _elem396 = DropPartitionsExpr() + _elem396.read(iprot) + self.exprs.append(_elem396) iprot.readListEnd() else: iprot.skip(ftype) @@ -7384,15 +7536,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 iter383 in self.names: - oprot.writeString(iter383) + for iter397 in self.names: + oprot.writeString(iter397) oprot.writeListEnd() oprot.writeFieldEnd() if self.exprs is not None: oprot.writeFieldBegin('exprs', TType.LIST, 2) oprot.writeListBegin(TType.STRUCT, len(self.exprs)) - for iter384 in self.exprs: - iter384.write(oprot) + for iter398 in self.exprs: + iter398.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -7743,11 +7895,11 @@ def read(self, iprot): elif fid == 8: if ftype == TType.LIST: self.resourceUris = [] - (_etype388, _size385) = iprot.readListBegin() - for _i389 in xrange(_size385): - _elem390 = ResourceUri() - _elem390.read(iprot) - self.resourceUris.append(_elem390) + (_etype402, _size399) = iprot.readListBegin() + for _i403 in xrange(_size399): + _elem404 = ResourceUri() + _elem404.read(iprot) + self.resourceUris.append(_elem404) iprot.readListEnd() else: iprot.skip(ftype) @@ -7792,8 +7944,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 iter391 in self.resourceUris: - iter391.write(oprot) + for iter405 in self.resourceUris: + iter405.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8011,11 +8163,11 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.open_txns = [] - (_etype395, _size392) = iprot.readListBegin() - for _i396 in xrange(_size392): - _elem397 = TxnInfo() - _elem397.read(iprot) - self.open_txns.append(_elem397) + (_etype409, _size406) = iprot.readListBegin() + for _i410 in xrange(_size406): + _elem411 = TxnInfo() + _elem411.read(iprot) + self.open_txns.append(_elem411) iprot.readListEnd() else: iprot.skip(ftype) @@ -8036,8 +8188,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 iter398 in self.open_txns: - iter398.write(oprot) + for iter412 in self.open_txns: + iter412.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8102,10 +8254,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.SET: self.open_txns = set() - (_etype402, _size399) = iprot.readSetBegin() - for _i403 in xrange(_size399): - _elem404 = iprot.readI64() - self.open_txns.add(_elem404) + (_etype416, _size413) = iprot.readSetBegin() + for _i417 in xrange(_size413): + _elem418 = iprot.readI64() + self.open_txns.add(_elem418) iprot.readSetEnd() else: iprot.skip(ftype) @@ -8126,8 +8278,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 iter405 in self.open_txns: - oprot.writeI64(iter405) + for iter419 in self.open_txns: + oprot.writeI64(iter419) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8294,10 +8446,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype409, _size406) = iprot.readListBegin() - for _i410 in xrange(_size406): - _elem411 = iprot.readI64() - self.txn_ids.append(_elem411) + (_etype423, _size420) = iprot.readListBegin() + for _i424 in xrange(_size420): + _elem425 = iprot.readI64() + self.txn_ids.append(_elem425) iprot.readListEnd() else: iprot.skip(ftype) @@ -8314,8 +8466,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 iter412 in self.txn_ids: - oprot.writeI64(iter412) + for iter426 in self.txn_ids: + oprot.writeI64(iter426) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8436,10 +8588,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.txn_ids = [] - (_etype416, _size413) = iprot.readListBegin() - for _i417 in xrange(_size413): - _elem418 = iprot.readI64() - self.txn_ids.append(_elem418) + (_etype430, _size427) = iprot.readListBegin() + for _i431 in xrange(_size427): + _elem432 = iprot.readI64() + self.txn_ids.append(_elem432) iprot.readListEnd() else: iprot.skip(ftype) @@ -8456,8 +8608,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 iter419 in self.txn_ids: - oprot.writeI64(iter419) + for iter433 in self.txn_ids: + oprot.writeI64(iter433) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -8713,11 +8865,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.component = [] - (_etype423, _size420) = iprot.readListBegin() - for _i424 in xrange(_size420): - _elem425 = LockComponent() - _elem425.read(iprot) - self.component.append(_elem425) + (_etype437, _size434) = iprot.readListBegin() + for _i438 in xrange(_size434): + _elem439 = LockComponent() + _elem439.read(iprot) + self.component.append(_elem439) iprot.readListEnd() else: iprot.skip(ftype) @@ -8754,8 +8906,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 iter426 in self.component: - iter426.write(oprot) + for iter440 in self.component: + iter440.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.txnid is not None: @@ -9453,11 +9605,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.locks = [] - (_etype430, _size427) = iprot.readListBegin() - for _i431 in xrange(_size427): - _elem432 = ShowLocksResponseElement() - _elem432.read(iprot) - self.locks.append(_elem432) + (_etype444, _size441) = iprot.readListBegin() + for _i445 in xrange(_size441): + _elem446 = ShowLocksResponseElement() + _elem446.read(iprot) + self.locks.append(_elem446) iprot.readListEnd() else: iprot.skip(ftype) @@ -9474,8 +9626,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 iter433 in self.locks: - iter433.write(oprot) + for iter447 in self.locks: + iter447.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -9690,20 +9842,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.SET: self.aborted = set() - (_etype437, _size434) = iprot.readSetBegin() - for _i438 in xrange(_size434): - _elem439 = iprot.readI64() - self.aborted.add(_elem439) + (_etype451, _size448) = iprot.readSetBegin() + for _i452 in xrange(_size448): + _elem453 = iprot.readI64() + self.aborted.add(_elem453) iprot.readSetEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.SET: self.nosuch = set() - (_etype443, _size440) = iprot.readSetBegin() - for _i444 in xrange(_size440): - _elem445 = iprot.readI64() - self.nosuch.add(_elem445) + (_etype457, _size454) = iprot.readSetBegin() + for _i458 in xrange(_size454): + _elem459 = iprot.readI64() + self.nosuch.add(_elem459) iprot.readSetEnd() else: iprot.skip(ftype) @@ -9720,15 +9872,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 iter446 in self.aborted: - oprot.writeI64(iter446) + for iter460 in self.aborted: + oprot.writeI64(iter460) oprot.writeSetEnd() oprot.writeFieldEnd() if self.nosuch is not None: oprot.writeFieldBegin('nosuch', TType.SET, 2) oprot.writeSetBegin(TType.I64, len(self.nosuch)) - for iter447 in self.nosuch: - oprot.writeI64(iter447) + for iter461 in self.nosuch: + oprot.writeI64(iter461) oprot.writeSetEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10170,11 +10322,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.compacts = [] - (_etype451, _size448) = iprot.readListBegin() - for _i452 in xrange(_size448): - _elem453 = ShowCompactResponseElement() - _elem453.read(iprot) - self.compacts.append(_elem453) + (_etype465, _size462) = iprot.readListBegin() + for _i466 in xrange(_size462): + _elem467 = ShowCompactResponseElement() + _elem467.read(iprot) + self.compacts.append(_elem467) iprot.readListEnd() else: iprot.skip(ftype) @@ -10191,8 +10343,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 iter454 in self.compacts: - iter454.write(oprot) + for iter468 in self.compacts: + iter468.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10270,10 +10422,10 @@ def read(self, iprot): elif fid == 4: if ftype == TType.LIST: self.partitionnames = [] - (_etype458, _size455) = iprot.readListBegin() - for _i459 in xrange(_size455): - _elem460 = iprot.readString() - self.partitionnames.append(_elem460) + (_etype472, _size469) = iprot.readListBegin() + for _i473 in xrange(_size469): + _elem474 = iprot.readString() + self.partitionnames.append(_elem474) iprot.readListEnd() else: iprot.skip(ftype) @@ -10302,8 +10454,8 @@ def write(self, oprot): if self.partitionnames is not None: oprot.writeFieldBegin('partitionnames', TType.LIST, 4) oprot.writeListBegin(TType.STRING, len(self.partitionnames)) - for iter461 in self.partitionnames: - oprot.writeString(iter461) + for iter475 in self.partitionnames: + oprot.writeString(iter475) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10584,11 +10736,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.events = [] - (_etype465, _size462) = iprot.readListBegin() - for _i466 in xrange(_size462): - _elem467 = NotificationEvent() - _elem467.read(iprot) - self.events.append(_elem467) + (_etype479, _size476) = iprot.readListBegin() + for _i480 in xrange(_size476): + _elem481 = NotificationEvent() + _elem481.read(iprot) + self.events.append(_elem481) iprot.readListEnd() else: iprot.skip(ftype) @@ -10605,8 +10757,8 @@ def write(self, oprot): if self.events is not None: oprot.writeFieldBegin('events', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.events)) - for iter468 in self.events: - iter468.write(oprot) + for iter482 in self.events: + iter482.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10727,10 +10879,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.filesAdded = [] - (_etype472, _size469) = iprot.readListBegin() - for _i473 in xrange(_size469): - _elem474 = iprot.readString() - self.filesAdded.append(_elem474) + (_etype486, _size483) = iprot.readListBegin() + for _i487 in xrange(_size483): + _elem488 = iprot.readString() + self.filesAdded.append(_elem488) iprot.readListEnd() else: iprot.skip(ftype) @@ -10747,8 +10899,8 @@ def write(self, oprot): if self.filesAdded is not None: oprot.writeFieldBegin('filesAdded', TType.LIST, 1) oprot.writeListBegin(TType.STRING, len(self.filesAdded)) - for iter475 in self.filesAdded: - oprot.writeString(iter475) + for iter489 in self.filesAdded: + oprot.writeString(iter489) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -10901,10 +11053,10 @@ def read(self, iprot): elif fid == 5: if ftype == TType.LIST: self.partitionVals = [] - (_etype479, _size476) = iprot.readListBegin() - for _i480 in xrange(_size476): - _elem481 = iprot.readString() - self.partitionVals.append(_elem481) + (_etype493, _size490) = iprot.readListBegin() + for _i494 in xrange(_size490): + _elem495 = iprot.readString() + self.partitionVals.append(_elem495) iprot.readListEnd() else: iprot.skip(ftype) @@ -10937,8 +11089,8 @@ def write(self, oprot): if self.partitionVals is not None: oprot.writeFieldBegin('partitionVals', TType.LIST, 5) oprot.writeListBegin(TType.STRING, len(self.partitionVals)) - for iter482 in self.partitionVals: - oprot.writeString(iter482) + for iter496 in self.partitionVals: + oprot.writeString(iter496) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11125,12 +11277,12 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype484, _vtype485, _size483 ) = iprot.readMapBegin() - for _i487 in xrange(_size483): - _key488 = iprot.readI64() - _val489 = MetadataPpdResult() - _val489.read(iprot) - self.metadata[_key488] = _val489 + (_ktype498, _vtype499, _size497 ) = iprot.readMapBegin() + for _i501 in xrange(_size497): + _key502 = iprot.readI64() + _val503 = MetadataPpdResult() + _val503.read(iprot) + self.metadata[_key502] = _val503 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11152,9 +11304,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.metadata)) - for kiter490,viter491 in self.metadata.items(): - oprot.writeI64(kiter490) - viter491.write(oprot) + for kiter504,viter505 in self.metadata.items(): + oprot.writeI64(kiter504) + viter505.write(oprot) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11224,10 +11376,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype495, _size492) = iprot.readListBegin() - for _i496 in xrange(_size492): - _elem497 = iprot.readI64() - self.fileIds.append(_elem497) + (_etype509, _size506) = iprot.readListBegin() + for _i510 in xrange(_size506): + _elem511 = iprot.readI64() + self.fileIds.append(_elem511) iprot.readListEnd() else: iprot.skip(ftype) @@ -11259,8 +11411,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter498 in self.fileIds: - oprot.writeI64(iter498) + for iter512 in self.fileIds: + oprot.writeI64(iter512) oprot.writeListEnd() oprot.writeFieldEnd() if self.expr is not None: @@ -11334,11 +11486,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.MAP: self.metadata = {} - (_ktype500, _vtype501, _size499 ) = iprot.readMapBegin() - for _i503 in xrange(_size499): - _key504 = iprot.readI64() - _val505 = iprot.readString() - self.metadata[_key504] = _val505 + (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() + for _i517 in xrange(_size513): + _key518 = iprot.readI64() + _val519 = iprot.readString() + self.metadata[_key518] = _val519 iprot.readMapEnd() else: iprot.skip(ftype) @@ -11360,9 +11512,9 @@ def write(self, oprot): if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.MAP, 1) oprot.writeMapBegin(TType.I64, TType.STRING, len(self.metadata)) - for kiter506,viter507 in self.metadata.items(): - oprot.writeI64(kiter506) - oprot.writeString(viter507) + for kiter520,viter521 in self.metadata.items(): + oprot.writeI64(kiter520) + oprot.writeString(viter521) oprot.writeMapEnd() oprot.writeFieldEnd() if self.isSupported is not None: @@ -11423,10 +11575,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype511, _size508) = iprot.readListBegin() - for _i512 in xrange(_size508): - _elem513 = iprot.readI64() - self.fileIds.append(_elem513) + (_etype525, _size522) = iprot.readListBegin() + for _i526 in xrange(_size522): + _elem527 = iprot.readI64() + self.fileIds.append(_elem527) iprot.readListEnd() else: iprot.skip(ftype) @@ -11443,8 +11595,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter514 in self.fileIds: - oprot.writeI64(iter514) + for iter528 in self.fileIds: + oprot.writeI64(iter528) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11550,20 +11702,20 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype518, _size515) = iprot.readListBegin() - for _i519 in xrange(_size515): - _elem520 = iprot.readI64() - self.fileIds.append(_elem520) + (_etype532, _size529) = iprot.readListBegin() + for _i533 in xrange(_size529): + _elem534 = iprot.readI64() + self.fileIds.append(_elem534) iprot.readListEnd() else: iprot.skip(ftype) elif fid == 2: if ftype == TType.LIST: self.metadata = [] - (_etype524, _size521) = iprot.readListBegin() - for _i525 in xrange(_size521): - _elem526 = iprot.readString() - self.metadata.append(_elem526) + (_etype538, _size535) = iprot.readListBegin() + for _i539 in xrange(_size535): + _elem540 = iprot.readString() + self.metadata.append(_elem540) iprot.readListEnd() else: iprot.skip(ftype) @@ -11585,15 +11737,15 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter527 in self.fileIds: - oprot.writeI64(iter527) + for iter541 in self.fileIds: + oprot.writeI64(iter541) oprot.writeListEnd() oprot.writeFieldEnd() if self.metadata is not None: oprot.writeFieldBegin('metadata', TType.LIST, 2) oprot.writeListBegin(TType.STRING, len(self.metadata)) - for iter528 in self.metadata: - oprot.writeString(iter528) + for iter542 in self.metadata: + oprot.writeString(iter542) oprot.writeListEnd() oprot.writeFieldEnd() if self.type is not None: @@ -11701,10 +11853,10 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.fileIds = [] - (_etype532, _size529) = iprot.readListBegin() - for _i533 in xrange(_size529): - _elem534 = iprot.readI64() - self.fileIds.append(_elem534) + (_etype546, _size543) = iprot.readListBegin() + for _i547 in xrange(_size543): + _elem548 = iprot.readI64() + self.fileIds.append(_elem548) iprot.readListEnd() else: iprot.skip(ftype) @@ -11721,8 +11873,8 @@ def write(self, oprot): if self.fileIds is not None: oprot.writeFieldBegin('fileIds', TType.LIST, 1) oprot.writeListBegin(TType.I64, len(self.fileIds)) - for iter535 in self.fileIds: - oprot.writeI64(iter535) + for iter549 in self.fileIds: + oprot.writeI64(iter549) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -11951,11 +12103,11 @@ def read(self, iprot): if fid == 1: if ftype == TType.LIST: self.functions = [] - (_etype539, _size536) = iprot.readListBegin() - for _i540 in xrange(_size536): - _elem541 = Function() - _elem541.read(iprot) - self.functions.append(_elem541) + (_etype553, _size550) = iprot.readListBegin() + for _i554 in xrange(_size550): + _elem555 = Function() + _elem555.read(iprot) + self.functions.append(_elem555) iprot.readListEnd() else: iprot.skip(ftype) @@ -11972,8 +12124,8 @@ def write(self, oprot): if self.functions is not None: oprot.writeFieldBegin('functions', TType.LIST, 1) oprot.writeListBegin(TType.STRUCT, len(self.functions)) - for iter542 in self.functions: - iter542.write(oprot) + for iter556 in self.functions: + iter556.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() diff --git a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb index d6da518..2aa92d8 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -1409,6 +1409,40 @@ class DropConstraintRequest ::Thrift::Struct.generate_accessors self end +class AddPrimaryKeyRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + PRIMARYKEYCOLS = 1 + + FIELDS = { + PRIMARYKEYCOLS => {:type => ::Thrift::Types::LIST, :name => 'primaryKeyCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLPrimaryKey}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field primaryKeyCols is unset!') unless @primaryKeyCols + end + + ::Thrift::Struct.generate_accessors self +end + +class AddForeignKeyRequest + include ::Thrift::Struct, ::Thrift::Struct_Union + FOREIGNKEYCOLS = 1 + + FIELDS = { + FOREIGNKEYCOLS => {:type => ::Thrift::Types::LIST, :name => 'foreignKeyCols', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLForeignKey}} + } + + def struct_fields; FIELDS; end + + def validate + raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field foreignKeyCols is unset!') unless @foreignKeyCols + end + + ::Thrift::Struct.generate_accessors self +end + class PartitionsByExprResult include ::Thrift::Struct, ::Thrift::Struct_Union PARTITIONS = 1 diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index 722f0f0..51f65c6 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -352,6 +352,38 @@ module ThriftHiveMetastore return end + def add_primary_key(req) + send_add_primary_key(req) + recv_add_primary_key() + end + + def send_add_primary_key(req) + send_message('add_primary_key', Add_primary_key_args, :req => req) + end + + def recv_add_primary_key() + result = receive_message(Add_primary_key_result) + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + return + end + + def add_foreign_key(req) + send_add_foreign_key(req) + recv_add_foreign_key() + end + + def send_add_foreign_key(req) + send_message('add_foreign_key', Add_foreign_key_args, :req => req) + end + + def recv_add_foreign_key() + result = receive_message(Add_foreign_key_result) + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + return + end + def drop_table(dbname, name, deleteData) send_drop_table(dbname, name, deleteData) recv_drop_table() @@ -2733,6 +2765,32 @@ module ThriftHiveMetastore write_result(result, oprot, 'drop_constraint', seqid) end + def process_add_primary_key(seqid, iprot, oprot) + args = read_args(iprot, Add_primary_key_args) + result = Add_primary_key_result.new() + begin + @handler.add_primary_key(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_primary_key', seqid) + end + + def process_add_foreign_key(seqid, iprot, oprot) + args = read_args(iprot, Add_foreign_key_args) + result = Add_foreign_key_result.new() + begin + @handler.add_foreign_key(args.req) + rescue ::NoSuchObjectException => o1 + result.o1 = o1 + rescue ::MetaException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'add_foreign_key', seqid) + end + def process_drop_table(seqid, iprot, oprot) args = read_args(iprot, Drop_table_args) result = Drop_table_result.new() @@ -5021,6 +5079,74 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Add_primary_key_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddPrimaryKeyRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_primary_key_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + O2 = 2 + + FIELDS = { + 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 Add_foreign_key_args + include ::Thrift::Struct, ::Thrift::Struct_Union + REQ = 1 + + FIELDS = { + REQ => {:type => ::Thrift::Types::STRUCT, :name => 'req', :class => ::AddForeignKeyRequest} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Add_foreign_key_result + include ::Thrift::Struct, ::Thrift::Struct_Union + O1 = 1 + O2 = 2 + + FIELDS = { + 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 Drop_table_args include ::Thrift::Struct, ::Thrift::Struct_Union DBNAME = 1 diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java index 8d4e8f3..4b92b2a 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -1512,6 +1512,59 @@ public void drop_constraint(DropConstraintRequest req) endFunction("drop_constraint", success, ex, constraintName); } } + + @Override + public void add_primary_key(AddPrimaryKeyRequest req) + throws MetaException, InvalidObjectException { + List primaryKeyCols = req.getPrimaryKeyCols(); + String constraintName = (primaryKeyCols != null && primaryKeyCols.size() > 0) ? + primaryKeyCols.get(0).getPk_name() : "null"; + startFunction("add_primary_key", ": " + constraintName); + boolean success = false; + Exception ex = null; + try { + getMS().addPrimaryKeys(primaryKeyCols); + success = true; + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else if (e instanceof InvalidObjectException) { + throw (InvalidObjectException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("add_primary_key", success, ex, constraintName); + } + } + + @Override + public void add_foreign_key(AddForeignKeyRequest req) + throws MetaException, InvalidObjectException { + List foreignKeyCols = req.getForeignKeyCols(); + String constraintName = (foreignKeyCols != null && foreignKeyCols.size() > 0) ? + foreignKeyCols.get(0).getFk_name() : "null"; + startFunction("add_foreign_key", ": " + constraintName); + boolean success = false; + Exception ex = null; + try { + getMS().addForeignKeys(foreignKeyCols); + success = true; + } catch (Exception e) { + ex = e; + if (e instanceof MetaException) { + throw (MetaException) e; + } else if (e instanceof InvalidObjectException) { + throw (InvalidObjectException) e; + } else { + throw newMetaException(e); + } + } finally { + endFunction("add_foreign_key", success, ex, constraintName); + } + } + private boolean is_table_exists(RawStore ms, String dbname, String name) throws MetaException { return (ms.getTable(dbname, name) != null); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java index 3a63551..09091b8 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -29,8 +29,10 @@ import org.apache.hadoop.hive.metastore.api.AbortTxnRequest; import org.apache.hadoop.hive.metastore.api.AbortTxnsRequest; import org.apache.hadoop.hive.metastore.api.AddDynamicPartitions; +import org.apache.hadoop.hive.metastore.api.AddForeignKeyRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsRequest; import org.apache.hadoop.hive.metastore.api.AddPartitionsResult; +import org.apache.hadoop.hive.metastore.api.AddPrimaryKeyRequest; import org.apache.hadoop.hive.metastore.api.AggrStats; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.CacheFileMetadataRequest; @@ -772,6 +774,18 @@ public void dropConstraint(String dbName, String tableName, String constraintNam client.drop_constraint(new DropConstraintRequest(dbName, tableName, constraintName)); } + @Override + public void addPrimaryKey(List primaryKeyCols) throws + NoSuchObjectException, MetaException, TException { + client.add_primary_key(new AddPrimaryKeyRequest(primaryKeyCols)); + } + + @Override + public void addForeignKey(List foreignKeyCols) throws + NoSuchObjectException, MetaException, TException { + client.add_foreign_key(new AddForeignKeyRequest(foreignKeyCols)); + } + /** * @param type * @return true or false diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java index 68972fb..9f452c1 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -1576,4 +1576,9 @@ void createTableWithConstraints( void dropConstraint(String dbName, String tableName, String constraintName) throws MetaException, NoSuchObjectException, TException; + void addPrimaryKey(List primaryKeyCols) throws + MetaException, NoSuchObjectException, TException; + + void addForeignKey(List foreignKeyCols) throws + MetaException, NoSuchObjectException, TException; } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java index fea4fc5..b6d5276 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java @@ -911,9 +911,12 @@ public void createTableWithConstraints(Table tbl, try { openTransaction(); createTable(tbl); - addPrimaryKeys(primaryKeys); - addForeignKeys(foreignKeys); - success = commitTransaction(); + // Add primary keys and foreign keys. + // We need not do a deep retrieval of the Table Column Descriptor while persisting the PK/FK + // since this transaction involving create table is not yet committed. + addPrimaryKeys(primaryKeys, false); + addForeignKeys(foreignKeys, false); + success = commitTransaction(); } finally { if (!success) { rollbackTransaction(); @@ -1265,7 +1268,20 @@ private StringBuilder appendCondition(StringBuilder builder, return getTables(dbName, ".*"); } - private MTable getMTable(String db, String table) { + class AttachedMTableInfo { + MTable mtbl; + MColumnDescriptor mcd; + + public AttachedMTableInfo() {} + + public AttachedMTableInfo(MTable mtbl, MColumnDescriptor mcd) { + this.mtbl = mtbl; + this.mcd = mcd; + } + } + + private AttachedMTableInfo getMTable(String db, String table, boolean retrieveCD) { + AttachedMTableInfo nmtbl = new AttachedMTableInfo(); MTable mtbl = null; boolean commited = false; Query query = null; @@ -1278,6 +1294,12 @@ private MTable getMTable(String db, String table) { query.setUnique(true); mtbl = (MTable) query.execute(table, db); pm.retrieve(mtbl); + // Retrieving CD can be expensive and unnecessary, so do it only when required. + if (mtbl != null && retrieveCD) { + pm.retrieve(mtbl.getSd()); + pm.retrieveAll(mtbl.getSd().getCD()); + nmtbl.mcd = mtbl.getSd().getCD(); + } commited = commitTransaction(); } finally { if (!commited) { @@ -1287,7 +1309,13 @@ private MTable getMTable(String db, String table) { query.closeAll(); } } - return mtbl; + nmtbl.mtbl = mtbl; + return nmtbl; + } + + private MTable getMTable(String db, String table) { + AttachedMTableInfo nmtbl = getMTable(db, table, false); + return nmtbl.mtbl; } @Override @@ -3302,8 +3330,10 @@ private void preDropStorageDescriptor(MStorageDescriptor msd) { return sds; } - private int getColumnIndexForTable(MTable mtbl, String col) { - List cols = mtbl.getSd().getCD().getCols(); + private int getColumnIndexFromTableColumns(List cols, String col) { + if (cols == null) { + return -1; + } for (int i = 0; i < cols.size(); i++) { MFieldSchema mfs = cols.get(i); if (mfs.getName().equalsIgnoreCase(col)) { @@ -3351,33 +3381,47 @@ private String generateConstraintName(String... parameters) throws MetaException throw new MetaException("Error while trying to generate the constraint name for " + ArrayUtils.toString(parameters)); } + @Override + public void addForeignKeys( + List fks) throws InvalidObjectException, MetaException { + addForeignKeys(fks, true); + } + private void addForeignKeys( - List fks) throws InvalidObjectException, + List fks, boolean retrieveCD) throws InvalidObjectException, MetaException { List mpkfks = new ArrayList(); String currentConstraintName = null; for (int i = 0; i < fks.size(); i++) { - MTable parentTable = - getMTable(fks.get(i).getPktable_db(), fks.get(i).getPktable_name()); + AttachedMTableInfo nParentTable = getMTable(fks.get(i).getPktable_db(), fks.get(i).getPktable_name(), retrieveCD); + MTable parentTable = nParentTable.mtbl; if (parentTable == null) { throw new InvalidObjectException("Parent table not found: " + fks.get(i).getPktable_name()); } - MTable childTable = - getMTable(fks.get(i).getFktable_db(), fks.get(i).getFktable_name()); + + AttachedMTableInfo nChildTable = getMTable(fks.get(i).getFktable_db(), fks.get(i).getFktable_name(), retrieveCD); + MTable childTable = nChildTable.mtbl; if (childTable == null) { throw new InvalidObjectException("Child table not found: " + fks.get(i).getFktable_name()); } + + MColumnDescriptor parentCD = retrieveCD ? nParentTable.mcd : parentTable.getSd().getCD(); + List parentCols = parentCD.getCols(); int parentIntegerIndex = - getColumnIndexForTable(parentTable, fks.get(i).getPkcolumn_name()); + getColumnIndexFromTableColumns(parentCols, fks.get(i).getPkcolumn_name()); if (parentIntegerIndex == -1) { throw new InvalidObjectException("Parent column not found: " + fks.get(i).getPkcolumn_name()); } + + MColumnDescriptor childCD = retrieveCD ? nChildTable.mcd : childTable.getSd().getCD(); + List childCols = childCD.getCols(); int childIntegerIndex = - getColumnIndexForTable(childTable, fks.get(i).getFkcolumn_name()); + getColumnIndexFromTableColumns(childCols, fks.get(i).getFkcolumn_name()); if (childIntegerIndex == -1) { - throw new InvalidObjectException("Child column not found" + fks.get(i).getFkcolumn_name()); + throw new InvalidObjectException("Child column not found: " + fks.get(i).getFkcolumn_name()); } + if (fks.get(i).getFk_name() == null) { // When there is no explicit foreign key name associated with the constraint and the key is composite, // we expect the foreign keys to be send in order in the input list. @@ -3407,8 +3451,8 @@ private void addForeignKeys( enableValidateRely, parentTable, childTable, - parentTable.getSd().getCD(), - childTable.getSd().getCD(), + parentCD, + childCD, childIntegerIndex, parentIntegerIndex ); @@ -3417,18 +3461,29 @@ private void addForeignKeys( pm.makePersistentAll(mpkfks); } - private void addPrimaryKeys(List pks) throws InvalidObjectException, + @Override + public void addPrimaryKeys(List pks) throws InvalidObjectException, + MetaException { + addPrimaryKeys(pks, true); + } + + private void addPrimaryKeys(List pks, boolean retrieveCD) throws InvalidObjectException, MetaException { List mpks = new ArrayList(); String constraintName = null; + for (int i = 0; i < pks.size(); i++) { - MTable parentTable = - getMTable(pks.get(i).getTable_db(), pks.get(i).getTable_name()); + AttachedMTableInfo nParentTable = + getMTable(pks.get(i).getTable_db(), pks.get(i).getTable_name(), retrieveCD); + MTable parentTable = nParentTable.mtbl; if (parentTable == null) { throw new InvalidObjectException("Parent table not found: " + pks.get(i).getTable_name()); } + + MColumnDescriptor parentCD = retrieveCD ? nParentTable.mcd : parentTable.getSd().getCD(); int parentIntegerIndex = - getColumnIndexForTable(parentTable, pks.get(i).getColumn_name()); + getColumnIndexFromTableColumns(parentCD.getCols(), pks.get(i).getColumn_name()); + if (parentIntegerIndex == -1) { throw new InvalidObjectException("Parent column not found: " + pks.get(i).getColumn_name()); } @@ -3445,6 +3500,7 @@ private void addPrimaryKeys(List pks) throws InvalidObjectExcepti } else { constraintName = pks.get(i).getPk_name(); } + int enableValidateRely = (pks.get(i).isEnable_cstr() ? 4 : 0) + (pks.get(i).isValidate_cstr() ? 2 : 0) + (pks.get(i).isRely_cstr() ? 1 : 0); MConstraint mpk = new MConstraint( @@ -3456,7 +3512,7 @@ private void addPrimaryKeys(List pks) throws InvalidObjectExcepti enableValidateRely, parentTable, null, - parentTable.getSd().getCD(), + parentCD, null, null, parentIntegerIndex); diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java index 07d8119..a6d3f53 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/RawStore.java @@ -674,4 +674,8 @@ void createTableWithConstraints(Table tbl, List primaryKeys, List foreignKeys) throws InvalidObjectException, MetaException; void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException; + + void addPrimaryKeys(List pks) throws InvalidObjectException, MetaException; + + void addForeignKeys(List fks) throws InvalidObjectException, MetaException; } diff --git a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java index e97d4a9..31f0d7b 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/hbase/HBaseStore.java @@ -2599,4 +2599,16 @@ public void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException { // TODO Auto-generated method stub } + + @Override + public void addPrimaryKeys(List pks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override + public void addForeignKeys(List fks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } } diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java index 7f4b77e..3152e77 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreControlledCommit.java @@ -845,4 +845,16 @@ public void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException { // TODO Auto-generated method stub } + + @Override + public void addPrimaryKeys(List pks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override + public void addForeignKeys(List fks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } } diff --git a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java index 25ccced..86a2436 100644 --- a/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java +++ b/metastore/src/test/org/apache/hadoop/hive/metastore/DummyRawStoreForJdoConnection.java @@ -861,6 +861,18 @@ public void dropConstraint(String dbName, String tableName, String constraintName) throws NoSuchObjectException { // TODO Auto-generated method stub } + + @Override + public void addPrimaryKeys(List pks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } + + @Override + public void addForeignKeys(List fks) + throws InvalidObjectException, MetaException { + // TODO Auto-generated method stub + } } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java index 0204fcd..76bc545 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/DDLTask.java @@ -362,6 +362,8 @@ public int execute(DriverContext driverContext) { if (alterTbl != null) { if (alterTbl.getOp() == AlterTableTypes.DROPCONSTRAINT ) { return dropConstraint(db, alterTbl); + } else if (alterTbl.getOp() == AlterTableTypes.ADDCONSTRAINT) { + return addConstraint(db, alterTbl); } else { return alterTable(db, alterTbl); } @@ -3631,6 +3633,21 @@ private int dropConstraint(Hive db, AlterTableDesc alterTbl) return 0; } + private int addConstraint(Hive db, AlterTableDesc alterTbl) + throws SemanticException, HiveException { + try { + // This is either an alter table add foreign key or add primary key command. + if (!alterTbl.getForeignKeyCols().isEmpty()) { + db.addForeignKey(alterTbl.getForeignKeyCols()); + } else if (!alterTbl.getPrimaryKeyCols().isEmpty()) { + db.addPrimaryKey(alterTbl.getPrimaryKeyCols()); + } + } catch (NoSuchObjectException e) { + throw new HiveException(e); + } + return 0; + } + /** * Drop a given table or some partitions. DropTableDesc is currently used for both. * diff --git a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java index 981b961..26f61c5 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java @@ -3656,4 +3656,21 @@ public ForeignKeyInfo getForeignKeys(String dbName, String tblName) throws HiveE } } + public void addPrimaryKey(List primaryKeyCols) + throws HiveException, NoSuchObjectException { + try { + getMSC().addPrimaryKey(primaryKeyCols); + } catch (Exception e) { + throw new HiveException(e); + } + } + + public void addForeignKey(List foreignKeyCols) + throws HiveException, NoSuchObjectException { + try { + getMSC().addForeignKey(foreignKeyCols); + } catch (Exception e) { + throw new HiveException(e); + } + } }; diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java index 7fcbd6a..4a9db9e 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/BaseSemanticAnalyzer.java @@ -706,13 +706,50 @@ private static void processPrimaryKeys(ASTNode parent, List pkInfos, } /** + * Process the primary keys from the ast nodes and populate the SQLPrimaryKey list. + * As of now, this is used by 'alter table add constraint' command. We expect constraint + * name to be user specified. + * @param parent Parent of the primary key token node + * @param child Child of the primary key token node containing the primary key columns details + * @param primaryKeys SQLPrimaryKey list to be populated by this function + * @throws SemanticException + */ + protected static void processPrimaryKeys(ASTNode parent, ASTNode child, List primaryKeys) + throws SemanticException { + int relyIndex = 4; + int cnt = 1; + String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); + for (int j = 0; j < child.getChild(1).getChildCount(); j++) { + Tree grandChild = child.getChild(1).getChild(j); + boolean rely = child.getChild(relyIndex).getType() == HiveParser.TOK_VALIDATE; + boolean enable = child.getChild(relyIndex+1).getType() == HiveParser.TOK_ENABLE; + boolean validate = child.getChild(relyIndex+2).getType() == HiveParser.TOK_VALIDATE; + if (enable) { + throw new SemanticException( + ErrorMsg.INVALID_PK_SYNTAX.getMsg(" ENABLE feature not supported yet")); + } + if (validate) { + throw new SemanticException( + ErrorMsg.INVALID_PK_SYNTAX.getMsg(" VALIDATE feature not supported yet")); + } + primaryKeys.add( + new SQLPrimaryKey( + qualifiedTabName[0], qualifiedTabName[1], + unescapeIdentifier(grandChild.getText().toLowerCase()), + cnt++, + unescapeIdentifier(child.getChild(3).getText().toLowerCase()), false, false, + rely)); + } + } + + /** * Process the foreign keys from the AST and populate the foreign keys in the SQLForeignKey list * @param parent Parent of the foreign key token node * @param child Foreign Key token node * @param foreignKeys SQLForeignKey list * @throws SemanticException */ - private static void processForeignKeys( + protected static void processForeignKeys( ASTNode parent, ASTNode child, List foreignKeys) throws SemanticException { String[] qualifiedTabName = getQualifiedTableName((ASTNode) parent.getChild(0)); // The ANTLR grammar looks like : diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java index 0a892e8..0d735b9 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/DDLSemanticAnalyzer.java @@ -40,6 +40,8 @@ import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.NoSuchObjectException; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; import org.apache.hadoop.hive.metastore.api.SkewedInfo; import org.apache.hadoop.hive.ql.Driver; import org.apache.hadoop.hive.ql.ErrorMsg; @@ -70,6 +72,7 @@ import org.apache.hadoop.hive.ql.metadata.InvalidTableException; import org.apache.hadoop.hive.ql.metadata.Partition; import org.apache.hadoop.hive.ql.metadata.Table; +import org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.PKInfo; import org.apache.hadoop.hive.ql.parse.authorization.AuthorizationParseUtils; import org.apache.hadoop.hive.ql.parse.authorization.HiveAuthorizationTaskFactory; import org.apache.hadoop.hive.ql.parse.authorization.HiveAuthorizationTaskFactoryImpl; @@ -321,8 +324,10 @@ public void analyzeInternal(ASTNode input) throws SemanticException { analyzeAlterTableCompact(ast, tableName, partSpec); } else if(ast.getToken().getType() == HiveParser.TOK_ALTERTABLE_UPDATECOLSTATS){ analyzeAlterTableUpdateStats(ast, tableName, partSpec); - } else if(ast.getToken().getType() == HiveParser.TOK_ALTERTABLE_DROPCONSTRAINT) { + } else if(ast.getToken().getType() == HiveParser.TOK_ALTERTABLE_DROPCONSTRAINT) { analyzeAlterTableDropConstraint(ast, tableName); + } else if(ast.getToken().getType() == HiveParser.TOK_ALTERTABLE_ADDCONSTRAINT) { + analyzeAlterTableAddConstraint(ast, tableName); } break; } @@ -1754,6 +1759,24 @@ private void analyzeAlterTableDropConstraint(ASTNode ast, String tableName) alterTblDesc), conf)); } + private void analyzeAlterTableAddConstraint(ASTNode ast, String tableName) + throws SemanticException { + ASTNode parent = (ASTNode) ast.getParent(); + ASTNode child = (ASTNode) ast.getChild(0); + List primaryKeys = new ArrayList(); + List foreignKeys = new ArrayList(); + + if (child.getToken().getType() == HiveParser.TOK_PRIMARY_KEY) { + BaseSemanticAnalyzer.processPrimaryKeys(parent, child, primaryKeys); + } else if (child.getToken().getType() == HiveParser.TOK_FOREIGN_KEY) { + BaseSemanticAnalyzer.processForeignKeys(parent, child, foreignKeys); + } + AlterTableDesc alterTblDesc = new AlterTableDesc(tableName, primaryKeys, foreignKeys); + + rootTasks.add(TaskFactory.get(new DDLWork(getInputs(), getOutputs(), + alterTblDesc), conf)); + } + static HashMap getProps(ASTNode prop) { // Must be deterministic order map for consistent q-test output across Java versions HashMap mapProp = new LinkedHashMap(); diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g index 685ab6a..e0a84c1 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/HiveParser.g @@ -180,6 +180,7 @@ TOK_ALTERTABLE_BUCKETS; TOK_ALTERTABLE_CLUSTER_SORT; TOK_ALTERTABLE_COMPACT; TOK_ALTERTABLE_DROPCONSTRAINT; +TOK_ALTERTABLE_ADDCONSTRAINT; TOK_ALTERINDEX_REBUILD; TOK_ALTERINDEX_PROPERTIES; TOK_MSCK; @@ -1046,6 +1047,7 @@ alterTableStatementSuffix | alterStatementSuffixExchangePartition | alterStatementPartitionKeyType | alterStatementSuffixDropConstraint + | alterStatementSuffixAddConstraint | partitionSpec? alterTblPartitionStatementSuffix -> alterTblPartitionStatementSuffix partitionSpec? ; @@ -1135,6 +1137,14 @@ alterStatementSuffixAddCol -> ^(TOK_ALTERTABLE_REPLACECOLS columnNameTypeList restrictOrCascade?) ; +alterStatementSuffixAddConstraint +@init { pushMsg("add constraint statement", state); } +@after { popMsg(state); } + : KW_ADD (fk=foreignKeyWithName | primaryKeyWithName) + -> {fk != null}? ^(TOK_ALTERTABLE_ADDCONSTRAINT foreignKeyWithName) + -> ^(TOK_ALTERTABLE_ADDCONSTRAINT primaryKeyWithName) + ; + alterStatementSuffixDropConstraint @init { pushMsg("drop constraint statement", state); } @after { popMsg(state); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java index 23a7f6e..efb0ef0 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/parse/SemanticAnalyzerFactory.java @@ -63,6 +63,7 @@ commandType.put(HiveParser.TOK_ALTERTABLE_DROPPROPERTIES, HiveOperation.ALTERTABLE_PROPERTIES); commandType.put(HiveParser.TOK_ALTERTABLE_EXCHANGEPARTITION, HiveOperation.ALTERTABLE_EXCHANGEPARTITION); commandType.put(HiveParser.TOK_ALTERTABLE_DROPCONSTRAINT, HiveOperation.ALTERTABLE_DROPCONSTRAINT); + commandType.put(HiveParser.TOK_ALTERTABLE_ADDCONSTRAINT, HiveOperation.ALTERTABLE_ADDCONSTRAINT); commandType.put(HiveParser.TOK_SHOWDATABASES, HiveOperation.SHOWDATABASES); commandType.put(HiveParser.TOK_SHOWTABLES, HiveOperation.SHOWTABLES); commandType.put(HiveParser.TOK_SHOWCOLUMNS, HiveOperation.SHOWCOLUMNS); @@ -198,6 +199,7 @@ public static BaseSemanticAnalyzer get(QueryState queryState, ASTNode tree) case HiveParser.TOK_ALTERTABLE_EXCHANGEPARTITION: case HiveParser.TOK_ALTERTABLE_SKEWED: case HiveParser.TOK_ALTERTABLE_DROPCONSTRAINT: + case HiveParser.TOK_ALTERTABLE_ADDCONSTRAINT: queryState.setCommandType(commandType.get(child.getType())); return new DDLSemanticAnalyzer(queryState); } diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java index 38d8d5a..b83c16d 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/AlterTableDesc.java @@ -21,6 +21,8 @@ import org.apache.hadoop.hive.metastore.api.EnvironmentContext; import org.apache.hadoop.hive.metastore.api.FieldSchema; import org.apache.hadoop.hive.metastore.api.Order; +import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; import org.apache.hadoop.hive.ql.exec.Utilities; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.hadoop.hive.ql.parse.ParseUtils; @@ -56,7 +58,7 @@ DROPPARTITION("drop partition"), RENAMEPARTITION("rename partition"), ADDSKEWEDBY("add skew column"), ALTERSKEWEDLOCATION("alter skew location"), ALTERBUCKETNUM("alter bucket number"), ALTERPARTITION("alter partition"), COMPACT("compact"), - TRUNCATE("truncate"), MERGEFILES("merge files"), DROPCONSTRAINT("drop constraint"); + TRUNCATE("truncate"), MERGEFILES("merge files"), DROPCONSTRAINT("drop constraint"), ADDCONSTRAINT("add constraint"); ; private final String name; @@ -117,6 +119,8 @@ boolean isCascade = false; EnvironmentContext environmentContext; String dropConstraintName; + List primaryKeyCols; + List foreignKeyCols; public AlterTableDesc() { } @@ -270,6 +274,13 @@ public AlterTableDesc(String tableName, String dropConstraintName) { op = AlterTableTypes.DROPCONSTRAINT; } + public AlterTableDesc(String tableName, List primaryKeyCols, List foreignKeyCols) { + this.oldName = tableName; + this.primaryKeyCols = primaryKeyCols; + this.foreignKeyCols = foreignKeyCols; + op = AlterTableTypes.ADDCONSTRAINT; + } + @Explain(displayName = "new columns", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) public List getNewColsString() { return Utilities.getFieldSchemaString(getNewCols()); @@ -415,6 +426,36 @@ public String getStorageHandler() { } /** + * @param primaryKeyCols + * the primary key cols to set + */ + public void setPrimaryKeyCols(List primaryKeyCols) { + this.primaryKeyCols = primaryKeyCols; + } + + /** + * @return the primary key cols + */ + public List getPrimaryKeyCols() { + return primaryKeyCols; + } + + /** + * @param foreignKeyCols + * the foreign key cols to set + */ + public void setForeignKeyCols(List foreignKeyCols) { + this.foreignKeyCols = foreignKeyCols; + } + + /** + * @return the foreign key cols + */ + public List getForeignKeyCols() { + return foreignKeyCols; + } + + /** * @return the drop constraint name of the table */ @Explain(displayName = "drop constraint name", explainLevels = { Level.USER, Level.DEFAULT, Level.EXTENDED }) diff --git a/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java b/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java index c6044b9..c2895dc 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/plan/HiveOperation.java @@ -117,6 +117,8 @@ ALTERTABLE_EXCHANGEPARTITION("ALTERTABLE_EXCHANGEPARTITION", null, null), ALTERTABLE_DROPCONSTRAINT("ALTERTABLE_DROPCONSTRAINT", new Privilege[]{Privilege.ALTER_METADATA}, null), + ALTERTABLE_ADDCONSTRAINT("ALTERTABLE_ADDCONSTRAINT", + new Privilege[]{Privilege.ALTER_METADATA}, null), ALTERVIEW_RENAME("ALTERVIEW_RENAME", new Privilege[] {Privilege.ALTER_METADATA}, null), ALTERVIEW_AS("ALTERVIEW_AS", new Privilege[] {Privilege.ALTER_METADATA}, null), ALTERTABLE_COMPACT("ALTERTABLE_COMPACT", new Privilege[]{Privilege.SELECT}, new Privilege[]{Privilege.ALTER_DATA}), diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java index 810da48..c507f67 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/HiveOperationType.java @@ -53,6 +53,7 @@ ALTERTABLE_SERIALIZER, ALTERTABLE_PARTCOLTYPE, ALTERTABLE_DROPCONSTRAINT, + ALTERTABLE_ADDCONSTRAINT, ALTERPARTITION_SERIALIZER, ALTERTABLE_SERDEPROPERTIES, ALTERPARTITION_SERDEPROPERTIES, diff --git a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java index 3f138fb..21ae8fb 100644 --- a/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java +++ b/ql/src/java/org/apache/hadoop/hive/ql/security/authorization/plugin/sqlstd/Operation2Privilege.java @@ -233,6 +233,8 @@ public HivePrivilegeObjectType getObjectType() { (OWNER_PRIV_AR, OWNER_PRIV_AR)); op2Priv.put(HiveOperationType.ALTERTABLE_DROPCONSTRAINT, PrivRequirement.newIOPrivRequirement (OWNER_PRIV_AR, OWNER_PRIV_AR)); + op2Priv.put(HiveOperationType.ALTERTABLE_ADDCONSTRAINT, PrivRequirement.newIOPrivRequirement +(OWNER_PRIV_AR, OWNER_PRIV_AR)); //table ownership for create/drop/alter index op2Priv.put(HiveOperationType.CREATEINDEX, PrivRequirement.newIOPrivRequirement diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q b/ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q new file mode 100644 index 0000000..f77eb29 --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_duplicate_pk.q @@ -0,0 +1,2 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +alter table table1 add constraint pk4 primary key (b) disable novalidate rely; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q new file mode 100644 index 0000000..e12808d --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col1.q @@ -0,0 +1,3 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +alter table table2 add constraint fk1 foreign key (c) references table1(a) disable novalidate; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q new file mode 100644 index 0000000..97703de --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_col2.q @@ -0,0 +1,3 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +alter table table2 add constraint fk1 foreign key (b) references table1(c) disable novalidate; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q new file mode 100644 index 0000000..dcd7839 --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl1.q @@ -0,0 +1,3 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +alter table table3 add constraint fk1 foreign key (c) references table1(a) disable novalidate; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q new file mode 100644 index 0000000..c18247b --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_fk_tbl2.q @@ -0,0 +1,3 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely); +alter table table2 add constraint fk1 foreign key (b) references table3(a) disable novalidate; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_col.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_col.q new file mode 100644 index 0000000..8005abe --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_col.q @@ -0,0 +1,2 @@ +CREATE TABLE table1 (a STRING, b STRING); +alter table table1 add constraint pk1 primary key (c) disable novalidate; diff --git a/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q new file mode 100644 index 0000000..b6850fa --- /dev/null +++ b/ql/src/test/queries/clientnegative/alter_table_constraint_invalid_pk_tbl.q @@ -0,0 +1,3 @@ +CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); +CREATE TABLE table2 (a STRING, b STRING); +alter table table3 add constraint pk3 primary key (a) disable novalidate rely; diff --git a/ql/src/test/queries/clientpositive/create_with_constraints.q b/ql/src/test/queries/clientpositive/create_with_constraints.q index 7aabf74..f733362 100644 --- a/ql/src/test/queries/clientpositive/create_with_constraints.q +++ b/ql/src/test/queries/clientpositive/create_with_constraints.q @@ -1,10 +1,10 @@ CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate); CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); -CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE); -CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE); +CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE); -CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE); -CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE); +CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE); CREATE TABLE table7 (a STRING, b STRING, primary key (a) disable novalidate rely); CREATE TABLE table8 (a STRING, b STRING, constraint pk8 primary key (a) disable novalidate norely); @@ -37,7 +37,6 @@ DESCRIBE FORMATTED table9; DESCRIBE FORMATTED table10; DESCRIBE FORMATTED table11; - ALTER TABLE table2 DROP CONSTRAINT pk1; ALTER TABLE table3 DROP CONSTRAINT fk1; ALTER TABLE table6 DROP CONSTRAINT fk4; @@ -50,6 +49,14 @@ DESCRIBE FORMATTED table2; DESCRIBE FORMATTED table3; DESCRIBE FORMATTED table6; +ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate; +ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY; +ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE; + +DESCRIBE FORMATTED table2; +DESCRIBE FORMATTED table3; +DESCRIBE FORMATTED table6; + CREATE DATABASE dbconstraint; USE dbconstraint; CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary key (a) disable novalidate); @@ -62,3 +69,8 @@ ALTER TABLE dbconstraint.table2 DROP CONSTRAINT pk1; DESCRIBE EXTENDED dbconstraint.table2; DESCRIBE FORMATTED dbconstraint.table2; + +ALTER TABLE dbconstraint.table2 ADD CONSTRAINT pk1 primary key (a) disable novalidate; +DESCRIBE FORMATTED dbconstraint.table2; +ALTER TABLE dbconstraint.table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE; +DESCRIBE FORMATTED dbconstraint.table2; diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out new file mode 100644 index 0000000..d1bb637 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_duplicate_pk.q.out @@ -0,0 +1,11 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: alter table table1 add constraint pk4 primary key (b) disable novalidate rely +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message: Primary key already exists for: default.table1) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out new file mode 100644 index 0000000..2cd85c4 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col1.q.out @@ -0,0 +1,19 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: alter table table2 add constraint fk1 foreign key (c) references table1(a) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Child column not found: c) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out new file mode 100644 index 0000000..86c38c1 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_col2.q.out @@ -0,0 +1,19 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: alter table table2 add constraint fk1 foreign key (b) references table1(c) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Parent column not found: c) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out new file mode 100644 index 0000000..16edd44 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl1.q.out @@ -0,0 +1,19 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: alter table table3 add constraint fk1 foreign key (c) references table1(a) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Child table not found: table3) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out new file mode 100644 index 0000000..31dfcd1 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_fk_tbl2.q.out @@ -0,0 +1,19 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, primary key (a) disable novalidate rely) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: alter table table2 add constraint fk1 foreign key (b) references table3(a) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Parent table not found: table3) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_col.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_col.q.out new file mode 100644 index 0000000..71689f7 --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_col.q.out @@ -0,0 +1,11 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: alter table table1 add constraint pk1 primary key (c) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Parent column not found: c) diff --git a/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out new file mode 100644 index 0000000..0207d8c --- /dev/null +++ b/ql/src/test/results/clientnegative/alter_table_constraint_invalid_pk_tbl.q.out @@ -0,0 +1,19 @@ +PREHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table1 +POSTHOOK: query: CREATE TABLE table1 (a STRING, b STRING, primary key (a) disable novalidate) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table1 +PREHOOK: query: CREATE TABLE table2 (a STRING, b STRING) +PREHOOK: type: CREATETABLE +PREHOOK: Output: database:default +PREHOOK: Output: default@table2 +POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING) +POSTHOOK: type: CREATETABLE +POSTHOOK: Output: database:default +POSTHOOK: Output: default@table2 +PREHOOK: query: alter table table3 add constraint pk3 primary key (a) disable novalidate rely +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. InvalidObjectException(message:Parent table not found: table3) diff --git a/ql/src/test/results/clientpositive/create_with_constraints.q.out b/ql/src/test/results/clientpositive/create_with_constraints.q.out index 34dac30..cf2a33f 100644 --- a/ql/src/test/results/clientpositive/create_with_constraints.q.out +++ b/ql/src/test/results/clientpositive/create_with_constraints.q.out @@ -14,38 +14,38 @@ POSTHOOK: query: CREATE TABLE table2 (a STRING, b STRING, constraint pk1 primary POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table2 -PREHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table3 -POSTHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table3 (x string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table3 -PREHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +PREHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table4 -POSTHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +POSTHOOK: query: CREATE TABLE table4 (x string, y string, PRIMARY KEY (x) disable novalidate, CONSTRAINT fk2 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk3 FOREIGN KEY (y) REFERENCES table2(a) DISABLE NOVALIDATE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table4 -PREHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE) +PREHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table5 -POSTHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE) +POSTHOOK: query: CREATE TABLE table5 (x string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default POSTHOOK: Output: default@table5 -PREHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +PREHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE) PREHOOK: type: CREATETABLE PREHOOK: Output: database:default PREHOOK: Output: default@table6 -POSTHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(b) DISABLE NOVALIDATE, +POSTHOOK: query: CREATE TABLE table6 (x string, y string, PRIMARY KEY (x) disable novalidate, FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE, CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE) POSTHOOK: type: CREATETABLE POSTHOOK: Output: database:default @@ -124,6 +124,7 @@ x string #### A masked pattern was here #### Constraints Primary Key for default.table3:[x], Constraint Name: #### A masked pattern was here #### +Foreign Keys for default.table3:[ {Constraint Name: fk1, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}] PREHOOK: query: DESCRIBE EXTENDED table4 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table4 @@ -135,7 +136,7 @@ y string #### A masked pattern was here #### Constraints Primary Key for default.table4:[x], Constraint Name: #### A masked pattern was here #### -Foreign Keys for default.table4:[ {Constraint Name: fk3, (Parent Column Name: default.table2.a, Column Name: y, Key Sequence: 1)}] +Foreign Keys for default.table4:[ {Constraint Name: fk2, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}, {Constraint Name: fk3, (Parent Column Name: default.table2.a, Column Name: y, Key Sequence: 1)}] PREHOOK: query: DESCRIBE EXTENDED table5 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table5 @@ -146,6 +147,7 @@ x string #### A masked pattern was here #### Constraints Primary Key for default.table5:[x], Constraint Name: #### A masked pattern was here #### +Foreign Keys for default.table5:[ {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}] PREHOOK: query: DESCRIBE EXTENDED table6 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table6 @@ -157,7 +159,7 @@ y string #### A masked pattern was here #### Constraints Primary Key for default.table6:[x], Constraint Name: #### A masked pattern was here #### -Foreign Keys for default.table6:[ {Constraint Name: fk4, (Parent Column Name: default.table1.a, Column Name: y, Key Sequence: 1)}] +Foreign Keys for default.table6:[ {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table2.a, Column Name: x, Key Sequence: 1)}, {Constraint Name: fk4, (Parent Column Name: default.table1.a, Column Name: y, Key Sequence: 1)}] PREHOOK: query: DESCRIBE EXTENDED table7 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table7 @@ -215,7 +217,7 @@ c string #### A masked pattern was here #### Constraints Primary Key for default.table11:[a], Constraint Name: pk11 -Foreign Keys for default.table11:[ {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table9.a, Column Name: a, Key Sequence: 1), (Parent Column Name: default.table9.b, Column Name: b, Key Sequence: 2)}, {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table4.x, Column Name: c, Key Sequence: 1)}] +Foreign Keys for default.table11:[ {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table4.x, Column Name: c, Key Sequence: 1)}, {Constraint Name: #### A masked pattern was here ####, (Parent Column Name: default.table9.a, Column Name: a, Key Sequence: 1), (Parent Column Name: default.table9.b, Column Name: b, Key Sequence: 2)}] PREHOOK: query: DESCRIBE FORMATTED table1 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table1 @@ -341,6 +343,12 @@ Storage Desc Params: Table: default.table3 Constraint Name: #### A masked pattern was here #### Column Names: x + +# Foreign Keys +Table: default.table3 +Constraint Name: fk1 +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + PREHOOK: query: DESCRIBE FORMATTED table4 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table4 @@ -386,6 +394,9 @@ Column Names: x # Foreign Keys Table: default.table4 +Constraint Name: fk2 +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + Constraint Name: fk3 Parent Column Name:default.table2.a Column Name:y Key Sequence:1 @@ -430,6 +441,12 @@ Storage Desc Params: Table: default.table5 Constraint Name: #### A masked pattern was here #### Column Names: x + +# Foreign Keys +Table: default.table5 +Constraint Name: #### A masked pattern was here #### +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + PREHOOK: query: DESCRIBE FORMATTED table6 PREHOOK: type: DESCTABLE PREHOOK: Input: default@table6 @@ -475,6 +492,9 @@ Column Names: x # Foreign Keys Table: default.table6 +Constraint Name: #### A masked pattern was here #### +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + Constraint Name: fk4 Parent Column Name:default.table1.a Column Name:y Key Sequence:1 @@ -700,11 +720,11 @@ Column Names: a # Foreign Keys Table: default.table11 Constraint Name: #### A masked pattern was here #### -Parent Column Name:default.table9.a Column Name:a Key Sequence:1 -Parent Column Name:default.table9.b Column Name:b Key Sequence:2 +Parent Column Name:default.table4.x Column Name:c Key Sequence:1 Constraint Name: #### A masked pattern was here #### -Parent Column Name:default.table4.x Column Name:c Key Sequence:1 +Parent Column Name:default.table9.a Column Name:a Key Sequence:1 +Parent Column Name:default.table9.b Column Name:b Key Sequence:2 PREHOOK: query: ALTER TABLE table2 DROP CONSTRAINT pk1 PREHOOK: type: ALTERTABLE_DROPCONSTRAINT @@ -867,6 +887,158 @@ Storage Desc Params: Table: default.table6 Constraint Name: #### A masked pattern was here #### Column Names: x +PREHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE table2 ADD CONSTRAINT pkt2 primary key (a) disable novalidate +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE table3 ADD CONSTRAINT fk1 FOREIGN KEY (x) REFERENCES table2(a) DISABLE NOVALIDATE RELY +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE table6 ADD CONSTRAINT fk4 FOREIGN KEY (y) REFERENCES table1(a) DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: DESCRIBE FORMATTED table2 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table2 +POSTHOOK: query: DESCRIBE FORMATTED table2 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table2 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Primary Key +Table: default.table2 +Constraint Name: pkt2 +Column Names: a +PREHOOK: query: DESCRIBE FORMATTED table3 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table3 +POSTHOOK: query: DESCRIBE FORMATTED table3 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table3 +# col_name data_type comment + +x string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Primary Key +Table: default.table3 +Constraint Name: #### A masked pattern was here #### +Column Names: x + +# Foreign Keys +Table: default.table3 +Constraint Name: fk1 +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + +PREHOOK: query: DESCRIBE FORMATTED table6 +PREHOOK: type: DESCTABLE +PREHOOK: Input: default@table6 +POSTHOOK: query: DESCRIBE FORMATTED table6 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: default@table6 +# col_name data_type comment + +x string +y string + +# Detailed Table Information +Database: default +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Primary Key +Table: default.table6 +Constraint Name: #### A masked pattern was here #### +Column Names: x + +# Foreign Keys +Table: default.table6 +Constraint Name: #### A masked pattern was here #### +Parent Column Name:default.table2.a Column Name:x Key Sequence:1 + +Constraint Name: fk4 +Parent Column Name:default.table1.a Column Name:y Key Sequence:1 + PREHOOK: query: CREATE DATABASE dbconstraint PREHOOK: type: CREATEDATABASE PREHOOK: Output: database:dbconstraint @@ -995,3 +1167,101 @@ Bucket Columns: [] Sort Columns: [] Storage Desc Params: serialization.format 1 +PREHOOK: query: ALTER TABLE dbconstraint.table2 ADD CONSTRAINT pk1 primary key (a) disable novalidate +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE dbconstraint.table2 ADD CONSTRAINT pk1 primary key (a) disable novalidate +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: DESCRIBE FORMATTED dbconstraint.table2 +PREHOOK: type: DESCTABLE +PREHOOK: Input: dbconstraint@table2 +POSTHOOK: query: DESCRIBE FORMATTED dbconstraint.table2 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: dbconstraint@table2 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: dbconstraint +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Primary Key +Table: dbconstraint.table2 +Constraint Name: pk1 +Column Names: a +PREHOOK: query: ALTER TABLE dbconstraint.table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE +PREHOOK: type: ALTERTABLE_ADDCONSTRAINT +POSTHOOK: query: ALTER TABLE dbconstraint.table2 ADD CONSTRAINT fkx FOREIGN KEY (b) REFERENCES table1(a) DISABLE NOVALIDATE +POSTHOOK: type: ALTERTABLE_ADDCONSTRAINT +PREHOOK: query: DESCRIBE FORMATTED dbconstraint.table2 +PREHOOK: type: DESCTABLE +PREHOOK: Input: dbconstraint@table2 +POSTHOOK: query: DESCRIBE FORMATTED dbconstraint.table2 +POSTHOOK: type: DESCTABLE +POSTHOOK: Input: dbconstraint@table2 +# col_name data_type comment + +a string +b string + +# Detailed Table Information +Database: dbconstraint +#### A masked pattern was here #### +Retention: 0 +#### A masked pattern was here #### +Table Type: MANAGED_TABLE +Table Parameters: + COLUMN_STATS_ACCURATE {\"BASIC_STATS\":\"true\"} + numFiles 0 + numRows 0 + rawDataSize 0 + totalSize 0 +#### A masked pattern was here #### + +# Storage Information +SerDe Library: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe +InputFormat: org.apache.hadoop.mapred.TextInputFormat +OutputFormat: org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat +Compressed: No +Num Buckets: -1 +Bucket Columns: [] +Sort Columns: [] +Storage Desc Params: + serialization.format 1 + +# Constraints + +# Primary Key +Table: dbconstraint.table2 +Constraint Name: pk1 +Column Names: a + +# Foreign Keys +Table: dbconstraint.table2 +Constraint Name: fkx +Parent Column Name:default.table1.a Column Name:b Key Sequence:1 +