diff --git a/metastore/if/hive_metastore.thrift b/metastore/if/hive_metastore.thrift index e8f0a68..5711a9d 100755 --- a/metastore/if/hive_metastore.thrift +++ b/metastore/if/hive_metastore.thrift @@ -41,6 +41,28 @@ struct FieldSchema { 3: string comment } +struct SQLPrimaryKey { + 1: string table_schem, // table schema + 2: string table_name, // table name + 3: string column_name, // column name + 4: i32 key_seq, // sequence number within primary key + 5: string pk_name // primary key name +} + +struct SQLForeignKey { + 1: string pktable_schem, // primary key table schema + 2: string pktable_name, // primary key table name + 3: string pkcolumn_name, // primary key column name + 4: string fktable_schem, // foreign key table schema + 5: string fktable_name, // foreign key table name + 6: string fkcolumn_name, // foreign key column name + 7: i32 key_seq, // sequence within foreign key + 8: i32 update_rule, // what happens to foreign key when parent key is updated + 9: i32 delete_rule, // what happens to foreign key when parent key is deleted + 10: string fk_name, // foreign key name + 11: string pk_name // primary key name +} + struct Type { 1: string name, // one of the types in PrimitiveTypes or CollectionTypes or User defined types 2: optional string type1, // object type if the name is 'list' (LIST_TYPE), key type if the name is 'map' (MAP_TYPE) @@ -1179,6 +1201,12 @@ service ThriftHiveMetastore extends fb303.FacebookService list get_index_names(1:string db_name, 2:string tbl_name, 3:i16 max_indexes=-1) throws(1:MetaException o2) + //primary keys and foreign keys + list get_primary_keys(1:string db_name, 2:string tbl_name) + throws(1:MetaException o1, 2:NoSuchObjectException o2) + list get_foreign_keys(1:string parent_db_name, 2:string parent_tbl_name, 3:string foreign_db_name, 4:string foreign_tbl_name) + throws(1:MetaException o1, 2:NoSuchObjectException o2) + // column statistics interfaces // update APIs persist the column statistics object(s) that are passed in. If statistics already diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.cpp index 18cb41a..c758cb6 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 _size725; - ::apache::thrift::protocol::TType _etype728; - xfer += iprot->readListBegin(_etype728, _size725); - this->success.resize(_size725); - uint32_t _i729; - for (_i729 = 0; _i729 < _size725; ++_i729) + uint32_t _size729; + ::apache::thrift::protocol::TType _etype732; + xfer += iprot->readListBegin(_etype732, _size729); + this->success.resize(_size729); + uint32_t _i733; + for (_i733 = 0; _i733 < _size729; ++_i733) { - xfer += iprot->readString(this->success[_i729]); + xfer += iprot->readString(this->success[_i733]); } 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 _iter730; - for (_iter730 = this->success.begin(); _iter730 != this->success.end(); ++_iter730) + std::vector ::const_iterator _iter734; + for (_iter734 = this->success.begin(); _iter734 != this->success.end(); ++_iter734) { - xfer += oprot->writeString((*_iter730)); + xfer += oprot->writeString((*_iter734)); } 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 _size731; - ::apache::thrift::protocol::TType _etype734; - xfer += iprot->readListBegin(_etype734, _size731); - (*(this->success)).resize(_size731); - uint32_t _i735; - for (_i735 = 0; _i735 < _size731; ++_i735) + uint32_t _size735; + ::apache::thrift::protocol::TType _etype738; + xfer += iprot->readListBegin(_etype738, _size735); + (*(this->success)).resize(_size735); + uint32_t _i739; + for (_i739 = 0; _i739 < _size735; ++_i739) { - xfer += iprot->readString((*(this->success))[_i735]); + xfer += iprot->readString((*(this->success))[_i739]); } 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 _size736; - ::apache::thrift::protocol::TType _etype739; - xfer += iprot->readListBegin(_etype739, _size736); - this->success.resize(_size736); - uint32_t _i740; - for (_i740 = 0; _i740 < _size736; ++_i740) + uint32_t _size740; + ::apache::thrift::protocol::TType _etype743; + xfer += iprot->readListBegin(_etype743, _size740); + this->success.resize(_size740); + uint32_t _i744; + for (_i744 = 0; _i744 < _size740; ++_i744) { - xfer += iprot->readString(this->success[_i740]); + xfer += iprot->readString(this->success[_i744]); } 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 _iter741; - for (_iter741 = this->success.begin(); _iter741 != this->success.end(); ++_iter741) + std::vector ::const_iterator _iter745; + for (_iter745 = this->success.begin(); _iter745 != this->success.end(); ++_iter745) { - xfer += oprot->writeString((*_iter741)); + xfer += oprot->writeString((*_iter745)); } 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 _size742; - ::apache::thrift::protocol::TType _etype745; - xfer += iprot->readListBegin(_etype745, _size742); - (*(this->success)).resize(_size742); - uint32_t _i746; - for (_i746 = 0; _i746 < _size742; ++_i746) + uint32_t _size746; + ::apache::thrift::protocol::TType _etype749; + xfer += iprot->readListBegin(_etype749, _size746); + (*(this->success)).resize(_size746); + uint32_t _i750; + for (_i750 = 0; _i750 < _size746; ++_i750) { - xfer += iprot->readString((*(this->success))[_i746]); + xfer += iprot->readString((*(this->success))[_i750]); } 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 _size747; - ::apache::thrift::protocol::TType _ktype748; - ::apache::thrift::protocol::TType _vtype749; - xfer += iprot->readMapBegin(_ktype748, _vtype749, _size747); - uint32_t _i751; - for (_i751 = 0; _i751 < _size747; ++_i751) + uint32_t _size751; + ::apache::thrift::protocol::TType _ktype752; + ::apache::thrift::protocol::TType _vtype753; + xfer += iprot->readMapBegin(_ktype752, _vtype753, _size751); + uint32_t _i755; + for (_i755 = 0; _i755 < _size751; ++_i755) { - std::string _key752; - xfer += iprot->readString(_key752); - Type& _val753 = this->success[_key752]; - xfer += _val753.read(iprot); + std::string _key756; + xfer += iprot->readString(_key756); + Type& _val757 = this->success[_key756]; + xfer += _val757.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 _iter754; - for (_iter754 = this->success.begin(); _iter754 != this->success.end(); ++_iter754) + std::map ::const_iterator _iter758; + for (_iter758 = this->success.begin(); _iter758 != this->success.end(); ++_iter758) { - xfer += oprot->writeString(_iter754->first); - xfer += _iter754->second.write(oprot); + xfer += oprot->writeString(_iter758->first); + xfer += _iter758->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 _size755; - ::apache::thrift::protocol::TType _ktype756; - ::apache::thrift::protocol::TType _vtype757; - xfer += iprot->readMapBegin(_ktype756, _vtype757, _size755); - uint32_t _i759; - for (_i759 = 0; _i759 < _size755; ++_i759) + uint32_t _size759; + ::apache::thrift::protocol::TType _ktype760; + ::apache::thrift::protocol::TType _vtype761; + xfer += iprot->readMapBegin(_ktype760, _vtype761, _size759); + uint32_t _i763; + for (_i763 = 0; _i763 < _size759; ++_i763) { - std::string _key760; - xfer += iprot->readString(_key760); - Type& _val761 = (*(this->success))[_key760]; - xfer += _val761.read(iprot); + std::string _key764; + xfer += iprot->readString(_key764); + Type& _val765 = (*(this->success))[_key764]; + xfer += _val765.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 _size762; - ::apache::thrift::protocol::TType _etype765; - xfer += iprot->readListBegin(_etype765, _size762); - this->success.resize(_size762); - uint32_t _i766; - for (_i766 = 0; _i766 < _size762; ++_i766) + 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) { - xfer += this->success[_i766].read(iprot); + xfer += this->success[_i770].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 _iter767; - for (_iter767 = this->success.begin(); _iter767 != this->success.end(); ++_iter767) + std::vector ::const_iterator _iter771; + for (_iter771 = this->success.begin(); _iter771 != this->success.end(); ++_iter771) { - xfer += (*_iter767).write(oprot); + xfer += (*_iter771).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 _size768; - ::apache::thrift::protocol::TType _etype771; - xfer += iprot->readListBegin(_etype771, _size768); - (*(this->success)).resize(_size768); - uint32_t _i772; - for (_i772 = 0; _i772 < _size768; ++_i772) + uint32_t _size772; + ::apache::thrift::protocol::TType _etype775; + xfer += iprot->readListBegin(_etype775, _size772); + (*(this->success)).resize(_size772); + uint32_t _i776; + for (_i776 = 0; _i776 < _size772; ++_i776) { - xfer += (*(this->success))[_i772].read(iprot); + xfer += (*(this->success))[_i776].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 _size773; - ::apache::thrift::protocol::TType _etype776; - xfer += iprot->readListBegin(_etype776, _size773); - this->success.resize(_size773); - uint32_t _i777; - for (_i777 = 0; _i777 < _size773; ++_i777) + uint32_t _size777; + ::apache::thrift::protocol::TType _etype780; + xfer += iprot->readListBegin(_etype780, _size777); + this->success.resize(_size777); + uint32_t _i781; + for (_i781 = 0; _i781 < _size777; ++_i781) { - xfer += this->success[_i777].read(iprot); + xfer += this->success[_i781].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 _iter778; - for (_iter778 = this->success.begin(); _iter778 != this->success.end(); ++_iter778) + std::vector ::const_iterator _iter782; + for (_iter782 = this->success.begin(); _iter782 != this->success.end(); ++_iter782) { - xfer += (*_iter778).write(oprot); + xfer += (*_iter782).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 _size779; - ::apache::thrift::protocol::TType _etype782; - xfer += iprot->readListBegin(_etype782, _size779); - (*(this->success)).resize(_size779); - uint32_t _i783; - for (_i783 = 0; _i783 < _size779; ++_i783) + uint32_t _size783; + ::apache::thrift::protocol::TType _etype786; + xfer += iprot->readListBegin(_etype786, _size783); + (*(this->success)).resize(_size783); + uint32_t _i787; + for (_i787 = 0; _i787 < _size783; ++_i787) { - xfer += (*(this->success))[_i783].read(iprot); + xfer += (*(this->success))[_i787].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 _size784; - ::apache::thrift::protocol::TType _etype787; - xfer += iprot->readListBegin(_etype787, _size784); - this->success.resize(_size784); - uint32_t _i788; - for (_i788 = 0; _i788 < _size784; ++_i788) + 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 += this->success[_i788].read(iprot); + xfer += this->success[_i792].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 _iter789; - for (_iter789 = this->success.begin(); _iter789 != this->success.end(); ++_iter789) + std::vector ::const_iterator _iter793; + for (_iter793 = this->success.begin(); _iter793 != this->success.end(); ++_iter793) { - xfer += (*_iter789).write(oprot); + xfer += (*_iter793).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 _size790; - ::apache::thrift::protocol::TType _etype793; - xfer += iprot->readListBegin(_etype793, _size790); - (*(this->success)).resize(_size790); - uint32_t _i794; - for (_i794 = 0; _i794 < _size790; ++_i794) + uint32_t _size794; + ::apache::thrift::protocol::TType _etype797; + xfer += iprot->readListBegin(_etype797, _size794); + (*(this->success)).resize(_size794); + uint32_t _i798; + for (_i798 = 0; _i798 < _size794; ++_i798) { - xfer += (*(this->success))[_i794].read(iprot); + xfer += (*(this->success))[_i798].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 _size795; - ::apache::thrift::protocol::TType _etype798; - xfer += iprot->readListBegin(_etype798, _size795); - this->success.resize(_size795); - uint32_t _i799; - for (_i799 = 0; _i799 < _size795; ++_i799) + uint32_t _size799; + ::apache::thrift::protocol::TType _etype802; + xfer += iprot->readListBegin(_etype802, _size799); + this->success.resize(_size799); + uint32_t _i803; + for (_i803 = 0; _i803 < _size799; ++_i803) { - xfer += this->success[_i799].read(iprot); + xfer += this->success[_i803].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 _iter800; - for (_iter800 = this->success.begin(); _iter800 != this->success.end(); ++_iter800) + std::vector ::const_iterator _iter804; + for (_iter804 = this->success.begin(); _iter804 != this->success.end(); ++_iter804) { - xfer += (*_iter800).write(oprot); + xfer += (*_iter804).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 _size801; - ::apache::thrift::protocol::TType _etype804; - xfer += iprot->readListBegin(_etype804, _size801); - (*(this->success)).resize(_size801); - uint32_t _i805; - for (_i805 = 0; _i805 < _size801; ++_i805) + uint32_t _size805; + ::apache::thrift::protocol::TType _etype808; + xfer += iprot->readListBegin(_etype808, _size805); + (*(this->success)).resize(_size805); + uint32_t _i809; + for (_i809 = 0; _i809 < _size805; ++_i809) { - xfer += (*(this->success))[_i805].read(iprot); + xfer += (*(this->success))[_i809].read(iprot); } xfer += iprot->readListEnd(); } @@ -5099,14 +5099,14 @@ uint32_t ThriftHiveMetastore_get_tables_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size806; - ::apache::thrift::protocol::TType _etype809; - xfer += iprot->readListBegin(_etype809, _size806); - this->success.resize(_size806); - uint32_t _i810; - for (_i810 = 0; _i810 < _size806; ++_i810) + uint32_t _size810; + ::apache::thrift::protocol::TType _etype813; + xfer += iprot->readListBegin(_etype813, _size810); + this->success.resize(_size810); + uint32_t _i814; + for (_i814 = 0; _i814 < _size810; ++_i814) { - xfer += iprot->readString(this->success[_i810]); + xfer += iprot->readString(this->success[_i814]); } xfer += iprot->readListEnd(); } @@ -5145,10 +5145,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 _iter811; - for (_iter811 = this->success.begin(); _iter811 != this->success.end(); ++_iter811) + std::vector ::const_iterator _iter815; + for (_iter815 = this->success.begin(); _iter815 != this->success.end(); ++_iter815) { - xfer += oprot->writeString((*_iter811)); + xfer += oprot->writeString((*_iter815)); } xfer += oprot->writeListEnd(); } @@ -5193,14 +5193,14 @@ uint32_t ThriftHiveMetastore_get_tables_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size812; - ::apache::thrift::protocol::TType _etype815; - xfer += iprot->readListBegin(_etype815, _size812); - (*(this->success)).resize(_size812); - uint32_t _i816; - for (_i816 = 0; _i816 < _size812; ++_i816) + uint32_t _size816; + ::apache::thrift::protocol::TType _etype819; + xfer += iprot->readListBegin(_etype819, _size816); + (*(this->success)).resize(_size816); + uint32_t _i820; + for (_i820 = 0; _i820 < _size816; ++_i820) { - xfer += iprot->readString((*(this->success))[_i816]); + xfer += iprot->readString((*(this->success))[_i820]); } xfer += iprot->readListEnd(); } @@ -5275,14 +5275,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 _size817; - ::apache::thrift::protocol::TType _etype820; - xfer += iprot->readListBegin(_etype820, _size817); - this->tbl_types.resize(_size817); - uint32_t _i821; - for (_i821 = 0; _i821 < _size817; ++_i821) + uint32_t _size821; + ::apache::thrift::protocol::TType _etype824; + xfer += iprot->readListBegin(_etype824, _size821); + this->tbl_types.resize(_size821); + uint32_t _i825; + for (_i825 = 0; _i825 < _size821; ++_i825) { - xfer += iprot->readString(this->tbl_types[_i821]); + xfer += iprot->readString(this->tbl_types[_i825]); } xfer += iprot->readListEnd(); } @@ -5319,10 +5319,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 _iter822; - for (_iter822 = this->tbl_types.begin(); _iter822 != this->tbl_types.end(); ++_iter822) + std::vector ::const_iterator _iter826; + for (_iter826 = this->tbl_types.begin(); _iter826 != this->tbl_types.end(); ++_iter826) { - xfer += oprot->writeString((*_iter822)); + xfer += oprot->writeString((*_iter826)); } xfer += oprot->writeListEnd(); } @@ -5354,10 +5354,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 _iter823; - for (_iter823 = (*(this->tbl_types)).begin(); _iter823 != (*(this->tbl_types)).end(); ++_iter823) + std::vector ::const_iterator _iter827; + for (_iter827 = (*(this->tbl_types)).begin(); _iter827 != (*(this->tbl_types)).end(); ++_iter827) { - xfer += oprot->writeString((*_iter823)); + xfer += oprot->writeString((*_iter827)); } xfer += oprot->writeListEnd(); } @@ -5398,14 +5398,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size824; - ::apache::thrift::protocol::TType _etype827; - xfer += iprot->readListBegin(_etype827, _size824); - this->success.resize(_size824); - uint32_t _i828; - for (_i828 = 0; _i828 < _size824; ++_i828) + uint32_t _size828; + ::apache::thrift::protocol::TType _etype831; + xfer += iprot->readListBegin(_etype831, _size828); + this->success.resize(_size828); + uint32_t _i832; + for (_i832 = 0; _i832 < _size828; ++_i832) { - xfer += this->success[_i828].read(iprot); + xfer += this->success[_i832].read(iprot); } xfer += iprot->readListEnd(); } @@ -5444,10 +5444,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 _iter829; - for (_iter829 = this->success.begin(); _iter829 != this->success.end(); ++_iter829) + std::vector ::const_iterator _iter833; + for (_iter833 = this->success.begin(); _iter833 != this->success.end(); ++_iter833) { - xfer += (*_iter829).write(oprot); + xfer += (*_iter833).write(oprot); } xfer += oprot->writeListEnd(); } @@ -5492,14 +5492,14 @@ uint32_t ThriftHiveMetastore_get_table_meta_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size834; + ::apache::thrift::protocol::TType _etype837; + xfer += iprot->readListBegin(_etype837, _size834); + (*(this->success)).resize(_size834); + uint32_t _i838; + for (_i838 = 0; _i838 < _size834; ++_i838) { - xfer += (*(this->success))[_i834].read(iprot); + xfer += (*(this->success))[_i838].read(iprot); } xfer += iprot->readListEnd(); } @@ -5637,14 +5637,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size835; - ::apache::thrift::protocol::TType _etype838; - xfer += iprot->readListBegin(_etype838, _size835); - this->success.resize(_size835); - uint32_t _i839; - for (_i839 = 0; _i839 < _size835; ++_i839) + uint32_t _size839; + ::apache::thrift::protocol::TType _etype842; + xfer += iprot->readListBegin(_etype842, _size839); + this->success.resize(_size839); + uint32_t _i843; + for (_i843 = 0; _i843 < _size839; ++_i843) { - xfer += iprot->readString(this->success[_i839]); + xfer += iprot->readString(this->success[_i843]); } xfer += iprot->readListEnd(); } @@ -5683,10 +5683,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 _iter840; - for (_iter840 = this->success.begin(); _iter840 != this->success.end(); ++_iter840) + std::vector ::const_iterator _iter844; + for (_iter844 = this->success.begin(); _iter844 != this->success.end(); ++_iter844) { - xfer += oprot->writeString((*_iter840)); + xfer += oprot->writeString((*_iter844)); } xfer += oprot->writeListEnd(); } @@ -5731,14 +5731,14 @@ uint32_t ThriftHiveMetastore_get_all_tables_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size845; + ::apache::thrift::protocol::TType _etype848; + xfer += iprot->readListBegin(_etype848, _size845); + (*(this->success)).resize(_size845); + uint32_t _i849; + for (_i849 = 0; _i849 < _size845; ++_i849) { - xfer += iprot->readString((*(this->success))[_i845]); + xfer += iprot->readString((*(this->success))[_i849]); } xfer += iprot->readListEnd(); } @@ -6048,14 +6048,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 _size846; - ::apache::thrift::protocol::TType _etype849; - xfer += iprot->readListBegin(_etype849, _size846); - this->tbl_names.resize(_size846); - uint32_t _i850; - for (_i850 = 0; _i850 < _size846; ++_i850) + uint32_t _size850; + ::apache::thrift::protocol::TType _etype853; + xfer += iprot->readListBegin(_etype853, _size850); + this->tbl_names.resize(_size850); + uint32_t _i854; + for (_i854 = 0; _i854 < _size850; ++_i854) { - xfer += iprot->readString(this->tbl_names[_i850]); + xfer += iprot->readString(this->tbl_names[_i854]); } xfer += iprot->readListEnd(); } @@ -6088,10 +6088,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 _iter851; - for (_iter851 = this->tbl_names.begin(); _iter851 != this->tbl_names.end(); ++_iter851) + std::vector ::const_iterator _iter855; + for (_iter855 = this->tbl_names.begin(); _iter855 != this->tbl_names.end(); ++_iter855) { - xfer += oprot->writeString((*_iter851)); + xfer += oprot->writeString((*_iter855)); } xfer += oprot->writeListEnd(); } @@ -6119,10 +6119,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 _iter852; - for (_iter852 = (*(this->tbl_names)).begin(); _iter852 != (*(this->tbl_names)).end(); ++_iter852) + std::vector ::const_iterator _iter856; + for (_iter856 = (*(this->tbl_names)).begin(); _iter856 != (*(this->tbl_names)).end(); ++_iter856) { - xfer += oprot->writeString((*_iter852)); + xfer += oprot->writeString((*_iter856)); } xfer += oprot->writeListEnd(); } @@ -6163,14 +6163,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 _size853; - ::apache::thrift::protocol::TType _etype856; - xfer += iprot->readListBegin(_etype856, _size853); - this->success.resize(_size853); - uint32_t _i857; - for (_i857 = 0; _i857 < _size853; ++_i857) + uint32_t _size857; + ::apache::thrift::protocol::TType _etype860; + xfer += iprot->readListBegin(_etype860, _size857); + this->success.resize(_size857); + uint32_t _i861; + for (_i861 = 0; _i861 < _size857; ++_i861) { - xfer += this->success[_i857].read(iprot); + xfer += this->success[_i861].read(iprot); } xfer += iprot->readListEnd(); } @@ -6225,10 +6225,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 _iter858; - for (_iter858 = this->success.begin(); _iter858 != this->success.end(); ++_iter858) + std::vector
::const_iterator _iter862; + for (_iter862 = this->success.begin(); _iter862 != this->success.end(); ++_iter862) { - xfer += (*_iter858).write(oprot); + xfer += (*_iter862).write(oprot); } xfer += oprot->writeListEnd(); } @@ -6281,14 +6281,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 _size859; - ::apache::thrift::protocol::TType _etype862; - xfer += iprot->readListBegin(_etype862, _size859); - (*(this->success)).resize(_size859); - uint32_t _i863; - for (_i863 = 0; _i863 < _size859; ++_i863) + uint32_t _size863; + ::apache::thrift::protocol::TType _etype866; + xfer += iprot->readListBegin(_etype866, _size863); + (*(this->success)).resize(_size863); + uint32_t _i867; + for (_i867 = 0; _i867 < _size863; ++_i867) { - xfer += (*(this->success))[_i863].read(iprot); + xfer += (*(this->success))[_i867].read(iprot); } xfer += iprot->readListEnd(); } @@ -6474,14 +6474,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 _size864; - ::apache::thrift::protocol::TType _etype867; - xfer += iprot->readListBegin(_etype867, _size864); - this->success.resize(_size864); - uint32_t _i868; - for (_i868 = 0; _i868 < _size864; ++_i868) + 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) { - xfer += iprot->readString(this->success[_i868]); + xfer += iprot->readString(this->success[_i872]); } xfer += iprot->readListEnd(); } @@ -6536,10 +6536,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 _iter869; - for (_iter869 = this->success.begin(); _iter869 != this->success.end(); ++_iter869) + std::vector ::const_iterator _iter873; + for (_iter873 = this->success.begin(); _iter873 != this->success.end(); ++_iter873) { - xfer += oprot->writeString((*_iter869)); + xfer += oprot->writeString((*_iter873)); } xfer += oprot->writeListEnd(); } @@ -6592,14 +6592,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 _size870; - ::apache::thrift::protocol::TType _etype873; - xfer += iprot->readListBegin(_etype873, _size870); - (*(this->success)).resize(_size870); - uint32_t _i874; - for (_i874 = 0; _i874 < _size870; ++_i874) + 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) { - xfer += iprot->readString((*(this->success))[_i874]); + xfer += iprot->readString((*(this->success))[_i878]); } xfer += iprot->readListEnd(); } @@ -7933,14 +7933,14 @@ uint32_t ThriftHiveMetastore_add_partitions_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size875; - ::apache::thrift::protocol::TType _etype878; - xfer += iprot->readListBegin(_etype878, _size875); - this->new_parts.resize(_size875); - uint32_t _i879; - for (_i879 = 0; _i879 < _size875; ++_i879) + uint32_t _size879; + ::apache::thrift::protocol::TType _etype882; + xfer += iprot->readListBegin(_etype882, _size879); + this->new_parts.resize(_size879); + uint32_t _i883; + for (_i883 = 0; _i883 < _size879; ++_i883) { - xfer += this->new_parts[_i879].read(iprot); + xfer += this->new_parts[_i883].read(iprot); } xfer += iprot->readListEnd(); } @@ -7969,10 +7969,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 _iter880; - for (_iter880 = this->new_parts.begin(); _iter880 != this->new_parts.end(); ++_iter880) + std::vector ::const_iterator _iter884; + for (_iter884 = this->new_parts.begin(); _iter884 != this->new_parts.end(); ++_iter884) { - xfer += (*_iter880).write(oprot); + xfer += (*_iter884).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7996,10 +7996,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 _iter881; - for (_iter881 = (*(this->new_parts)).begin(); _iter881 != (*(this->new_parts)).end(); ++_iter881) + std::vector ::const_iterator _iter885; + for (_iter885 = (*(this->new_parts)).begin(); _iter885 != (*(this->new_parts)).end(); ++_iter885) { - xfer += (*_iter881).write(oprot); + xfer += (*_iter885).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8208,14 +8208,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 _size882; - ::apache::thrift::protocol::TType _etype885; - xfer += iprot->readListBegin(_etype885, _size882); - this->new_parts.resize(_size882); - uint32_t _i886; - for (_i886 = 0; _i886 < _size882; ++_i886) + uint32_t _size886; + ::apache::thrift::protocol::TType _etype889; + xfer += iprot->readListBegin(_etype889, _size886); + this->new_parts.resize(_size886); + uint32_t _i890; + for (_i890 = 0; _i890 < _size886; ++_i890) { - xfer += this->new_parts[_i886].read(iprot); + xfer += this->new_parts[_i890].read(iprot); } xfer += iprot->readListEnd(); } @@ -8244,10 +8244,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 _iter887; - for (_iter887 = this->new_parts.begin(); _iter887 != this->new_parts.end(); ++_iter887) + std::vector ::const_iterator _iter891; + for (_iter891 = this->new_parts.begin(); _iter891 != this->new_parts.end(); ++_iter891) { - xfer += (*_iter887).write(oprot); + xfer += (*_iter891).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8271,10 +8271,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 _iter888; - for (_iter888 = (*(this->new_parts)).begin(); _iter888 != (*(this->new_parts)).end(); ++_iter888) + std::vector ::const_iterator _iter892; + for (_iter892 = (*(this->new_parts)).begin(); _iter892 != (*(this->new_parts)).end(); ++_iter892) { - xfer += (*_iter888).write(oprot); + xfer += (*_iter892).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8499,14 +8499,14 @@ uint32_t ThriftHiveMetastore_append_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size889; - ::apache::thrift::protocol::TType _etype892; - xfer += iprot->readListBegin(_etype892, _size889); - this->part_vals.resize(_size889); - uint32_t _i893; - for (_i893 = 0; _i893 < _size889; ++_i893) + uint32_t _size893; + ::apache::thrift::protocol::TType _etype896; + xfer += iprot->readListBegin(_etype896, _size893); + this->part_vals.resize(_size893); + uint32_t _i897; + for (_i897 = 0; _i897 < _size893; ++_i897) { - xfer += iprot->readString(this->part_vals[_i893]); + xfer += iprot->readString(this->part_vals[_i897]); } xfer += iprot->readListEnd(); } @@ -8543,10 +8543,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 _iter894; - for (_iter894 = this->part_vals.begin(); _iter894 != this->part_vals.end(); ++_iter894) + std::vector ::const_iterator _iter898; + for (_iter898 = this->part_vals.begin(); _iter898 != this->part_vals.end(); ++_iter898) { - xfer += oprot->writeString((*_iter894)); + xfer += oprot->writeString((*_iter898)); } xfer += oprot->writeListEnd(); } @@ -8578,10 +8578,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 _iter895; - for (_iter895 = (*(this->part_vals)).begin(); _iter895 != (*(this->part_vals)).end(); ++_iter895) + std::vector ::const_iterator _iter899; + for (_iter899 = (*(this->part_vals)).begin(); _iter899 != (*(this->part_vals)).end(); ++_iter899) { - xfer += oprot->writeString((*_iter895)); + xfer += oprot->writeString((*_iter899)); } xfer += oprot->writeListEnd(); } @@ -9053,14 +9053,14 @@ uint32_t ThriftHiveMetastore_append_partition_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size896; - ::apache::thrift::protocol::TType _etype899; - xfer += iprot->readListBegin(_etype899, _size896); - this->part_vals.resize(_size896); - uint32_t _i900; - for (_i900 = 0; _i900 < _size896; ++_i900) + uint32_t _size900; + ::apache::thrift::protocol::TType _etype903; + xfer += iprot->readListBegin(_etype903, _size900); + this->part_vals.resize(_size900); + uint32_t _i904; + for (_i904 = 0; _i904 < _size900; ++_i904) { - xfer += iprot->readString(this->part_vals[_i900]); + xfer += iprot->readString(this->part_vals[_i904]); } xfer += iprot->readListEnd(); } @@ -9105,10 +9105,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 _iter901; - for (_iter901 = this->part_vals.begin(); _iter901 != this->part_vals.end(); ++_iter901) + std::vector ::const_iterator _iter905; + for (_iter905 = this->part_vals.begin(); _iter905 != this->part_vals.end(); ++_iter905) { - xfer += oprot->writeString((*_iter901)); + xfer += oprot->writeString((*_iter905)); } xfer += oprot->writeListEnd(); } @@ -9144,10 +9144,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 _iter902; - for (_iter902 = (*(this->part_vals)).begin(); _iter902 != (*(this->part_vals)).end(); ++_iter902) + std::vector ::const_iterator _iter906; + for (_iter906 = (*(this->part_vals)).begin(); _iter906 != (*(this->part_vals)).end(); ++_iter906) { - xfer += oprot->writeString((*_iter902)); + xfer += oprot->writeString((*_iter906)); } xfer += oprot->writeListEnd(); } @@ -9950,14 +9950,14 @@ uint32_t ThriftHiveMetastore_drop_partition_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size903; - ::apache::thrift::protocol::TType _etype906; - xfer += iprot->readListBegin(_etype906, _size903); - this->part_vals.resize(_size903); - uint32_t _i907; - for (_i907 = 0; _i907 < _size903; ++_i907) + uint32_t _size907; + ::apache::thrift::protocol::TType _etype910; + xfer += iprot->readListBegin(_etype910, _size907); + this->part_vals.resize(_size907); + uint32_t _i911; + for (_i911 = 0; _i911 < _size907; ++_i911) { - xfer += iprot->readString(this->part_vals[_i907]); + xfer += iprot->readString(this->part_vals[_i911]); } xfer += iprot->readListEnd(); } @@ -10002,10 +10002,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 _iter908; - for (_iter908 = this->part_vals.begin(); _iter908 != this->part_vals.end(); ++_iter908) + std::vector ::const_iterator _iter912; + for (_iter912 = this->part_vals.begin(); _iter912 != this->part_vals.end(); ++_iter912) { - xfer += oprot->writeString((*_iter908)); + xfer += oprot->writeString((*_iter912)); } xfer += oprot->writeListEnd(); } @@ -10041,10 +10041,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 _iter909; - for (_iter909 = (*(this->part_vals)).begin(); _iter909 != (*(this->part_vals)).end(); ++_iter909) + std::vector ::const_iterator _iter913; + for (_iter913 = (*(this->part_vals)).begin(); _iter913 != (*(this->part_vals)).end(); ++_iter913) { - xfer += oprot->writeString((*_iter909)); + xfer += oprot->writeString((*_iter913)); } xfer += oprot->writeListEnd(); } @@ -10253,14 +10253,14 @@ uint32_t ThriftHiveMetastore_drop_partition_with_environment_context_args::read( if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size910; - ::apache::thrift::protocol::TType _etype913; - xfer += iprot->readListBegin(_etype913, _size910); - this->part_vals.resize(_size910); - uint32_t _i914; - for (_i914 = 0; _i914 < _size910; ++_i914) + uint32_t _size914; + ::apache::thrift::protocol::TType _etype917; + xfer += iprot->readListBegin(_etype917, _size914); + this->part_vals.resize(_size914); + uint32_t _i918; + for (_i918 = 0; _i918 < _size914; ++_i918) { - xfer += iprot->readString(this->part_vals[_i914]); + xfer += iprot->readString(this->part_vals[_i918]); } xfer += iprot->readListEnd(); } @@ -10313,10 +10313,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 _iter915; - for (_iter915 = this->part_vals.begin(); _iter915 != this->part_vals.end(); ++_iter915) + std::vector ::const_iterator _iter919; + for (_iter919 = this->part_vals.begin(); _iter919 != this->part_vals.end(); ++_iter919) { - xfer += oprot->writeString((*_iter915)); + xfer += oprot->writeString((*_iter919)); } xfer += oprot->writeListEnd(); } @@ -10356,10 +10356,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 _iter916; - for (_iter916 = (*(this->part_vals)).begin(); _iter916 != (*(this->part_vals)).end(); ++_iter916) + std::vector ::const_iterator _iter920; + for (_iter920 = (*(this->part_vals)).begin(); _iter920 != (*(this->part_vals)).end(); ++_iter920) { - xfer += oprot->writeString((*_iter916)); + xfer += oprot->writeString((*_iter920)); } xfer += oprot->writeListEnd(); } @@ -11365,14 +11365,14 @@ uint32_t ThriftHiveMetastore_get_partition_args::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size917; - ::apache::thrift::protocol::TType _etype920; - xfer += iprot->readListBegin(_etype920, _size917); - this->part_vals.resize(_size917); - uint32_t _i921; - for (_i921 = 0; _i921 < _size917; ++_i921) + uint32_t _size921; + ::apache::thrift::protocol::TType _etype924; + xfer += iprot->readListBegin(_etype924, _size921); + this->part_vals.resize(_size921); + uint32_t _i925; + for (_i925 = 0; _i925 < _size921; ++_i925) { - xfer += iprot->readString(this->part_vals[_i921]); + xfer += iprot->readString(this->part_vals[_i925]); } xfer += iprot->readListEnd(); } @@ -11409,10 +11409,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 _iter922; - for (_iter922 = this->part_vals.begin(); _iter922 != this->part_vals.end(); ++_iter922) + std::vector ::const_iterator _iter926; + for (_iter926 = this->part_vals.begin(); _iter926 != this->part_vals.end(); ++_iter926) { - xfer += oprot->writeString((*_iter922)); + xfer += oprot->writeString((*_iter926)); } xfer += oprot->writeListEnd(); } @@ -11444,10 +11444,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 _iter923; - for (_iter923 = (*(this->part_vals)).begin(); _iter923 != (*(this->part_vals)).end(); ++_iter923) + std::vector ::const_iterator _iter927; + for (_iter927 = (*(this->part_vals)).begin(); _iter927 != (*(this->part_vals)).end(); ++_iter927) { - xfer += oprot->writeString((*_iter923)); + xfer += oprot->writeString((*_iter927)); } xfer += oprot->writeListEnd(); } @@ -11636,17 +11636,17 @@ uint32_t ThriftHiveMetastore_exchange_partition_args::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size924; - ::apache::thrift::protocol::TType _ktype925; - ::apache::thrift::protocol::TType _vtype926; - xfer += iprot->readMapBegin(_ktype925, _vtype926, _size924); - uint32_t _i928; - for (_i928 = 0; _i928 < _size924; ++_i928) + uint32_t _size928; + ::apache::thrift::protocol::TType _ktype929; + ::apache::thrift::protocol::TType _vtype930; + xfer += iprot->readMapBegin(_ktype929, _vtype930, _size928); + uint32_t _i932; + for (_i932 = 0; _i932 < _size928; ++_i932) { - std::string _key929; - xfer += iprot->readString(_key929); - std::string& _val930 = this->partitionSpecs[_key929]; - xfer += iprot->readString(_val930); + std::string _key933; + xfer += iprot->readString(_key933); + std::string& _val934 = this->partitionSpecs[_key933]; + xfer += iprot->readString(_val934); } xfer += iprot->readMapEnd(); } @@ -11707,11 +11707,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 _iter931; - for (_iter931 = this->partitionSpecs.begin(); _iter931 != this->partitionSpecs.end(); ++_iter931) + std::map ::const_iterator _iter935; + for (_iter935 = this->partitionSpecs.begin(); _iter935 != this->partitionSpecs.end(); ++_iter935) { - xfer += oprot->writeString(_iter931->first); - xfer += oprot->writeString(_iter931->second); + xfer += oprot->writeString(_iter935->first); + xfer += oprot->writeString(_iter935->second); } xfer += oprot->writeMapEnd(); } @@ -11751,11 +11751,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 _iter932; - for (_iter932 = (*(this->partitionSpecs)).begin(); _iter932 != (*(this->partitionSpecs)).end(); ++_iter932) + std::map ::const_iterator _iter936; + for (_iter936 = (*(this->partitionSpecs)).begin(); _iter936 != (*(this->partitionSpecs)).end(); ++_iter936) { - xfer += oprot->writeString(_iter932->first); - xfer += oprot->writeString(_iter932->second); + xfer += oprot->writeString(_iter936->first); + xfer += oprot->writeString(_iter936->second); } xfer += oprot->writeMapEnd(); } @@ -12000,17 +12000,17 @@ uint32_t ThriftHiveMetastore_exchange_partitions_args::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partitionSpecs.clear(); - uint32_t _size933; - ::apache::thrift::protocol::TType _ktype934; - ::apache::thrift::protocol::TType _vtype935; - xfer += iprot->readMapBegin(_ktype934, _vtype935, _size933); - uint32_t _i937; - for (_i937 = 0; _i937 < _size933; ++_i937) + uint32_t _size937; + ::apache::thrift::protocol::TType _ktype938; + ::apache::thrift::protocol::TType _vtype939; + xfer += iprot->readMapBegin(_ktype938, _vtype939, _size937); + uint32_t _i941; + for (_i941 = 0; _i941 < _size937; ++_i941) { - std::string _key938; - xfer += iprot->readString(_key938); - std::string& _val939 = this->partitionSpecs[_key938]; - xfer += iprot->readString(_val939); + std::string _key942; + xfer += iprot->readString(_key942); + std::string& _val943 = this->partitionSpecs[_key942]; + xfer += iprot->readString(_val943); } xfer += iprot->readMapEnd(); } @@ -12071,11 +12071,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 _iter940; - for (_iter940 = this->partitionSpecs.begin(); _iter940 != this->partitionSpecs.end(); ++_iter940) + std::map ::const_iterator _iter944; + for (_iter944 = this->partitionSpecs.begin(); _iter944 != this->partitionSpecs.end(); ++_iter944) { - xfer += oprot->writeString(_iter940->first); - xfer += oprot->writeString(_iter940->second); + xfer += oprot->writeString(_iter944->first); + xfer += oprot->writeString(_iter944->second); } xfer += oprot->writeMapEnd(); } @@ -12115,11 +12115,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 _iter941; - for (_iter941 = (*(this->partitionSpecs)).begin(); _iter941 != (*(this->partitionSpecs)).end(); ++_iter941) + std::map ::const_iterator _iter945; + for (_iter945 = (*(this->partitionSpecs)).begin(); _iter945 != (*(this->partitionSpecs)).end(); ++_iter945) { - xfer += oprot->writeString(_iter941->first); - xfer += oprot->writeString(_iter941->second); + xfer += oprot->writeString(_iter945->first); + xfer += oprot->writeString(_iter945->second); } xfer += oprot->writeMapEnd(); } @@ -12176,14 +12176,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size942; - ::apache::thrift::protocol::TType _etype945; - xfer += iprot->readListBegin(_etype945, _size942); - this->success.resize(_size942); - uint32_t _i946; - for (_i946 = 0; _i946 < _size942; ++_i946) + uint32_t _size946; + ::apache::thrift::protocol::TType _etype949; + xfer += iprot->readListBegin(_etype949, _size946); + this->success.resize(_size946); + uint32_t _i950; + for (_i950 = 0; _i950 < _size946; ++_i950) { - xfer += this->success[_i946].read(iprot); + xfer += this->success[_i950].read(iprot); } xfer += iprot->readListEnd(); } @@ -12246,10 +12246,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 _iter947; - for (_iter947 = this->success.begin(); _iter947 != this->success.end(); ++_iter947) + std::vector ::const_iterator _iter951; + for (_iter951 = this->success.begin(); _iter951 != this->success.end(); ++_iter951) { - xfer += (*_iter947).write(oprot); + xfer += (*_iter951).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12306,14 +12306,14 @@ uint32_t ThriftHiveMetastore_exchange_partitions_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size948; - ::apache::thrift::protocol::TType _etype951; - xfer += iprot->readListBegin(_etype951, _size948); - (*(this->success)).resize(_size948); - uint32_t _i952; - for (_i952 = 0; _i952 < _size948; ++_i952) + uint32_t _size952; + ::apache::thrift::protocol::TType _etype955; + xfer += iprot->readListBegin(_etype955, _size952); + (*(this->success)).resize(_size952); + uint32_t _i956; + for (_i956 = 0; _i956 < _size952; ++_i956) { - xfer += (*(this->success))[_i952].read(iprot); + xfer += (*(this->success))[_i956].read(iprot); } xfer += iprot->readListEnd(); } @@ -12412,14 +12412,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 _size953; - ::apache::thrift::protocol::TType _etype956; - xfer += iprot->readListBegin(_etype956, _size953); - this->part_vals.resize(_size953); - uint32_t _i957; - for (_i957 = 0; _i957 < _size953; ++_i957) + uint32_t _size957; + ::apache::thrift::protocol::TType _etype960; + xfer += iprot->readListBegin(_etype960, _size957); + this->part_vals.resize(_size957); + uint32_t _i961; + for (_i961 = 0; _i961 < _size957; ++_i961) { - xfer += iprot->readString(this->part_vals[_i957]); + xfer += iprot->readString(this->part_vals[_i961]); } xfer += iprot->readListEnd(); } @@ -12440,14 +12440,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 _size958; - ::apache::thrift::protocol::TType _etype961; - xfer += iprot->readListBegin(_etype961, _size958); - this->group_names.resize(_size958); - uint32_t _i962; - for (_i962 = 0; _i962 < _size958; ++_i962) + uint32_t _size962; + ::apache::thrift::protocol::TType _etype965; + xfer += iprot->readListBegin(_etype965, _size962); + this->group_names.resize(_size962); + uint32_t _i966; + for (_i966 = 0; _i966 < _size962; ++_i966) { - xfer += iprot->readString(this->group_names[_i962]); + xfer += iprot->readString(this->group_names[_i966]); } xfer += iprot->readListEnd(); } @@ -12484,10 +12484,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 _iter963; - for (_iter963 = this->part_vals.begin(); _iter963 != this->part_vals.end(); ++_iter963) + std::vector ::const_iterator _iter967; + for (_iter967 = this->part_vals.begin(); _iter967 != this->part_vals.end(); ++_iter967) { - xfer += oprot->writeString((*_iter963)); + xfer += oprot->writeString((*_iter967)); } xfer += oprot->writeListEnd(); } @@ -12500,10 +12500,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 _iter964; - for (_iter964 = this->group_names.begin(); _iter964 != this->group_names.end(); ++_iter964) + std::vector ::const_iterator _iter968; + for (_iter968 = this->group_names.begin(); _iter968 != this->group_names.end(); ++_iter968) { - xfer += oprot->writeString((*_iter964)); + xfer += oprot->writeString((*_iter968)); } xfer += oprot->writeListEnd(); } @@ -12535,10 +12535,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 _iter965; - for (_iter965 = (*(this->part_vals)).begin(); _iter965 != (*(this->part_vals)).end(); ++_iter965) + std::vector ::const_iterator _iter969; + for (_iter969 = (*(this->part_vals)).begin(); _iter969 != (*(this->part_vals)).end(); ++_iter969) { - xfer += oprot->writeString((*_iter965)); + xfer += oprot->writeString((*_iter969)); } xfer += oprot->writeListEnd(); } @@ -12551,10 +12551,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 _iter966; - for (_iter966 = (*(this->group_names)).begin(); _iter966 != (*(this->group_names)).end(); ++_iter966) + std::vector ::const_iterator _iter970; + for (_iter970 = (*(this->group_names)).begin(); _iter970 != (*(this->group_names)).end(); ++_iter970) { - xfer += oprot->writeString((*_iter966)); + xfer += oprot->writeString((*_iter970)); } xfer += oprot->writeListEnd(); } @@ -13113,14 +13113,14 @@ uint32_t ThriftHiveMetastore_get_partitions_result::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size967; - ::apache::thrift::protocol::TType _etype970; - xfer += iprot->readListBegin(_etype970, _size967); - this->success.resize(_size967); - uint32_t _i971; - for (_i971 = 0; _i971 < _size967; ++_i971) + uint32_t _size971; + ::apache::thrift::protocol::TType _etype974; + xfer += iprot->readListBegin(_etype974, _size971); + this->success.resize(_size971); + uint32_t _i975; + for (_i975 = 0; _i975 < _size971; ++_i975) { - xfer += this->success[_i971].read(iprot); + xfer += this->success[_i975].read(iprot); } xfer += iprot->readListEnd(); } @@ -13167,10 +13167,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 _iter972; - for (_iter972 = this->success.begin(); _iter972 != this->success.end(); ++_iter972) + std::vector ::const_iterator _iter976; + for (_iter976 = this->success.begin(); _iter976 != this->success.end(); ++_iter976) { - xfer += (*_iter972).write(oprot); + xfer += (*_iter976).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13219,14 +13219,14 @@ uint32_t ThriftHiveMetastore_get_partitions_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size973; - ::apache::thrift::protocol::TType _etype976; - xfer += iprot->readListBegin(_etype976, _size973); - (*(this->success)).resize(_size973); - uint32_t _i977; - for (_i977 = 0; _i977 < _size973; ++_i977) + uint32_t _size977; + ::apache::thrift::protocol::TType _etype980; + xfer += iprot->readListBegin(_etype980, _size977); + (*(this->success)).resize(_size977); + uint32_t _i981; + for (_i981 = 0; _i981 < _size977; ++_i981) { - xfer += (*(this->success))[_i977].read(iprot); + xfer += (*(this->success))[_i981].read(iprot); } xfer += iprot->readListEnd(); } @@ -13325,14 +13325,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 _size978; - ::apache::thrift::protocol::TType _etype981; - xfer += iprot->readListBegin(_etype981, _size978); - this->group_names.resize(_size978); - uint32_t _i982; - for (_i982 = 0; _i982 < _size978; ++_i982) + uint32_t _size982; + ::apache::thrift::protocol::TType _etype985; + xfer += iprot->readListBegin(_etype985, _size982); + this->group_names.resize(_size982); + uint32_t _i986; + for (_i986 = 0; _i986 < _size982; ++_i986) { - xfer += iprot->readString(this->group_names[_i982]); + xfer += iprot->readString(this->group_names[_i986]); } xfer += iprot->readListEnd(); } @@ -13377,10 +13377,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 _iter983; - for (_iter983 = this->group_names.begin(); _iter983 != this->group_names.end(); ++_iter983) + std::vector ::const_iterator _iter987; + for (_iter987 = this->group_names.begin(); _iter987 != this->group_names.end(); ++_iter987) { - xfer += oprot->writeString((*_iter983)); + xfer += oprot->writeString((*_iter987)); } xfer += oprot->writeListEnd(); } @@ -13420,10 +13420,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 _iter984; - for (_iter984 = (*(this->group_names)).begin(); _iter984 != (*(this->group_names)).end(); ++_iter984) + std::vector ::const_iterator _iter988; + for (_iter988 = (*(this->group_names)).begin(); _iter988 != (*(this->group_names)).end(); ++_iter988) { - xfer += oprot->writeString((*_iter984)); + xfer += oprot->writeString((*_iter988)); } xfer += oprot->writeListEnd(); } @@ -13464,14 +13464,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size985; - ::apache::thrift::protocol::TType _etype988; - xfer += iprot->readListBegin(_etype988, _size985); - this->success.resize(_size985); - uint32_t _i989; - for (_i989 = 0; _i989 < _size985; ++_i989) + uint32_t _size989; + ::apache::thrift::protocol::TType _etype992; + xfer += iprot->readListBegin(_etype992, _size989); + this->success.resize(_size989); + uint32_t _i993; + for (_i993 = 0; _i993 < _size989; ++_i993) { - xfer += this->success[_i989].read(iprot); + xfer += this->success[_i993].read(iprot); } xfer += iprot->readListEnd(); } @@ -13518,10 +13518,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 _iter990; - for (_iter990 = this->success.begin(); _iter990 != this->success.end(); ++_iter990) + std::vector ::const_iterator _iter994; + for (_iter994 = this->success.begin(); _iter994 != this->success.end(); ++_iter994) { - xfer += (*_iter990).write(oprot); + xfer += (*_iter994).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13570,14 +13570,14 @@ uint32_t ThriftHiveMetastore_get_partitions_with_auth_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size991; - ::apache::thrift::protocol::TType _etype994; - xfer += iprot->readListBegin(_etype994, _size991); - (*(this->success)).resize(_size991); - uint32_t _i995; - for (_i995 = 0; _i995 < _size991; ++_i995) + uint32_t _size995; + ::apache::thrift::protocol::TType _etype998; + xfer += iprot->readListBegin(_etype998, _size995); + (*(this->success)).resize(_size995); + uint32_t _i999; + for (_i999 = 0; _i999 < _size995; ++_i999) { - xfer += (*(this->success))[_i995].read(iprot); + xfer += (*(this->success))[_i999].read(iprot); } xfer += iprot->readListEnd(); } @@ -13755,14 +13755,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_result::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size996; - ::apache::thrift::protocol::TType _etype999; - xfer += iprot->readListBegin(_etype999, _size996); - this->success.resize(_size996); - uint32_t _i1000; - for (_i1000 = 0; _i1000 < _size996; ++_i1000) + uint32_t _size1000; + ::apache::thrift::protocol::TType _etype1003; + xfer += iprot->readListBegin(_etype1003, _size1000); + this->success.resize(_size1000); + uint32_t _i1004; + for (_i1004 = 0; _i1004 < _size1000; ++_i1004) { - xfer += this->success[_i1000].read(iprot); + xfer += this->success[_i1004].read(iprot); } xfer += iprot->readListEnd(); } @@ -13809,10 +13809,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 _iter1001; - for (_iter1001 = this->success.begin(); _iter1001 != this->success.end(); ++_iter1001) + std::vector ::const_iterator _iter1005; + for (_iter1005 = this->success.begin(); _iter1005 != this->success.end(); ++_iter1005) { - xfer += (*_iter1001).write(oprot); + xfer += (*_iter1005).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13861,14 +13861,14 @@ uint32_t ThriftHiveMetastore_get_partitions_pspec_presult::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1006; + ::apache::thrift::protocol::TType _etype1009; + xfer += iprot->readListBegin(_etype1009, _size1006); + (*(this->success)).resize(_size1006); + uint32_t _i1010; + for (_i1010 = 0; _i1010 < _size1006; ++_i1010) { - xfer += (*(this->success))[_i1006].read(iprot); + xfer += (*(this->success))[_i1010].read(iprot); } xfer += iprot->readListEnd(); } @@ -14046,14 +14046,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_result::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1007; - ::apache::thrift::protocol::TType _etype1010; - xfer += iprot->readListBegin(_etype1010, _size1007); - this->success.resize(_size1007); - uint32_t _i1011; - for (_i1011 = 0; _i1011 < _size1007; ++_i1011) + 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) { - xfer += iprot->readString(this->success[_i1011]); + xfer += iprot->readString(this->success[_i1015]); } xfer += iprot->readListEnd(); } @@ -14092,10 +14092,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 _iter1012; - for (_iter1012 = this->success.begin(); _iter1012 != this->success.end(); ++_iter1012) + std::vector ::const_iterator _iter1016; + for (_iter1016 = this->success.begin(); _iter1016 != this->success.end(); ++_iter1016) { - xfer += oprot->writeString((*_iter1012)); + xfer += oprot->writeString((*_iter1016)); } xfer += oprot->writeListEnd(); } @@ -14140,14 +14140,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_presult::read(::apache::thrift: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1013; - ::apache::thrift::protocol::TType _etype1016; - xfer += iprot->readListBegin(_etype1016, _size1013); - (*(this->success)).resize(_size1013); - uint32_t _i1017; - for (_i1017 = 0; _i1017 < _size1013; ++_i1017) + 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) { - xfer += iprot->readString((*(this->success))[_i1017]); + xfer += iprot->readString((*(this->success))[_i1021]); } xfer += iprot->readListEnd(); } @@ -14222,14 +14222,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 _size1018; - ::apache::thrift::protocol::TType _etype1021; - xfer += iprot->readListBegin(_etype1021, _size1018); - this->part_vals.resize(_size1018); - uint32_t _i1022; - for (_i1022 = 0; _i1022 < _size1018; ++_i1022) + uint32_t _size1022; + ::apache::thrift::protocol::TType _etype1025; + xfer += iprot->readListBegin(_etype1025, _size1022); + this->part_vals.resize(_size1022); + uint32_t _i1026; + for (_i1026 = 0; _i1026 < _size1022; ++_i1026) { - xfer += iprot->readString(this->part_vals[_i1022]); + xfer += iprot->readString(this->part_vals[_i1026]); } xfer += iprot->readListEnd(); } @@ -14274,10 +14274,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 _iter1023; - for (_iter1023 = this->part_vals.begin(); _iter1023 != this->part_vals.end(); ++_iter1023) + std::vector ::const_iterator _iter1027; + for (_iter1027 = this->part_vals.begin(); _iter1027 != this->part_vals.end(); ++_iter1027) { - xfer += oprot->writeString((*_iter1023)); + xfer += oprot->writeString((*_iter1027)); } xfer += oprot->writeListEnd(); } @@ -14313,10 +14313,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 _iter1024; - for (_iter1024 = (*(this->part_vals)).begin(); _iter1024 != (*(this->part_vals)).end(); ++_iter1024) + std::vector ::const_iterator _iter1028; + for (_iter1028 = (*(this->part_vals)).begin(); _iter1028 != (*(this->part_vals)).end(); ++_iter1028) { - xfer += oprot->writeString((*_iter1024)); + xfer += oprot->writeString((*_iter1028)); } xfer += oprot->writeListEnd(); } @@ -14361,14 +14361,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_result::read(::apache::thrift::pr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1025; - ::apache::thrift::protocol::TType _etype1028; - xfer += iprot->readListBegin(_etype1028, _size1025); - this->success.resize(_size1025); - uint32_t _i1029; - for (_i1029 = 0; _i1029 < _size1025; ++_i1029) + 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) { - xfer += this->success[_i1029].read(iprot); + xfer += this->success[_i1033].read(iprot); } xfer += iprot->readListEnd(); } @@ -14415,10 +14415,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 _iter1030; - for (_iter1030 = this->success.begin(); _iter1030 != this->success.end(); ++_iter1030) + std::vector ::const_iterator _iter1034; + for (_iter1034 = this->success.begin(); _iter1034 != this->success.end(); ++_iter1034) { - xfer += (*_iter1030).write(oprot); + xfer += (*_iter1034).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14467,14 +14467,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_presult::read(::apache::thrift::p if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1031; - ::apache::thrift::protocol::TType _etype1034; - xfer += iprot->readListBegin(_etype1034, _size1031); - (*(this->success)).resize(_size1031); - uint32_t _i1035; - for (_i1035 = 0; _i1035 < _size1031; ++_i1035) + 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) { - xfer += (*(this->success))[_i1035].read(iprot); + xfer += (*(this->success))[_i1039].read(iprot); } xfer += iprot->readListEnd(); } @@ -14557,14 +14557,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 _size1036; - ::apache::thrift::protocol::TType _etype1039; - xfer += iprot->readListBegin(_etype1039, _size1036); - this->part_vals.resize(_size1036); - uint32_t _i1040; - for (_i1040 = 0; _i1040 < _size1036; ++_i1040) + uint32_t _size1040; + ::apache::thrift::protocol::TType _etype1043; + xfer += iprot->readListBegin(_etype1043, _size1040); + this->part_vals.resize(_size1040); + uint32_t _i1044; + for (_i1044 = 0; _i1044 < _size1040; ++_i1044) { - xfer += iprot->readString(this->part_vals[_i1040]); + xfer += iprot->readString(this->part_vals[_i1044]); } xfer += iprot->readListEnd(); } @@ -14593,14 +14593,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 _size1041; - ::apache::thrift::protocol::TType _etype1044; - xfer += iprot->readListBegin(_etype1044, _size1041); - this->group_names.resize(_size1041); - uint32_t _i1045; - for (_i1045 = 0; _i1045 < _size1041; ++_i1045) + uint32_t _size1045; + ::apache::thrift::protocol::TType _etype1048; + xfer += iprot->readListBegin(_etype1048, _size1045); + this->group_names.resize(_size1045); + uint32_t _i1049; + for (_i1049 = 0; _i1049 < _size1045; ++_i1049) { - xfer += iprot->readString(this->group_names[_i1045]); + xfer += iprot->readString(this->group_names[_i1049]); } xfer += iprot->readListEnd(); } @@ -14637,10 +14637,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 _iter1046; - for (_iter1046 = this->part_vals.begin(); _iter1046 != this->part_vals.end(); ++_iter1046) + std::vector ::const_iterator _iter1050; + for (_iter1050 = this->part_vals.begin(); _iter1050 != this->part_vals.end(); ++_iter1050) { - xfer += oprot->writeString((*_iter1046)); + xfer += oprot->writeString((*_iter1050)); } xfer += oprot->writeListEnd(); } @@ -14657,10 +14657,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 _iter1047; - for (_iter1047 = this->group_names.begin(); _iter1047 != this->group_names.end(); ++_iter1047) + std::vector ::const_iterator _iter1051; + for (_iter1051 = this->group_names.begin(); _iter1051 != this->group_names.end(); ++_iter1051) { - xfer += oprot->writeString((*_iter1047)); + xfer += oprot->writeString((*_iter1051)); } xfer += oprot->writeListEnd(); } @@ -14692,10 +14692,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 _iter1048; - for (_iter1048 = (*(this->part_vals)).begin(); _iter1048 != (*(this->part_vals)).end(); ++_iter1048) + std::vector ::const_iterator _iter1052; + for (_iter1052 = (*(this->part_vals)).begin(); _iter1052 != (*(this->part_vals)).end(); ++_iter1052) { - xfer += oprot->writeString((*_iter1048)); + xfer += oprot->writeString((*_iter1052)); } xfer += oprot->writeListEnd(); } @@ -14712,10 +14712,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 _iter1049; - for (_iter1049 = (*(this->group_names)).begin(); _iter1049 != (*(this->group_names)).end(); ++_iter1049) + std::vector ::const_iterator _iter1053; + for (_iter1053 = (*(this->group_names)).begin(); _iter1053 != (*(this->group_names)).end(); ++_iter1053) { - xfer += oprot->writeString((*_iter1049)); + xfer += oprot->writeString((*_iter1053)); } xfer += oprot->writeListEnd(); } @@ -14756,14 +14756,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_result::read(::apache:: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1050; - ::apache::thrift::protocol::TType _etype1053; - xfer += iprot->readListBegin(_etype1053, _size1050); - this->success.resize(_size1050); - uint32_t _i1054; - for (_i1054 = 0; _i1054 < _size1050; ++_i1054) + uint32_t _size1054; + ::apache::thrift::protocol::TType _etype1057; + xfer += iprot->readListBegin(_etype1057, _size1054); + this->success.resize(_size1054); + uint32_t _i1058; + for (_i1058 = 0; _i1058 < _size1054; ++_i1058) { - xfer += this->success[_i1054].read(iprot); + xfer += this->success[_i1058].read(iprot); } xfer += iprot->readListEnd(); } @@ -14810,10 +14810,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 _iter1055; - for (_iter1055 = this->success.begin(); _iter1055 != this->success.end(); ++_iter1055) + std::vector ::const_iterator _iter1059; + for (_iter1059 = this->success.begin(); _iter1059 != this->success.end(); ++_iter1059) { - xfer += (*_iter1055).write(oprot); + xfer += (*_iter1059).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14862,14 +14862,14 @@ uint32_t ThriftHiveMetastore_get_partitions_ps_with_auth_presult::read(::apache: if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1060; + ::apache::thrift::protocol::TType _etype1063; + xfer += iprot->readListBegin(_etype1063, _size1060); + (*(this->success)).resize(_size1060); + uint32_t _i1064; + for (_i1064 = 0; _i1064 < _size1060; ++_i1064) { - xfer += (*(this->success))[_i1060].read(iprot); + xfer += (*(this->success))[_i1064].read(iprot); } xfer += iprot->readListEnd(); } @@ -14952,14 +14952,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 _size1061; - ::apache::thrift::protocol::TType _etype1064; - xfer += iprot->readListBegin(_etype1064, _size1061); - this->part_vals.resize(_size1061); - uint32_t _i1065; - for (_i1065 = 0; _i1065 < _size1061; ++_i1065) + uint32_t _size1065; + ::apache::thrift::protocol::TType _etype1068; + xfer += iprot->readListBegin(_etype1068, _size1065); + this->part_vals.resize(_size1065); + uint32_t _i1069; + for (_i1069 = 0; _i1069 < _size1065; ++_i1069) { - xfer += iprot->readString(this->part_vals[_i1065]); + xfer += iprot->readString(this->part_vals[_i1069]); } xfer += iprot->readListEnd(); } @@ -15004,10 +15004,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 _iter1066; - for (_iter1066 = this->part_vals.begin(); _iter1066 != this->part_vals.end(); ++_iter1066) + std::vector ::const_iterator _iter1070; + for (_iter1070 = this->part_vals.begin(); _iter1070 != this->part_vals.end(); ++_iter1070) { - xfer += oprot->writeString((*_iter1066)); + xfer += oprot->writeString((*_iter1070)); } xfer += oprot->writeListEnd(); } @@ -15043,10 +15043,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 _iter1067; - for (_iter1067 = (*(this->part_vals)).begin(); _iter1067 != (*(this->part_vals)).end(); ++_iter1067) + std::vector ::const_iterator _iter1071; + for (_iter1071 = (*(this->part_vals)).begin(); _iter1071 != (*(this->part_vals)).end(); ++_iter1071) { - xfer += oprot->writeString((*_iter1067)); + xfer += oprot->writeString((*_iter1071)); } xfer += oprot->writeListEnd(); } @@ -15091,14 +15091,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1068; - ::apache::thrift::protocol::TType _etype1071; - xfer += iprot->readListBegin(_etype1071, _size1068); - this->success.resize(_size1068); - uint32_t _i1072; - for (_i1072 = 0; _i1072 < _size1068; ++_i1072) + uint32_t _size1072; + ::apache::thrift::protocol::TType _etype1075; + xfer += iprot->readListBegin(_etype1075, _size1072); + this->success.resize(_size1072); + uint32_t _i1076; + for (_i1076 = 0; _i1076 < _size1072; ++_i1076) { - xfer += iprot->readString(this->success[_i1072]); + xfer += iprot->readString(this->success[_i1076]); } xfer += iprot->readListEnd(); } @@ -15145,10 +15145,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 _iter1073; - for (_iter1073 = this->success.begin(); _iter1073 != this->success.end(); ++_iter1073) + std::vector ::const_iterator _iter1077; + for (_iter1077 = this->success.begin(); _iter1077 != this->success.end(); ++_iter1077) { - xfer += oprot->writeString((*_iter1073)); + xfer += oprot->writeString((*_iter1077)); } xfer += oprot->writeListEnd(); } @@ -15197,14 +15197,14 @@ uint32_t ThriftHiveMetastore_get_partition_names_ps_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1074; - ::apache::thrift::protocol::TType _etype1077; - xfer += iprot->readListBegin(_etype1077, _size1074); - (*(this->success)).resize(_size1074); - uint32_t _i1078; - for (_i1078 = 0; _i1078 < _size1074; ++_i1078) + uint32_t _size1078; + ::apache::thrift::protocol::TType _etype1081; + xfer += iprot->readListBegin(_etype1081, _size1078); + (*(this->success)).resize(_size1078); + uint32_t _i1082; + for (_i1082 = 0; _i1082 < _size1078; ++_i1082) { - xfer += iprot->readString((*(this->success))[_i1078]); + xfer += iprot->readString((*(this->success))[_i1082]); } xfer += iprot->readListEnd(); } @@ -15398,14 +15398,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_result::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1079; - ::apache::thrift::protocol::TType _etype1082; - xfer += iprot->readListBegin(_etype1082, _size1079); - this->success.resize(_size1079); - uint32_t _i1083; - for (_i1083 = 0; _i1083 < _size1079; ++_i1083) + uint32_t _size1083; + ::apache::thrift::protocol::TType _etype1086; + xfer += iprot->readListBegin(_etype1086, _size1083); + this->success.resize(_size1083); + uint32_t _i1087; + for (_i1087 = 0; _i1087 < _size1083; ++_i1087) { - xfer += this->success[_i1083].read(iprot); + xfer += this->success[_i1087].read(iprot); } xfer += iprot->readListEnd(); } @@ -15452,10 +15452,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 _iter1084; - for (_iter1084 = this->success.begin(); _iter1084 != this->success.end(); ++_iter1084) + std::vector ::const_iterator _iter1088; + for (_iter1088 = this->success.begin(); _iter1088 != this->success.end(); ++_iter1088) { - xfer += (*_iter1084).write(oprot); + xfer += (*_iter1088).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15504,14 +15504,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_filter_presult::read(::apache::th if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - 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) + uint32_t _size1089; + ::apache::thrift::protocol::TType _etype1092; + xfer += iprot->readListBegin(_etype1092, _size1089); + (*(this->success)).resize(_size1089); + uint32_t _i1093; + for (_i1093 = 0; _i1093 < _size1089; ++_i1093) { - xfer += (*(this->success))[_i1089].read(iprot); + xfer += (*(this->success))[_i1093].read(iprot); } xfer += iprot->readListEnd(); } @@ -15705,14 +15705,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 _size1090; - ::apache::thrift::protocol::TType _etype1093; - xfer += iprot->readListBegin(_etype1093, _size1090); - this->success.resize(_size1090); - uint32_t _i1094; - for (_i1094 = 0; _i1094 < _size1090; ++_i1094) + 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) { - xfer += this->success[_i1094].read(iprot); + xfer += this->success[_i1098].read(iprot); } xfer += iprot->readListEnd(); } @@ -15759,10 +15759,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 _iter1095; - for (_iter1095 = this->success.begin(); _iter1095 != this->success.end(); ++_iter1095) + std::vector ::const_iterator _iter1099; + for (_iter1099 = this->success.begin(); _iter1099 != this->success.end(); ++_iter1099) { - xfer += (*_iter1095).write(oprot); + xfer += (*_iter1099).write(oprot); } xfer += oprot->writeListEnd(); } @@ -15811,14 +15811,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 _size1096; - ::apache::thrift::protocol::TType _etype1099; - xfer += iprot->readListBegin(_etype1099, _size1096); - (*(this->success)).resize(_size1096); - uint32_t _i1100; - for (_i1100 = 0; _i1100 < _size1096; ++_i1100) + 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) { - xfer += (*(this->success))[_i1100].read(iprot); + xfer += (*(this->success))[_i1104].read(iprot); } xfer += iprot->readListEnd(); } @@ -16387,14 +16387,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_args::read(::apache::thrift if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size1101; - ::apache::thrift::protocol::TType _etype1104; - xfer += iprot->readListBegin(_etype1104, _size1101); - this->names.resize(_size1101); - uint32_t _i1105; - for (_i1105 = 0; _i1105 < _size1101; ++_i1105) + uint32_t _size1105; + ::apache::thrift::protocol::TType _etype1108; + xfer += iprot->readListBegin(_etype1108, _size1105); + this->names.resize(_size1105); + uint32_t _i1109; + for (_i1109 = 0; _i1109 < _size1105; ++_i1109) { - xfer += iprot->readString(this->names[_i1105]); + xfer += iprot->readString(this->names[_i1109]); } xfer += iprot->readListEnd(); } @@ -16431,10 +16431,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 _iter1106; - for (_iter1106 = this->names.begin(); _iter1106 != this->names.end(); ++_iter1106) + std::vector ::const_iterator _iter1110; + for (_iter1110 = this->names.begin(); _iter1110 != this->names.end(); ++_iter1110) { - xfer += oprot->writeString((*_iter1106)); + xfer += oprot->writeString((*_iter1110)); } xfer += oprot->writeListEnd(); } @@ -16466,10 +16466,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 _iter1107; - for (_iter1107 = (*(this->names)).begin(); _iter1107 != (*(this->names)).end(); ++_iter1107) + std::vector ::const_iterator _iter1111; + for (_iter1111 = (*(this->names)).begin(); _iter1111 != (*(this->names)).end(); ++_iter1111) { - xfer += oprot->writeString((*_iter1107)); + xfer += oprot->writeString((*_iter1111)); } xfer += oprot->writeListEnd(); } @@ -16510,14 +16510,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_result::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1108; - ::apache::thrift::protocol::TType _etype1111; - xfer += iprot->readListBegin(_etype1111, _size1108); - this->success.resize(_size1108); - uint32_t _i1112; - for (_i1112 = 0; _i1112 < _size1108; ++_i1112) + 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) { - xfer += this->success[_i1112].read(iprot); + xfer += this->success[_i1116].read(iprot); } xfer += iprot->readListEnd(); } @@ -16564,10 +16564,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 _iter1113; - for (_iter1113 = this->success.begin(); _iter1113 != this->success.end(); ++_iter1113) + std::vector ::const_iterator _iter1117; + for (_iter1117 = this->success.begin(); _iter1117 != this->success.end(); ++_iter1117) { - xfer += (*_iter1113).write(oprot); + xfer += (*_iter1117).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16616,14 +16616,14 @@ uint32_t ThriftHiveMetastore_get_partitions_by_names_presult::read(::apache::thr if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1114; - ::apache::thrift::protocol::TType _etype1117; - xfer += iprot->readListBegin(_etype1117, _size1114); - (*(this->success)).resize(_size1114); - uint32_t _i1118; - for (_i1118 = 0; _i1118 < _size1114; ++_i1118) + 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) { - xfer += (*(this->success))[_i1118].read(iprot); + xfer += (*(this->success))[_i1122].read(iprot); } xfer += iprot->readListEnd(); } @@ -16945,14 +16945,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1119; - ::apache::thrift::protocol::TType _etype1122; - xfer += iprot->readListBegin(_etype1122, _size1119); - this->new_parts.resize(_size1119); - uint32_t _i1123; - for (_i1123 = 0; _i1123 < _size1119; ++_i1123) + uint32_t _size1123; + ::apache::thrift::protocol::TType _etype1126; + xfer += iprot->readListBegin(_etype1126, _size1123); + this->new_parts.resize(_size1123); + uint32_t _i1127; + for (_i1127 = 0; _i1127 < _size1123; ++_i1127) { - xfer += this->new_parts[_i1123].read(iprot); + xfer += this->new_parts[_i1127].read(iprot); } xfer += iprot->readListEnd(); } @@ -16989,10 +16989,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 _iter1124; - for (_iter1124 = this->new_parts.begin(); _iter1124 != this->new_parts.end(); ++_iter1124) + std::vector ::const_iterator _iter1128; + for (_iter1128 = this->new_parts.begin(); _iter1128 != this->new_parts.end(); ++_iter1128) { - xfer += (*_iter1124).write(oprot); + xfer += (*_iter1128).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17024,10 +17024,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 _iter1125; - for (_iter1125 = (*(this->new_parts)).begin(); _iter1125 != (*(this->new_parts)).end(); ++_iter1125) + std::vector ::const_iterator _iter1129; + for (_iter1129 = (*(this->new_parts)).begin(); _iter1129 != (*(this->new_parts)).end(); ++_iter1129) { - xfer += (*_iter1125).write(oprot); + xfer += (*_iter1129).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17212,14 +17212,14 @@ uint32_t ThriftHiveMetastore_alter_partitions_with_environment_context_args::rea if (ftype == ::apache::thrift::protocol::T_LIST) { { this->new_parts.clear(); - uint32_t _size1126; - ::apache::thrift::protocol::TType _etype1129; - xfer += iprot->readListBegin(_etype1129, _size1126); - this->new_parts.resize(_size1126); - uint32_t _i1130; - for (_i1130 = 0; _i1130 < _size1126; ++_i1130) + uint32_t _size1130; + ::apache::thrift::protocol::TType _etype1133; + xfer += iprot->readListBegin(_etype1133, _size1130); + this->new_parts.resize(_size1130); + uint32_t _i1134; + for (_i1134 = 0; _i1134 < _size1130; ++_i1134) { - xfer += this->new_parts[_i1130].read(iprot); + xfer += this->new_parts[_i1134].read(iprot); } xfer += iprot->readListEnd(); } @@ -17264,10 +17264,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 _iter1131; - for (_iter1131 = this->new_parts.begin(); _iter1131 != this->new_parts.end(); ++_iter1131) + std::vector ::const_iterator _iter1135; + for (_iter1135 = this->new_parts.begin(); _iter1135 != this->new_parts.end(); ++_iter1135) { - xfer += (*_iter1131).write(oprot); + xfer += (*_iter1135).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17303,10 +17303,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 _iter1132; - for (_iter1132 = (*(this->new_parts)).begin(); _iter1132 != (*(this->new_parts)).end(); ++_iter1132) + std::vector ::const_iterator _iter1136; + for (_iter1136 = (*(this->new_parts)).begin(); _iter1136 != (*(this->new_parts)).end(); ++_iter1136) { - xfer += (*_iter1132).write(oprot); + xfer += (*_iter1136).write(oprot); } xfer += oprot->writeListEnd(); } @@ -17750,14 +17750,14 @@ uint32_t ThriftHiveMetastore_rename_partition_args::read(::apache::thrift::proto if (ftype == ::apache::thrift::protocol::T_LIST) { { this->part_vals.clear(); - uint32_t _size1133; - ::apache::thrift::protocol::TType _etype1136; - xfer += iprot->readListBegin(_etype1136, _size1133); - this->part_vals.resize(_size1133); - uint32_t _i1137; - for (_i1137 = 0; _i1137 < _size1133; ++_i1137) + uint32_t _size1137; + ::apache::thrift::protocol::TType _etype1140; + xfer += iprot->readListBegin(_etype1140, _size1137); + this->part_vals.resize(_size1137); + uint32_t _i1141; + for (_i1141 = 0; _i1141 < _size1137; ++_i1141) { - xfer += iprot->readString(this->part_vals[_i1137]); + xfer += iprot->readString(this->part_vals[_i1141]); } xfer += iprot->readListEnd(); } @@ -17802,10 +17802,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 _iter1138; - for (_iter1138 = this->part_vals.begin(); _iter1138 != this->part_vals.end(); ++_iter1138) + std::vector ::const_iterator _iter1142; + for (_iter1142 = this->part_vals.begin(); _iter1142 != this->part_vals.end(); ++_iter1142) { - xfer += oprot->writeString((*_iter1138)); + xfer += oprot->writeString((*_iter1142)); } xfer += oprot->writeListEnd(); } @@ -17841,10 +17841,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 _iter1139; - for (_iter1139 = (*(this->part_vals)).begin(); _iter1139 != (*(this->part_vals)).end(); ++_iter1139) + std::vector ::const_iterator _iter1143; + for (_iter1143 = (*(this->part_vals)).begin(); _iter1143 != (*(this->part_vals)).end(); ++_iter1143) { - xfer += oprot->writeString((*_iter1139)); + xfer += oprot->writeString((*_iter1143)); } xfer += oprot->writeListEnd(); } @@ -18017,14 +18017,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 _size1140; - ::apache::thrift::protocol::TType _etype1143; - xfer += iprot->readListBegin(_etype1143, _size1140); - this->part_vals.resize(_size1140); - uint32_t _i1144; - for (_i1144 = 0; _i1144 < _size1140; ++_i1144) + uint32_t _size1144; + ::apache::thrift::protocol::TType _etype1147; + xfer += iprot->readListBegin(_etype1147, _size1144); + this->part_vals.resize(_size1144); + uint32_t _i1148; + for (_i1148 = 0; _i1148 < _size1144; ++_i1148) { - xfer += iprot->readString(this->part_vals[_i1144]); + xfer += iprot->readString(this->part_vals[_i1148]); } xfer += iprot->readListEnd(); } @@ -18061,10 +18061,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 _iter1145; - for (_iter1145 = this->part_vals.begin(); _iter1145 != this->part_vals.end(); ++_iter1145) + std::vector ::const_iterator _iter1149; + for (_iter1149 = this->part_vals.begin(); _iter1149 != this->part_vals.end(); ++_iter1149) { - xfer += oprot->writeString((*_iter1145)); + xfer += oprot->writeString((*_iter1149)); } xfer += oprot->writeListEnd(); } @@ -18092,10 +18092,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 _iter1146; - for (_iter1146 = (*(this->part_vals)).begin(); _iter1146 != (*(this->part_vals)).end(); ++_iter1146) + std::vector ::const_iterator _iter1150; + for (_iter1150 = (*(this->part_vals)).begin(); _iter1150 != (*(this->part_vals)).end(); ++_iter1150) { - xfer += oprot->writeString((*_iter1146)); + xfer += oprot->writeString((*_iter1150)); } xfer += oprot->writeListEnd(); } @@ -18570,14 +18570,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1147; - ::apache::thrift::protocol::TType _etype1150; - xfer += iprot->readListBegin(_etype1150, _size1147); - this->success.resize(_size1147); - uint32_t _i1151; - for (_i1151 = 0; _i1151 < _size1147; ++_i1151) + uint32_t _size1151; + ::apache::thrift::protocol::TType _etype1154; + xfer += iprot->readListBegin(_etype1154, _size1151); + this->success.resize(_size1151); + uint32_t _i1155; + for (_i1155 = 0; _i1155 < _size1151; ++_i1155) { - xfer += iprot->readString(this->success[_i1151]); + xfer += iprot->readString(this->success[_i1155]); } xfer += iprot->readListEnd(); } @@ -18616,10 +18616,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 _iter1152; - for (_iter1152 = this->success.begin(); _iter1152 != this->success.end(); ++_iter1152) + std::vector ::const_iterator _iter1156; + for (_iter1156 = this->success.begin(); _iter1156 != this->success.end(); ++_iter1156) { - xfer += oprot->writeString((*_iter1152)); + xfer += oprot->writeString((*_iter1156)); } xfer += oprot->writeListEnd(); } @@ -18664,14 +18664,14 @@ uint32_t ThriftHiveMetastore_partition_name_to_vals_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1153; - ::apache::thrift::protocol::TType _etype1156; - xfer += iprot->readListBegin(_etype1156, _size1153); - (*(this->success)).resize(_size1153); - uint32_t _i1157; - for (_i1157 = 0; _i1157 < _size1153; ++_i1157) + uint32_t _size1157; + ::apache::thrift::protocol::TType _etype1160; + xfer += iprot->readListBegin(_etype1160, _size1157); + (*(this->success)).resize(_size1157); + uint32_t _i1161; + for (_i1161 = 0; _i1161 < _size1157; ++_i1161) { - xfer += iprot->readString((*(this->success))[_i1157]); + xfer += iprot->readString((*(this->success))[_i1161]); } xfer += iprot->readListEnd(); } @@ -18809,17 +18809,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_result::read(::apache::thrif if (ftype == ::apache::thrift::protocol::T_MAP) { { this->success.clear(); - uint32_t _size1158; - ::apache::thrift::protocol::TType _ktype1159; - ::apache::thrift::protocol::TType _vtype1160; - xfer += iprot->readMapBegin(_ktype1159, _vtype1160, _size1158); - uint32_t _i1162; - for (_i1162 = 0; _i1162 < _size1158; ++_i1162) + uint32_t _size1162; + ::apache::thrift::protocol::TType _ktype1163; + ::apache::thrift::protocol::TType _vtype1164; + xfer += iprot->readMapBegin(_ktype1163, _vtype1164, _size1162); + uint32_t _i1166; + for (_i1166 = 0; _i1166 < _size1162; ++_i1166) { - std::string _key1163; - xfer += iprot->readString(_key1163); - std::string& _val1164 = this->success[_key1163]; - xfer += iprot->readString(_val1164); + std::string _key1167; + xfer += iprot->readString(_key1167); + std::string& _val1168 = this->success[_key1167]; + xfer += iprot->readString(_val1168); } xfer += iprot->readMapEnd(); } @@ -18858,11 +18858,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 _iter1165; - for (_iter1165 = this->success.begin(); _iter1165 != this->success.end(); ++_iter1165) + std::map ::const_iterator _iter1169; + for (_iter1169 = this->success.begin(); _iter1169 != this->success.end(); ++_iter1169) { - xfer += oprot->writeString(_iter1165->first); - xfer += oprot->writeString(_iter1165->second); + xfer += oprot->writeString(_iter1169->first); + xfer += oprot->writeString(_iter1169->second); } xfer += oprot->writeMapEnd(); } @@ -18907,17 +18907,17 @@ uint32_t ThriftHiveMetastore_partition_name_to_spec_presult::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { (*(this->success)).clear(); - uint32_t _size1166; - ::apache::thrift::protocol::TType _ktype1167; - ::apache::thrift::protocol::TType _vtype1168; - xfer += iprot->readMapBegin(_ktype1167, _vtype1168, _size1166); - uint32_t _i1170; - for (_i1170 = 0; _i1170 < _size1166; ++_i1170) + uint32_t _size1170; + ::apache::thrift::protocol::TType _ktype1171; + ::apache::thrift::protocol::TType _vtype1172; + xfer += iprot->readMapBegin(_ktype1171, _vtype1172, _size1170); + uint32_t _i1174; + for (_i1174 = 0; _i1174 < _size1170; ++_i1174) { - std::string _key1171; - xfer += iprot->readString(_key1171); - std::string& _val1172 = (*(this->success))[_key1171]; - xfer += iprot->readString(_val1172); + std::string _key1175; + xfer += iprot->readString(_key1175); + std::string& _val1176 = (*(this->success))[_key1175]; + xfer += iprot->readString(_val1176); } xfer += iprot->readMapEnd(); } @@ -18992,17 +18992,17 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1173; - ::apache::thrift::protocol::TType _ktype1174; - ::apache::thrift::protocol::TType _vtype1175; - xfer += iprot->readMapBegin(_ktype1174, _vtype1175, _size1173); - uint32_t _i1177; - for (_i1177 = 0; _i1177 < _size1173; ++_i1177) + uint32_t _size1177; + ::apache::thrift::protocol::TType _ktype1178; + ::apache::thrift::protocol::TType _vtype1179; + xfer += iprot->readMapBegin(_ktype1178, _vtype1179, _size1177); + uint32_t _i1181; + for (_i1181 = 0; _i1181 < _size1177; ++_i1181) { - std::string _key1178; - xfer += iprot->readString(_key1178); - std::string& _val1179 = this->part_vals[_key1178]; - xfer += iprot->readString(_val1179); + std::string _key1182; + xfer += iprot->readString(_key1182); + std::string& _val1183 = this->part_vals[_key1182]; + xfer += iprot->readString(_val1183); } xfer += iprot->readMapEnd(); } @@ -19013,9 +19013,9 @@ uint32_t ThriftHiveMetastore_markPartitionForEvent_args::read(::apache::thrift:: break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1180; - xfer += iprot->readI32(ecast1180); - this->eventType = (PartitionEventType::type)ecast1180; + int32_t ecast1184; + xfer += iprot->readI32(ecast1184); + this->eventType = (PartitionEventType::type)ecast1184; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -19049,11 +19049,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 _iter1181; - for (_iter1181 = this->part_vals.begin(); _iter1181 != this->part_vals.end(); ++_iter1181) + std::map ::const_iterator _iter1185; + for (_iter1185 = this->part_vals.begin(); _iter1185 != this->part_vals.end(); ++_iter1185) { - xfer += oprot->writeString(_iter1181->first); - xfer += oprot->writeString(_iter1181->second); + xfer += oprot->writeString(_iter1185->first); + xfer += oprot->writeString(_iter1185->second); } xfer += oprot->writeMapEnd(); } @@ -19089,11 +19089,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 _iter1182; - for (_iter1182 = (*(this->part_vals)).begin(); _iter1182 != (*(this->part_vals)).end(); ++_iter1182) + std::map ::const_iterator _iter1186; + for (_iter1186 = (*(this->part_vals)).begin(); _iter1186 != (*(this->part_vals)).end(); ++_iter1186) { - xfer += oprot->writeString(_iter1182->first); - xfer += oprot->writeString(_iter1182->second); + xfer += oprot->writeString(_iter1186->first); + xfer += oprot->writeString(_iter1186->second); } xfer += oprot->writeMapEnd(); } @@ -19362,17 +19362,17 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri if (ftype == ::apache::thrift::protocol::T_MAP) { { this->part_vals.clear(); - uint32_t _size1183; - ::apache::thrift::protocol::TType _ktype1184; - ::apache::thrift::protocol::TType _vtype1185; - xfer += iprot->readMapBegin(_ktype1184, _vtype1185, _size1183); - uint32_t _i1187; - for (_i1187 = 0; _i1187 < _size1183; ++_i1187) + uint32_t _size1187; + ::apache::thrift::protocol::TType _ktype1188; + ::apache::thrift::protocol::TType _vtype1189; + xfer += iprot->readMapBegin(_ktype1188, _vtype1189, _size1187); + uint32_t _i1191; + for (_i1191 = 0; _i1191 < _size1187; ++_i1191) { - std::string _key1188; - xfer += iprot->readString(_key1188); - std::string& _val1189 = this->part_vals[_key1188]; - xfer += iprot->readString(_val1189); + std::string _key1192; + xfer += iprot->readString(_key1192); + std::string& _val1193 = this->part_vals[_key1192]; + xfer += iprot->readString(_val1193); } xfer += iprot->readMapEnd(); } @@ -19383,9 +19383,9 @@ uint32_t ThriftHiveMetastore_isPartitionMarkedForEvent_args::read(::apache::thri break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1190; - xfer += iprot->readI32(ecast1190); - this->eventType = (PartitionEventType::type)ecast1190; + int32_t ecast1194; + xfer += iprot->readI32(ecast1194); + this->eventType = (PartitionEventType::type)ecast1194; this->__isset.eventType = true; } else { xfer += iprot->skip(ftype); @@ -19419,11 +19419,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 _iter1191; - for (_iter1191 = this->part_vals.begin(); _iter1191 != this->part_vals.end(); ++_iter1191) + std::map ::const_iterator _iter1195; + for (_iter1195 = this->part_vals.begin(); _iter1195 != this->part_vals.end(); ++_iter1195) { - xfer += oprot->writeString(_iter1191->first); - xfer += oprot->writeString(_iter1191->second); + xfer += oprot->writeString(_iter1195->first); + xfer += oprot->writeString(_iter1195->second); } xfer += oprot->writeMapEnd(); } @@ -19459,11 +19459,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 _iter1192; - for (_iter1192 = (*(this->part_vals)).begin(); _iter1192 != (*(this->part_vals)).end(); ++_iter1192) + std::map ::const_iterator _iter1196; + for (_iter1196 = (*(this->part_vals)).begin(); _iter1196 != (*(this->part_vals)).end(); ++_iter1196) { - xfer += oprot->writeString(_iter1192->first); - xfer += oprot->writeString(_iter1192->second); + xfer += oprot->writeString(_iter1196->first); + xfer += oprot->writeString(_iter1196->second); } xfer += oprot->writeMapEnd(); } @@ -20899,14 +20899,14 @@ uint32_t ThriftHiveMetastore_get_indexes_result::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1193; - ::apache::thrift::protocol::TType _etype1196; - xfer += iprot->readListBegin(_etype1196, _size1193); - this->success.resize(_size1193); - uint32_t _i1197; - for (_i1197 = 0; _i1197 < _size1193; ++_i1197) + 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) { - xfer += this->success[_i1197].read(iprot); + xfer += this->success[_i1201].read(iprot); } xfer += iprot->readListEnd(); } @@ -20953,10 +20953,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 _iter1198; - for (_iter1198 = this->success.begin(); _iter1198 != this->success.end(); ++_iter1198) + std::vector ::const_iterator _iter1202; + for (_iter1202 = this->success.begin(); _iter1202 != this->success.end(); ++_iter1202) { - xfer += (*_iter1198).write(oprot); + xfer += (*_iter1202).write(oprot); } xfer += oprot->writeListEnd(); } @@ -21005,14 +21005,14 @@ uint32_t ThriftHiveMetastore_get_indexes_presult::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1199; - ::apache::thrift::protocol::TType _etype1202; - xfer += iprot->readListBegin(_etype1202, _size1199); - (*(this->success)).resize(_size1199); - uint32_t _i1203; - for (_i1203 = 0; _i1203 < _size1199; ++_i1203) + uint32_t _size1203; + ::apache::thrift::protocol::TType _etype1206; + xfer += iprot->readListBegin(_etype1206, _size1203); + (*(this->success)).resize(_size1203); + uint32_t _i1207; + for (_i1207 = 0; _i1207 < _size1203; ++_i1207) { - xfer += (*(this->success))[_i1203].read(iprot); + xfer += (*(this->success))[_i1207].read(iprot); } xfer += iprot->readListEnd(); } @@ -21190,14 +21190,14 @@ uint32_t ThriftHiveMetastore_get_index_names_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1204; - ::apache::thrift::protocol::TType _etype1207; - xfer += iprot->readListBegin(_etype1207, _size1204); - this->success.resize(_size1204); - uint32_t _i1208; - for (_i1208 = 0; _i1208 < _size1204; ++_i1208) + uint32_t _size1208; + ::apache::thrift::protocol::TType _etype1211; + xfer += iprot->readListBegin(_etype1211, _size1208); + this->success.resize(_size1208); + uint32_t _i1212; + for (_i1212 = 0; _i1212 < _size1208; ++_i1212) { - xfer += iprot->readString(this->success[_i1208]); + xfer += iprot->readString(this->success[_i1212]); } xfer += iprot->readListEnd(); } @@ -21236,10 +21236,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 _iter1209; - for (_iter1209 = this->success.begin(); _iter1209 != this->success.end(); ++_iter1209) + std::vector ::const_iterator _iter1213; + for (_iter1213 = this->success.begin(); _iter1213 != this->success.end(); ++_iter1213) { - xfer += oprot->writeString((*_iter1209)); + xfer += oprot->writeString((*_iter1213)); } xfer += oprot->writeListEnd(); } @@ -21284,14 +21284,14 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1210; - ::apache::thrift::protocol::TType _etype1213; - xfer += iprot->readListBegin(_etype1213, _size1210); - (*(this->success)).resize(_size1210); - uint32_t _i1214; - for (_i1214 = 0; _i1214 < _size1210; ++_i1214) + uint32_t _size1214; + ::apache::thrift::protocol::TType _etype1217; + xfer += iprot->readListBegin(_etype1217, _size1214); + (*(this->success)).resize(_size1214); + uint32_t _i1218; + for (_i1218 = 0; _i1218 < _size1214; ++_i1218) { - xfer += iprot->readString((*(this->success))[_i1214]); + xfer += iprot->readString((*(this->success))[_i1218]); } xfer += iprot->readListEnd(); } @@ -21321,11 +21321,11 @@ uint32_t ThriftHiveMetastore_get_index_names_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { +ThriftHiveMetastore_get_primary_keys_args::~ThriftHiveMetastore_get_primary_keys_args() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_primary_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21347,9 +21347,17 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->stats_obj.read(iprot); - this->__isset.stats_obj = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; } else { xfer += iprot->skip(ftype); } @@ -21366,13 +21374,17 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache: return xfer; } -uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_primary_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_args"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->stats_obj.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21381,17 +21393,21 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache } -ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_get_primary_keys_pargs::~ThriftHiveMetastore_get_primary_keys_pargs() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_primary_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_pargs"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->stats_obj)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21400,11 +21416,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apach } -ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { +ThriftHiveMetastore_get_primary_keys_result::~ThriftHiveMetastore_get_primary_keys_result() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_primary_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21426,8 +21442,20 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1219; + ::apache::thrift::protocol::TType _etype1222; + xfer += iprot->readListBegin(_etype1222, _size1219); + this->success.resize(_size1219); + uint32_t _i1223; + for (_i1223 = 0; _i1223 < _size1219; ++_i1223) + { + xfer += this->success[_i1223].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21449,22 +21477,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -21477,15 +21489,23 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apach return xfer; } -uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_primary_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_primary_keys_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter1224; + for (_iter1224 = this->success.begin(); _iter1224 != this->success.end(); ++_iter1224) + { + xfer += (*_iter1224).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21495,14 +21515,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o4) { - xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->o4.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -21510,11 +21522,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apac } -ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { +ThriftHiveMetastore_get_primary_keys_presult::~ThriftHiveMetastore_get_primary_keys_presult() throw() { } -uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_primary_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21536,8 +21548,20 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1225; + ::apache::thrift::protocol::TType _etype1228; + xfer += iprot->readListBegin(_etype1228, _size1225); + (*(this->success)).resize(_size1225); + uint32_t _i1229; + for (_i1229 = 0; _i1229 < _size1225; ++_i1229) + { + xfer += (*(this->success))[_i1229].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21559,22 +21583,6 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -21588,11 +21596,11 @@ uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apac } -ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { +ThriftHiveMetastore_get_foreign_keys_args::~ThriftHiveMetastore_get_foreign_keys_args() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21614,9 +21622,33 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apa switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->stats_obj.read(iprot); - this->__isset.stats_obj = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->parent_db_name); + this->__isset.parent_db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->parent_tbl_name); + this->__isset.parent_tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->foreign_db_name); + this->__isset.foreign_db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->foreign_tbl_name); + this->__isset.foreign_tbl_name = true; } else { xfer += iprot->skip(ftype); } @@ -21633,13 +21665,25 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apa return xfer; } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_args"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->stats_obj.write(oprot); + xfer += oprot->writeFieldBegin("parent_db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->parent_db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("parent_tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->parent_tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_db_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->foreign_db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_tbl_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->foreign_tbl_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21648,17 +21692,29 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::ap } -ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_get_foreign_keys_pargs::~ThriftHiveMetastore_get_foreign_keys_pargs() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_pargs"); - xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->stats_obj)).write(oprot); + xfer += oprot->writeFieldBegin("parent_db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->parent_db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("parent_tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->parent_tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_db_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->foreign_db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("foreign_tbl_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->foreign_tbl_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21667,11 +21723,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::a } -ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { +ThriftHiveMetastore_get_foreign_keys_result::~ThriftHiveMetastore_get_foreign_keys_result() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21693,8 +21749,20 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::a switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1230; + ::apache::thrift::protocol::TType _etype1233; + xfer += iprot->readListBegin(_etype1233, _size1230); + this->success.resize(_size1230); + uint32_t _i1234; + for (_i1234 = 0; _i1234 < _size1230; ++_i1234) + { + xfer += this->success[_i1234].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21716,22 +21784,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::a xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -21744,15 +21796,23 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::a return xfer; } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_foreign_keys_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_foreign_keys_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->success.size())); + std::vector ::const_iterator _iter1235; + for (_iter1235 = this->success.begin(); _iter1235 != this->success.end(); ++_iter1235) + { + xfer += (*_iter1235).write(oprot); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -21762,14 +21822,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(:: xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o4) { - xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->o4.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -21777,11 +21829,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(:: } -ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_get_foreign_keys_presult::~ThriftHiveMetastore_get_foreign_keys_presult() throw() { } -uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_foreign_keys_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21803,8 +21855,20 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1236; + ::apache::thrift::protocol::TType _etype1239; + xfer += iprot->readListBegin(_etype1239, _size1236); + (*(this->success)).resize(_size1236); + uint32_t _i1240; + for (_i1240 = 0; _i1240 < _size1236; ++_i1240) + { + xfer += (*(this->success))[_i1240].read(iprot); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -21826,22 +21890,6 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -21855,11 +21903,11 @@ uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(:: } -ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { +ThriftHiveMetastore_update_table_column_statistics_args::~ThriftHiveMetastore_update_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21881,25 +21929,9 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->col_name); - this->__isset.col_name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->stats_obj.read(iprot); + this->__isset.stats_obj = true; } else { xfer += iprot->skip(ftype); } @@ -21916,21 +21948,13 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::th return xfer; } -uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->stats_obj.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21939,25 +21963,17 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::t } -ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_update_table_column_statistics_pargs::~ThriftHiveMetastore_update_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->stats_obj)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -21966,11 +21982,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache:: } -ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { +ThriftHiveMetastore_update_table_column_statistics_result::~ThriftHiveMetastore_update_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -21992,8 +22008,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22043,15 +22059,15 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache:: return xfer; } -uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_table_column_statistics_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22076,11 +22092,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache: } -ThriftHiveMetastore_get_table_column_statistics_presult::~ThriftHiveMetastore_get_table_column_statistics_presult() throw() { +ThriftHiveMetastore_update_table_column_statistics_presult::~ThriftHiveMetastore_update_table_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22102,8 +22118,8 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22154,11 +22170,11 @@ uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache: } -ThriftHiveMetastore_get_partition_column_statistics_args::~ThriftHiveMetastore_get_partition_column_statistics_args() throw() { +ThriftHiveMetastore_update_partition_column_statistics_args::~ThriftHiveMetastore_update_partition_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22180,33 +22196,9 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->part_name); - this->__isset.part_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->col_name); - this->__isset.col_name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->stats_obj.read(iprot); + this->__isset.stats_obj = true; } else { xfer += iprot->skip(ftype); } @@ -22223,25 +22215,13 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::read(::apache return xfer; } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->part_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->stats_obj.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22250,29 +22230,17 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apach } -ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_update_partition_column_statistics_pargs::~ThriftHiveMetastore_update_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->part_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("stats_obj", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->stats_obj)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22281,11 +22249,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apac } -ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { +ThriftHiveMetastore_update_partition_column_statistics_result::~ThriftHiveMetastore_update_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22307,8 +22275,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apac switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22358,15 +22326,15 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apac return xfer; } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_update_partition_column_statistics_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -22391,11 +22359,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apa } -ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_update_partition_column_statistics_presult::~ThriftHiveMetastore_update_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_update_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22417,8 +22385,8 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apa switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22469,11 +22437,11 @@ uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apa } -ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { +ThriftHiveMetastore_get_table_column_statistics_args::~ThriftHiveMetastore_get_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22495,9 +22463,25 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->request.read(iprot); - this->__isset.request = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_name = true; } else { xfer += iprot->skip(ftype); } @@ -22514,32 +22498,21 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrif return xfer; } -uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_args"); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->request.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldStop(); - xfer += oprot->writeStructEnd(); - return xfer; -} - - -ThriftHiveMetastore_get_table_statistics_req_pargs::~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() { -} - - -uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { - uint32_t xfer = 0; - apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_pargs"); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->request)).write(oprot); + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22548,97 +22521,38 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thr } -ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { +ThriftHiveMetastore_get_table_column_statistics_pargs::~ThriftHiveMetastore_get_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { - - apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); +uint32_t ThriftHiveMetastore_get_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - std::string fname; - ::apache::thrift::protocol::TType ftype; - int16_t fid; - - xfer += iprot->readStructBegin(fname); - - using ::apache::thrift::protocol::TProtocolException; - - - while (true) - { - xfer += iprot->readFieldBegin(fname, ftype, fid); - if (ftype == ::apache::thrift::protocol::T_STOP) { - break; - } - switch (fid) - { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o2.read(iprot); - this->__isset.o2 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } - xfer += iprot->readFieldEnd(); - } - - xfer += iprot->readStructEnd(); - - return xfer; -} + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_pargs"); -uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); - uint32_t xfer = 0; + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_result"); + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldEnd(); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { - xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->o1.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o2) { - xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); - xfer += this->o2.write(oprot); - xfer += oprot->writeFieldEnd(); - } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { +ThriftHiveMetastore_get_table_column_statistics_result::~ThriftHiveMetastore_get_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22661,7 +22575,7 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th { case 0: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -22683,6 +22597,22 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -22695,12 +22625,44 @@ uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::th return xfer; } +uint32_t ThriftHiveMetastore_get_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; -ThriftHiveMetastore_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_column_statistics_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { +ThriftHiveMetastore_get_table_column_statistics_presult::~ThriftHiveMetastore_get_table_column_statistics_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22721,10 +22683,42 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache:: } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->request.read(iprot); - this->__isset.request = true; + 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; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; } else { xfer += iprot->skip(ftype); } @@ -22741,13 +22735,95 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache:: return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + +ThriftHiveMetastore_get_partition_column_statistics_args::~ThriftHiveMetastore_get_partition_column_statistics_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_partition_column_statistics_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->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->part_name); + this->__isset.part_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_args"); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->request.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->part_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22756,17 +22832,29 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache: } -ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { +ThriftHiveMetastore_get_partition_column_statistics_pargs::~ThriftHiveMetastore_get_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->request)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->part_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -22775,11 +22863,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache } -ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { +ThriftHiveMetastore_get_partition_column_statistics_result::~ThriftHiveMetastore_get_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22824,6 +22912,22 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -22836,11 +22940,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache return xfer; } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partition_column_statistics_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -22854,6 +22958,14 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apach xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -22861,11 +22973,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apach } -ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { +ThriftHiveMetastore_get_partition_column_statistics_presult::~ThriftHiveMetastore_get_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22910,6 +23022,22 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apach xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -22923,11 +23051,11 @@ uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apach } -ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { +ThriftHiveMetastore_get_table_statistics_req_args::~ThriftHiveMetastore_get_table_statistics_req_args() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -22968,10 +23096,10 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -22983,14 +23111,14 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::pr } -ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { +ThriftHiveMetastore_get_table_statistics_req_pargs::~ThriftHiveMetastore_get_table_statistics_req_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -23002,11 +23130,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { +ThriftHiveMetastore_get_table_statistics_req_result::~ThriftHiveMetastore_get_table_statistics_req_result() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23063,11 +23191,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_table_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_table_statistics_req_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); @@ -23088,11 +23216,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift:: } -ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { +ThriftHiveMetastore_get_table_statistics_req_presult::~ThriftHiveMetastore_get_table_statistics_req_presult() throw() { } -uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_table_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23150,11 +23278,11 @@ uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift:: } -ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_args::~ThriftHiveMetastore_get_partitions_statistics_req_args() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23195,10 +23323,10 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::pro return xfer; } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_args"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->request.write(oprot); @@ -23210,14 +23338,14 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::pr } -ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_pargs::~ThriftHiveMetastore_get_partitions_statistics_req_pargs() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_pargs"); xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); xfer += (*(this->request)).write(oprot); @@ -23229,11 +23357,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::p } -ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_result::~ThriftHiveMetastore_get_partitions_statistics_req_result() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23255,8 +23383,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23278,22 +23406,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -23306,15 +23418,15 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::p return xfer; } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_partitions_statistics_req_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23324,14 +23436,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o4) { - xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->o4.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -23339,11 +23443,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift:: } -ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { +ThriftHiveMetastore_get_partitions_statistics_req_presult::~ThriftHiveMetastore_get_partitions_statistics_req_presult() throw() { } -uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_partitions_statistics_req_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23365,8 +23469,8 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23388,22 +23492,6 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -23417,11 +23505,11 @@ uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift:: } -ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { +ThriftHiveMetastore_get_aggr_stats_for_args::~ThriftHiveMetastore_get_aggr_stats_for_args() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23443,33 +23531,9 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->part_name); - this->__isset.part_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->col_name); - this->__isset.col_name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -23486,25 +23550,13 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apa return xfer; } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->part_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23513,29 +23565,17 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::ap } -ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { +ThriftHiveMetastore_get_aggr_stats_for_pargs::~ThriftHiveMetastore_get_aggr_stats_for_pargs() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->part_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23544,11 +23584,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::a } -ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { +ThriftHiveMetastore_get_aggr_stats_for_result::~ThriftHiveMetastore_get_aggr_stats_for_result() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23570,8 +23610,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::a switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23593,22 +23633,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::a xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -23621,15 +23645,15 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::a return xfer; } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_aggr_stats_for_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -23639,14 +23663,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(:: xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->o3.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o4) { - xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); - xfer += this->o4.write(oprot); - xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -23654,11 +23670,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(:: } -ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { +ThriftHiveMetastore_get_aggr_stats_for_presult::~ThriftHiveMetastore_get_aggr_stats_for_presult() throw() { } -uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23680,8 +23696,8 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -23703,22 +23719,6 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: xfer += iprot->skip(ftype); } break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o3.read(iprot); - this->__isset.o3 = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 4: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o4.read(iprot); - this->__isset.o4 = true; - } else { - xfer += iprot->skip(ftype); - } - break; default: xfer += iprot->skip(ftype); break; @@ -23732,11 +23732,11 @@ uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(:: } -ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { +ThriftHiveMetastore_set_aggr_stats_for_args::~ThriftHiveMetastore_set_aggr_stats_for_args() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23758,25 +23758,9 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->db_name); - this->__isset.db_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 2: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->tbl_name); - this->__isset.tbl_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->col_name); - this->__isset.col_name = true; + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->request.read(iprot); + this->__isset.request = true; } else { xfer += iprot->skip(ftype); } @@ -23793,21 +23777,13 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache: return xfer; } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->db_name); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->tbl_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_args"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString(this->col_name); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->request.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23816,25 +23792,17 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache } -ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { +ThriftHiveMetastore_set_aggr_stats_for_pargs::~ThriftHiveMetastore_set_aggr_stats_for_pargs() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs"); - - xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->db_name))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->tbl_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_pargs"); - xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); - xfer += oprot->writeString((*(this->col_name))); + xfer += oprot->writeFieldBegin("request", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->request)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -23843,11 +23811,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apach } -ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { +ThriftHiveMetastore_set_aggr_stats_for_result::~ThriftHiveMetastore_set_aggr_stats_for_result() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -23920,11 +23888,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apach return xfer; } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_set_aggr_stats_for_result"); if (this->__isset.success) { xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); @@ -23953,11 +23921,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apac } -ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { +ThriftHiveMetastore_set_aggr_stats_for_presult::~ThriftHiveMetastore_set_aggr_stats_for_presult() throw() { } -uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_set_aggr_stats_for_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24031,11 +23999,11 @@ uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apac } -ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_args::~ThriftHiveMetastore_delete_partition_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24057,9 +24025,33 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->func.read(iprot); - this->__isset.func = true; + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->part_name); + this->__isset.part_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_name = true; } else { xfer += iprot->skip(ftype); } @@ -24076,13 +24068,25 @@ uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_args"); - xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->func.write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->part_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24091,17 +24095,29 @@ uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::proto } -ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_pargs::~ThriftHiveMetastore_delete_partition_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->func)).write(oprot); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("part_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->part_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24110,11 +24126,11 @@ uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::prot } -ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_result::~ThriftHiveMetastore_delete_partition_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24135,6 +24151,14 @@ uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::prot } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -24179,13 +24203,17 @@ uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_partition_column_statistics_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -24208,11 +24236,11 @@ uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::pro } -ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { +ThriftHiveMetastore_delete_partition_column_statistics_presult::~ThriftHiveMetastore_delete_partition_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_partition_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24233,6 +24261,14 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -24278,11 +24314,11 @@ uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::pro } -ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { +ThriftHiveMetastore_delete_table_column_statistics_args::~ThriftHiveMetastore_delete_table_column_statistics_args() throw() { } -uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24305,16 +24341,24 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol { case 1: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->dbName); - this->__isset.dbName = true; + xfer += iprot->readString(this->db_name); + this->__isset.db_name = true; } else { xfer += iprot->skip(ftype); } break; case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->funcName); - this->__isset.funcName = true; + xfer += iprot->readString(this->tbl_name); + this->__isset.tbl_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->col_name); + this->__isset.col_name = true; } else { xfer += iprot->skip(ftype); } @@ -24331,17 +24375,21 @@ uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_args"); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->db_name); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->funcName); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->tbl_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->col_name); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24350,21 +24398,25 @@ uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protoco } -ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { +ThriftHiveMetastore_delete_table_column_statistics_pargs::~ThriftHiveMetastore_delete_table_column_statistics_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_pargs"); - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbName))); + xfer += oprot->writeFieldBegin("db_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->db_name))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->funcName))); + xfer += oprot->writeFieldBegin("tbl_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->tbl_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("col_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString((*(this->col_name))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24373,11 +24425,11 @@ uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protoc } -ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { +ThriftHiveMetastore_delete_table_column_statistics_result::~ThriftHiveMetastore_delete_table_column_statistics_result() throw() { } -uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24398,6 +24450,14 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -24408,12 +24468,28 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o3.read(iprot); this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -24426,20 +24502,32 @@ uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_delete_table_column_statistics_result"); - if (this->__isset.o1) { + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); } else if (this->__isset.o3) { - xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); xfer += this->o3.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -24447,11 +24535,11 @@ uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::proto } -ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { +ThriftHiveMetastore_delete_table_column_statistics_presult::~ThriftHiveMetastore_delete_table_column_statistics_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_delete_table_column_statistics_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24472,6 +24560,14 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto } switch (fid) { + case 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -24482,12 +24578,28 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto break; case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o2.read(iprot); + this->__isset.o2 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o3.read(iprot); this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -24501,11 +24613,11 @@ uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::proto } -ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { +ThriftHiveMetastore_create_function_args::~ThriftHiveMetastore_create_function_args() throw() { } -uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24527,25 +24639,9 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco 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->funcName); - this->__isset.funcName = true; - } else { - xfer += iprot->skip(ftype); - } - break; - case 3: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->newFunc.read(iprot); - this->__isset.newFunc = true; + xfer += this->func.read(iprot); + this->__isset.func = true; } else { xfer += iprot->skip(ftype); } @@ -24562,21 +24658,13 @@ uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->dbName); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->funcName); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_args"); - xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += this->newFunc.write(oprot); + xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->func.write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24585,25 +24673,17 @@ uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { +ThriftHiveMetastore_create_function_pargs::~ThriftHiveMetastore_create_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); - - xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->dbName))); - xfer += oprot->writeFieldEnd(); - - xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->funcName))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_pargs"); - xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); - xfer += (*(this->newFunc)).write(oprot); + xfer += oprot->writeFieldBegin("func", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->func)).write(oprot); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24612,11 +24692,11 @@ uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::proto } -ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { +ThriftHiveMetastore_create_function_result::~ThriftHiveMetastore_create_function_result() throw() { } -uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24653,6 +24733,22 @@ uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::proto xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -24665,11 +24761,11 @@ uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_function_result"); if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -24679,6 +24775,14 @@ uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::prot xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); xfer += this->o2.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o4) { + xfer += oprot->writeFieldBegin("o4", ::apache::thrift::protocol::T_STRUCT, 4); + xfer += this->o4.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -24686,11 +24790,11 @@ uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::prot } -ThriftHiveMetastore_alter_function_presult::~ThriftHiveMetastore_alter_function_presult() throw() { +ThriftHiveMetastore_create_function_presult::~ThriftHiveMetastore_create_function_presult() throw() { } -uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24727,6 +24831,22 @@ uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::prot xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o3.read(iprot); + this->__isset.o3 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o4.read(iprot); + this->__isset.o4 = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -24740,11 +24860,11 @@ uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::prot } -ThriftHiveMetastore_get_functions_args::~ThriftHiveMetastore_get_functions_args() throw() { +ThriftHiveMetastore_drop_function_args::~ThriftHiveMetastore_drop_function_args() throw() { } -uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24775,8 +24895,8 @@ uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol break; case 2: if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->pattern); - this->__isset.pattern = true; + xfer += iprot->readString(this->funcName); + this->__isset.funcName = true; } else { xfer += iprot->skip(ftype); } @@ -24793,17 +24913,17 @@ uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbName); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString(this->pattern); + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->funcName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24812,21 +24932,21 @@ uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protoco } -ThriftHiveMetastore_get_functions_pargs::~ThriftHiveMetastore_get_functions_pargs() throw() { +ThriftHiveMetastore_drop_function_pargs::~ThriftHiveMetastore_drop_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->dbName))); xfer += oprot->writeFieldEnd(); - xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); - xfer += oprot->writeString((*(this->pattern))); + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->funcName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -24835,11 +24955,11 @@ uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_functions_result::~ThriftHiveMetastore_get_functions_result() throw() { +ThriftHiveMetastore_drop_function_result::~ThriftHiveMetastore_drop_function_result() throw() { } -uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24860,30 +24980,18 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size1215; - ::apache::thrift::protocol::TType _etype1218; - xfer += iprot->readListBegin(_etype1218, _size1215); - this->success.resize(_size1215); - uint32_t _i1219; - for (_i1219 = 0; _i1219 < _size1215; ++_i1219) - { - xfer += iprot->readString(this->success[_i1219]); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; } else { xfer += iprot->skip(ftype); } break; - case 1: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; + xfer += this->o3.read(iprot); + this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } @@ -24900,28 +25008,20 @@ uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protoc return xfer; } -uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_drop_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_function_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1220; - for (_iter1220 = this->success.begin(); _iter1220 != this->success.end(); ++_iter1220) - { - xfer += oprot->writeString((*_iter1220)); - } - xfer += oprot->writeListEnd(); - } - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { + if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o3) { + xfer += oprot->writeFieldBegin("o3", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o3.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -24929,11 +25029,11 @@ uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::proto } -ThriftHiveMetastore_get_functions_presult::~ThriftHiveMetastore_get_functions_presult() throw() { +ThriftHiveMetastore_drop_function_presult::~ThriftHiveMetastore_drop_function_presult() throw() { } -uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_drop_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -24954,30 +25054,18 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - (*(this->success)).clear(); - uint32_t _size1221; - ::apache::thrift::protocol::TType _etype1224; - xfer += iprot->readListBegin(_etype1224, _size1221); - (*(this->success)).resize(_size1221); - uint32_t _i1225; - for (_i1225 = 0; _i1225 < _size1221; ++_i1225) - { - xfer += iprot->readString((*(this->success))[_i1225]); - } - xfer += iprot->readListEnd(); - } - this->__isset.success = true; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; } else { xfer += iprot->skip(ftype); } break; - case 1: + case 2: if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->o1.read(iprot); - this->__isset.o1 = true; + xfer += this->o3.read(iprot); + this->__isset.o3 = true; } else { xfer += iprot->skip(ftype); } @@ -24995,11 +25083,11 @@ uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::proto } -ThriftHiveMetastore_get_function_args::~ThriftHiveMetastore_get_function_args() throw() { +ThriftHiveMetastore_alter_function_args::~ThriftHiveMetastore_alter_function_args() throw() { } -uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_alter_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25036,6 +25124,14 @@ uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol: xfer += iprot->skip(ftype); } break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->newFunc.read(iprot); + this->__isset.newFunc = true; + } else { + xfer += iprot->skip(ftype); + } + break; default: xfer += iprot->skip(ftype); break; @@ -25048,10 +25144,10 @@ uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol: return xfer; } -uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_alter_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_args"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString(this->dbName); @@ -25061,20 +25157,24 @@ uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol xfer += oprot->writeString(this->funcName); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += this->newFunc.write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_get_function_pargs::~ThriftHiveMetastore_get_function_pargs() throw() { +ThriftHiveMetastore_alter_function_pargs::~ThriftHiveMetastore_alter_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_alter_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_pargs"); xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); xfer += oprot->writeString((*(this->dbName))); @@ -25084,17 +25184,21 @@ uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protoco xfer += oprot->writeString((*(this->funcName))); xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldBegin("newFunc", ::apache::thrift::protocol::T_STRUCT, 3); + xfer += (*(this->newFunc)).write(oprot); + xfer += oprot->writeFieldEnd(); + xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); return xfer; } -ThriftHiveMetastore_get_function_result::~ThriftHiveMetastore_get_function_result() throw() { +ThriftHiveMetastore_alter_function_result::~ThriftHiveMetastore_alter_function_result() throw() { } -uint32_t ThriftHiveMetastore_get_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_alter_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25115,14 +25219,6 @@ uint32_t ThriftHiveMetastore_get_function_result::read(::apache::thrift::protoco } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -25151,17 +25247,13 @@ uint32_t ThriftHiveMetastore_get_function_result::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_get_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_alter_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_alter_function_result"); - if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); - xfer += oprot->writeFieldEnd(); - } else if (this->__isset.o1) { + if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); @@ -25176,11 +25268,11 @@ uint32_t ThriftHiveMetastore_get_function_result::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_function_presult::~ThriftHiveMetastore_get_function_presult() throw() { +ThriftHiveMetastore_alter_function_presult::~ThriftHiveMetastore_alter_function_presult() throw() { } -uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_alter_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25201,14 +25293,6 @@ uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protoc } switch (fid) { - case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); - this->__isset.success = true; - } else { - xfer += iprot->skip(ftype); - } - break; case 1: if (ftype == ::apache::thrift::protocol::T_STRUCT) { xfer += this->o1.read(iprot); @@ -25238,11 +25322,11 @@ uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protoc } -ThriftHiveMetastore_get_all_functions_args::~ThriftHiveMetastore_get_all_functions_args() throw() { +ThriftHiveMetastore_get_functions_args::~ThriftHiveMetastore_get_functions_args() throw() { } -uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25261,7 +25345,28 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + 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->pattern); + this->__isset.pattern = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -25270,10 +25375,18 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::prot return xfer; } -uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_args"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->pattern); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25281,14 +25394,22 @@ uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::pro } -ThriftHiveMetastore_get_all_functions_pargs::~ThriftHiveMetastore_get_all_functions_pargs() throw() { +ThriftHiveMetastore_get_functions_pargs::~ThriftHiveMetastore_get_functions_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_pargs"); + + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pattern", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->pattern))); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25296,11 +25417,11 @@ uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::pr } -ThriftHiveMetastore_get_all_functions_result::~ThriftHiveMetastore_get_all_functions_result() throw() { +ThriftHiveMetastore_get_functions_result::~ThriftHiveMetastore_get_functions_result() throw() { } -uint32_t ThriftHiveMetastore_get_all_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25322,8 +25443,20 @@ uint32_t ThriftHiveMetastore_get_all_functions_result::read(::apache::thrift::pr switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->success.read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1241; + ::apache::thrift::protocol::TType _etype1244; + xfer += iprot->readListBegin(_etype1244, _size1241); + this->success.resize(_size1241); + uint32_t _i1245; + for (_i1245 = 0; _i1245 < _size1241; ++_i1245) + { + xfer += iprot->readString(this->success[_i1245]); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25349,15 +25482,23 @@ uint32_t ThriftHiveMetastore_get_all_functions_result::read(::apache::thrift::pr return xfer; } -uint32_t ThriftHiveMetastore_get_all_functions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_functions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_functions_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); - xfer += this->success.write(oprot); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter1246; + for (_iter1246 = this->success.begin(); _iter1246 != this->success.end(); ++_iter1246) + { + xfer += oprot->writeString((*_iter1246)); + } + xfer += oprot->writeListEnd(); + } xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25370,11 +25511,11 @@ uint32_t ThriftHiveMetastore_get_all_functions_result::write(::apache::thrift::p } -ThriftHiveMetastore_get_all_functions_presult::~ThriftHiveMetastore_get_all_functions_presult() throw() { +ThriftHiveMetastore_get_functions_presult::~ThriftHiveMetastore_get_functions_presult() throw() { } -uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25396,8 +25537,20 @@ uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::p switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += (*(this->success)).read(iprot); + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + (*(this->success)).clear(); + uint32_t _size1247; + ::apache::thrift::protocol::TType _etype1250; + xfer += iprot->readListBegin(_etype1250, _size1247); + (*(this->success)).resize(_size1247); + uint32_t _i1251; + for (_i1251 = 0; _i1251 < _size1247; ++_i1251) + { + xfer += iprot->readString((*(this->success))[_i1251]); + } + xfer += iprot->readListEnd(); + } this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25424,11 +25577,11 @@ uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::p } -ThriftHiveMetastore_create_role_args::~ThriftHiveMetastore_create_role_args() throw() { +ThriftHiveMetastore_get_function_args::~ThriftHiveMetastore_get_function_args() throw() { } -uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_function_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25450,9 +25603,17 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol:: switch (fid) { case 1: - if (ftype == ::apache::thrift::protocol::T_STRUCT) { - xfer += this->role.read(iprot); - this->__isset.role = true; + 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->funcName); + this->__isset.funcName = true; } else { xfer += iprot->skip(ftype); } @@ -25469,13 +25630,17 @@ uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_function_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_args"); - xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += this->role.write(oprot); + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->dbName); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->funcName); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25484,17 +25649,21 @@ uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol: } -ThriftHiveMetastore_create_role_pargs::~ThriftHiveMetastore_create_role_pargs() throw() { +ThriftHiveMetastore_get_function_pargs::~ThriftHiveMetastore_get_function_pargs() throw() { } -uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_function_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_pargs"); - xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); - xfer += (*(this->role)).write(oprot); + xfer += oprot->writeFieldBegin("dbName", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->dbName))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("funcName", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString((*(this->funcName))); xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); @@ -25503,11 +25672,11 @@ uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol } -ThriftHiveMetastore_create_role_result::~ThriftHiveMetastore_create_role_result() throw() { +ThriftHiveMetastore_get_function_result::~ThriftHiveMetastore_get_function_result() throw() { } -uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_function_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25529,8 +25698,8 @@ uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25544,6 +25713,14 @@ uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol 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; @@ -25556,20 +25733,24 @@ uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol return xfer; } -uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_function_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_function_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); xfer += this->o1.write(oprot); xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o2) { + xfer += oprot->writeFieldBegin("o2", ::apache::thrift::protocol::T_STRUCT, 2); + xfer += this->o2.write(oprot); + xfer += oprot->writeFieldEnd(); } xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25577,11 +25758,11 @@ uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protoco } -ThriftHiveMetastore_create_role_presult::~ThriftHiveMetastore_create_role_presult() throw() { +ThriftHiveMetastore_get_function_presult::~ThriftHiveMetastore_get_function_presult() throw() { } -uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_function_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25603,8 +25784,8 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25618,6 +25799,14 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco 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; @@ -25631,11 +25820,11 @@ uint32_t ThriftHiveMetastore_create_role_presult::read(::apache::thrift::protoco } -ThriftHiveMetastore_drop_role_args::~ThriftHiveMetastore_drop_role_args() throw() { +ThriftHiveMetastore_get_all_functions_args::~ThriftHiveMetastore_get_all_functions_args() throw() { } -uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_all_functions_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25654,20 +25843,7 @@ uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - switch (fid) - { - case 1: - if (ftype == ::apache::thrift::protocol::T_STRING) { - xfer += iprot->readString(this->role_name); - this->__isset.role_name = true; - } else { - xfer += iprot->skip(ftype); - } - break; - default: - xfer += iprot->skip(ftype); - break; - } + xfer += iprot->skip(ftype); xfer += iprot->readFieldEnd(); } @@ -25676,14 +25852,10 @@ uint32_t ThriftHiveMetastore_drop_role_args::read(::apache::thrift::protocol::TP return xfer; } -uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_all_functions_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args"); - - xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString(this->role_name); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_args"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25691,18 +25863,14 @@ uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::T } -ThriftHiveMetastore_drop_role_pargs::~ThriftHiveMetastore_drop_role_pargs() throw() { +ThriftHiveMetastore_get_all_functions_pargs::~ThriftHiveMetastore_get_all_functions_pargs() throw() { } -uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_all_functions_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs"); - - xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); - xfer += oprot->writeString((*(this->role_name))); - xfer += oprot->writeFieldEnd(); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_pargs"); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25710,11 +25878,11 @@ uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol:: } -ThriftHiveMetastore_drop_role_result::~ThriftHiveMetastore_drop_role_result() throw() { +ThriftHiveMetastore_get_all_functions_result::~ThriftHiveMetastore_get_all_functions_result() throw() { } -uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_all_functions_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25736,8 +25904,8 @@ uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol:: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool(this->success); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->success.read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25763,15 +25931,15 @@ uint32_t ThriftHiveMetastore_drop_role_result::read(::apache::thrift::protocol:: return xfer; } -uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_get_all_functions_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_all_functions_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); - xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_STRUCT, 0); + xfer += this->success.write(oprot); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25784,11 +25952,11 @@ uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol: } -ThriftHiveMetastore_drop_role_presult::~ThriftHiveMetastore_drop_role_presult() throw() { +ThriftHiveMetastore_get_all_functions_presult::~ThriftHiveMetastore_get_all_functions_presult() throw() { } -uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_get_all_functions_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25810,8 +25978,8 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol: switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_BOOL) { - xfer += iprot->readBool((*(this->success))); + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += (*(this->success)).read(iprot); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25838,11 +26006,11 @@ uint32_t ThriftHiveMetastore_drop_role_presult::read(::apache::thrift::protocol: } -ThriftHiveMetastore_get_role_names_args::~ThriftHiveMetastore_get_role_names_args() throw() { +ThriftHiveMetastore_create_role_args::~ThriftHiveMetastore_create_role_args() throw() { } -uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_role_args::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25861,7 +26029,20 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco if (ftype == ::apache::thrift::protocol::T_STOP) { break; } - xfer += iprot->skip(ftype); + switch (fid) + { + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->role.read(iprot); + this->__isset.role = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } xfer += iprot->readFieldEnd(); } @@ -25870,10 +26051,14 @@ uint32_t ThriftHiveMetastore_get_role_names_args::read(::apache::thrift::protoco return xfer; } -uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_args"); + + xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->role.write(oprot); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25881,14 +26066,18 @@ uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protoc } -ThriftHiveMetastore_get_role_names_pargs::~ThriftHiveMetastore_get_role_names_pargs() throw() { +ThriftHiveMetastore_create_role_pargs::~ThriftHiveMetastore_create_role_pargs() throw() { } -uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_pargs"); + + xfer += oprot->writeFieldBegin("role", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += (*(this->role)).write(oprot); + xfer += oprot->writeFieldEnd(); xfer += oprot->writeFieldStop(); xfer += oprot->writeStructEnd(); @@ -25896,11 +26085,11 @@ uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::proto } -ThriftHiveMetastore_get_role_names_result::~ThriftHiveMetastore_get_role_names_result() throw() { +ThriftHiveMetastore_create_role_result::~ThriftHiveMetastore_create_role_result() throw() { } -uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_role_result::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -25922,20 +26111,8 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto switch (fid) { case 0: - if (ftype == ::apache::thrift::protocol::T_LIST) { - { - this->success.clear(); - uint32_t _size1226; - ::apache::thrift::protocol::TType _etype1229; - xfer += iprot->readListBegin(_etype1229, _size1226); - this->success.resize(_size1226); - uint32_t _i1230; - for (_i1230 = 0; _i1230 < _size1226; ++_i1230) - { - xfer += iprot->readString(this->success[_i1230]); - } - xfer += iprot->readListEnd(); - } + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); this->__isset.success = true; } else { xfer += iprot->skip(ftype); @@ -25961,23 +26138,15 @@ uint32_t ThriftHiveMetastore_get_role_names_result::read(::apache::thrift::proto return xfer; } -uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const { +uint32_t ThriftHiveMetastore_create_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { uint32_t xfer = 0; - xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_result"); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_create_role_result"); if (this->__isset.success) { - xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); - { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); - std::vector ::const_iterator _iter1231; - for (_iter1231 = this->success.begin(); _iter1231 != this->success.end(); ++_iter1231) - { - xfer += oprot->writeString((*_iter1231)); - } - xfer += oprot->writeListEnd(); - } + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); xfer += oprot->writeFieldEnd(); } else if (this->__isset.o1) { xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); @@ -25990,11 +26159,424 @@ uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::prot } -ThriftHiveMetastore_get_role_names_presult::~ThriftHiveMetastore_get_role_names_presult() throw() { +ThriftHiveMetastore_create_role_presult::~ThriftHiveMetastore_create_role_presult() throw() { } -uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { +uint32_t ThriftHiveMetastore_create_role_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 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_drop_role_args::~ThriftHiveMetastore_drop_role_args() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_role_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->role_name); + this->__isset.role_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_role_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_args"); + + xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->role_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_role_pargs::~ThriftHiveMetastore_drop_role_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_role_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_pargs"); + + xfer += oprot->writeFieldBegin("role_name", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString((*(this->role_name))); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_role_result::~ThriftHiveMetastore_drop_role_result() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_role_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 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool(this->success); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_drop_role_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_drop_role_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_BOOL, 0); + xfer += oprot->writeBool(this->success); + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_drop_role_presult::~ThriftHiveMetastore_drop_role_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_drop_role_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 0: + if (ftype == ::apache::thrift::protocol::T_BOOL) { + xfer += iprot->readBool((*(this->success))); + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + + +ThriftHiveMetastore_get_role_names_args::~ThriftHiveMetastore_get_role_names_args() throw() { +} + + +uint32_t ThriftHiveMetastore_get_role_names_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; + } + xfer += iprot->skip(ftype); + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_role_names_args::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_args"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_role_names_pargs::~ThriftHiveMetastore_get_role_names_pargs() throw() { +} + + +uint32_t ThriftHiveMetastore_get_role_names_pargs::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_pargs"); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_role_names_result::~ThriftHiveMetastore_get_role_names_result() throw() { +} + + +uint32_t ThriftHiveMetastore_get_role_names_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 0: + if (ftype == ::apache::thrift::protocol::T_LIST) { + { + this->success.clear(); + uint32_t _size1252; + ::apache::thrift::protocol::TType _etype1255; + xfer += iprot->readListBegin(_etype1255, _size1252); + this->success.resize(_size1252); + uint32_t _i1256; + for (_i1256 = 0; _i1256 < _size1252; ++_i1256) + { + xfer += iprot->readString(this->success[_i1256]); + } + xfer += iprot->readListEnd(); + } + this->__isset.success = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 1: + if (ftype == ::apache::thrift::protocol::T_STRUCT) { + xfer += this->o1.read(iprot); + this->__isset.o1 = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t ThriftHiveMetastore_get_role_names_result::write(::apache::thrift::protocol::TProtocol* oprot) const { + + uint32_t xfer = 0; + + xfer += oprot->writeStructBegin("ThriftHiveMetastore_get_role_names_result"); + + if (this->__isset.success) { + xfer += oprot->writeFieldBegin("success", ::apache::thrift::protocol::T_LIST, 0); + { + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->success.size())); + std::vector ::const_iterator _iter1257; + for (_iter1257 = this->success.begin(); _iter1257 != this->success.end(); ++_iter1257) + { + xfer += oprot->writeString((*_iter1257)); + } + xfer += oprot->writeListEnd(); + } + xfer += oprot->writeFieldEnd(); + } else if (this->__isset.o1) { + xfer += oprot->writeFieldBegin("o1", ::apache::thrift::protocol::T_STRUCT, 1); + xfer += this->o1.write(oprot); + xfer += oprot->writeFieldEnd(); + } + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + + +ThriftHiveMetastore_get_role_names_presult::~ThriftHiveMetastore_get_role_names_presult() throw() { +} + + +uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::protocol::TProtocol* iprot) { apache::thrift::protocol::TInputRecursionTracker tracker(*iprot); uint32_t xfer = 0; @@ -26019,14 +26601,14 @@ uint32_t ThriftHiveMetastore_get_role_names_presult::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1232; - ::apache::thrift::protocol::TType _etype1235; - xfer += iprot->readListBegin(_etype1235, _size1232); - (*(this->success)).resize(_size1232); - uint32_t _i1236; - for (_i1236 = 0; _i1236 < _size1232; ++_i1236) + uint32_t _size1258; + ::apache::thrift::protocol::TType _etype1261; + xfer += iprot->readListBegin(_etype1261, _size1258); + (*(this->success)).resize(_size1258); + uint32_t _i1262; + for (_i1262 = 0; _i1262 < _size1258; ++_i1262) { - xfer += iprot->readString((*(this->success))[_i1236]); + xfer += iprot->readString((*(this->success))[_i1262]); } xfer += iprot->readListEnd(); } @@ -26099,9 +26681,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1237; - xfer += iprot->readI32(ecast1237); - this->principal_type = (PrincipalType::type)ecast1237; + int32_t ecast1263; + xfer += iprot->readI32(ecast1263); + this->principal_type = (PrincipalType::type)ecast1263; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26117,9 +26699,9 @@ uint32_t ThriftHiveMetastore_grant_role_args::read(::apache::thrift::protocol::T break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1238; - xfer += iprot->readI32(ecast1238); - this->grantorType = (PrincipalType::type)ecast1238; + int32_t ecast1264; + xfer += iprot->readI32(ecast1264); + this->grantorType = (PrincipalType::type)ecast1264; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -26390,9 +26972,9 @@ uint32_t ThriftHiveMetastore_revoke_role_args::read(::apache::thrift::protocol:: break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1239; - xfer += iprot->readI32(ecast1239); - this->principal_type = (PrincipalType::type)ecast1239; + int32_t ecast1265; + xfer += iprot->readI32(ecast1265); + this->principal_type = (PrincipalType::type)ecast1265; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26623,9 +27205,9 @@ uint32_t ThriftHiveMetastore_list_roles_args::read(::apache::thrift::protocol::T break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1240; - xfer += iprot->readI32(ecast1240); - this->principal_type = (PrincipalType::type)ecast1240; + int32_t ecast1266; + xfer += iprot->readI32(ecast1266); + this->principal_type = (PrincipalType::type)ecast1266; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -26714,14 +27296,14 @@ uint32_t ThriftHiveMetastore_list_roles_result::read(::apache::thrift::protocol: if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1241; - ::apache::thrift::protocol::TType _etype1244; - xfer += iprot->readListBegin(_etype1244, _size1241); - this->success.resize(_size1241); - uint32_t _i1245; - for (_i1245 = 0; _i1245 < _size1241; ++_i1245) + uint32_t _size1267; + ::apache::thrift::protocol::TType _etype1270; + xfer += iprot->readListBegin(_etype1270, _size1267); + this->success.resize(_size1267); + uint32_t _i1271; + for (_i1271 = 0; _i1271 < _size1267; ++_i1271) { - xfer += this->success[_i1245].read(iprot); + xfer += this->success[_i1271].read(iprot); } xfer += iprot->readListEnd(); } @@ -26760,10 +27342,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 _iter1246; - for (_iter1246 = this->success.begin(); _iter1246 != this->success.end(); ++_iter1246) + std::vector ::const_iterator _iter1272; + for (_iter1272 = this->success.begin(); _iter1272 != this->success.end(); ++_iter1272) { - xfer += (*_iter1246).write(oprot); + xfer += (*_iter1272).write(oprot); } xfer += oprot->writeListEnd(); } @@ -26808,14 +27390,14 @@ uint32_t ThriftHiveMetastore_list_roles_presult::read(::apache::thrift::protocol if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1247; - ::apache::thrift::protocol::TType _etype1250; - xfer += iprot->readListBegin(_etype1250, _size1247); - (*(this->success)).resize(_size1247); - uint32_t _i1251; - for (_i1251 = 0; _i1251 < _size1247; ++_i1251) + uint32_t _size1273; + ::apache::thrift::protocol::TType _etype1276; + xfer += iprot->readListBegin(_etype1276, _size1273); + (*(this->success)).resize(_size1273); + uint32_t _i1277; + for (_i1277 = 0; _i1277 < _size1273; ++_i1277) { - xfer += (*(this->success))[_i1251].read(iprot); + xfer += (*(this->success))[_i1277].read(iprot); } xfer += iprot->readListEnd(); } @@ -27511,14 +28093,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 _size1252; - ::apache::thrift::protocol::TType _etype1255; - xfer += iprot->readListBegin(_etype1255, _size1252); - this->group_names.resize(_size1252); - uint32_t _i1256; - for (_i1256 = 0; _i1256 < _size1252; ++_i1256) + uint32_t _size1278; + ::apache::thrift::protocol::TType _etype1281; + xfer += iprot->readListBegin(_etype1281, _size1278); + this->group_names.resize(_size1278); + uint32_t _i1282; + for (_i1282 = 0; _i1282 < _size1278; ++_i1282) { - xfer += iprot->readString(this->group_names[_i1256]); + xfer += iprot->readString(this->group_names[_i1282]); } xfer += iprot->readListEnd(); } @@ -27555,10 +28137,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 _iter1257; - for (_iter1257 = this->group_names.begin(); _iter1257 != this->group_names.end(); ++_iter1257) + std::vector ::const_iterator _iter1283; + for (_iter1283 = this->group_names.begin(); _iter1283 != this->group_names.end(); ++_iter1283) { - xfer += oprot->writeString((*_iter1257)); + xfer += oprot->writeString((*_iter1283)); } xfer += oprot->writeListEnd(); } @@ -27590,10 +28172,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 _iter1258; - for (_iter1258 = (*(this->group_names)).begin(); _iter1258 != (*(this->group_names)).end(); ++_iter1258) + std::vector ::const_iterator _iter1284; + for (_iter1284 = (*(this->group_names)).begin(); _iter1284 != (*(this->group_names)).end(); ++_iter1284) { - xfer += oprot->writeString((*_iter1258)); + xfer += oprot->writeString((*_iter1284)); } xfer += oprot->writeListEnd(); } @@ -27768,9 +28350,9 @@ uint32_t ThriftHiveMetastore_list_privileges_args::read(::apache::thrift::protoc break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast1259; - xfer += iprot->readI32(ecast1259); - this->principal_type = (PrincipalType::type)ecast1259; + int32_t ecast1285; + xfer += iprot->readI32(ecast1285); + this->principal_type = (PrincipalType::type)ecast1285; this->__isset.principal_type = true; } else { xfer += iprot->skip(ftype); @@ -27875,14 +28457,14 @@ uint32_t ThriftHiveMetastore_list_privileges_result::read(::apache::thrift::prot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1260; - ::apache::thrift::protocol::TType _etype1263; - xfer += iprot->readListBegin(_etype1263, _size1260); - this->success.resize(_size1260); - uint32_t _i1264; - for (_i1264 = 0; _i1264 < _size1260; ++_i1264) + 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 += this->success[_i1264].read(iprot); + xfer += this->success[_i1290].read(iprot); } xfer += iprot->readListEnd(); } @@ -27921,10 +28503,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 _iter1265; - for (_iter1265 = this->success.begin(); _iter1265 != this->success.end(); ++_iter1265) + std::vector ::const_iterator _iter1291; + for (_iter1291 = this->success.begin(); _iter1291 != this->success.end(); ++_iter1291) { - xfer += (*_iter1265).write(oprot); + xfer += (*_iter1291).write(oprot); } xfer += oprot->writeListEnd(); } @@ -27969,14 +28551,14 @@ uint32_t ThriftHiveMetastore_list_privileges_presult::read(::apache::thrift::pro if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1266; - ::apache::thrift::protocol::TType _etype1269; - xfer += iprot->readListBegin(_etype1269, _size1266); - (*(this->success)).resize(_size1266); - uint32_t _i1270; - for (_i1270 = 0; _i1270 < _size1266; ++_i1270) + 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 += (*(this->success))[_i1270].read(iprot); + xfer += (*(this->success))[_i1296].read(iprot); } xfer += iprot->readListEnd(); } @@ -28664,14 +29246,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 _size1271; - ::apache::thrift::protocol::TType _etype1274; - xfer += iprot->readListBegin(_etype1274, _size1271); - this->group_names.resize(_size1271); - uint32_t _i1275; - for (_i1275 = 0; _i1275 < _size1271; ++_i1275) + uint32_t _size1297; + ::apache::thrift::protocol::TType _etype1300; + xfer += iprot->readListBegin(_etype1300, _size1297); + this->group_names.resize(_size1297); + uint32_t _i1301; + for (_i1301 = 0; _i1301 < _size1297; ++_i1301) { - xfer += iprot->readString(this->group_names[_i1275]); + xfer += iprot->readString(this->group_names[_i1301]); } xfer += iprot->readListEnd(); } @@ -28704,10 +29286,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 _iter1276; - for (_iter1276 = this->group_names.begin(); _iter1276 != this->group_names.end(); ++_iter1276) + std::vector ::const_iterator _iter1302; + for (_iter1302 = this->group_names.begin(); _iter1302 != this->group_names.end(); ++_iter1302) { - xfer += oprot->writeString((*_iter1276)); + xfer += oprot->writeString((*_iter1302)); } xfer += oprot->writeListEnd(); } @@ -28735,10 +29317,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 _iter1277; - for (_iter1277 = (*(this->group_names)).begin(); _iter1277 != (*(this->group_names)).end(); ++_iter1277) + std::vector ::const_iterator _iter1303; + for (_iter1303 = (*(this->group_names)).begin(); _iter1303 != (*(this->group_names)).end(); ++_iter1303) { - xfer += oprot->writeString((*_iter1277)); + xfer += oprot->writeString((*_iter1303)); } xfer += oprot->writeListEnd(); } @@ -28779,14 +29361,14 @@ uint32_t ThriftHiveMetastore_set_ugi_result::read(::apache::thrift::protocol::TP if (ftype == ::apache::thrift::protocol::T_LIST) { { this->success.clear(); - uint32_t _size1278; - ::apache::thrift::protocol::TType _etype1281; - xfer += iprot->readListBegin(_etype1281, _size1278); - this->success.resize(_size1278); - uint32_t _i1282; - for (_i1282 = 0; _i1282 < _size1278; ++_i1282) + 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) { - xfer += iprot->readString(this->success[_i1282]); + xfer += iprot->readString(this->success[_i1308]); } xfer += iprot->readListEnd(); } @@ -28825,10 +29407,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 _iter1283; - for (_iter1283 = this->success.begin(); _iter1283 != this->success.end(); ++_iter1283) + std::vector ::const_iterator _iter1309; + for (_iter1309 = this->success.begin(); _iter1309 != this->success.end(); ++_iter1309) { - xfer += oprot->writeString((*_iter1283)); + xfer += oprot->writeString((*_iter1309)); } xfer += oprot->writeListEnd(); } @@ -28873,14 +29455,14 @@ uint32_t ThriftHiveMetastore_set_ugi_presult::read(::apache::thrift::protocol::T if (ftype == ::apache::thrift::protocol::T_LIST) { { (*(this->success)).clear(); - uint32_t _size1284; - ::apache::thrift::protocol::TType _etype1287; - xfer += iprot->readListBegin(_etype1287, _size1284); - (*(this->success)).resize(_size1284); - uint32_t _i1288; - for (_i1288 = 0; _i1288 < _size1284; ++_i1288) + 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) { - xfer += iprot->readString((*(this->success))[_i1288]); + xfer += iprot->readString((*(this->success))[_i1314]); } xfer += iprot->readListEnd(); } @@ -39105,6 +39687,138 @@ void ThriftHiveMetastoreClient::recv_get_index_names(std::vector & throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_index_names failed: unknown result"); } +void ThriftHiveMetastoreClient::get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name) +{ + send_get_primary_keys(db_name, tbl_name); + recv_get_primary_keys(_return); +} + +void ThriftHiveMetastoreClient::send_get_primary_keys(const std::string& db_name, const std::string& tbl_name) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_primary_keys_pargs args; + args.db_name = &db_name; + args.tbl_name = &tbl_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_primary_keys(std::vector & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_primary_keys") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_primary_keys_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_primary_keys failed: unknown result"); +} + +void ThriftHiveMetastoreClient::get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) +{ + send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name); + recv_get_foreign_keys(_return); +} + +void ThriftHiveMetastoreClient::send_get_foreign_keys(const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) +{ + int32_t cseqid = 0; + oprot_->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_foreign_keys_pargs args; + args.parent_db_name = &parent_db_name; + args.parent_tbl_name = &parent_tbl_name; + args.foreign_db_name = &foreign_db_name; + args.foreign_tbl_name = &foreign_tbl_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); +} + +void ThriftHiveMetastoreClient::recv_get_foreign_keys(std::vector & _return) +{ + + int32_t rseqid = 0; + std::string fname; + ::apache::thrift::protocol::TMessageType mtype; + + iprot_->readMessageBegin(fname, mtype, rseqid); + if (mtype == ::apache::thrift::protocol::T_EXCEPTION) { + ::apache::thrift::TApplicationException x; + x.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + throw x; + } + if (mtype != ::apache::thrift::protocol::T_REPLY) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + if (fname.compare("get_foreign_keys") != 0) { + iprot_->skip(::apache::thrift::protocol::T_STRUCT); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + } + ThriftHiveMetastore_get_foreign_keys_presult result; + result.success = &_return; + result.read(iprot_); + iprot_->readMessageEnd(); + iprot_->getTransport()->readEnd(); + + if (result.__isset.success) { + // _return pointer has now been filled + return; + } + if (result.__isset.o1) { + throw result.o1; + } + if (result.__isset.o2) { + throw result.o2; + } + throw ::apache::thrift::TApplicationException(::apache::thrift::TApplicationException::MISSING_RESULT, "get_foreign_keys failed: unknown result"); +} + bool ThriftHiveMetastoreClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { send_update_table_column_statistics(stats_obj); @@ -47349,6 +48063,126 @@ void ThriftHiveMetastoreProcessor::process_get_index_names(int32_t seqid, ::apac } } +void ThriftHiveMetastoreProcessor::process_get_primary_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.get_primary_keys", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_primary_keys"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_primary_keys"); + } + + ThriftHiveMetastore_get_primary_keys_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_primary_keys", bytes); + } + + ThriftHiveMetastore_get_primary_keys_result result; + try { + iface_->get_primary_keys(result.success, args.db_name, args.tbl_name); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (NoSuchObjectException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_primary_keys"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_primary_keys"); + } + + oprot->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_primary_keys", bytes); + } +} + +void ThriftHiveMetastoreProcessor::process_get_foreign_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) +{ + void* ctx = NULL; + if (this->eventHandler_.get() != NULL) { + ctx = this->eventHandler_->getContext("ThriftHiveMetastore.get_foreign_keys", callContext); + } + ::apache::thrift::TProcessorContextFreer freer(this->eventHandler_.get(), ctx, "ThriftHiveMetastore.get_foreign_keys"); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preRead(ctx, "ThriftHiveMetastore.get_foreign_keys"); + } + + ThriftHiveMetastore_get_foreign_keys_args args; + args.read(iprot); + iprot->readMessageEnd(); + uint32_t bytes = iprot->getTransport()->readEnd(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postRead(ctx, "ThriftHiveMetastore.get_foreign_keys", bytes); + } + + ThriftHiveMetastore_get_foreign_keys_result result; + try { + iface_->get_foreign_keys(result.success, args.parent_db_name, args.parent_tbl_name, args.foreign_db_name, args.foreign_tbl_name); + result.__isset.success = true; + } catch (MetaException &o1) { + result.o1 = o1; + result.__isset.o1 = true; + } catch (NoSuchObjectException &o2) { + result.o2 = o2; + result.__isset.o2 = true; + } catch (const std::exception& e) { + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->handlerError(ctx, "ThriftHiveMetastore.get_foreign_keys"); + } + + ::apache::thrift::TApplicationException x(e.what()); + oprot->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_EXCEPTION, seqid); + x.write(oprot); + oprot->writeMessageEnd(); + oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + return; + } + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->preWrite(ctx, "ThriftHiveMetastore.get_foreign_keys"); + } + + oprot->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_REPLY, seqid); + result.write(oprot); + oprot->writeMessageEnd(); + bytes = oprot->getTransport()->writeEnd(); + oprot->getTransport()->flush(); + + if (this->eventHandler_.get() != NULL) { + this->eventHandler_->postWrite(ctx, "ThriftHiveMetastore.get_foreign_keys", bytes); + } +} + void ThriftHiveMetastoreProcessor::process_update_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext) { void* ctx = NULL; @@ -57910,6 +58744,194 @@ void ThriftHiveMetastoreConcurrentClient::recv_get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name) +{ + int32_t seqid = send_get_primary_keys(db_name, tbl_name); + recv_get_primary_keys(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_primary_keys(const std::string& db_name, const std::string& tbl_name) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_primary_keys", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_primary_keys_pargs args; + args.db_name = &db_name; + args.tbl_name = &tbl_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_primary_keys(std::vector & _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_primary_keys") != 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_primary_keys_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_primary_keys 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::get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) +{ + int32_t seqid = send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name); + recv_get_foreign_keys(_return, seqid); +} + +int32_t ThriftHiveMetastoreConcurrentClient::send_get_foreign_keys(const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) +{ + int32_t cseqid = this->sync_.generateSeqId(); + ::apache::thrift::async::TConcurrentSendSentry sentry(&this->sync_); + oprot_->writeMessageBegin("get_foreign_keys", ::apache::thrift::protocol::T_CALL, cseqid); + + ThriftHiveMetastore_get_foreign_keys_pargs args; + args.parent_db_name = &parent_db_name; + args.parent_tbl_name = &parent_tbl_name; + args.foreign_db_name = &foreign_db_name; + args.foreign_tbl_name = &foreign_tbl_name; + args.write(oprot_); + + oprot_->writeMessageEnd(); + oprot_->getTransport()->writeEnd(); + oprot_->getTransport()->flush(); + + sentry.commit(); + return cseqid; +} + +void ThriftHiveMetastoreConcurrentClient::recv_get_foreign_keys(std::vector & _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_foreign_keys") != 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_foreign_keys_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_foreign_keys 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) +} + bool ThriftHiveMetastoreConcurrentClient::update_table_column_statistics(const ColumnStatistics& stats_obj) { int32_t seqid = send_update_table_column_statistics(stats_obj); diff --git a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h index 078c1cd..23ed650 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore.h @@ -99,6 +99,8 @@ class ThriftHiveMetastoreIf : virtual public ::facebook::fb303::FacebookService virtual void get_index_by_name(Index& _return, const std::string& db_name, const std::string& tbl_name, const std::string& index_name) = 0; virtual void get_indexes(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0; virtual void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes) = 0; + virtual void get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name) = 0; + virtual void get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) = 0; virtual bool update_table_column_statistics(const ColumnStatistics& stats_obj) = 0; virtual bool update_partition_column_statistics(const ColumnStatistics& stats_obj) = 0; virtual void get_table_column_statistics(ColumnStatistics& _return, const std::string& db_name, const std::string& tbl_name, const std::string& col_name) = 0; @@ -429,6 +431,12 @@ class ThriftHiveMetastoreNull : virtual public ThriftHiveMetastoreIf , virtual p void get_index_names(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */, const int16_t /* max_indexes */) { return; } + void get_primary_keys(std::vector & /* _return */, const std::string& /* db_name */, const std::string& /* tbl_name */) { + return; + } + void get_foreign_keys(std::vector & /* _return */, const std::string& /* parent_db_name */, const std::string& /* parent_tbl_name */, const std::string& /* foreign_db_name */, const std::string& /* foreign_tbl_name */) { + return; + } bool update_table_column_statistics(const ColumnStatistics& /* stats_obj */) { bool _return = false; return _return; @@ -10828,6 +10836,274 @@ class ThriftHiveMetastore_get_index_names_presult { }; +typedef struct _ThriftHiveMetastore_get_primary_keys_args__isset { + _ThriftHiveMetastore_get_primary_keys_args__isset() : db_name(false), tbl_name(false) {} + bool db_name :1; + bool tbl_name :1; +} _ThriftHiveMetastore_get_primary_keys_args__isset; + +class ThriftHiveMetastore_get_primary_keys_args { + public: + + ThriftHiveMetastore_get_primary_keys_args(const ThriftHiveMetastore_get_primary_keys_args&); + ThriftHiveMetastore_get_primary_keys_args& operator=(const ThriftHiveMetastore_get_primary_keys_args&); + ThriftHiveMetastore_get_primary_keys_args() : db_name(), tbl_name() { + } + + virtual ~ThriftHiveMetastore_get_primary_keys_args() throw(); + std::string db_name; + std::string tbl_name; + + _ThriftHiveMetastore_get_primary_keys_args__isset __isset; + + void __set_db_name(const std::string& val); + + void __set_tbl_name(const std::string& val); + + bool operator == (const ThriftHiveMetastore_get_primary_keys_args & rhs) const + { + if (!(db_name == rhs.db_name)) + return false; + if (!(tbl_name == rhs.tbl_name)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_primary_keys_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_primary_keys_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_primary_keys_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_primary_keys_pargs() throw(); + const std::string* db_name; + const std::string* tbl_name; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_primary_keys_result__isset { + _ThriftHiveMetastore_get_primary_keys_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_primary_keys_result__isset; + +class ThriftHiveMetastore_get_primary_keys_result { + public: + + ThriftHiveMetastore_get_primary_keys_result(const ThriftHiveMetastore_get_primary_keys_result&); + ThriftHiveMetastore_get_primary_keys_result& operator=(const ThriftHiveMetastore_get_primary_keys_result&); + ThriftHiveMetastore_get_primary_keys_result() { + } + + virtual ~ThriftHiveMetastore_get_primary_keys_result() throw(); + std::vector success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_primary_keys_result__isset __isset; + + void __set_success(const std::vector & val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_primary_keys_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_primary_keys_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_primary_keys_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_primary_keys_presult__isset { + _ThriftHiveMetastore_get_primary_keys_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_primary_keys_presult__isset; + +class ThriftHiveMetastore_get_primary_keys_presult { + public: + + + virtual ~ThriftHiveMetastore_get_primary_keys_presult() throw(); + std::vector * success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_primary_keys_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + +typedef struct _ThriftHiveMetastore_get_foreign_keys_args__isset { + _ThriftHiveMetastore_get_foreign_keys_args__isset() : parent_db_name(false), parent_tbl_name(false), foreign_db_name(false), foreign_tbl_name(false) {} + bool parent_db_name :1; + bool parent_tbl_name :1; + bool foreign_db_name :1; + bool foreign_tbl_name :1; +} _ThriftHiveMetastore_get_foreign_keys_args__isset; + +class ThriftHiveMetastore_get_foreign_keys_args { + public: + + ThriftHiveMetastore_get_foreign_keys_args(const ThriftHiveMetastore_get_foreign_keys_args&); + ThriftHiveMetastore_get_foreign_keys_args& operator=(const ThriftHiveMetastore_get_foreign_keys_args&); + ThriftHiveMetastore_get_foreign_keys_args() : parent_db_name(), parent_tbl_name(), foreign_db_name(), foreign_tbl_name() { + } + + virtual ~ThriftHiveMetastore_get_foreign_keys_args() throw(); + std::string parent_db_name; + std::string parent_tbl_name; + std::string foreign_db_name; + std::string foreign_tbl_name; + + _ThriftHiveMetastore_get_foreign_keys_args__isset __isset; + + void __set_parent_db_name(const std::string& val); + + void __set_parent_tbl_name(const std::string& val); + + void __set_foreign_db_name(const std::string& val); + + void __set_foreign_tbl_name(const std::string& val); + + bool operator == (const ThriftHiveMetastore_get_foreign_keys_args & rhs) const + { + if (!(parent_db_name == rhs.parent_db_name)) + return false; + if (!(parent_tbl_name == rhs.parent_tbl_name)) + return false; + if (!(foreign_db_name == rhs.foreign_db_name)) + return false; + if (!(foreign_tbl_name == rhs.foreign_tbl_name)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_foreign_keys_args &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_foreign_keys_args & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + + +class ThriftHiveMetastore_get_foreign_keys_pargs { + public: + + + virtual ~ThriftHiveMetastore_get_foreign_keys_pargs() throw(); + const std::string* parent_db_name; + const std::string* parent_tbl_name; + const std::string* foreign_db_name; + const std::string* foreign_tbl_name; + + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_foreign_keys_result__isset { + _ThriftHiveMetastore_get_foreign_keys_result__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_foreign_keys_result__isset; + +class ThriftHiveMetastore_get_foreign_keys_result { + public: + + ThriftHiveMetastore_get_foreign_keys_result(const ThriftHiveMetastore_get_foreign_keys_result&); + ThriftHiveMetastore_get_foreign_keys_result& operator=(const ThriftHiveMetastore_get_foreign_keys_result&); + ThriftHiveMetastore_get_foreign_keys_result() { + } + + virtual ~ThriftHiveMetastore_get_foreign_keys_result() throw(); + std::vector success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_foreign_keys_result__isset __isset; + + void __set_success(const std::vector & val); + + void __set_o1(const MetaException& val); + + void __set_o2(const NoSuchObjectException& val); + + bool operator == (const ThriftHiveMetastore_get_foreign_keys_result & rhs) const + { + if (!(success == rhs.success)) + return false; + if (!(o1 == rhs.o1)) + return false; + if (!(o2 == rhs.o2)) + return false; + return true; + } + bool operator != (const ThriftHiveMetastore_get_foreign_keys_result &rhs) const { + return !(*this == rhs); + } + + bool operator < (const ThriftHiveMetastore_get_foreign_keys_result & ) const; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const; + +}; + +typedef struct _ThriftHiveMetastore_get_foreign_keys_presult__isset { + _ThriftHiveMetastore_get_foreign_keys_presult__isset() : success(false), o1(false), o2(false) {} + bool success :1; + bool o1 :1; + bool o2 :1; +} _ThriftHiveMetastore_get_foreign_keys_presult__isset; + +class ThriftHiveMetastore_get_foreign_keys_presult { + public: + + + virtual ~ThriftHiveMetastore_get_foreign_keys_presult() throw(); + std::vector * success; + MetaException o1; + NoSuchObjectException o2; + + _ThriftHiveMetastore_get_foreign_keys_presult__isset __isset; + + uint32_t read(::apache::thrift::protocol::TProtocol* iprot); + +}; + typedef struct _ThriftHiveMetastore_update_table_column_statistics_args__isset { _ThriftHiveMetastore_update_table_column_statistics_args__isset() : stats_obj(false) {} bool stats_obj :1; @@ -17757,6 +18033,12 @@ class ThriftHiveMetastoreClient : virtual public ThriftHiveMetastoreIf, public void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); void send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); void recv_get_index_names(std::vector & _return); + void get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name); + void send_get_primary_keys(const std::string& db_name, const std::string& tbl_name); + void recv_get_primary_keys(std::vector & _return); + void get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name); + void send_get_foreign_keys(const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name); + void recv_get_foreign_keys(std::vector & _return); bool update_table_column_statistics(const ColumnStatistics& stats_obj); void send_update_table_column_statistics(const ColumnStatistics& stats_obj); bool recv_update_table_column_statistics(); @@ -18018,6 +18300,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP void process_get_index_by_name(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_indexes(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_index_names(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_primary_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); + void process_get_foreign_keys(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_update_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_update_partition_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); void process_get_table_column_statistics(int32_t seqid, ::apache::thrift::protocol::TProtocol* iprot, ::apache::thrift::protocol::TProtocol* oprot, void* callContext); @@ -18157,6 +18441,8 @@ class ThriftHiveMetastoreProcessor : public ::facebook::fb303::FacebookServiceP processMap_["get_index_by_name"] = &ThriftHiveMetastoreProcessor::process_get_index_by_name; processMap_["get_indexes"] = &ThriftHiveMetastoreProcessor::process_get_indexes; processMap_["get_index_names"] = &ThriftHiveMetastoreProcessor::process_get_index_names; + processMap_["get_primary_keys"] = &ThriftHiveMetastoreProcessor::process_get_primary_keys; + processMap_["get_foreign_keys"] = &ThriftHiveMetastoreProcessor::process_get_foreign_keys; processMap_["update_table_column_statistics"] = &ThriftHiveMetastoreProcessor::process_update_table_column_statistics; processMap_["update_partition_column_statistics"] = &ThriftHiveMetastoreProcessor::process_update_partition_column_statistics; processMap_["get_table_column_statistics"] = &ThriftHiveMetastoreProcessor::process_get_table_column_statistics; @@ -18988,6 +19274,26 @@ class ThriftHiveMetastoreMultiface : virtual public ThriftHiveMetastoreIf, publi return; } + void get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_primary_keys(_return, db_name, tbl_name); + } + ifaces_[i]->get_primary_keys(_return, db_name, tbl_name); + return; + } + + void get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) { + size_t sz = ifaces_.size(); + size_t i = 0; + for (; i < (sz - 1); ++i) { + ifaces_[i]->get_foreign_keys(_return, parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name); + } + ifaces_[i]->get_foreign_keys(_return, parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name); + return; + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { size_t sz = ifaces_.size(); size_t i = 0; @@ -19792,6 +20098,12 @@ class ThriftHiveMetastoreConcurrentClient : virtual public ThriftHiveMetastoreIf void get_index_names(std::vector & _return, const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); int32_t send_get_index_names(const std::string& db_name, const std::string& tbl_name, const int16_t max_indexes); void recv_get_index_names(std::vector & _return, const int32_t seqid); + void get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name); + int32_t send_get_primary_keys(const std::string& db_name, const std::string& tbl_name); + void recv_get_primary_keys(std::vector & _return, const int32_t seqid); + void get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name); + int32_t send_get_foreign_keys(const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name); + void recv_get_foreign_keys(std::vector & _return, const int32_t seqid); bool update_table_column_statistics(const ColumnStatistics& stats_obj); int32_t send_update_table_column_statistics(const ColumnStatistics& stats_obj); bool recv_update_table_column_statistics(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 6e21a9a..edecdb9 100644 --- a/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp +++ b/metastore/src/gen/thrift/gen-cpp/ThriftHiveMetastore_server.skeleton.cpp @@ -407,6 +407,16 @@ class ThriftHiveMetastoreHandler : virtual public ThriftHiveMetastoreIf { printf("get_index_names\n"); } + void get_primary_keys(std::vector & _return, const std::string& db_name, const std::string& tbl_name) { + // Your implementation goes here + printf("get_primary_keys\n"); + } + + void get_foreign_keys(std::vector & _return, const std::string& parent_db_name, const std::string& parent_tbl_name, const std::string& foreign_db_name, const std::string& foreign_tbl_name) { + // Your implementation goes here + printf("get_foreign_keys\n"); + } + bool update_table_column_statistics(const ColumnStatistics& stats_obj) { // Your implementation goes here printf("update_table_column_statistics\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 2695ffa..37d39dd 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.cpp @@ -392,6 +392,458 @@ void FieldSchema::printTo(std::ostream& out) const { } +SQLPrimaryKey::~SQLPrimaryKey() throw() { +} + + +void SQLPrimaryKey::__set_table_schem(const std::string& val) { + this->table_schem = val; +} + +void SQLPrimaryKey::__set_table_name(const std::string& val) { + this->table_name = val; +} + +void SQLPrimaryKey::__set_column_name(const std::string& val) { + this->column_name = val; +} + +void SQLPrimaryKey::__set_key_seq(const int32_t val) { + this->key_seq = val; +} + +void SQLPrimaryKey::__set_pk_name(const std::string& val) { + this->pk_name = val; +} + +uint32_t SQLPrimaryKey::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->table_schem); + this->__isset.table_schem = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->table_name); + this->__isset.table_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->column_name); + this->__isset.column_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->key_seq); + this->__isset.key_seq = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->pk_name); + this->__isset.pk_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t SQLPrimaryKey::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("SQLPrimaryKey"); + + xfer += oprot->writeFieldBegin("table_schem", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->table_schem); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("table_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->table_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("column_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->column_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("key_seq", ::apache::thrift::protocol::T_I32, 4); + xfer += oprot->writeI32(this->key_seq); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pk_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->pk_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(SQLPrimaryKey &a, SQLPrimaryKey &b) { + using ::std::swap; + swap(a.table_schem, b.table_schem); + swap(a.table_name, b.table_name); + swap(a.column_name, b.column_name); + swap(a.key_seq, b.key_seq); + swap(a.pk_name, b.pk_name); + swap(a.__isset, b.__isset); +} + +SQLPrimaryKey::SQLPrimaryKey(const SQLPrimaryKey& other4) { + table_schem = other4.table_schem; + table_name = other4.table_name; + column_name = other4.column_name; + key_seq = other4.key_seq; + pk_name = other4.pk_name; + __isset = other4.__isset; +} +SQLPrimaryKey& SQLPrimaryKey::operator=(const SQLPrimaryKey& other5) { + table_schem = other5.table_schem; + table_name = other5.table_name; + column_name = other5.column_name; + key_seq = other5.key_seq; + pk_name = other5.pk_name; + __isset = other5.__isset; + return *this; +} +void SQLPrimaryKey::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "SQLPrimaryKey("; + out << "table_schem=" << to_string(table_schem); + out << ", " << "table_name=" << to_string(table_name); + out << ", " << "column_name=" << to_string(column_name); + out << ", " << "key_seq=" << to_string(key_seq); + out << ", " << "pk_name=" << to_string(pk_name); + out << ")"; +} + + +SQLForeignKey::~SQLForeignKey() throw() { +} + + +void SQLForeignKey::__set_pktable_schem(const std::string& val) { + this->pktable_schem = val; +} + +void SQLForeignKey::__set_pktable_name(const std::string& val) { + this->pktable_name = val; +} + +void SQLForeignKey::__set_pkcolumn_name(const std::string& val) { + this->pkcolumn_name = val; +} + +void SQLForeignKey::__set_fktable_schem(const std::string& val) { + this->fktable_schem = val; +} + +void SQLForeignKey::__set_fktable_name(const std::string& val) { + this->fktable_name = val; +} + +void SQLForeignKey::__set_fkcolumn_name(const std::string& val) { + this->fkcolumn_name = val; +} + +void SQLForeignKey::__set_key_seq(const int32_t val) { + this->key_seq = val; +} + +void SQLForeignKey::__set_update_rule(const int32_t val) { + this->update_rule = val; +} + +void SQLForeignKey::__set_delete_rule(const int32_t val) { + this->delete_rule = val; +} + +void SQLForeignKey::__set_fk_name(const std::string& val) { + this->fk_name = val; +} + +void SQLForeignKey::__set_pk_name(const std::string& val) { + this->pk_name = val; +} + +uint32_t SQLForeignKey::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->pktable_schem); + this->__isset.pktable_schem = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 2: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->pktable_name); + this->__isset.pktable_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 3: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->pkcolumn_name); + this->__isset.pkcolumn_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 4: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->fktable_schem); + this->__isset.fktable_schem = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 5: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->fktable_name); + this->__isset.fktable_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 6: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->fkcolumn_name); + this->__isset.fkcolumn_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 7: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->key_seq); + this->__isset.key_seq = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 8: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->update_rule); + this->__isset.update_rule = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 9: + if (ftype == ::apache::thrift::protocol::T_I32) { + xfer += iprot->readI32(this->delete_rule); + this->__isset.delete_rule = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 10: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->fk_name); + this->__isset.fk_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + case 11: + if (ftype == ::apache::thrift::protocol::T_STRING) { + xfer += iprot->readString(this->pk_name); + this->__isset.pk_name = true; + } else { + xfer += iprot->skip(ftype); + } + break; + default: + xfer += iprot->skip(ftype); + break; + } + xfer += iprot->readFieldEnd(); + } + + xfer += iprot->readStructEnd(); + + return xfer; +} + +uint32_t SQLForeignKey::write(::apache::thrift::protocol::TProtocol* oprot) const { + uint32_t xfer = 0; + apache::thrift::protocol::TOutputRecursionTracker tracker(*oprot); + xfer += oprot->writeStructBegin("SQLForeignKey"); + + xfer += oprot->writeFieldBegin("pktable_schem", ::apache::thrift::protocol::T_STRING, 1); + xfer += oprot->writeString(this->pktable_schem); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pktable_name", ::apache::thrift::protocol::T_STRING, 2); + xfer += oprot->writeString(this->pktable_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pkcolumn_name", ::apache::thrift::protocol::T_STRING, 3); + xfer += oprot->writeString(this->pkcolumn_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fktable_schem", ::apache::thrift::protocol::T_STRING, 4); + xfer += oprot->writeString(this->fktable_schem); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fktable_name", ::apache::thrift::protocol::T_STRING, 5); + xfer += oprot->writeString(this->fktable_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fkcolumn_name", ::apache::thrift::protocol::T_STRING, 6); + xfer += oprot->writeString(this->fkcolumn_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("key_seq", ::apache::thrift::protocol::T_I32, 7); + xfer += oprot->writeI32(this->key_seq); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("update_rule", ::apache::thrift::protocol::T_I32, 8); + xfer += oprot->writeI32(this->update_rule); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("delete_rule", ::apache::thrift::protocol::T_I32, 9); + xfer += oprot->writeI32(this->delete_rule); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("fk_name", ::apache::thrift::protocol::T_STRING, 10); + xfer += oprot->writeString(this->fk_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldBegin("pk_name", ::apache::thrift::protocol::T_STRING, 11); + xfer += oprot->writeString(this->pk_name); + xfer += oprot->writeFieldEnd(); + + xfer += oprot->writeFieldStop(); + xfer += oprot->writeStructEnd(); + return xfer; +} + +void swap(SQLForeignKey &a, SQLForeignKey &b) { + using ::std::swap; + swap(a.pktable_schem, b.pktable_schem); + swap(a.pktable_name, b.pktable_name); + swap(a.pkcolumn_name, b.pkcolumn_name); + swap(a.fktable_schem, b.fktable_schem); + swap(a.fktable_name, b.fktable_name); + swap(a.fkcolumn_name, b.fkcolumn_name); + swap(a.key_seq, b.key_seq); + swap(a.update_rule, b.update_rule); + swap(a.delete_rule, b.delete_rule); + swap(a.fk_name, b.fk_name); + swap(a.pk_name, b.pk_name); + swap(a.__isset, b.__isset); +} + +SQLForeignKey::SQLForeignKey(const SQLForeignKey& other6) { + pktable_schem = other6.pktable_schem; + pktable_name = other6.pktable_name; + pkcolumn_name = other6.pkcolumn_name; + fktable_schem = other6.fktable_schem; + fktable_name = other6.fktable_name; + fkcolumn_name = other6.fkcolumn_name; + key_seq = other6.key_seq; + update_rule = other6.update_rule; + delete_rule = other6.delete_rule; + fk_name = other6.fk_name; + pk_name = other6.pk_name; + __isset = other6.__isset; +} +SQLForeignKey& SQLForeignKey::operator=(const SQLForeignKey& other7) { + pktable_schem = other7.pktable_schem; + pktable_name = other7.pktable_name; + pkcolumn_name = other7.pkcolumn_name; + fktable_schem = other7.fktable_schem; + fktable_name = other7.fktable_name; + fkcolumn_name = other7.fkcolumn_name; + key_seq = other7.key_seq; + update_rule = other7.update_rule; + delete_rule = other7.delete_rule; + fk_name = other7.fk_name; + pk_name = other7.pk_name; + __isset = other7.__isset; + return *this; +} +void SQLForeignKey::printTo(std::ostream& out) const { + using ::apache::thrift::to_string; + out << "SQLForeignKey("; + out << "pktable_schem=" << to_string(pktable_schem); + out << ", " << "pktable_name=" << to_string(pktable_name); + out << ", " << "pkcolumn_name=" << to_string(pkcolumn_name); + out << ", " << "fktable_schem=" << to_string(fktable_schem); + out << ", " << "fktable_name=" << to_string(fktable_name); + out << ", " << "fkcolumn_name=" << to_string(fkcolumn_name); + out << ", " << "key_seq=" << to_string(key_seq); + out << ", " << "update_rule=" << to_string(update_rule); + out << ", " << "delete_rule=" << to_string(delete_rule); + out << ", " << "fk_name=" << to_string(fk_name); + out << ", " << "pk_name=" << to_string(pk_name); + out << ")"; +} + + Type::~Type() throw() { } @@ -464,14 +916,14 @@ uint32_t Type::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fields.clear(); - uint32_t _size4; - ::apache::thrift::protocol::TType _etype7; - xfer += iprot->readListBegin(_etype7, _size4); - this->fields.resize(_size4); - uint32_t _i8; - for (_i8 = 0; _i8 < _size4; ++_i8) + uint32_t _size8; + ::apache::thrift::protocol::TType _etype11; + xfer += iprot->readListBegin(_etype11, _size8); + this->fields.resize(_size8); + uint32_t _i12; + for (_i12 = 0; _i12 < _size8; ++_i12) { - xfer += this->fields[_i8].read(iprot); + xfer += this->fields[_i12].read(iprot); } xfer += iprot->readListEnd(); } @@ -515,10 +967,10 @@ uint32_t Type::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fields", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fields.size())); - std::vector ::const_iterator _iter9; - for (_iter9 = this->fields.begin(); _iter9 != this->fields.end(); ++_iter9) + std::vector ::const_iterator _iter13; + for (_iter13 = this->fields.begin(); _iter13 != this->fields.end(); ++_iter13) { - xfer += (*_iter9).write(oprot); + xfer += (*_iter13).write(oprot); } xfer += oprot->writeListEnd(); } @@ -538,19 +990,19 @@ void swap(Type &a, Type &b) { swap(a.__isset, b.__isset); } -Type::Type(const Type& other10) { - name = other10.name; - type1 = other10.type1; - type2 = other10.type2; - fields = other10.fields; - __isset = other10.__isset; +Type::Type(const Type& other14) { + name = other14.name; + type1 = other14.type1; + type2 = other14.type2; + fields = other14.fields; + __isset = other14.__isset; } -Type& Type::operator=(const Type& other11) { - name = other11.name; - type1 = other11.type1; - type2 = other11.type2; - fields = other11.fields; - __isset = other11.__isset; +Type& Type::operator=(const Type& other15) { + name = other15.name; + type1 = other15.type1; + type2 = other15.type2; + fields = other15.fields; + __isset = other15.__isset; return *this; } void Type::printTo(std::ostream& out) const { @@ -611,9 +1063,9 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast12; - xfer += iprot->readI32(ecast12); - this->objectType = (HiveObjectType::type)ecast12; + int32_t ecast16; + xfer += iprot->readI32(ecast16); + this->objectType = (HiveObjectType::type)ecast16; this->__isset.objectType = true; } else { xfer += iprot->skip(ftype); @@ -639,14 +1091,14 @@ uint32_t HiveObjectRef::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partValues.clear(); - uint32_t _size13; - ::apache::thrift::protocol::TType _etype16; - xfer += iprot->readListBegin(_etype16, _size13); - this->partValues.resize(_size13); - uint32_t _i17; - for (_i17 = 0; _i17 < _size13; ++_i17) + uint32_t _size17; + ::apache::thrift::protocol::TType _etype20; + xfer += iprot->readListBegin(_etype20, _size17); + this->partValues.resize(_size17); + uint32_t _i21; + for (_i21 = 0; _i21 < _size17; ++_i21) { - xfer += iprot->readString(this->partValues[_i17]); + xfer += iprot->readString(this->partValues[_i21]); } xfer += iprot->readListEnd(); } @@ -695,10 +1147,10 @@ uint32_t HiveObjectRef::write(::apache::thrift::protocol::TProtocol* oprot) cons xfer += oprot->writeFieldBegin("partValues", ::apache::thrift::protocol::T_LIST, 4); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->partValues.size())); - std::vector ::const_iterator _iter18; - for (_iter18 = this->partValues.begin(); _iter18 != this->partValues.end(); ++_iter18) + std::vector ::const_iterator _iter22; + for (_iter22 = this->partValues.begin(); _iter22 != this->partValues.end(); ++_iter22) { - xfer += oprot->writeString((*_iter18)); + xfer += oprot->writeString((*_iter22)); } xfer += oprot->writeListEnd(); } @@ -723,21 +1175,21 @@ void swap(HiveObjectRef &a, HiveObjectRef &b) { swap(a.__isset, b.__isset); } -HiveObjectRef::HiveObjectRef(const HiveObjectRef& other19) { - objectType = other19.objectType; - dbName = other19.dbName; - objectName = other19.objectName; - partValues = other19.partValues; - columnName = other19.columnName; - __isset = other19.__isset; -} -HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other20) { - objectType = other20.objectType; - dbName = other20.dbName; - objectName = other20.objectName; - partValues = other20.partValues; - columnName = other20.columnName; - __isset = other20.__isset; +HiveObjectRef::HiveObjectRef(const HiveObjectRef& other23) { + objectType = other23.objectType; + dbName = other23.dbName; + objectName = other23.objectName; + partValues = other23.partValues; + columnName = other23.columnName; + __isset = other23.__isset; +} +HiveObjectRef& HiveObjectRef::operator=(const HiveObjectRef& other24) { + objectType = other24.objectType; + dbName = other24.dbName; + objectName = other24.objectName; + partValues = other24.partValues; + columnName = other24.columnName; + __isset = other24.__isset; return *this; } void HiveObjectRef::printTo(std::ostream& out) const { @@ -823,9 +1275,9 @@ uint32_t PrivilegeGrantInfo::read(::apache::thrift::protocol::TProtocol* iprot) break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast21; - xfer += iprot->readI32(ecast21); - this->grantorType = (PrincipalType::type)ecast21; + int32_t ecast25; + xfer += iprot->readI32(ecast25); + this->grantorType = (PrincipalType::type)ecast25; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -891,21 +1343,21 @@ void swap(PrivilegeGrantInfo &a, PrivilegeGrantInfo &b) { swap(a.__isset, b.__isset); } -PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other22) { - privilege = other22.privilege; - createTime = other22.createTime; - grantor = other22.grantor; - grantorType = other22.grantorType; - grantOption = other22.grantOption; - __isset = other22.__isset; -} -PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other23) { - privilege = other23.privilege; - createTime = other23.createTime; - grantor = other23.grantor; - grantorType = other23.grantorType; - grantOption = other23.grantOption; - __isset = other23.__isset; +PrivilegeGrantInfo::PrivilegeGrantInfo(const PrivilegeGrantInfo& other26) { + privilege = other26.privilege; + createTime = other26.createTime; + grantor = other26.grantor; + grantorType = other26.grantorType; + grantOption = other26.grantOption; + __isset = other26.__isset; +} +PrivilegeGrantInfo& PrivilegeGrantInfo::operator=(const PrivilegeGrantInfo& other27) { + privilege = other27.privilege; + createTime = other27.createTime; + grantor = other27.grantor; + grantorType = other27.grantorType; + grantOption = other27.grantOption; + __isset = other27.__isset; return *this; } void PrivilegeGrantInfo::printTo(std::ostream& out) const { @@ -979,9 +1431,9 @@ uint32_t HiveObjectPrivilege::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast24; - xfer += iprot->readI32(ecast24); - this->principalType = (PrincipalType::type)ecast24; + int32_t ecast28; + xfer += iprot->readI32(ecast28); + this->principalType = (PrincipalType::type)ecast28; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1042,19 +1494,19 @@ void swap(HiveObjectPrivilege &a, HiveObjectPrivilege &b) { swap(a.__isset, b.__isset); } -HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other25) { - hiveObject = other25.hiveObject; - principalName = other25.principalName; - principalType = other25.principalType; - grantInfo = other25.grantInfo; - __isset = other25.__isset; +HiveObjectPrivilege::HiveObjectPrivilege(const HiveObjectPrivilege& other29) { + hiveObject = other29.hiveObject; + principalName = other29.principalName; + principalType = other29.principalType; + grantInfo = other29.grantInfo; + __isset = other29.__isset; } -HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other26) { - hiveObject = other26.hiveObject; - principalName = other26.principalName; - principalType = other26.principalType; - grantInfo = other26.grantInfo; - __isset = other26.__isset; +HiveObjectPrivilege& HiveObjectPrivilege::operator=(const HiveObjectPrivilege& other30) { + hiveObject = other30.hiveObject; + principalName = other30.principalName; + principalType = other30.principalType; + grantInfo = other30.grantInfo; + __isset = other30.__isset; return *this; } void HiveObjectPrivilege::printTo(std::ostream& out) const { @@ -1101,14 +1553,14 @@ uint32_t PrivilegeBag::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->privileges.clear(); - uint32_t _size27; - ::apache::thrift::protocol::TType _etype30; - xfer += iprot->readListBegin(_etype30, _size27); - this->privileges.resize(_size27); - uint32_t _i31; - for (_i31 = 0; _i31 < _size27; ++_i31) + uint32_t _size31; + ::apache::thrift::protocol::TType _etype34; + xfer += iprot->readListBegin(_etype34, _size31); + this->privileges.resize(_size31); + uint32_t _i35; + for (_i35 = 0; _i35 < _size31; ++_i35) { - xfer += this->privileges[_i31].read(iprot); + xfer += this->privileges[_i35].read(iprot); } xfer += iprot->readListEnd(); } @@ -1137,10 +1589,10 @@ uint32_t PrivilegeBag::write(::apache::thrift::protocol::TProtocol* oprot) const xfer += oprot->writeFieldBegin("privileges", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->privileges.size())); - std::vector ::const_iterator _iter32; - for (_iter32 = this->privileges.begin(); _iter32 != this->privileges.end(); ++_iter32) + std::vector ::const_iterator _iter36; + for (_iter36 = this->privileges.begin(); _iter36 != this->privileges.end(); ++_iter36) { - xfer += (*_iter32).write(oprot); + xfer += (*_iter36).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1157,13 +1609,13 @@ void swap(PrivilegeBag &a, PrivilegeBag &b) { swap(a.__isset, b.__isset); } -PrivilegeBag::PrivilegeBag(const PrivilegeBag& other33) { - privileges = other33.privileges; - __isset = other33.__isset; +PrivilegeBag::PrivilegeBag(const PrivilegeBag& other37) { + privileges = other37.privileges; + __isset = other37.__isset; } -PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other34) { - privileges = other34.privileges; - __isset = other34.__isset; +PrivilegeBag& PrivilegeBag::operator=(const PrivilegeBag& other38) { + privileges = other38.privileges; + __isset = other38.__isset; return *this; } void PrivilegeBag::printTo(std::ostream& out) const { @@ -1215,26 +1667,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->userPrivileges.clear(); - uint32_t _size35; - ::apache::thrift::protocol::TType _ktype36; - ::apache::thrift::protocol::TType _vtype37; - xfer += iprot->readMapBegin(_ktype36, _vtype37, _size35); - uint32_t _i39; - for (_i39 = 0; _i39 < _size35; ++_i39) + uint32_t _size39; + ::apache::thrift::protocol::TType _ktype40; + ::apache::thrift::protocol::TType _vtype41; + xfer += iprot->readMapBegin(_ktype40, _vtype41, _size39); + uint32_t _i43; + for (_i43 = 0; _i43 < _size39; ++_i43) { - std::string _key40; - xfer += iprot->readString(_key40); - std::vector & _val41 = this->userPrivileges[_key40]; + std::string _key44; + xfer += iprot->readString(_key44); + std::vector & _val45 = this->userPrivileges[_key44]; { - _val41.clear(); - uint32_t _size42; - ::apache::thrift::protocol::TType _etype45; - xfer += iprot->readListBegin(_etype45, _size42); - _val41.resize(_size42); - uint32_t _i46; - for (_i46 = 0; _i46 < _size42; ++_i46) + _val45.clear(); + uint32_t _size46; + ::apache::thrift::protocol::TType _etype49; + xfer += iprot->readListBegin(_etype49, _size46); + _val45.resize(_size46); + uint32_t _i50; + for (_i50 = 0; _i50 < _size46; ++_i50) { - xfer += _val41[_i46].read(iprot); + xfer += _val45[_i50].read(iprot); } xfer += iprot->readListEnd(); } @@ -1250,26 +1702,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->groupPrivileges.clear(); - uint32_t _size47; - ::apache::thrift::protocol::TType _ktype48; - ::apache::thrift::protocol::TType _vtype49; - xfer += iprot->readMapBegin(_ktype48, _vtype49, _size47); - uint32_t _i51; - for (_i51 = 0; _i51 < _size47; ++_i51) + uint32_t _size51; + ::apache::thrift::protocol::TType _ktype52; + ::apache::thrift::protocol::TType _vtype53; + xfer += iprot->readMapBegin(_ktype52, _vtype53, _size51); + uint32_t _i55; + for (_i55 = 0; _i55 < _size51; ++_i55) { - std::string _key52; - xfer += iprot->readString(_key52); - std::vector & _val53 = this->groupPrivileges[_key52]; + std::string _key56; + xfer += iprot->readString(_key56); + std::vector & _val57 = this->groupPrivileges[_key56]; { - _val53.clear(); - uint32_t _size54; - ::apache::thrift::protocol::TType _etype57; - xfer += iprot->readListBegin(_etype57, _size54); - _val53.resize(_size54); - uint32_t _i58; - for (_i58 = 0; _i58 < _size54; ++_i58) + _val57.clear(); + uint32_t _size58; + ::apache::thrift::protocol::TType _etype61; + xfer += iprot->readListBegin(_etype61, _size58); + _val57.resize(_size58); + uint32_t _i62; + for (_i62 = 0; _i62 < _size58; ++_i62) { - xfer += _val53[_i58].read(iprot); + xfer += _val57[_i62].read(iprot); } xfer += iprot->readListEnd(); } @@ -1285,26 +1737,26 @@ uint32_t PrincipalPrivilegeSet::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->rolePrivileges.clear(); - uint32_t _size59; - ::apache::thrift::protocol::TType _ktype60; - ::apache::thrift::protocol::TType _vtype61; - xfer += iprot->readMapBegin(_ktype60, _vtype61, _size59); - uint32_t _i63; - for (_i63 = 0; _i63 < _size59; ++_i63) + uint32_t _size63; + ::apache::thrift::protocol::TType _ktype64; + ::apache::thrift::protocol::TType _vtype65; + xfer += iprot->readMapBegin(_ktype64, _vtype65, _size63); + uint32_t _i67; + for (_i67 = 0; _i67 < _size63; ++_i67) { - std::string _key64; - xfer += iprot->readString(_key64); - std::vector & _val65 = this->rolePrivileges[_key64]; + std::string _key68; + xfer += iprot->readString(_key68); + std::vector & _val69 = this->rolePrivileges[_key68]; { - _val65.clear(); - uint32_t _size66; - ::apache::thrift::protocol::TType _etype69; - xfer += iprot->readListBegin(_etype69, _size66); - _val65.resize(_size66); - uint32_t _i70; - for (_i70 = 0; _i70 < _size66; ++_i70) + _val69.clear(); + uint32_t _size70; + ::apache::thrift::protocol::TType _etype73; + xfer += iprot->readListBegin(_etype73, _size70); + _val69.resize(_size70); + uint32_t _i74; + for (_i74 = 0; _i74 < _size70; ++_i74) { - xfer += _val65[_i70].read(iprot); + xfer += _val69[_i74].read(iprot); } xfer += iprot->readListEnd(); } @@ -1336,16 +1788,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("userPrivileges", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->userPrivileges.size())); - std::map > ::const_iterator _iter71; - for (_iter71 = this->userPrivileges.begin(); _iter71 != this->userPrivileges.end(); ++_iter71) + std::map > ::const_iterator _iter75; + for (_iter75 = this->userPrivileges.begin(); _iter75 != this->userPrivileges.end(); ++_iter75) { - xfer += oprot->writeString(_iter71->first); + xfer += oprot->writeString(_iter75->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter71->second.size())); - std::vector ::const_iterator _iter72; - for (_iter72 = _iter71->second.begin(); _iter72 != _iter71->second.end(); ++_iter72) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter75->second.size())); + std::vector ::const_iterator _iter76; + for (_iter76 = _iter75->second.begin(); _iter76 != _iter75->second.end(); ++_iter76) { - xfer += (*_iter72).write(oprot); + xfer += (*_iter76).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1357,16 +1809,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("groupPrivileges", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->groupPrivileges.size())); - std::map > ::const_iterator _iter73; - for (_iter73 = this->groupPrivileges.begin(); _iter73 != this->groupPrivileges.end(); ++_iter73) + std::map > ::const_iterator _iter77; + for (_iter77 = this->groupPrivileges.begin(); _iter77 != this->groupPrivileges.end(); ++_iter77) { - xfer += oprot->writeString(_iter73->first); + xfer += oprot->writeString(_iter77->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter73->second.size())); - std::vector ::const_iterator _iter74; - for (_iter74 = _iter73->second.begin(); _iter74 != _iter73->second.end(); ++_iter74) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter77->second.size())); + std::vector ::const_iterator _iter78; + for (_iter78 = _iter77->second.begin(); _iter78 != _iter77->second.end(); ++_iter78) { - xfer += (*_iter74).write(oprot); + xfer += (*_iter78).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1378,16 +1830,16 @@ uint32_t PrincipalPrivilegeSet::write(::apache::thrift::protocol::TProtocol* opr xfer += oprot->writeFieldBegin("rolePrivileges", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_LIST, static_cast(this->rolePrivileges.size())); - std::map > ::const_iterator _iter75; - for (_iter75 = this->rolePrivileges.begin(); _iter75 != this->rolePrivileges.end(); ++_iter75) + std::map > ::const_iterator _iter79; + for (_iter79 = this->rolePrivileges.begin(); _iter79 != this->rolePrivileges.end(); ++_iter79) { - xfer += oprot->writeString(_iter75->first); + xfer += oprot->writeString(_iter79->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter75->second.size())); - std::vector ::const_iterator _iter76; - for (_iter76 = _iter75->second.begin(); _iter76 != _iter75->second.end(); ++_iter76) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter79->second.size())); + std::vector ::const_iterator _iter80; + for (_iter80 = _iter79->second.begin(); _iter80 != _iter79->second.end(); ++_iter80) { - xfer += (*_iter76).write(oprot); + xfer += (*_iter80).write(oprot); } xfer += oprot->writeListEnd(); } @@ -1409,17 +1861,17 @@ void swap(PrincipalPrivilegeSet &a, PrincipalPrivilegeSet &b) { swap(a.__isset, b.__isset); } -PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other77) { - userPrivileges = other77.userPrivileges; - groupPrivileges = other77.groupPrivileges; - rolePrivileges = other77.rolePrivileges; - __isset = other77.__isset; +PrincipalPrivilegeSet::PrincipalPrivilegeSet(const PrincipalPrivilegeSet& other81) { + userPrivileges = other81.userPrivileges; + groupPrivileges = other81.groupPrivileges; + rolePrivileges = other81.rolePrivileges; + __isset = other81.__isset; } -PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other78) { - userPrivileges = other78.userPrivileges; - groupPrivileges = other78.groupPrivileges; - rolePrivileges = other78.rolePrivileges; - __isset = other78.__isset; +PrincipalPrivilegeSet& PrincipalPrivilegeSet::operator=(const PrincipalPrivilegeSet& other82) { + userPrivileges = other82.userPrivileges; + groupPrivileges = other82.groupPrivileges; + rolePrivileges = other82.rolePrivileges; + __isset = other82.__isset; return *this; } void PrincipalPrivilegeSet::printTo(std::ostream& out) const { @@ -1472,9 +1924,9 @@ uint32_t GrantRevokePrivilegeRequest::read(::apache::thrift::protocol::TProtocol { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast79; - xfer += iprot->readI32(ecast79); - this->requestType = (GrantRevokeType::type)ecast79; + int32_t ecast83; + xfer += iprot->readI32(ecast83); + this->requestType = (GrantRevokeType::type)ecast83; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -1539,17 +1991,17 @@ void swap(GrantRevokePrivilegeRequest &a, GrantRevokePrivilegeRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other80) { - requestType = other80.requestType; - privileges = other80.privileges; - revokeGrantOption = other80.revokeGrantOption; - __isset = other80.__isset; +GrantRevokePrivilegeRequest::GrantRevokePrivilegeRequest(const GrantRevokePrivilegeRequest& other84) { + requestType = other84.requestType; + privileges = other84.privileges; + revokeGrantOption = other84.revokeGrantOption; + __isset = other84.__isset; } -GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other81) { - requestType = other81.requestType; - privileges = other81.privileges; - revokeGrantOption = other81.revokeGrantOption; - __isset = other81.__isset; +GrantRevokePrivilegeRequest& GrantRevokePrivilegeRequest::operator=(const GrantRevokePrivilegeRequest& other85) { + requestType = other85.requestType; + privileges = other85.privileges; + revokeGrantOption = other85.revokeGrantOption; + __isset = other85.__isset; return *this; } void GrantRevokePrivilegeRequest::printTo(std::ostream& out) const { @@ -1633,13 +2085,13 @@ void swap(GrantRevokePrivilegeResponse &a, GrantRevokePrivilegeResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other82) { - success = other82.success; - __isset = other82.__isset; +GrantRevokePrivilegeResponse::GrantRevokePrivilegeResponse(const GrantRevokePrivilegeResponse& other86) { + success = other86.success; + __isset = other86.__isset; } -GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other83) { - success = other83.success; - __isset = other83.__isset; +GrantRevokePrivilegeResponse& GrantRevokePrivilegeResponse::operator=(const GrantRevokePrivilegeResponse& other87) { + success = other87.success; + __isset = other87.__isset; return *this; } void GrantRevokePrivilegeResponse::printTo(std::ostream& out) const { @@ -1753,17 +2205,17 @@ void swap(Role &a, Role &b) { swap(a.__isset, b.__isset); } -Role::Role(const Role& other84) { - roleName = other84.roleName; - createTime = other84.createTime; - ownerName = other84.ownerName; - __isset = other84.__isset; +Role::Role(const Role& other88) { + roleName = other88.roleName; + createTime = other88.createTime; + ownerName = other88.ownerName; + __isset = other88.__isset; } -Role& Role::operator=(const Role& other85) { - roleName = other85.roleName; - createTime = other85.createTime; - ownerName = other85.ownerName; - __isset = other85.__isset; +Role& Role::operator=(const Role& other89) { + roleName = other89.roleName; + createTime = other89.createTime; + ownerName = other89.ownerName; + __isset = other89.__isset; return *this; } void Role::printTo(std::ostream& out) const { @@ -1847,9 +2299,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast86; - xfer += iprot->readI32(ecast86); - this->principalType = (PrincipalType::type)ecast86; + int32_t ecast90; + xfer += iprot->readI32(ecast90); + this->principalType = (PrincipalType::type)ecast90; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -1881,9 +2333,9 @@ uint32_t RolePrincipalGrant::read(::apache::thrift::protocol::TProtocol* iprot) break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast87; - xfer += iprot->readI32(ecast87); - this->grantorPrincipalType = (PrincipalType::type)ecast87; + int32_t ecast91; + xfer += iprot->readI32(ecast91); + this->grantorPrincipalType = (PrincipalType::type)ecast91; this->__isset.grantorPrincipalType = true; } else { xfer += iprot->skip(ftype); @@ -1951,25 +2403,25 @@ void swap(RolePrincipalGrant &a, RolePrincipalGrant &b) { swap(a.__isset, b.__isset); } -RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other88) { - roleName = other88.roleName; - principalName = other88.principalName; - principalType = other88.principalType; - grantOption = other88.grantOption; - grantTime = other88.grantTime; - grantorName = other88.grantorName; - grantorPrincipalType = other88.grantorPrincipalType; - __isset = other88.__isset; -} -RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other89) { - roleName = other89.roleName; - principalName = other89.principalName; - principalType = other89.principalType; - grantOption = other89.grantOption; - grantTime = other89.grantTime; - grantorName = other89.grantorName; - grantorPrincipalType = other89.grantorPrincipalType; - __isset = other89.__isset; +RolePrincipalGrant::RolePrincipalGrant(const RolePrincipalGrant& other92) { + roleName = other92.roleName; + principalName = other92.principalName; + principalType = other92.principalType; + grantOption = other92.grantOption; + grantTime = other92.grantTime; + grantorName = other92.grantorName; + grantorPrincipalType = other92.grantorPrincipalType; + __isset = other92.__isset; +} +RolePrincipalGrant& RolePrincipalGrant::operator=(const RolePrincipalGrant& other93) { + roleName = other93.roleName; + principalName = other93.principalName; + principalType = other93.principalType; + grantOption = other93.grantOption; + grantTime = other93.grantTime; + grantorName = other93.grantorName; + grantorPrincipalType = other93.grantorPrincipalType; + __isset = other93.__isset; return *this; } void RolePrincipalGrant::printTo(std::ostream& out) const { @@ -2031,9 +2483,9 @@ uint32_t GetRoleGrantsForPrincipalRequest::read(::apache::thrift::protocol::TPro break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast90; - xfer += iprot->readI32(ecast90); - this->principal_type = (PrincipalType::type)ecast90; + int32_t ecast94; + xfer += iprot->readI32(ecast94); + this->principal_type = (PrincipalType::type)ecast94; isset_principal_type = true; } else { xfer += iprot->skip(ftype); @@ -2079,13 +2531,13 @@ void swap(GetRoleGrantsForPrincipalRequest &a, GetRoleGrantsForPrincipalRequest swap(a.principal_type, b.principal_type); } -GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other91) { - principal_name = other91.principal_name; - principal_type = other91.principal_type; +GetRoleGrantsForPrincipalRequest::GetRoleGrantsForPrincipalRequest(const GetRoleGrantsForPrincipalRequest& other95) { + principal_name = other95.principal_name; + principal_type = other95.principal_type; } -GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other92) { - principal_name = other92.principal_name; - principal_type = other92.principal_type; +GetRoleGrantsForPrincipalRequest& GetRoleGrantsForPrincipalRequest::operator=(const GetRoleGrantsForPrincipalRequest& other96) { + principal_name = other96.principal_name; + principal_type = other96.principal_type; return *this; } void GetRoleGrantsForPrincipalRequest::printTo(std::ostream& out) const { @@ -2131,14 +2583,14 @@ uint32_t GetRoleGrantsForPrincipalResponse::read(::apache::thrift::protocol::TPr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size93; - ::apache::thrift::protocol::TType _etype96; - xfer += iprot->readListBegin(_etype96, _size93); - this->principalGrants.resize(_size93); - uint32_t _i97; - for (_i97 = 0; _i97 < _size93; ++_i97) + uint32_t _size97; + ::apache::thrift::protocol::TType _etype100; + xfer += iprot->readListBegin(_etype100, _size97); + this->principalGrants.resize(_size97); + uint32_t _i101; + for (_i101 = 0; _i101 < _size97; ++_i101) { - xfer += this->principalGrants[_i97].read(iprot); + xfer += this->principalGrants[_i101].read(iprot); } xfer += iprot->readListEnd(); } @@ -2169,10 +2621,10 @@ uint32_t GetRoleGrantsForPrincipalResponse::write(::apache::thrift::protocol::TP xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter98; - for (_iter98 = this->principalGrants.begin(); _iter98 != this->principalGrants.end(); ++_iter98) + std::vector ::const_iterator _iter102; + for (_iter102 = this->principalGrants.begin(); _iter102 != this->principalGrants.end(); ++_iter102) { - xfer += (*_iter98).write(oprot); + xfer += (*_iter102).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2188,11 +2640,11 @@ void swap(GetRoleGrantsForPrincipalResponse &a, GetRoleGrantsForPrincipalRespons swap(a.principalGrants, b.principalGrants); } -GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other99) { - principalGrants = other99.principalGrants; +GetRoleGrantsForPrincipalResponse::GetRoleGrantsForPrincipalResponse(const GetRoleGrantsForPrincipalResponse& other103) { + principalGrants = other103.principalGrants; } -GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other100) { - principalGrants = other100.principalGrants; +GetRoleGrantsForPrincipalResponse& GetRoleGrantsForPrincipalResponse::operator=(const GetRoleGrantsForPrincipalResponse& other104) { + principalGrants = other104.principalGrants; return *this; } void GetRoleGrantsForPrincipalResponse::printTo(std::ostream& out) const { @@ -2274,11 +2726,11 @@ void swap(GetPrincipalsInRoleRequest &a, GetPrincipalsInRoleRequest &b) { swap(a.roleName, b.roleName); } -GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other101) { - roleName = other101.roleName; +GetPrincipalsInRoleRequest::GetPrincipalsInRoleRequest(const GetPrincipalsInRoleRequest& other105) { + roleName = other105.roleName; } -GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other102) { - roleName = other102.roleName; +GetPrincipalsInRoleRequest& GetPrincipalsInRoleRequest::operator=(const GetPrincipalsInRoleRequest& other106) { + roleName = other106.roleName; return *this; } void GetPrincipalsInRoleRequest::printTo(std::ostream& out) const { @@ -2323,14 +2775,14 @@ uint32_t GetPrincipalsInRoleResponse::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_LIST) { { this->principalGrants.clear(); - uint32_t _size103; - ::apache::thrift::protocol::TType _etype106; - xfer += iprot->readListBegin(_etype106, _size103); - this->principalGrants.resize(_size103); - uint32_t _i107; - for (_i107 = 0; _i107 < _size103; ++_i107) + uint32_t _size107; + ::apache::thrift::protocol::TType _etype110; + xfer += iprot->readListBegin(_etype110, _size107); + this->principalGrants.resize(_size107); + uint32_t _i111; + for (_i111 = 0; _i111 < _size107; ++_i111) { - xfer += this->principalGrants[_i107].read(iprot); + xfer += this->principalGrants[_i111].read(iprot); } xfer += iprot->readListEnd(); } @@ -2361,10 +2813,10 @@ uint32_t GetPrincipalsInRoleResponse::write(::apache::thrift::protocol::TProtoco xfer += oprot->writeFieldBegin("principalGrants", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->principalGrants.size())); - std::vector ::const_iterator _iter108; - for (_iter108 = this->principalGrants.begin(); _iter108 != this->principalGrants.end(); ++_iter108) + std::vector ::const_iterator _iter112; + for (_iter112 = this->principalGrants.begin(); _iter112 != this->principalGrants.end(); ++_iter112) { - xfer += (*_iter108).write(oprot); + xfer += (*_iter112).write(oprot); } xfer += oprot->writeListEnd(); } @@ -2380,11 +2832,11 @@ void swap(GetPrincipalsInRoleResponse &a, GetPrincipalsInRoleResponse &b) { swap(a.principalGrants, b.principalGrants); } -GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other109) { - principalGrants = other109.principalGrants; +GetPrincipalsInRoleResponse::GetPrincipalsInRoleResponse(const GetPrincipalsInRoleResponse& other113) { + principalGrants = other113.principalGrants; } -GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other110) { - principalGrants = other110.principalGrants; +GetPrincipalsInRoleResponse& GetPrincipalsInRoleResponse::operator=(const GetPrincipalsInRoleResponse& other114) { + principalGrants = other114.principalGrants; return *this; } void GetPrincipalsInRoleResponse::printTo(std::ostream& out) const { @@ -2453,9 +2905,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast111; - xfer += iprot->readI32(ecast111); - this->requestType = (GrantRevokeType::type)ecast111; + int32_t ecast115; + xfer += iprot->readI32(ecast115); + this->requestType = (GrantRevokeType::type)ecast115; this->__isset.requestType = true; } else { xfer += iprot->skip(ftype); @@ -2479,9 +2931,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast112; - xfer += iprot->readI32(ecast112); - this->principalType = (PrincipalType::type)ecast112; + int32_t ecast116; + xfer += iprot->readI32(ecast116); + this->principalType = (PrincipalType::type)ecast116; this->__isset.principalType = true; } else { xfer += iprot->skip(ftype); @@ -2497,9 +2949,9 @@ uint32_t GrantRevokeRoleRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast113; - xfer += iprot->readI32(ecast113); - this->grantorType = (PrincipalType::type)ecast113; + int32_t ecast117; + xfer += iprot->readI32(ecast117); + this->grantorType = (PrincipalType::type)ecast117; this->__isset.grantorType = true; } else { xfer += iprot->skip(ftype); @@ -2578,25 +3030,25 @@ void swap(GrantRevokeRoleRequest &a, GrantRevokeRoleRequest &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other114) { - requestType = other114.requestType; - roleName = other114.roleName; - principalName = other114.principalName; - principalType = other114.principalType; - grantor = other114.grantor; - grantorType = other114.grantorType; - grantOption = other114.grantOption; - __isset = other114.__isset; -} -GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other115) { - requestType = other115.requestType; - roleName = other115.roleName; - principalName = other115.principalName; - principalType = other115.principalType; - grantor = other115.grantor; - grantorType = other115.grantorType; - grantOption = other115.grantOption; - __isset = other115.__isset; +GrantRevokeRoleRequest::GrantRevokeRoleRequest(const GrantRevokeRoleRequest& other118) { + requestType = other118.requestType; + roleName = other118.roleName; + principalName = other118.principalName; + principalType = other118.principalType; + grantor = other118.grantor; + grantorType = other118.grantorType; + grantOption = other118.grantOption; + __isset = other118.__isset; +} +GrantRevokeRoleRequest& GrantRevokeRoleRequest::operator=(const GrantRevokeRoleRequest& other119) { + requestType = other119.requestType; + roleName = other119.roleName; + principalName = other119.principalName; + principalType = other119.principalType; + grantor = other119.grantor; + grantorType = other119.grantorType; + grantOption = other119.grantOption; + __isset = other119.__isset; return *this; } void GrantRevokeRoleRequest::printTo(std::ostream& out) const { @@ -2684,13 +3136,13 @@ void swap(GrantRevokeRoleResponse &a, GrantRevokeRoleResponse &b) { swap(a.__isset, b.__isset); } -GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other116) { - success = other116.success; - __isset = other116.__isset; +GrantRevokeRoleResponse::GrantRevokeRoleResponse(const GrantRevokeRoleResponse& other120) { + success = other120.success; + __isset = other120.__isset; } -GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other117) { - success = other117.success; - __isset = other117.__isset; +GrantRevokeRoleResponse& GrantRevokeRoleResponse::operator=(const GrantRevokeRoleResponse& other121) { + success = other121.success; + __isset = other121.__isset; return *this; } void GrantRevokeRoleResponse::printTo(std::ostream& out) const { @@ -2785,17 +3237,17 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size118; - ::apache::thrift::protocol::TType _ktype119; - ::apache::thrift::protocol::TType _vtype120; - xfer += iprot->readMapBegin(_ktype119, _vtype120, _size118); - uint32_t _i122; - for (_i122 = 0; _i122 < _size118; ++_i122) + uint32_t _size122; + ::apache::thrift::protocol::TType _ktype123; + ::apache::thrift::protocol::TType _vtype124; + xfer += iprot->readMapBegin(_ktype123, _vtype124, _size122); + uint32_t _i126; + for (_i126 = 0; _i126 < _size122; ++_i126) { - std::string _key123; - xfer += iprot->readString(_key123); - std::string& _val124 = this->parameters[_key123]; - xfer += iprot->readString(_val124); + std::string _key127; + xfer += iprot->readString(_key127); + std::string& _val128 = this->parameters[_key127]; + xfer += iprot->readString(_val128); } xfer += iprot->readMapEnd(); } @@ -2822,9 +3274,9 @@ uint32_t Database::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast125; - xfer += iprot->readI32(ecast125); - this->ownerType = (PrincipalType::type)ecast125; + int32_t ecast129; + xfer += iprot->readI32(ecast129); + this->ownerType = (PrincipalType::type)ecast129; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -2862,11 +3314,11 @@ uint32_t Database::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 4); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter126; - for (_iter126 = this->parameters.begin(); _iter126 != this->parameters.end(); ++_iter126) + std::map ::const_iterator _iter130; + for (_iter130 = this->parameters.begin(); _iter130 != this->parameters.end(); ++_iter130) { - xfer += oprot->writeString(_iter126->first); - xfer += oprot->writeString(_iter126->second); + xfer += oprot->writeString(_iter130->first); + xfer += oprot->writeString(_iter130->second); } xfer += oprot->writeMapEnd(); } @@ -2904,25 +3356,25 @@ void swap(Database &a, Database &b) { swap(a.__isset, b.__isset); } -Database::Database(const Database& other127) { - name = other127.name; - description = other127.description; - locationUri = other127.locationUri; - parameters = other127.parameters; - privileges = other127.privileges; - ownerName = other127.ownerName; - ownerType = other127.ownerType; - __isset = other127.__isset; -} -Database& Database::operator=(const Database& other128) { - name = other128.name; - description = other128.description; - locationUri = other128.locationUri; - parameters = other128.parameters; - privileges = other128.privileges; - ownerName = other128.ownerName; - ownerType = other128.ownerType; - __isset = other128.__isset; +Database::Database(const Database& other131) { + name = other131.name; + description = other131.description; + locationUri = other131.locationUri; + parameters = other131.parameters; + privileges = other131.privileges; + ownerName = other131.ownerName; + ownerType = other131.ownerType; + __isset = other131.__isset; +} +Database& Database::operator=(const Database& other132) { + name = other132.name; + description = other132.description; + locationUri = other132.locationUri; + parameters = other132.parameters; + privileges = other132.privileges; + ownerName = other132.ownerName; + ownerType = other132.ownerType; + __isset = other132.__isset; return *this; } void Database::printTo(std::ostream& out) const { @@ -2996,17 +3448,17 @@ uint32_t SerDeInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size129; - ::apache::thrift::protocol::TType _ktype130; - ::apache::thrift::protocol::TType _vtype131; - xfer += iprot->readMapBegin(_ktype130, _vtype131, _size129); - uint32_t _i133; - for (_i133 = 0; _i133 < _size129; ++_i133) + uint32_t _size133; + ::apache::thrift::protocol::TType _ktype134; + ::apache::thrift::protocol::TType _vtype135; + xfer += iprot->readMapBegin(_ktype134, _vtype135, _size133); + uint32_t _i137; + for (_i137 = 0; _i137 < _size133; ++_i137) { - std::string _key134; - xfer += iprot->readString(_key134); - std::string& _val135 = this->parameters[_key134]; - xfer += iprot->readString(_val135); + std::string _key138; + xfer += iprot->readString(_key138); + std::string& _val139 = this->parameters[_key138]; + xfer += iprot->readString(_val139); } xfer += iprot->readMapEnd(); } @@ -3043,11 +3495,11 @@ uint32_t SerDeInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter136; - for (_iter136 = this->parameters.begin(); _iter136 != this->parameters.end(); ++_iter136) + std::map ::const_iterator _iter140; + for (_iter140 = this->parameters.begin(); _iter140 != this->parameters.end(); ++_iter140) { - xfer += oprot->writeString(_iter136->first); - xfer += oprot->writeString(_iter136->second); + xfer += oprot->writeString(_iter140->first); + xfer += oprot->writeString(_iter140->second); } xfer += oprot->writeMapEnd(); } @@ -3066,17 +3518,17 @@ void swap(SerDeInfo &a, SerDeInfo &b) { swap(a.__isset, b.__isset); } -SerDeInfo::SerDeInfo(const SerDeInfo& other137) { - name = other137.name; - serializationLib = other137.serializationLib; - parameters = other137.parameters; - __isset = other137.__isset; +SerDeInfo::SerDeInfo(const SerDeInfo& other141) { + name = other141.name; + serializationLib = other141.serializationLib; + parameters = other141.parameters; + __isset = other141.__isset; } -SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other138) { - name = other138.name; - serializationLib = other138.serializationLib; - parameters = other138.parameters; - __isset = other138.__isset; +SerDeInfo& SerDeInfo::operator=(const SerDeInfo& other142) { + name = other142.name; + serializationLib = other142.serializationLib; + parameters = other142.parameters; + __isset = other142.__isset; return *this; } void SerDeInfo::printTo(std::ostream& out) const { @@ -3175,15 +3627,15 @@ void swap(Order &a, Order &b) { swap(a.__isset, b.__isset); } -Order::Order(const Order& other139) { - col = other139.col; - order = other139.order; - __isset = other139.__isset; +Order::Order(const Order& other143) { + col = other143.col; + order = other143.order; + __isset = other143.__isset; } -Order& Order::operator=(const Order& other140) { - col = other140.col; - order = other140.order; - __isset = other140.__isset; +Order& Order::operator=(const Order& other144) { + col = other144.col; + order = other144.order; + __isset = other144.__isset; return *this; } void Order::printTo(std::ostream& out) const { @@ -3236,14 +3688,14 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColNames.clear(); - uint32_t _size141; - ::apache::thrift::protocol::TType _etype144; - xfer += iprot->readListBegin(_etype144, _size141); - this->skewedColNames.resize(_size141); - uint32_t _i145; - for (_i145 = 0; _i145 < _size141; ++_i145) + uint32_t _size145; + ::apache::thrift::protocol::TType _etype148; + xfer += iprot->readListBegin(_etype148, _size145); + this->skewedColNames.resize(_size145); + uint32_t _i149; + for (_i149 = 0; _i149 < _size145; ++_i149) { - xfer += iprot->readString(this->skewedColNames[_i145]); + xfer += iprot->readString(this->skewedColNames[_i149]); } xfer += iprot->readListEnd(); } @@ -3256,23 +3708,23 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->skewedColValues.clear(); - uint32_t _size146; - ::apache::thrift::protocol::TType _etype149; - xfer += iprot->readListBegin(_etype149, _size146); - this->skewedColValues.resize(_size146); - uint32_t _i150; - for (_i150 = 0; _i150 < _size146; ++_i150) + uint32_t _size150; + ::apache::thrift::protocol::TType _etype153; + xfer += iprot->readListBegin(_etype153, _size150); + this->skewedColValues.resize(_size150); + uint32_t _i154; + for (_i154 = 0; _i154 < _size150; ++_i154) { { - this->skewedColValues[_i150].clear(); - uint32_t _size151; - ::apache::thrift::protocol::TType _etype154; - xfer += iprot->readListBegin(_etype154, _size151); - this->skewedColValues[_i150].resize(_size151); - uint32_t _i155; - for (_i155 = 0; _i155 < _size151; ++_i155) + this->skewedColValues[_i154].clear(); + uint32_t _size155; + ::apache::thrift::protocol::TType _etype158; + xfer += iprot->readListBegin(_etype158, _size155); + this->skewedColValues[_i154].resize(_size155); + uint32_t _i159; + for (_i159 = 0; _i159 < _size155; ++_i159) { - xfer += iprot->readString(this->skewedColValues[_i150][_i155]); + xfer += iprot->readString(this->skewedColValues[_i154][_i159]); } xfer += iprot->readListEnd(); } @@ -3288,29 +3740,29 @@ uint32_t SkewedInfo::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->skewedColValueLocationMaps.clear(); - uint32_t _size156; - ::apache::thrift::protocol::TType _ktype157; - ::apache::thrift::protocol::TType _vtype158; - xfer += iprot->readMapBegin(_ktype157, _vtype158, _size156); - uint32_t _i160; - for (_i160 = 0; _i160 < _size156; ++_i160) + uint32_t _size160; + ::apache::thrift::protocol::TType _ktype161; + ::apache::thrift::protocol::TType _vtype162; + xfer += iprot->readMapBegin(_ktype161, _vtype162, _size160); + uint32_t _i164; + for (_i164 = 0; _i164 < _size160; ++_i164) { - std::vector _key161; + std::vector _key165; { - _key161.clear(); - uint32_t _size163; - ::apache::thrift::protocol::TType _etype166; - xfer += iprot->readListBegin(_etype166, _size163); - _key161.resize(_size163); - uint32_t _i167; - for (_i167 = 0; _i167 < _size163; ++_i167) + _key165.clear(); + uint32_t _size167; + ::apache::thrift::protocol::TType _etype170; + xfer += iprot->readListBegin(_etype170, _size167); + _key165.resize(_size167); + uint32_t _i171; + for (_i171 = 0; _i171 < _size167; ++_i171) { - xfer += iprot->readString(_key161[_i167]); + xfer += iprot->readString(_key165[_i171]); } xfer += iprot->readListEnd(); } - std::string& _val162 = this->skewedColValueLocationMaps[_key161]; - xfer += iprot->readString(_val162); + std::string& _val166 = this->skewedColValueLocationMaps[_key165]; + xfer += iprot->readString(_val166); } xfer += iprot->readMapEnd(); } @@ -3339,10 +3791,10 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColNames", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->skewedColNames.size())); - std::vector ::const_iterator _iter168; - for (_iter168 = this->skewedColNames.begin(); _iter168 != this->skewedColNames.end(); ++_iter168) + std::vector ::const_iterator _iter172; + for (_iter172 = this->skewedColNames.begin(); _iter172 != this->skewedColNames.end(); ++_iter172) { - xfer += oprot->writeString((*_iter168)); + xfer += oprot->writeString((*_iter172)); } xfer += oprot->writeListEnd(); } @@ -3351,15 +3803,15 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValues", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_LIST, static_cast(this->skewedColValues.size())); - std::vector > ::const_iterator _iter169; - for (_iter169 = this->skewedColValues.begin(); _iter169 != this->skewedColValues.end(); ++_iter169) + std::vector > ::const_iterator _iter173; + for (_iter173 = this->skewedColValues.begin(); _iter173 != this->skewedColValues.end(); ++_iter173) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter169).size())); - std::vector ::const_iterator _iter170; - for (_iter170 = (*_iter169).begin(); _iter170 != (*_iter169).end(); ++_iter170) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast((*_iter173).size())); + std::vector ::const_iterator _iter174; + for (_iter174 = (*_iter173).begin(); _iter174 != (*_iter173).end(); ++_iter174) { - xfer += oprot->writeString((*_iter170)); + xfer += oprot->writeString((*_iter174)); } xfer += oprot->writeListEnd(); } @@ -3371,19 +3823,19 @@ uint32_t SkewedInfo::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("skewedColValueLocationMaps", ::apache::thrift::protocol::T_MAP, 3); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_LIST, ::apache::thrift::protocol::T_STRING, static_cast(this->skewedColValueLocationMaps.size())); - std::map , std::string> ::const_iterator _iter171; - for (_iter171 = this->skewedColValueLocationMaps.begin(); _iter171 != this->skewedColValueLocationMaps.end(); ++_iter171) + std::map , std::string> ::const_iterator _iter175; + for (_iter175 = this->skewedColValueLocationMaps.begin(); _iter175 != this->skewedColValueLocationMaps.end(); ++_iter175) { { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter171->first.size())); - std::vector ::const_iterator _iter172; - for (_iter172 = _iter171->first.begin(); _iter172 != _iter171->first.end(); ++_iter172) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(_iter175->first.size())); + std::vector ::const_iterator _iter176; + for (_iter176 = _iter175->first.begin(); _iter176 != _iter175->first.end(); ++_iter176) { - xfer += oprot->writeString((*_iter172)); + xfer += oprot->writeString((*_iter176)); } xfer += oprot->writeListEnd(); } - xfer += oprot->writeString(_iter171->second); + xfer += oprot->writeString(_iter175->second); } xfer += oprot->writeMapEnd(); } @@ -3402,17 +3854,17 @@ void swap(SkewedInfo &a, SkewedInfo &b) { swap(a.__isset, b.__isset); } -SkewedInfo::SkewedInfo(const SkewedInfo& other173) { - skewedColNames = other173.skewedColNames; - skewedColValues = other173.skewedColValues; - skewedColValueLocationMaps = other173.skewedColValueLocationMaps; - __isset = other173.__isset; +SkewedInfo::SkewedInfo(const SkewedInfo& other177) { + skewedColNames = other177.skewedColNames; + skewedColValues = other177.skewedColValues; + skewedColValueLocationMaps = other177.skewedColValueLocationMaps; + __isset = other177.__isset; } -SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other174) { - skewedColNames = other174.skewedColNames; - skewedColValues = other174.skewedColValues; - skewedColValueLocationMaps = other174.skewedColValueLocationMaps; - __isset = other174.__isset; +SkewedInfo& SkewedInfo::operator=(const SkewedInfo& other178) { + skewedColNames = other178.skewedColNames; + skewedColValues = other178.skewedColValues; + skewedColValueLocationMaps = other178.skewedColValueLocationMaps; + __isset = other178.__isset; return *this; } void SkewedInfo::printTo(std::ostream& out) const { @@ -3504,14 +3956,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->cols.clear(); - uint32_t _size175; - ::apache::thrift::protocol::TType _etype178; - xfer += iprot->readListBegin(_etype178, _size175); - this->cols.resize(_size175); - uint32_t _i179; - for (_i179 = 0; _i179 < _size175; ++_i179) + uint32_t _size179; + ::apache::thrift::protocol::TType _etype182; + xfer += iprot->readListBegin(_etype182, _size179); + this->cols.resize(_size179); + uint32_t _i183; + for (_i183 = 0; _i183 < _size179; ++_i183) { - xfer += this->cols[_i179].read(iprot); + xfer += this->cols[_i183].read(iprot); } xfer += iprot->readListEnd(); } @@ -3572,14 +4024,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->bucketCols.clear(); - uint32_t _size180; - ::apache::thrift::protocol::TType _etype183; - xfer += iprot->readListBegin(_etype183, _size180); - this->bucketCols.resize(_size180); - uint32_t _i184; - for (_i184 = 0; _i184 < _size180; ++_i184) + uint32_t _size184; + ::apache::thrift::protocol::TType _etype187; + xfer += iprot->readListBegin(_etype187, _size184); + this->bucketCols.resize(_size184); + uint32_t _i188; + for (_i188 = 0; _i188 < _size184; ++_i188) { - xfer += iprot->readString(this->bucketCols[_i184]); + xfer += iprot->readString(this->bucketCols[_i188]); } xfer += iprot->readListEnd(); } @@ -3592,14 +4044,14 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->sortCols.clear(); - uint32_t _size185; - ::apache::thrift::protocol::TType _etype188; - xfer += iprot->readListBegin(_etype188, _size185); - this->sortCols.resize(_size185); - uint32_t _i189; - for (_i189 = 0; _i189 < _size185; ++_i189) + uint32_t _size189; + ::apache::thrift::protocol::TType _etype192; + xfer += iprot->readListBegin(_etype192, _size189); + this->sortCols.resize(_size189); + uint32_t _i193; + for (_i193 = 0; _i193 < _size189; ++_i193) { - xfer += this->sortCols[_i189].read(iprot); + xfer += this->sortCols[_i193].read(iprot); } xfer += iprot->readListEnd(); } @@ -3612,17 +4064,17 @@ uint32_t StorageDescriptor::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size190; - ::apache::thrift::protocol::TType _ktype191; - ::apache::thrift::protocol::TType _vtype192; - xfer += iprot->readMapBegin(_ktype191, _vtype192, _size190); - uint32_t _i194; - for (_i194 = 0; _i194 < _size190; ++_i194) + uint32_t _size194; + ::apache::thrift::protocol::TType _ktype195; + ::apache::thrift::protocol::TType _vtype196; + xfer += iprot->readMapBegin(_ktype195, _vtype196, _size194); + uint32_t _i198; + for (_i198 = 0; _i198 < _size194; ++_i198) { - std::string _key195; - xfer += iprot->readString(_key195); - std::string& _val196 = this->parameters[_key195]; - xfer += iprot->readString(_val196); + std::string _key199; + xfer += iprot->readString(_key199); + std::string& _val200 = this->parameters[_key199]; + xfer += iprot->readString(_val200); } xfer += iprot->readMapEnd(); } @@ -3667,10 +4119,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("cols", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->cols.size())); - std::vector ::const_iterator _iter197; - for (_iter197 = this->cols.begin(); _iter197 != this->cols.end(); ++_iter197) + std::vector ::const_iterator _iter201; + for (_iter201 = this->cols.begin(); _iter201 != this->cols.end(); ++_iter201) { - xfer += (*_iter197).write(oprot); + xfer += (*_iter201).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3703,10 +4155,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("bucketCols", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->bucketCols.size())); - std::vector ::const_iterator _iter198; - for (_iter198 = this->bucketCols.begin(); _iter198 != this->bucketCols.end(); ++_iter198) + std::vector ::const_iterator _iter202; + for (_iter202 = this->bucketCols.begin(); _iter202 != this->bucketCols.end(); ++_iter202) { - xfer += oprot->writeString((*_iter198)); + xfer += oprot->writeString((*_iter202)); } xfer += oprot->writeListEnd(); } @@ -3715,10 +4167,10 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("sortCols", ::apache::thrift::protocol::T_LIST, 9); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->sortCols.size())); - std::vector ::const_iterator _iter199; - for (_iter199 = this->sortCols.begin(); _iter199 != this->sortCols.end(); ++_iter199) + std::vector ::const_iterator _iter203; + for (_iter203 = this->sortCols.begin(); _iter203 != this->sortCols.end(); ++_iter203) { - xfer += (*_iter199).write(oprot); + xfer += (*_iter203).write(oprot); } xfer += oprot->writeListEnd(); } @@ -3727,11 +4179,11 @@ uint32_t StorageDescriptor::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 10); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter200; - for (_iter200 = this->parameters.begin(); _iter200 != this->parameters.end(); ++_iter200) + std::map ::const_iterator _iter204; + for (_iter204 = this->parameters.begin(); _iter204 != this->parameters.end(); ++_iter204) { - xfer += oprot->writeString(_iter200->first); - xfer += oprot->writeString(_iter200->second); + xfer += oprot->writeString(_iter204->first); + xfer += oprot->writeString(_iter204->second); } xfer += oprot->writeMapEnd(); } @@ -3769,35 +4221,35 @@ void swap(StorageDescriptor &a, StorageDescriptor &b) { swap(a.__isset, b.__isset); } -StorageDescriptor::StorageDescriptor(const StorageDescriptor& other201) { - cols = other201.cols; - location = other201.location; - inputFormat = other201.inputFormat; - outputFormat = other201.outputFormat; - compressed = other201.compressed; - numBuckets = other201.numBuckets; - serdeInfo = other201.serdeInfo; - bucketCols = other201.bucketCols; - sortCols = other201.sortCols; - parameters = other201.parameters; - skewedInfo = other201.skewedInfo; - storedAsSubDirectories = other201.storedAsSubDirectories; - __isset = other201.__isset; -} -StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other202) { - cols = other202.cols; - location = other202.location; - inputFormat = other202.inputFormat; - outputFormat = other202.outputFormat; - compressed = other202.compressed; - numBuckets = other202.numBuckets; - serdeInfo = other202.serdeInfo; - bucketCols = other202.bucketCols; - sortCols = other202.sortCols; - parameters = other202.parameters; - skewedInfo = other202.skewedInfo; - storedAsSubDirectories = other202.storedAsSubDirectories; - __isset = other202.__isset; +StorageDescriptor::StorageDescriptor(const StorageDescriptor& other205) { + cols = other205.cols; + location = other205.location; + inputFormat = other205.inputFormat; + outputFormat = other205.outputFormat; + compressed = other205.compressed; + numBuckets = other205.numBuckets; + serdeInfo = other205.serdeInfo; + bucketCols = other205.bucketCols; + sortCols = other205.sortCols; + parameters = other205.parameters; + skewedInfo = other205.skewedInfo; + storedAsSubDirectories = other205.storedAsSubDirectories; + __isset = other205.__isset; +} +StorageDescriptor& StorageDescriptor::operator=(const StorageDescriptor& other206) { + cols = other206.cols; + location = other206.location; + inputFormat = other206.inputFormat; + outputFormat = other206.outputFormat; + compressed = other206.compressed; + numBuckets = other206.numBuckets; + serdeInfo = other206.serdeInfo; + bucketCols = other206.bucketCols; + sortCols = other206.sortCols; + parameters = other206.parameters; + skewedInfo = other206.skewedInfo; + storedAsSubDirectories = other206.storedAsSubDirectories; + __isset = other206.__isset; return *this; } void StorageDescriptor::printTo(std::ostream& out) const { @@ -3962,14 +4414,14 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionKeys.clear(); - uint32_t _size203; - ::apache::thrift::protocol::TType _etype206; - xfer += iprot->readListBegin(_etype206, _size203); - this->partitionKeys.resize(_size203); - uint32_t _i207; - for (_i207 = 0; _i207 < _size203; ++_i207) + uint32_t _size207; + ::apache::thrift::protocol::TType _etype210; + xfer += iprot->readListBegin(_etype210, _size207); + this->partitionKeys.resize(_size207); + uint32_t _i211; + for (_i211 = 0; _i211 < _size207; ++_i211) { - xfer += this->partitionKeys[_i207].read(iprot); + xfer += this->partitionKeys[_i211].read(iprot); } xfer += iprot->readListEnd(); } @@ -3982,17 +4434,17 @@ uint32_t Table::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size208; - ::apache::thrift::protocol::TType _ktype209; - ::apache::thrift::protocol::TType _vtype210; - xfer += iprot->readMapBegin(_ktype209, _vtype210, _size208); - uint32_t _i212; - for (_i212 = 0; _i212 < _size208; ++_i212) + uint32_t _size212; + ::apache::thrift::protocol::TType _ktype213; + ::apache::thrift::protocol::TType _vtype214; + xfer += iprot->readMapBegin(_ktype213, _vtype214, _size212); + uint32_t _i216; + for (_i216 = 0; _i216 < _size212; ++_i216) { - std::string _key213; - xfer += iprot->readString(_key213); - std::string& _val214 = this->parameters[_key213]; - xfer += iprot->readString(_val214); + std::string _key217; + xfer += iprot->readString(_key217); + std::string& _val218 = this->parameters[_key217]; + xfer += iprot->readString(_val218); } xfer += iprot->readMapEnd(); } @@ -4089,10 +4541,10 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("partitionKeys", ::apache::thrift::protocol::T_LIST, 8); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->partitionKeys.size())); - std::vector ::const_iterator _iter215; - for (_iter215 = this->partitionKeys.begin(); _iter215 != this->partitionKeys.end(); ++_iter215) + std::vector ::const_iterator _iter219; + for (_iter219 = this->partitionKeys.begin(); _iter219 != this->partitionKeys.end(); ++_iter219) { - xfer += (*_iter215).write(oprot); + xfer += (*_iter219).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4101,11 +4553,11 @@ uint32_t Table::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter216; - for (_iter216 = this->parameters.begin(); _iter216 != this->parameters.end(); ++_iter216) + std::map ::const_iterator _iter220; + for (_iter220 = this->parameters.begin(); _iter220 != this->parameters.end(); ++_iter220) { - xfer += oprot->writeString(_iter216->first); - xfer += oprot->writeString(_iter216->second); + xfer += oprot->writeString(_iter220->first); + xfer += oprot->writeString(_iter220->second); } xfer += oprot->writeMapEnd(); } @@ -4157,39 +4609,39 @@ void swap(Table &a, Table &b) { swap(a.__isset, b.__isset); } -Table::Table(const Table& other217) { - tableName = other217.tableName; - dbName = other217.dbName; - owner = other217.owner; - createTime = other217.createTime; - lastAccessTime = other217.lastAccessTime; - retention = other217.retention; - sd = other217.sd; - partitionKeys = other217.partitionKeys; - parameters = other217.parameters; - viewOriginalText = other217.viewOriginalText; - viewExpandedText = other217.viewExpandedText; - tableType = other217.tableType; - privileges = other217.privileges; - temporary = other217.temporary; - __isset = other217.__isset; -} -Table& Table::operator=(const Table& other218) { - tableName = other218.tableName; - dbName = other218.dbName; - owner = other218.owner; - createTime = other218.createTime; - lastAccessTime = other218.lastAccessTime; - retention = other218.retention; - sd = other218.sd; - partitionKeys = other218.partitionKeys; - parameters = other218.parameters; - viewOriginalText = other218.viewOriginalText; - viewExpandedText = other218.viewExpandedText; - tableType = other218.tableType; - privileges = other218.privileges; - temporary = other218.temporary; - __isset = other218.__isset; +Table::Table(const Table& other221) { + tableName = other221.tableName; + dbName = other221.dbName; + owner = other221.owner; + createTime = other221.createTime; + lastAccessTime = other221.lastAccessTime; + retention = other221.retention; + sd = other221.sd; + partitionKeys = other221.partitionKeys; + parameters = other221.parameters; + viewOriginalText = other221.viewOriginalText; + viewExpandedText = other221.viewExpandedText; + tableType = other221.tableType; + privileges = other221.privileges; + temporary = other221.temporary; + __isset = other221.__isset; +} +Table& Table::operator=(const Table& other222) { + tableName = other222.tableName; + dbName = other222.dbName; + owner = other222.owner; + createTime = other222.createTime; + lastAccessTime = other222.lastAccessTime; + retention = other222.retention; + sd = other222.sd; + partitionKeys = other222.partitionKeys; + parameters = other222.parameters; + viewOriginalText = other222.viewOriginalText; + viewExpandedText = other222.viewExpandedText; + tableType = other222.tableType; + privileges = other222.privileges; + temporary = other222.temporary; + __isset = other222.__isset; return *this; } void Table::printTo(std::ostream& out) const { @@ -4275,14 +4727,14 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size219; - ::apache::thrift::protocol::TType _etype222; - xfer += iprot->readListBegin(_etype222, _size219); - this->values.resize(_size219); - uint32_t _i223; - for (_i223 = 0; _i223 < _size219; ++_i223) + uint32_t _size223; + ::apache::thrift::protocol::TType _etype226; + xfer += iprot->readListBegin(_etype226, _size223); + this->values.resize(_size223); + uint32_t _i227; + for (_i227 = 0; _i227 < _size223; ++_i227) { - xfer += iprot->readString(this->values[_i223]); + xfer += iprot->readString(this->values[_i227]); } xfer += iprot->readListEnd(); } @@ -4335,17 +4787,17 @@ uint32_t Partition::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size224; - ::apache::thrift::protocol::TType _ktype225; - ::apache::thrift::protocol::TType _vtype226; - xfer += iprot->readMapBegin(_ktype225, _vtype226, _size224); - uint32_t _i228; - for (_i228 = 0; _i228 < _size224; ++_i228) + uint32_t _size228; + ::apache::thrift::protocol::TType _ktype229; + ::apache::thrift::protocol::TType _vtype230; + xfer += iprot->readMapBegin(_ktype229, _vtype230, _size228); + uint32_t _i232; + for (_i232 = 0; _i232 < _size228; ++_i232) { - std::string _key229; - xfer += iprot->readString(_key229); - std::string& _val230 = this->parameters[_key229]; - xfer += iprot->readString(_val230); + std::string _key233; + xfer += iprot->readString(_key233); + std::string& _val234 = this->parameters[_key233]; + xfer += iprot->readString(_val234); } xfer += iprot->readMapEnd(); } @@ -4382,10 +4834,10 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter231; - for (_iter231 = this->values.begin(); _iter231 != this->values.end(); ++_iter231) + std::vector ::const_iterator _iter235; + for (_iter235 = this->values.begin(); _iter235 != this->values.end(); ++_iter235) { - xfer += oprot->writeString((*_iter231)); + xfer += oprot->writeString((*_iter235)); } xfer += oprot->writeListEnd(); } @@ -4414,11 +4866,11 @@ uint32_t Partition::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 7); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter232; - for (_iter232 = this->parameters.begin(); _iter232 != this->parameters.end(); ++_iter232) + std::map ::const_iterator _iter236; + for (_iter236 = this->parameters.begin(); _iter236 != this->parameters.end(); ++_iter236) { - xfer += oprot->writeString(_iter232->first); - xfer += oprot->writeString(_iter232->second); + xfer += oprot->writeString(_iter236->first); + xfer += oprot->writeString(_iter236->second); } xfer += oprot->writeMapEnd(); } @@ -4447,27 +4899,27 @@ void swap(Partition &a, Partition &b) { swap(a.__isset, b.__isset); } -Partition::Partition(const Partition& other233) { - values = other233.values; - dbName = other233.dbName; - tableName = other233.tableName; - createTime = other233.createTime; - lastAccessTime = other233.lastAccessTime; - sd = other233.sd; - parameters = other233.parameters; - privileges = other233.privileges; - __isset = other233.__isset; -} -Partition& Partition::operator=(const Partition& other234) { - values = other234.values; - dbName = other234.dbName; - tableName = other234.tableName; - createTime = other234.createTime; - lastAccessTime = other234.lastAccessTime; - sd = other234.sd; - parameters = other234.parameters; - privileges = other234.privileges; - __isset = other234.__isset; +Partition::Partition(const Partition& other237) { + values = other237.values; + dbName = other237.dbName; + tableName = other237.tableName; + createTime = other237.createTime; + lastAccessTime = other237.lastAccessTime; + sd = other237.sd; + parameters = other237.parameters; + privileges = other237.privileges; + __isset = other237.__isset; +} +Partition& Partition::operator=(const Partition& other238) { + values = other238.values; + dbName = other238.dbName; + tableName = other238.tableName; + createTime = other238.createTime; + lastAccessTime = other238.lastAccessTime; + sd = other238.sd; + parameters = other238.parameters; + privileges = other238.privileges; + __isset = other238.__isset; return *this; } void Partition::printTo(std::ostream& out) const { @@ -4539,14 +4991,14 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->values.clear(); - uint32_t _size235; - ::apache::thrift::protocol::TType _etype238; - xfer += iprot->readListBegin(_etype238, _size235); - this->values.resize(_size235); - uint32_t _i239; - for (_i239 = 0; _i239 < _size235; ++_i239) + uint32_t _size239; + ::apache::thrift::protocol::TType _etype242; + xfer += iprot->readListBegin(_etype242, _size239); + this->values.resize(_size239); + uint32_t _i243; + for (_i243 = 0; _i243 < _size239; ++_i243) { - xfer += iprot->readString(this->values[_i239]); + xfer += iprot->readString(this->values[_i243]); } xfer += iprot->readListEnd(); } @@ -4583,17 +5035,17 @@ uint32_t PartitionWithoutSD::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size240; - ::apache::thrift::protocol::TType _ktype241; - ::apache::thrift::protocol::TType _vtype242; - xfer += iprot->readMapBegin(_ktype241, _vtype242, _size240); - uint32_t _i244; - for (_i244 = 0; _i244 < _size240; ++_i244) + uint32_t _size244; + ::apache::thrift::protocol::TType _ktype245; + ::apache::thrift::protocol::TType _vtype246; + xfer += iprot->readMapBegin(_ktype245, _vtype246, _size244); + uint32_t _i248; + for (_i248 = 0; _i248 < _size244; ++_i248) { - std::string _key245; - xfer += iprot->readString(_key245); - std::string& _val246 = this->parameters[_key245]; - xfer += iprot->readString(_val246); + std::string _key249; + xfer += iprot->readString(_key249); + std::string& _val250 = this->parameters[_key249]; + xfer += iprot->readString(_val250); } xfer += iprot->readMapEnd(); } @@ -4630,10 +5082,10 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("values", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRING, static_cast(this->values.size())); - std::vector ::const_iterator _iter247; - for (_iter247 = this->values.begin(); _iter247 != this->values.end(); ++_iter247) + std::vector ::const_iterator _iter251; + for (_iter251 = this->values.begin(); _iter251 != this->values.end(); ++_iter251) { - xfer += oprot->writeString((*_iter247)); + xfer += oprot->writeString((*_iter251)); } xfer += oprot->writeListEnd(); } @@ -4654,11 +5106,11 @@ uint32_t PartitionWithoutSD::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 5); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter248; - for (_iter248 = this->parameters.begin(); _iter248 != this->parameters.end(); ++_iter248) + std::map ::const_iterator _iter252; + for (_iter252 = this->parameters.begin(); _iter252 != this->parameters.end(); ++_iter252) { - xfer += oprot->writeString(_iter248->first); - xfer += oprot->writeString(_iter248->second); + xfer += oprot->writeString(_iter252->first); + xfer += oprot->writeString(_iter252->second); } xfer += oprot->writeMapEnd(); } @@ -4685,23 +5137,23 @@ void swap(PartitionWithoutSD &a, PartitionWithoutSD &b) { swap(a.__isset, b.__isset); } -PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other249) { - values = other249.values; - createTime = other249.createTime; - lastAccessTime = other249.lastAccessTime; - relativePath = other249.relativePath; - parameters = other249.parameters; - privileges = other249.privileges; - __isset = other249.__isset; -} -PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other250) { - values = other250.values; - createTime = other250.createTime; - lastAccessTime = other250.lastAccessTime; - relativePath = other250.relativePath; - parameters = other250.parameters; - privileges = other250.privileges; - __isset = other250.__isset; +PartitionWithoutSD::PartitionWithoutSD(const PartitionWithoutSD& other253) { + values = other253.values; + createTime = other253.createTime; + lastAccessTime = other253.lastAccessTime; + relativePath = other253.relativePath; + parameters = other253.parameters; + privileges = other253.privileges; + __isset = other253.__isset; +} +PartitionWithoutSD& PartitionWithoutSD::operator=(const PartitionWithoutSD& other254) { + values = other254.values; + createTime = other254.createTime; + lastAccessTime = other254.lastAccessTime; + relativePath = other254.relativePath; + parameters = other254.parameters; + privileges = other254.privileges; + __isset = other254.__isset; return *this; } void PartitionWithoutSD::printTo(std::ostream& out) const { @@ -4754,14 +5206,14 @@ uint32_t PartitionSpecWithSharedSD::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size251; - ::apache::thrift::protocol::TType _etype254; - xfer += iprot->readListBegin(_etype254, _size251); - this->partitions.resize(_size251); - uint32_t _i255; - for (_i255 = 0; _i255 < _size251; ++_i255) + uint32_t _size255; + ::apache::thrift::protocol::TType _etype258; + xfer += iprot->readListBegin(_etype258, _size255); + this->partitions.resize(_size255); + uint32_t _i259; + for (_i259 = 0; _i259 < _size255; ++_i259) { - xfer += this->partitions[_i255].read(iprot); + xfer += this->partitions[_i259].read(iprot); } xfer += iprot->readListEnd(); } @@ -4798,10 +5250,10 @@ uint32_t PartitionSpecWithSharedSD::write(::apache::thrift::protocol::TProtocol* 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 _iter256; - for (_iter256 = this->partitions.begin(); _iter256 != this->partitions.end(); ++_iter256) + std::vector ::const_iterator _iter260; + for (_iter260 = this->partitions.begin(); _iter260 != this->partitions.end(); ++_iter260) { - xfer += (*_iter256).write(oprot); + xfer += (*_iter260).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4823,15 +5275,15 @@ void swap(PartitionSpecWithSharedSD &a, PartitionSpecWithSharedSD &b) { swap(a.__isset, b.__isset); } -PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other257) { - partitions = other257.partitions; - sd = other257.sd; - __isset = other257.__isset; +PartitionSpecWithSharedSD::PartitionSpecWithSharedSD(const PartitionSpecWithSharedSD& other261) { + partitions = other261.partitions; + sd = other261.sd; + __isset = other261.__isset; } -PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other258) { - partitions = other258.partitions; - sd = other258.sd; - __isset = other258.__isset; +PartitionSpecWithSharedSD& PartitionSpecWithSharedSD::operator=(const PartitionSpecWithSharedSD& other262) { + partitions = other262.partitions; + sd = other262.sd; + __isset = other262.__isset; return *this; } void PartitionSpecWithSharedSD::printTo(std::ostream& out) const { @@ -4876,14 +5328,14 @@ uint32_t PartitionListComposingSpec::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size259; - ::apache::thrift::protocol::TType _etype262; - xfer += iprot->readListBegin(_etype262, _size259); - this->partitions.resize(_size259); - uint32_t _i263; - for (_i263 = 0; _i263 < _size259; ++_i263) + uint32_t _size263; + ::apache::thrift::protocol::TType _etype266; + xfer += iprot->readListBegin(_etype266, _size263); + this->partitions.resize(_size263); + uint32_t _i267; + for (_i267 = 0; _i267 < _size263; ++_i267) { - xfer += this->partitions[_i263].read(iprot); + xfer += this->partitions[_i267].read(iprot); } xfer += iprot->readListEnd(); } @@ -4912,10 +5364,10 @@ uint32_t PartitionListComposingSpec::write(::apache::thrift::protocol::TProtocol 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 _iter264; - for (_iter264 = this->partitions.begin(); _iter264 != this->partitions.end(); ++_iter264) + std::vector ::const_iterator _iter268; + for (_iter268 = this->partitions.begin(); _iter268 != this->partitions.end(); ++_iter268) { - xfer += (*_iter264).write(oprot); + xfer += (*_iter268).write(oprot); } xfer += oprot->writeListEnd(); } @@ -4932,13 +5384,13 @@ void swap(PartitionListComposingSpec &a, PartitionListComposingSpec &b) { swap(a.__isset, b.__isset); } -PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other265) { - partitions = other265.partitions; - __isset = other265.__isset; +PartitionListComposingSpec::PartitionListComposingSpec(const PartitionListComposingSpec& other269) { + partitions = other269.partitions; + __isset = other269.__isset; } -PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other266) { - partitions = other266.partitions; - __isset = other266.__isset; +PartitionListComposingSpec& PartitionListComposingSpec::operator=(const PartitionListComposingSpec& other270) { + partitions = other270.partitions; + __isset = other270.__isset; return *this; } void PartitionListComposingSpec::printTo(std::ostream& out) const { @@ -5090,21 +5542,21 @@ void swap(PartitionSpec &a, PartitionSpec &b) { swap(a.__isset, b.__isset); } -PartitionSpec::PartitionSpec(const PartitionSpec& other267) { - dbName = other267.dbName; - tableName = other267.tableName; - rootPath = other267.rootPath; - sharedSDPartitionSpec = other267.sharedSDPartitionSpec; - partitionList = other267.partitionList; - __isset = other267.__isset; -} -PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other268) { - dbName = other268.dbName; - tableName = other268.tableName; - rootPath = other268.rootPath; - sharedSDPartitionSpec = other268.sharedSDPartitionSpec; - partitionList = other268.partitionList; - __isset = other268.__isset; +PartitionSpec::PartitionSpec(const PartitionSpec& other271) { + dbName = other271.dbName; + tableName = other271.tableName; + rootPath = other271.rootPath; + sharedSDPartitionSpec = other271.sharedSDPartitionSpec; + partitionList = other271.partitionList; + __isset = other271.__isset; +} +PartitionSpec& PartitionSpec::operator=(const PartitionSpec& other272) { + dbName = other272.dbName; + tableName = other272.tableName; + rootPath = other272.rootPath; + sharedSDPartitionSpec = other272.sharedSDPartitionSpec; + partitionList = other272.partitionList; + __isset = other272.__isset; return *this; } void PartitionSpec::printTo(std::ostream& out) const { @@ -5252,17 +5704,17 @@ uint32_t Index::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->parameters.clear(); - uint32_t _size269; - ::apache::thrift::protocol::TType _ktype270; - ::apache::thrift::protocol::TType _vtype271; - xfer += iprot->readMapBegin(_ktype270, _vtype271, _size269); - uint32_t _i273; - for (_i273 = 0; _i273 < _size269; ++_i273) + uint32_t _size273; + ::apache::thrift::protocol::TType _ktype274; + ::apache::thrift::protocol::TType _vtype275; + xfer += iprot->readMapBegin(_ktype274, _vtype275, _size273); + uint32_t _i277; + for (_i277 = 0; _i277 < _size273; ++_i277) { - std::string _key274; - xfer += iprot->readString(_key274); - std::string& _val275 = this->parameters[_key274]; - xfer += iprot->readString(_val275); + std::string _key278; + xfer += iprot->readString(_key278); + std::string& _val279 = this->parameters[_key278]; + xfer += iprot->readString(_val279); } xfer += iprot->readMapEnd(); } @@ -5331,11 +5783,11 @@ uint32_t Index::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("parameters", ::apache::thrift::protocol::T_MAP, 9); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->parameters.size())); - std::map ::const_iterator _iter276; - for (_iter276 = this->parameters.begin(); _iter276 != this->parameters.end(); ++_iter276) + std::map ::const_iterator _iter280; + for (_iter280 = this->parameters.begin(); _iter280 != this->parameters.end(); ++_iter280) { - xfer += oprot->writeString(_iter276->first); - xfer += oprot->writeString(_iter276->second); + xfer += oprot->writeString(_iter280->first); + xfer += oprot->writeString(_iter280->second); } xfer += oprot->writeMapEnd(); } @@ -5365,31 +5817,31 @@ void swap(Index &a, Index &b) { swap(a.__isset, b.__isset); } -Index::Index(const Index& other277) { - indexName = other277.indexName; - indexHandlerClass = other277.indexHandlerClass; - dbName = other277.dbName; - origTableName = other277.origTableName; - createTime = other277.createTime; - lastAccessTime = other277.lastAccessTime; - indexTableName = other277.indexTableName; - sd = other277.sd; - parameters = other277.parameters; - deferredRebuild = other277.deferredRebuild; - __isset = other277.__isset; -} -Index& Index::operator=(const Index& other278) { - indexName = other278.indexName; - indexHandlerClass = other278.indexHandlerClass; - dbName = other278.dbName; - origTableName = other278.origTableName; - createTime = other278.createTime; - lastAccessTime = other278.lastAccessTime; - indexTableName = other278.indexTableName; - sd = other278.sd; - parameters = other278.parameters; - deferredRebuild = other278.deferredRebuild; - __isset = other278.__isset; +Index::Index(const Index& other281) { + indexName = other281.indexName; + indexHandlerClass = other281.indexHandlerClass; + dbName = other281.dbName; + origTableName = other281.origTableName; + createTime = other281.createTime; + lastAccessTime = other281.lastAccessTime; + indexTableName = other281.indexTableName; + sd = other281.sd; + parameters = other281.parameters; + deferredRebuild = other281.deferredRebuild; + __isset = other281.__isset; +} +Index& Index::operator=(const Index& other282) { + indexName = other282.indexName; + indexHandlerClass = other282.indexHandlerClass; + dbName = other282.dbName; + origTableName = other282.origTableName; + createTime = other282.createTime; + lastAccessTime = other282.lastAccessTime; + indexTableName = other282.indexTableName; + sd = other282.sd; + parameters = other282.parameters; + deferredRebuild = other282.deferredRebuild; + __isset = other282.__isset; return *this; } void Index::printTo(std::ostream& out) const { @@ -5540,19 +5992,19 @@ void swap(BooleanColumnStatsData &a, BooleanColumnStatsData &b) { swap(a.__isset, b.__isset); } -BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other279) { - numTrues = other279.numTrues; - numFalses = other279.numFalses; - numNulls = other279.numNulls; - bitVectors = other279.bitVectors; - __isset = other279.__isset; +BooleanColumnStatsData::BooleanColumnStatsData(const BooleanColumnStatsData& other283) { + numTrues = other283.numTrues; + numFalses = other283.numFalses; + numNulls = other283.numNulls; + bitVectors = other283.bitVectors; + __isset = other283.__isset; } -BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other280) { - numTrues = other280.numTrues; - numFalses = other280.numFalses; - numNulls = other280.numNulls; - bitVectors = other280.bitVectors; - __isset = other280.__isset; +BooleanColumnStatsData& BooleanColumnStatsData::operator=(const BooleanColumnStatsData& other284) { + numTrues = other284.numTrues; + numFalses = other284.numFalses; + numNulls = other284.numNulls; + bitVectors = other284.bitVectors; + __isset = other284.__isset; return *this; } void BooleanColumnStatsData::printTo(std::ostream& out) const { @@ -5715,21 +6167,21 @@ void swap(DoubleColumnStatsData &a, DoubleColumnStatsData &b) { swap(a.__isset, b.__isset); } -DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other281) { - lowValue = other281.lowValue; - highValue = other281.highValue; - numNulls = other281.numNulls; - numDVs = other281.numDVs; - bitVectors = other281.bitVectors; - __isset = other281.__isset; +DoubleColumnStatsData::DoubleColumnStatsData(const DoubleColumnStatsData& other285) { + lowValue = other285.lowValue; + highValue = other285.highValue; + numNulls = other285.numNulls; + numDVs = other285.numDVs; + bitVectors = other285.bitVectors; + __isset = other285.__isset; } -DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other282) { - lowValue = other282.lowValue; - highValue = other282.highValue; - numNulls = other282.numNulls; - numDVs = other282.numDVs; - bitVectors = other282.bitVectors; - __isset = other282.__isset; +DoubleColumnStatsData& DoubleColumnStatsData::operator=(const DoubleColumnStatsData& other286) { + lowValue = other286.lowValue; + highValue = other286.highValue; + numNulls = other286.numNulls; + numDVs = other286.numDVs; + bitVectors = other286.bitVectors; + __isset = other286.__isset; return *this; } void DoubleColumnStatsData::printTo(std::ostream& out) const { @@ -5893,21 +6345,21 @@ void swap(LongColumnStatsData &a, LongColumnStatsData &b) { swap(a.__isset, b.__isset); } -LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other283) { - lowValue = other283.lowValue; - highValue = other283.highValue; - numNulls = other283.numNulls; - numDVs = other283.numDVs; - bitVectors = other283.bitVectors; - __isset = other283.__isset; +LongColumnStatsData::LongColumnStatsData(const LongColumnStatsData& other287) { + lowValue = other287.lowValue; + highValue = other287.highValue; + numNulls = other287.numNulls; + numDVs = other287.numDVs; + bitVectors = other287.bitVectors; + __isset = other287.__isset; } -LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other284) { - lowValue = other284.lowValue; - highValue = other284.highValue; - numNulls = other284.numNulls; - numDVs = other284.numDVs; - bitVectors = other284.bitVectors; - __isset = other284.__isset; +LongColumnStatsData& LongColumnStatsData::operator=(const LongColumnStatsData& other288) { + lowValue = other288.lowValue; + highValue = other288.highValue; + numNulls = other288.numNulls; + numDVs = other288.numDVs; + bitVectors = other288.bitVectors; + __isset = other288.__isset; return *this; } void LongColumnStatsData::printTo(std::ostream& out) const { @@ -6073,21 +6525,21 @@ void swap(StringColumnStatsData &a, StringColumnStatsData &b) { swap(a.__isset, b.__isset); } -StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other285) { - maxColLen = other285.maxColLen; - avgColLen = other285.avgColLen; - numNulls = other285.numNulls; - numDVs = other285.numDVs; - bitVectors = other285.bitVectors; - __isset = other285.__isset; -} -StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other286) { - maxColLen = other286.maxColLen; - avgColLen = other286.avgColLen; - numNulls = other286.numNulls; - numDVs = other286.numDVs; - bitVectors = other286.bitVectors; - __isset = other286.__isset; +StringColumnStatsData::StringColumnStatsData(const StringColumnStatsData& other289) { + maxColLen = other289.maxColLen; + avgColLen = other289.avgColLen; + numNulls = other289.numNulls; + numDVs = other289.numDVs; + bitVectors = other289.bitVectors; + __isset = other289.__isset; +} +StringColumnStatsData& StringColumnStatsData::operator=(const StringColumnStatsData& other290) { + maxColLen = other290.maxColLen; + avgColLen = other290.avgColLen; + numNulls = other290.numNulls; + numDVs = other290.numDVs; + bitVectors = other290.bitVectors; + __isset = other290.__isset; return *this; } void StringColumnStatsData::printTo(std::ostream& out) const { @@ -6233,19 +6685,19 @@ void swap(BinaryColumnStatsData &a, BinaryColumnStatsData &b) { swap(a.__isset, b.__isset); } -BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other287) { - maxColLen = other287.maxColLen; - avgColLen = other287.avgColLen; - numNulls = other287.numNulls; - bitVectors = other287.bitVectors; - __isset = other287.__isset; +BinaryColumnStatsData::BinaryColumnStatsData(const BinaryColumnStatsData& other291) { + maxColLen = other291.maxColLen; + avgColLen = other291.avgColLen; + numNulls = other291.numNulls; + bitVectors = other291.bitVectors; + __isset = other291.__isset; } -BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other288) { - maxColLen = other288.maxColLen; - avgColLen = other288.avgColLen; - numNulls = other288.numNulls; - bitVectors = other288.bitVectors; - __isset = other288.__isset; +BinaryColumnStatsData& BinaryColumnStatsData::operator=(const BinaryColumnStatsData& other292) { + maxColLen = other292.maxColLen; + avgColLen = other292.avgColLen; + numNulls = other292.numNulls; + bitVectors = other292.bitVectors; + __isset = other292.__isset; return *this; } void BinaryColumnStatsData::printTo(std::ostream& out) const { @@ -6350,13 +6802,13 @@ void swap(Decimal &a, Decimal &b) { swap(a.scale, b.scale); } -Decimal::Decimal(const Decimal& other289) { - unscaled = other289.unscaled; - scale = other289.scale; +Decimal::Decimal(const Decimal& other293) { + unscaled = other293.unscaled; + scale = other293.scale; } -Decimal& Decimal::operator=(const Decimal& other290) { - unscaled = other290.unscaled; - scale = other290.scale; +Decimal& Decimal::operator=(const Decimal& other294) { + unscaled = other294.unscaled; + scale = other294.scale; return *this; } void Decimal::printTo(std::ostream& out) const { @@ -6517,21 +6969,21 @@ void swap(DecimalColumnStatsData &a, DecimalColumnStatsData &b) { swap(a.__isset, b.__isset); } -DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other291) { - lowValue = other291.lowValue; - highValue = other291.highValue; - numNulls = other291.numNulls; - numDVs = other291.numDVs; - bitVectors = other291.bitVectors; - __isset = other291.__isset; +DecimalColumnStatsData::DecimalColumnStatsData(const DecimalColumnStatsData& other295) { + lowValue = other295.lowValue; + highValue = other295.highValue; + numNulls = other295.numNulls; + numDVs = other295.numDVs; + bitVectors = other295.bitVectors; + __isset = other295.__isset; } -DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other292) { - lowValue = other292.lowValue; - highValue = other292.highValue; - numNulls = other292.numNulls; - numDVs = other292.numDVs; - bitVectors = other292.bitVectors; - __isset = other292.__isset; +DecimalColumnStatsData& DecimalColumnStatsData::operator=(const DecimalColumnStatsData& other296) { + lowValue = other296.lowValue; + highValue = other296.highValue; + numNulls = other296.numNulls; + numDVs = other296.numDVs; + bitVectors = other296.bitVectors; + __isset = other296.__isset; return *this; } void DecimalColumnStatsData::printTo(std::ostream& out) const { @@ -6617,11 +7069,11 @@ void swap(Date &a, Date &b) { swap(a.daysSinceEpoch, b.daysSinceEpoch); } -Date::Date(const Date& other293) { - daysSinceEpoch = other293.daysSinceEpoch; +Date::Date(const Date& other297) { + daysSinceEpoch = other297.daysSinceEpoch; } -Date& Date::operator=(const Date& other294) { - daysSinceEpoch = other294.daysSinceEpoch; +Date& Date::operator=(const Date& other298) { + daysSinceEpoch = other298.daysSinceEpoch; return *this; } void Date::printTo(std::ostream& out) const { @@ -6781,21 +7233,21 @@ void swap(DateColumnStatsData &a, DateColumnStatsData &b) { swap(a.__isset, b.__isset); } -DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other295) { - lowValue = other295.lowValue; - highValue = other295.highValue; - numNulls = other295.numNulls; - numDVs = other295.numDVs; - bitVectors = other295.bitVectors; - __isset = other295.__isset; -} -DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other296) { - lowValue = other296.lowValue; - highValue = other296.highValue; - numNulls = other296.numNulls; - numDVs = other296.numDVs; - bitVectors = other296.bitVectors; - __isset = other296.__isset; +DateColumnStatsData::DateColumnStatsData(const DateColumnStatsData& other299) { + lowValue = other299.lowValue; + highValue = other299.highValue; + numNulls = other299.numNulls; + numDVs = other299.numDVs; + bitVectors = other299.bitVectors; + __isset = other299.__isset; +} +DateColumnStatsData& DateColumnStatsData::operator=(const DateColumnStatsData& other300) { + lowValue = other300.lowValue; + highValue = other300.highValue; + numNulls = other300.numNulls; + numDVs = other300.numDVs; + bitVectors = other300.bitVectors; + __isset = other300.__isset; return *this; } void DateColumnStatsData::printTo(std::ostream& out) const { @@ -6981,25 +7433,25 @@ void swap(ColumnStatisticsData &a, ColumnStatisticsData &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other297) { - booleanStats = other297.booleanStats; - longStats = other297.longStats; - doubleStats = other297.doubleStats; - stringStats = other297.stringStats; - binaryStats = other297.binaryStats; - decimalStats = other297.decimalStats; - dateStats = other297.dateStats; - __isset = other297.__isset; -} -ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other298) { - booleanStats = other298.booleanStats; - longStats = other298.longStats; - doubleStats = other298.doubleStats; - stringStats = other298.stringStats; - binaryStats = other298.binaryStats; - decimalStats = other298.decimalStats; - dateStats = other298.dateStats; - __isset = other298.__isset; +ColumnStatisticsData::ColumnStatisticsData(const ColumnStatisticsData& other301) { + booleanStats = other301.booleanStats; + longStats = other301.longStats; + doubleStats = other301.doubleStats; + stringStats = other301.stringStats; + binaryStats = other301.binaryStats; + decimalStats = other301.decimalStats; + dateStats = other301.dateStats; + __isset = other301.__isset; +} +ColumnStatisticsData& ColumnStatisticsData::operator=(const ColumnStatisticsData& other302) { + booleanStats = other302.booleanStats; + longStats = other302.longStats; + doubleStats = other302.doubleStats; + stringStats = other302.stringStats; + binaryStats = other302.binaryStats; + decimalStats = other302.decimalStats; + dateStats = other302.dateStats; + __isset = other302.__isset; return *this; } void ColumnStatisticsData::printTo(std::ostream& out) const { @@ -7127,15 +7579,15 @@ void swap(ColumnStatisticsObj &a, ColumnStatisticsObj &b) { swap(a.statsData, b.statsData); } -ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other299) { - colName = other299.colName; - colType = other299.colType; - statsData = other299.statsData; +ColumnStatisticsObj::ColumnStatisticsObj(const ColumnStatisticsObj& other303) { + colName = other303.colName; + colType = other303.colType; + statsData = other303.statsData; } -ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other300) { - colName = other300.colName; - colType = other300.colType; - statsData = other300.statsData; +ColumnStatisticsObj& ColumnStatisticsObj::operator=(const ColumnStatisticsObj& other304) { + colName = other304.colName; + colType = other304.colType; + statsData = other304.statsData; return *this; } void ColumnStatisticsObj::printTo(std::ostream& out) const { @@ -7298,21 +7750,21 @@ void swap(ColumnStatisticsDesc &a, ColumnStatisticsDesc &b) { swap(a.__isset, b.__isset); } -ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other301) { - isTblLevel = other301.isTblLevel; - dbName = other301.dbName; - tableName = other301.tableName; - partName = other301.partName; - lastAnalyzed = other301.lastAnalyzed; - __isset = other301.__isset; -} -ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other302) { - isTblLevel = other302.isTblLevel; - dbName = other302.dbName; - tableName = other302.tableName; - partName = other302.partName; - lastAnalyzed = other302.lastAnalyzed; - __isset = other302.__isset; +ColumnStatisticsDesc::ColumnStatisticsDesc(const ColumnStatisticsDesc& other305) { + isTblLevel = other305.isTblLevel; + dbName = other305.dbName; + tableName = other305.tableName; + partName = other305.partName; + lastAnalyzed = other305.lastAnalyzed; + __isset = other305.__isset; +} +ColumnStatisticsDesc& ColumnStatisticsDesc::operator=(const ColumnStatisticsDesc& other306) { + isTblLevel = other306.isTblLevel; + dbName = other306.dbName; + tableName = other306.tableName; + partName = other306.partName; + lastAnalyzed = other306.lastAnalyzed; + __isset = other306.__isset; return *this; } void ColumnStatisticsDesc::printTo(std::ostream& out) const { @@ -7374,14 +7826,14 @@ uint32_t ColumnStatistics::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->statsObj.clear(); - uint32_t _size303; - ::apache::thrift::protocol::TType _etype306; - xfer += iprot->readListBegin(_etype306, _size303); - this->statsObj.resize(_size303); - uint32_t _i307; - for (_i307 = 0; _i307 < _size303; ++_i307) + uint32_t _size307; + ::apache::thrift::protocol::TType _etype310; + xfer += iprot->readListBegin(_etype310, _size307); + this->statsObj.resize(_size307); + uint32_t _i311; + for (_i311 = 0; _i311 < _size307; ++_i311) { - xfer += this->statsObj[_i307].read(iprot); + xfer += this->statsObj[_i311].read(iprot); } xfer += iprot->readListEnd(); } @@ -7418,10 +7870,10 @@ uint32_t ColumnStatistics::write(::apache::thrift::protocol::TProtocol* oprot) c xfer += oprot->writeFieldBegin("statsObj", ::apache::thrift::protocol::T_LIST, 2); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->statsObj.size())); - std::vector ::const_iterator _iter308; - for (_iter308 = this->statsObj.begin(); _iter308 != this->statsObj.end(); ++_iter308) + std::vector ::const_iterator _iter312; + for (_iter312 = this->statsObj.begin(); _iter312 != this->statsObj.end(); ++_iter312) { - xfer += (*_iter308).write(oprot); + xfer += (*_iter312).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7438,13 +7890,13 @@ void swap(ColumnStatistics &a, ColumnStatistics &b) { swap(a.statsObj, b.statsObj); } -ColumnStatistics::ColumnStatistics(const ColumnStatistics& other309) { - statsDesc = other309.statsDesc; - statsObj = other309.statsObj; +ColumnStatistics::ColumnStatistics(const ColumnStatistics& other313) { + statsDesc = other313.statsDesc; + statsObj = other313.statsObj; } -ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other310) { - statsDesc = other310.statsDesc; - statsObj = other310.statsObj; +ColumnStatistics& ColumnStatistics::operator=(const ColumnStatistics& other314) { + statsDesc = other314.statsDesc; + statsObj = other314.statsObj; return *this; } void ColumnStatistics::printTo(std::ostream& out) const { @@ -7495,14 +7947,14 @@ uint32_t AggrStats::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size311; - ::apache::thrift::protocol::TType _etype314; - xfer += iprot->readListBegin(_etype314, _size311); - this->colStats.resize(_size311); - uint32_t _i315; - for (_i315 = 0; _i315 < _size311; ++_i315) + uint32_t _size315; + ::apache::thrift::protocol::TType _etype318; + xfer += iprot->readListBegin(_etype318, _size315); + this->colStats.resize(_size315); + uint32_t _i319; + for (_i319 = 0; _i319 < _size315; ++_i319) { - xfer += this->colStats[_i315].read(iprot); + xfer += this->colStats[_i319].read(iprot); } xfer += iprot->readListEnd(); } @@ -7543,10 +7995,10 @@ uint32_t AggrStats::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter316; - for (_iter316 = this->colStats.begin(); _iter316 != this->colStats.end(); ++_iter316) + std::vector ::const_iterator _iter320; + for (_iter320 = this->colStats.begin(); _iter320 != this->colStats.end(); ++_iter320) { - xfer += (*_iter316).write(oprot); + xfer += (*_iter320).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7567,13 +8019,13 @@ void swap(AggrStats &a, AggrStats &b) { swap(a.partsFound, b.partsFound); } -AggrStats::AggrStats(const AggrStats& other317) { - colStats = other317.colStats; - partsFound = other317.partsFound; +AggrStats::AggrStats(const AggrStats& other321) { + colStats = other321.colStats; + partsFound = other321.partsFound; } -AggrStats& AggrStats::operator=(const AggrStats& other318) { - colStats = other318.colStats; - partsFound = other318.partsFound; +AggrStats& AggrStats::operator=(const AggrStats& other322) { + colStats = other322.colStats; + partsFound = other322.partsFound; return *this; } void AggrStats::printTo(std::ostream& out) const { @@ -7619,14 +8071,14 @@ uint32_t SetPartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colStats.clear(); - uint32_t _size319; - ::apache::thrift::protocol::TType _etype322; - xfer += iprot->readListBegin(_etype322, _size319); - this->colStats.resize(_size319); - uint32_t _i323; - for (_i323 = 0; _i323 < _size319; ++_i323) + uint32_t _size323; + ::apache::thrift::protocol::TType _etype326; + xfer += iprot->readListBegin(_etype326, _size323); + this->colStats.resize(_size323); + uint32_t _i327; + for (_i327 = 0; _i327 < _size323; ++_i327) { - xfer += this->colStats[_i323].read(iprot); + xfer += this->colStats[_i327].read(iprot); } xfer += iprot->readListEnd(); } @@ -7657,10 +8109,10 @@ uint32_t SetPartitionsStatsRequest::write(::apache::thrift::protocol::TProtocol* xfer += oprot->writeFieldBegin("colStats", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->colStats.size())); - std::vector ::const_iterator _iter324; - for (_iter324 = this->colStats.begin(); _iter324 != this->colStats.end(); ++_iter324) + std::vector ::const_iterator _iter328; + for (_iter328 = this->colStats.begin(); _iter328 != this->colStats.end(); ++_iter328) { - xfer += (*_iter324).write(oprot); + xfer += (*_iter328).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7676,11 +8128,11 @@ void swap(SetPartitionsStatsRequest &a, SetPartitionsStatsRequest &b) { swap(a.colStats, b.colStats); } -SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other325) { - colStats = other325.colStats; +SetPartitionsStatsRequest::SetPartitionsStatsRequest(const SetPartitionsStatsRequest& other329) { + colStats = other329.colStats; } -SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other326) { - colStats = other326.colStats; +SetPartitionsStatsRequest& SetPartitionsStatsRequest::operator=(const SetPartitionsStatsRequest& other330) { + colStats = other330.colStats; return *this; } void SetPartitionsStatsRequest::printTo(std::ostream& out) const { @@ -7728,14 +8180,14 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fieldSchemas.clear(); - uint32_t _size327; - ::apache::thrift::protocol::TType _etype330; - xfer += iprot->readListBegin(_etype330, _size327); - this->fieldSchemas.resize(_size327); - uint32_t _i331; - for (_i331 = 0; _i331 < _size327; ++_i331) + uint32_t _size331; + ::apache::thrift::protocol::TType _etype334; + xfer += iprot->readListBegin(_etype334, _size331); + this->fieldSchemas.resize(_size331); + uint32_t _i335; + for (_i335 = 0; _i335 < _size331; ++_i335) { - xfer += this->fieldSchemas[_i331].read(iprot); + xfer += this->fieldSchemas[_i335].read(iprot); } xfer += iprot->readListEnd(); } @@ -7748,17 +8200,17 @@ uint32_t Schema::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size332; - ::apache::thrift::protocol::TType _ktype333; - ::apache::thrift::protocol::TType _vtype334; - xfer += iprot->readMapBegin(_ktype333, _vtype334, _size332); - uint32_t _i336; - for (_i336 = 0; _i336 < _size332; ++_i336) + uint32_t _size336; + ::apache::thrift::protocol::TType _ktype337; + ::apache::thrift::protocol::TType _vtype338; + xfer += iprot->readMapBegin(_ktype337, _vtype338, _size336); + uint32_t _i340; + for (_i340 = 0; _i340 < _size336; ++_i340) { - std::string _key337; - xfer += iprot->readString(_key337); - std::string& _val338 = this->properties[_key337]; - xfer += iprot->readString(_val338); + std::string _key341; + xfer += iprot->readString(_key341); + std::string& _val342 = this->properties[_key341]; + xfer += iprot->readString(_val342); } xfer += iprot->readMapEnd(); } @@ -7787,10 +8239,10 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("fieldSchemas", ::apache::thrift::protocol::T_LIST, 1); { xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(this->fieldSchemas.size())); - std::vector ::const_iterator _iter339; - for (_iter339 = this->fieldSchemas.begin(); _iter339 != this->fieldSchemas.end(); ++_iter339) + std::vector ::const_iterator _iter343; + for (_iter343 = this->fieldSchemas.begin(); _iter343 != this->fieldSchemas.end(); ++_iter343) { - xfer += (*_iter339).write(oprot); + xfer += (*_iter343).write(oprot); } xfer += oprot->writeListEnd(); } @@ -7799,11 +8251,11 @@ uint32_t Schema::write(::apache::thrift::protocol::TProtocol* oprot) const { xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 2); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter340; - for (_iter340 = this->properties.begin(); _iter340 != this->properties.end(); ++_iter340) + std::map ::const_iterator _iter344; + for (_iter344 = this->properties.begin(); _iter344 != this->properties.end(); ++_iter344) { - xfer += oprot->writeString(_iter340->first); - xfer += oprot->writeString(_iter340->second); + xfer += oprot->writeString(_iter344->first); + xfer += oprot->writeString(_iter344->second); } xfer += oprot->writeMapEnd(); } @@ -7821,15 +8273,15 @@ void swap(Schema &a, Schema &b) { swap(a.__isset, b.__isset); } -Schema::Schema(const Schema& other341) { - fieldSchemas = other341.fieldSchemas; - properties = other341.properties; - __isset = other341.__isset; +Schema::Schema(const Schema& other345) { + fieldSchemas = other345.fieldSchemas; + properties = other345.properties; + __isset = other345.__isset; } -Schema& Schema::operator=(const Schema& other342) { - fieldSchemas = other342.fieldSchemas; - properties = other342.properties; - __isset = other342.__isset; +Schema& Schema::operator=(const Schema& other346) { + fieldSchemas = other346.fieldSchemas; + properties = other346.properties; + __isset = other346.__isset; return *this; } void Schema::printTo(std::ostream& out) const { @@ -7874,17 +8326,17 @@ uint32_t EnvironmentContext::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_MAP) { { this->properties.clear(); - uint32_t _size343; - ::apache::thrift::protocol::TType _ktype344; - ::apache::thrift::protocol::TType _vtype345; - xfer += iprot->readMapBegin(_ktype344, _vtype345, _size343); - uint32_t _i347; - for (_i347 = 0; _i347 < _size343; ++_i347) + uint32_t _size347; + ::apache::thrift::protocol::TType _ktype348; + ::apache::thrift::protocol::TType _vtype349; + xfer += iprot->readMapBegin(_ktype348, _vtype349, _size347); + uint32_t _i351; + for (_i351 = 0; _i351 < _size347; ++_i351) { - std::string _key348; - xfer += iprot->readString(_key348); - std::string& _val349 = this->properties[_key348]; - xfer += iprot->readString(_val349); + std::string _key352; + xfer += iprot->readString(_key352); + std::string& _val353 = this->properties[_key352]; + xfer += iprot->readString(_val353); } xfer += iprot->readMapEnd(); } @@ -7913,11 +8365,11 @@ uint32_t EnvironmentContext::write(::apache::thrift::protocol::TProtocol* oprot) xfer += oprot->writeFieldBegin("properties", ::apache::thrift::protocol::T_MAP, 1); { xfer += oprot->writeMapBegin(::apache::thrift::protocol::T_STRING, ::apache::thrift::protocol::T_STRING, static_cast(this->properties.size())); - std::map ::const_iterator _iter350; - for (_iter350 = this->properties.begin(); _iter350 != this->properties.end(); ++_iter350) + std::map ::const_iterator _iter354; + for (_iter354 = this->properties.begin(); _iter354 != this->properties.end(); ++_iter354) { - xfer += oprot->writeString(_iter350->first); - xfer += oprot->writeString(_iter350->second); + xfer += oprot->writeString(_iter354->first); + xfer += oprot->writeString(_iter354->second); } xfer += oprot->writeMapEnd(); } @@ -7934,13 +8386,13 @@ void swap(EnvironmentContext &a, EnvironmentContext &b) { swap(a.__isset, b.__isset); } -EnvironmentContext::EnvironmentContext(const EnvironmentContext& other351) { - properties = other351.properties; - __isset = other351.__isset; +EnvironmentContext::EnvironmentContext(const EnvironmentContext& other355) { + properties = other355.properties; + __isset = other355.__isset; } -EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other352) { - properties = other352.properties; - __isset = other352.__isset; +EnvironmentContext& EnvironmentContext::operator=(const EnvironmentContext& other356) { + properties = other356.properties; + __isset = other356.__isset; return *this; } void EnvironmentContext::printTo(std::ostream& out) const { @@ -7990,14 +8442,14 @@ uint32_t PartitionsByExprResult::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size353; - ::apache::thrift::protocol::TType _etype356; - xfer += iprot->readListBegin(_etype356, _size353); - this->partitions.resize(_size353); - uint32_t _i357; - for (_i357 = 0; _i357 < _size353; ++_i357) + uint32_t _size357; + ::apache::thrift::protocol::TType _etype360; + xfer += iprot->readListBegin(_etype360, _size357); + this->partitions.resize(_size357); + uint32_t _i361; + for (_i361 = 0; _i361 < _size357; ++_i361) { - xfer += this->partitions[_i357].read(iprot); + xfer += this->partitions[_i361].read(iprot); } xfer += iprot->readListEnd(); } @@ -8038,10 +8490,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 _iter358; - for (_iter358 = this->partitions.begin(); _iter358 != this->partitions.end(); ++_iter358) + std::vector ::const_iterator _iter362; + for (_iter362 = this->partitions.begin(); _iter362 != this->partitions.end(); ++_iter362) { - xfer += (*_iter358).write(oprot); + xfer += (*_iter362).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8062,13 +8514,13 @@ void swap(PartitionsByExprResult &a, PartitionsByExprResult &b) { swap(a.hasUnknownPartitions, b.hasUnknownPartitions); } -PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other359) { - partitions = other359.partitions; - hasUnknownPartitions = other359.hasUnknownPartitions; +PartitionsByExprResult::PartitionsByExprResult(const PartitionsByExprResult& other363) { + partitions = other363.partitions; + hasUnknownPartitions = other363.hasUnknownPartitions; } -PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other360) { - partitions = other360.partitions; - hasUnknownPartitions = other360.hasUnknownPartitions; +PartitionsByExprResult& PartitionsByExprResult::operator=(const PartitionsByExprResult& other364) { + partitions = other364.partitions; + hasUnknownPartitions = other364.hasUnknownPartitions; return *this; } void PartitionsByExprResult::printTo(std::ostream& out) const { @@ -8230,21 +8682,21 @@ void swap(PartitionsByExprRequest &a, PartitionsByExprRequest &b) { swap(a.__isset, b.__isset); } -PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other361) { - dbName = other361.dbName; - tblName = other361.tblName; - expr = other361.expr; - defaultPartitionName = other361.defaultPartitionName; - maxParts = other361.maxParts; - __isset = other361.__isset; -} -PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other362) { - dbName = other362.dbName; - tblName = other362.tblName; - expr = other362.expr; - defaultPartitionName = other362.defaultPartitionName; - maxParts = other362.maxParts; - __isset = other362.__isset; +PartitionsByExprRequest::PartitionsByExprRequest(const PartitionsByExprRequest& other365) { + dbName = other365.dbName; + tblName = other365.tblName; + expr = other365.expr; + defaultPartitionName = other365.defaultPartitionName; + maxParts = other365.maxParts; + __isset = other365.__isset; +} +PartitionsByExprRequest& PartitionsByExprRequest::operator=(const PartitionsByExprRequest& other366) { + dbName = other366.dbName; + tblName = other366.tblName; + expr = other366.expr; + defaultPartitionName = other366.defaultPartitionName; + maxParts = other366.maxParts; + __isset = other366.__isset; return *this; } void PartitionsByExprRequest::printTo(std::ostream& out) const { @@ -8293,14 +8745,14 @@ uint32_t TableStatsResult::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->tableStats.clear(); - uint32_t _size363; - ::apache::thrift::protocol::TType _etype366; - xfer += iprot->readListBegin(_etype366, _size363); - this->tableStats.resize(_size363); - uint32_t _i367; - for (_i367 = 0; _i367 < _size363; ++_i367) + uint32_t _size367; + ::apache::thrift::protocol::TType _etype370; + xfer += iprot->readListBegin(_etype370, _size367); + this->tableStats.resize(_size367); + uint32_t _i371; + for (_i371 = 0; _i371 < _size367; ++_i371) { - xfer += this->tableStats[_i367].read(iprot); + xfer += this->tableStats[_i371].read(iprot); } xfer += iprot->readListEnd(); } @@ -8331,10 +8783,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 _iter368; - for (_iter368 = this->tableStats.begin(); _iter368 != this->tableStats.end(); ++_iter368) + std::vector ::const_iterator _iter372; + for (_iter372 = this->tableStats.begin(); _iter372 != this->tableStats.end(); ++_iter372) { - xfer += (*_iter368).write(oprot); + xfer += (*_iter372).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8350,11 +8802,11 @@ void swap(TableStatsResult &a, TableStatsResult &b) { swap(a.tableStats, b.tableStats); } -TableStatsResult::TableStatsResult(const TableStatsResult& other369) { - tableStats = other369.tableStats; +TableStatsResult::TableStatsResult(const TableStatsResult& other373) { + tableStats = other373.tableStats; } -TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other370) { - tableStats = other370.tableStats; +TableStatsResult& TableStatsResult::operator=(const TableStatsResult& other374) { + tableStats = other374.tableStats; return *this; } void TableStatsResult::printTo(std::ostream& out) const { @@ -8399,26 +8851,26 @@ uint32_t PartitionsStatsResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->partStats.clear(); - uint32_t _size371; - ::apache::thrift::protocol::TType _ktype372; - ::apache::thrift::protocol::TType _vtype373; - xfer += iprot->readMapBegin(_ktype372, _vtype373, _size371); - uint32_t _i375; - for (_i375 = 0; _i375 < _size371; ++_i375) + uint32_t _size375; + ::apache::thrift::protocol::TType _ktype376; + ::apache::thrift::protocol::TType _vtype377; + xfer += iprot->readMapBegin(_ktype376, _vtype377, _size375); + uint32_t _i379; + for (_i379 = 0; _i379 < _size375; ++_i379) { - std::string _key376; - xfer += iprot->readString(_key376); - std::vector & _val377 = this->partStats[_key376]; + std::string _key380; + xfer += iprot->readString(_key380); + std::vector & _val381 = this->partStats[_key380]; { - _val377.clear(); - uint32_t _size378; - ::apache::thrift::protocol::TType _etype381; - xfer += iprot->readListBegin(_etype381, _size378); - _val377.resize(_size378); - uint32_t _i382; - for (_i382 = 0; _i382 < _size378; ++_i382) + _val381.clear(); + uint32_t _size382; + ::apache::thrift::protocol::TType _etype385; + xfer += iprot->readListBegin(_etype385, _size382); + _val381.resize(_size382); + uint32_t _i386; + for (_i386 = 0; _i386 < _size382; ++_i386) { - xfer += _val377[_i382].read(iprot); + xfer += _val381[_i386].read(iprot); } xfer += iprot->readListEnd(); } @@ -8452,16 +8904,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 _iter383; - for (_iter383 = this->partStats.begin(); _iter383 != this->partStats.end(); ++_iter383) + std::map > ::const_iterator _iter387; + for (_iter387 = this->partStats.begin(); _iter387 != this->partStats.end(); ++_iter387) { - xfer += oprot->writeString(_iter383->first); + xfer += oprot->writeString(_iter387->first); { - xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter383->second.size())); - std::vector ::const_iterator _iter384; - for (_iter384 = _iter383->second.begin(); _iter384 != _iter383->second.end(); ++_iter384) + xfer += oprot->writeListBegin(::apache::thrift::protocol::T_STRUCT, static_cast(_iter387->second.size())); + std::vector ::const_iterator _iter388; + for (_iter388 = _iter387->second.begin(); _iter388 != _iter387->second.end(); ++_iter388) { - xfer += (*_iter384).write(oprot); + xfer += (*_iter388).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8480,11 +8932,11 @@ void swap(PartitionsStatsResult &a, PartitionsStatsResult &b) { swap(a.partStats, b.partStats); } -PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other385) { - partStats = other385.partStats; +PartitionsStatsResult::PartitionsStatsResult(const PartitionsStatsResult& other389) { + partStats = other389.partStats; } -PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other386) { - partStats = other386.partStats; +PartitionsStatsResult& PartitionsStatsResult::operator=(const PartitionsStatsResult& other390) { + partStats = other390.partStats; return *this; } void PartitionsStatsResult::printTo(std::ostream& out) const { @@ -8555,14 +9007,14 @@ uint32_t TableStatsRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size387; - ::apache::thrift::protocol::TType _etype390; - xfer += iprot->readListBegin(_etype390, _size387); - this->colNames.resize(_size387); - uint32_t _i391; - for (_i391 = 0; _i391 < _size387; ++_i391) + uint32_t _size391; + ::apache::thrift::protocol::TType _etype394; + xfer += iprot->readListBegin(_etype394, _size391); + this->colNames.resize(_size391); + uint32_t _i395; + for (_i395 = 0; _i395 < _size391; ++_i395) { - xfer += iprot->readString(this->colNames[_i391]); + xfer += iprot->readString(this->colNames[_i395]); } xfer += iprot->readListEnd(); } @@ -8605,10 +9057,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 _iter392; - for (_iter392 = this->colNames.begin(); _iter392 != this->colNames.end(); ++_iter392) + std::vector ::const_iterator _iter396; + for (_iter396 = this->colNames.begin(); _iter396 != this->colNames.end(); ++_iter396) { - xfer += oprot->writeString((*_iter392)); + xfer += oprot->writeString((*_iter396)); } xfer += oprot->writeListEnd(); } @@ -8626,15 +9078,15 @@ void swap(TableStatsRequest &a, TableStatsRequest &b) { swap(a.colNames, b.colNames); } -TableStatsRequest::TableStatsRequest(const TableStatsRequest& other393) { - dbName = other393.dbName; - tblName = other393.tblName; - colNames = other393.colNames; +TableStatsRequest::TableStatsRequest(const TableStatsRequest& other397) { + dbName = other397.dbName; + tblName = other397.tblName; + colNames = other397.colNames; } -TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other394) { - dbName = other394.dbName; - tblName = other394.tblName; - colNames = other394.colNames; +TableStatsRequest& TableStatsRequest::operator=(const TableStatsRequest& other398) { + dbName = other398.dbName; + tblName = other398.tblName; + colNames = other398.colNames; return *this; } void TableStatsRequest::printTo(std::ostream& out) const { @@ -8712,14 +9164,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->colNames.clear(); - uint32_t _size395; - ::apache::thrift::protocol::TType _etype398; - xfer += iprot->readListBegin(_etype398, _size395); - this->colNames.resize(_size395); - uint32_t _i399; - for (_i399 = 0; _i399 < _size395; ++_i399) + uint32_t _size399; + ::apache::thrift::protocol::TType _etype402; + xfer += iprot->readListBegin(_etype402, _size399); + this->colNames.resize(_size399); + uint32_t _i403; + for (_i403 = 0; _i403 < _size399; ++_i403) { - xfer += iprot->readString(this->colNames[_i399]); + xfer += iprot->readString(this->colNames[_i403]); } xfer += iprot->readListEnd(); } @@ -8732,14 +9184,14 @@ uint32_t PartitionsStatsRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partNames.clear(); - uint32_t _size400; - ::apache::thrift::protocol::TType _etype403; - xfer += iprot->readListBegin(_etype403, _size400); - this->partNames.resize(_size400); - uint32_t _i404; - for (_i404 = 0; _i404 < _size400; ++_i404) + uint32_t _size404; + ::apache::thrift::protocol::TType _etype407; + xfer += iprot->readListBegin(_etype407, _size404); + this->partNames.resize(_size404); + uint32_t _i408; + for (_i408 = 0; _i408 < _size404; ++_i408) { - xfer += iprot->readString(this->partNames[_i404]); + xfer += iprot->readString(this->partNames[_i408]); } xfer += iprot->readListEnd(); } @@ -8784,10 +9236,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 _iter405; - for (_iter405 = this->colNames.begin(); _iter405 != this->colNames.end(); ++_iter405) + std::vector ::const_iterator _iter409; + for (_iter409 = this->colNames.begin(); _iter409 != this->colNames.end(); ++_iter409) { - xfer += oprot->writeString((*_iter405)); + xfer += oprot->writeString((*_iter409)); } xfer += oprot->writeListEnd(); } @@ -8796,10 +9248,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 _iter406; - for (_iter406 = this->partNames.begin(); _iter406 != this->partNames.end(); ++_iter406) + std::vector ::const_iterator _iter410; + for (_iter410 = this->partNames.begin(); _iter410 != this->partNames.end(); ++_iter410) { - xfer += oprot->writeString((*_iter406)); + xfer += oprot->writeString((*_iter410)); } xfer += oprot->writeListEnd(); } @@ -8818,17 +9270,17 @@ void swap(PartitionsStatsRequest &a, PartitionsStatsRequest &b) { swap(a.partNames, b.partNames); } -PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other407) { - dbName = other407.dbName; - tblName = other407.tblName; - colNames = other407.colNames; - partNames = other407.partNames; +PartitionsStatsRequest::PartitionsStatsRequest(const PartitionsStatsRequest& other411) { + dbName = other411.dbName; + tblName = other411.tblName; + colNames = other411.colNames; + partNames = other411.partNames; } -PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other408) { - dbName = other408.dbName; - tblName = other408.tblName; - colNames = other408.colNames; - partNames = other408.partNames; +PartitionsStatsRequest& PartitionsStatsRequest::operator=(const PartitionsStatsRequest& other412) { + dbName = other412.dbName; + tblName = other412.tblName; + colNames = other412.colNames; + partNames = other412.partNames; return *this; } void PartitionsStatsRequest::printTo(std::ostream& out) const { @@ -8876,14 +9328,14 @@ uint32_t AddPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size409; - ::apache::thrift::protocol::TType _etype412; - xfer += iprot->readListBegin(_etype412, _size409); - this->partitions.resize(_size409); - uint32_t _i413; - for (_i413 = 0; _i413 < _size409; ++_i413) + uint32_t _size413; + ::apache::thrift::protocol::TType _etype416; + xfer += iprot->readListBegin(_etype416, _size413); + this->partitions.resize(_size413); + uint32_t _i417; + for (_i417 = 0; _i417 < _size413; ++_i417) { - xfer += this->partitions[_i413].read(iprot); + xfer += this->partitions[_i417].read(iprot); } xfer += iprot->readListEnd(); } @@ -8913,10 +9365,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 _iter414; - for (_iter414 = this->partitions.begin(); _iter414 != this->partitions.end(); ++_iter414) + std::vector ::const_iterator _iter418; + for (_iter418 = this->partitions.begin(); _iter418 != this->partitions.end(); ++_iter418) { - xfer += (*_iter414).write(oprot); + xfer += (*_iter418).write(oprot); } xfer += oprot->writeListEnd(); } @@ -8933,13 +9385,13 @@ void swap(AddPartitionsResult &a, AddPartitionsResult &b) { swap(a.__isset, b.__isset); } -AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other415) { - partitions = other415.partitions; - __isset = other415.__isset; +AddPartitionsResult::AddPartitionsResult(const AddPartitionsResult& other419) { + partitions = other419.partitions; + __isset = other419.__isset; } -AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other416) { - partitions = other416.partitions; - __isset = other416.__isset; +AddPartitionsResult& AddPartitionsResult::operator=(const AddPartitionsResult& other420) { + partitions = other420.partitions; + __isset = other420.__isset; return *this; } void AddPartitionsResult::printTo(std::ostream& out) const { @@ -9020,14 +9472,14 @@ uint32_t AddPartitionsRequest::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->parts.clear(); - uint32_t _size417; - ::apache::thrift::protocol::TType _etype420; - xfer += iprot->readListBegin(_etype420, _size417); - this->parts.resize(_size417); - uint32_t _i421; - for (_i421 = 0; _i421 < _size417; ++_i421) + uint32_t _size421; + ::apache::thrift::protocol::TType _etype424; + xfer += iprot->readListBegin(_etype424, _size421); + this->parts.resize(_size421); + uint32_t _i425; + for (_i425 = 0; _i425 < _size421; ++_i425) { - xfer += this->parts[_i421].read(iprot); + xfer += this->parts[_i425].read(iprot); } xfer += iprot->readListEnd(); } @@ -9088,10 +9540,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 _iter422; - for (_iter422 = this->parts.begin(); _iter422 != this->parts.end(); ++_iter422) + std::vector ::const_iterator _iter426; + for (_iter426 = this->parts.begin(); _iter426 != this->parts.end(); ++_iter426) { - xfer += (*_iter422).write(oprot); + xfer += (*_iter426).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9121,21 +9573,21 @@ void swap(AddPartitionsRequest &a, AddPartitionsRequest &b) { swap(a.__isset, b.__isset); } -AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other423) { - dbName = other423.dbName; - tblName = other423.tblName; - parts = other423.parts; - ifNotExists = other423.ifNotExists; - needResult = other423.needResult; - __isset = other423.__isset; -} -AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other424) { - dbName = other424.dbName; - tblName = other424.tblName; - parts = other424.parts; - ifNotExists = other424.ifNotExists; - needResult = other424.needResult; - __isset = other424.__isset; +AddPartitionsRequest::AddPartitionsRequest(const AddPartitionsRequest& other427) { + dbName = other427.dbName; + tblName = other427.tblName; + parts = other427.parts; + ifNotExists = other427.ifNotExists; + needResult = other427.needResult; + __isset = other427.__isset; +} +AddPartitionsRequest& AddPartitionsRequest::operator=(const AddPartitionsRequest& other428) { + dbName = other428.dbName; + tblName = other428.tblName; + parts = other428.parts; + ifNotExists = other428.ifNotExists; + needResult = other428.needResult; + __isset = other428.__isset; return *this; } void AddPartitionsRequest::printTo(std::ostream& out) const { @@ -9184,14 +9636,14 @@ uint32_t DropPartitionsResult::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitions.clear(); - uint32_t _size425; - ::apache::thrift::protocol::TType _etype428; - xfer += iprot->readListBegin(_etype428, _size425); - this->partitions.resize(_size425); - uint32_t _i429; - for (_i429 = 0; _i429 < _size425; ++_i429) + uint32_t _size429; + ::apache::thrift::protocol::TType _etype432; + xfer += iprot->readListBegin(_etype432, _size429); + this->partitions.resize(_size429); + uint32_t _i433; + for (_i433 = 0; _i433 < _size429; ++_i433) { - xfer += this->partitions[_i429].read(iprot); + xfer += this->partitions[_i433].read(iprot); } xfer += iprot->readListEnd(); } @@ -9221,10 +9673,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 _iter430; - for (_iter430 = this->partitions.begin(); _iter430 != this->partitions.end(); ++_iter430) + std::vector ::const_iterator _iter434; + for (_iter434 = this->partitions.begin(); _iter434 != this->partitions.end(); ++_iter434) { - xfer += (*_iter430).write(oprot); + xfer += (*_iter434).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9241,13 +9693,13 @@ void swap(DropPartitionsResult &a, DropPartitionsResult &b) { swap(a.__isset, b.__isset); } -DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other431) { - partitions = other431.partitions; - __isset = other431.__isset; +DropPartitionsResult::DropPartitionsResult(const DropPartitionsResult& other435) { + partitions = other435.partitions; + __isset = other435.__isset; } -DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other432) { - partitions = other432.partitions; - __isset = other432.__isset; +DropPartitionsResult& DropPartitionsResult::operator=(const DropPartitionsResult& other436) { + partitions = other436.partitions; + __isset = other436.__isset; return *this; } void DropPartitionsResult::printTo(std::ostream& out) const { @@ -9349,15 +9801,15 @@ void swap(DropPartitionsExpr &a, DropPartitionsExpr &b) { swap(a.__isset, b.__isset); } -DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other433) { - expr = other433.expr; - partArchiveLevel = other433.partArchiveLevel; - __isset = other433.__isset; +DropPartitionsExpr::DropPartitionsExpr(const DropPartitionsExpr& other437) { + expr = other437.expr; + partArchiveLevel = other437.partArchiveLevel; + __isset = other437.__isset; } -DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other434) { - expr = other434.expr; - partArchiveLevel = other434.partArchiveLevel; - __isset = other434.__isset; +DropPartitionsExpr& DropPartitionsExpr::operator=(const DropPartitionsExpr& other438) { + expr = other438.expr; + partArchiveLevel = other438.partArchiveLevel; + __isset = other438.__isset; return *this; } void DropPartitionsExpr::printTo(std::ostream& out) const { @@ -9406,14 +9858,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->names.clear(); - uint32_t _size435; - ::apache::thrift::protocol::TType _etype438; - xfer += iprot->readListBegin(_etype438, _size435); - this->names.resize(_size435); - uint32_t _i439; - for (_i439 = 0; _i439 < _size435; ++_i439) + uint32_t _size439; + ::apache::thrift::protocol::TType _etype442; + xfer += iprot->readListBegin(_etype442, _size439); + this->names.resize(_size439); + uint32_t _i443; + for (_i443 = 0; _i443 < _size439; ++_i443) { - xfer += iprot->readString(this->names[_i439]); + xfer += iprot->readString(this->names[_i443]); } xfer += iprot->readListEnd(); } @@ -9426,14 +9878,14 @@ uint32_t RequestPartsSpec::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->exprs.clear(); - uint32_t _size440; - ::apache::thrift::protocol::TType _etype443; - xfer += iprot->readListBegin(_etype443, _size440); - this->exprs.resize(_size440); - uint32_t _i444; - for (_i444 = 0; _i444 < _size440; ++_i444) + uint32_t _size444; + ::apache::thrift::protocol::TType _etype447; + xfer += iprot->readListBegin(_etype447, _size444); + this->exprs.resize(_size444); + uint32_t _i448; + for (_i448 = 0; _i448 < _size444; ++_i448) { - xfer += this->exprs[_i444].read(iprot); + xfer += this->exprs[_i448].read(iprot); } xfer += iprot->readListEnd(); } @@ -9462,10 +9914,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 _iter445; - for (_iter445 = this->names.begin(); _iter445 != this->names.end(); ++_iter445) + std::vector ::const_iterator _iter449; + for (_iter449 = this->names.begin(); _iter449 != this->names.end(); ++_iter449) { - xfer += oprot->writeString((*_iter445)); + xfer += oprot->writeString((*_iter449)); } xfer += oprot->writeListEnd(); } @@ -9474,10 +9926,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 _iter446; - for (_iter446 = this->exprs.begin(); _iter446 != this->exprs.end(); ++_iter446) + std::vector ::const_iterator _iter450; + for (_iter450 = this->exprs.begin(); _iter450 != this->exprs.end(); ++_iter450) { - xfer += (*_iter446).write(oprot); + xfer += (*_iter450).write(oprot); } xfer += oprot->writeListEnd(); } @@ -9495,15 +9947,15 @@ void swap(RequestPartsSpec &a, RequestPartsSpec &b) { swap(a.__isset, b.__isset); } -RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other447) { - names = other447.names; - exprs = other447.exprs; - __isset = other447.__isset; +RequestPartsSpec::RequestPartsSpec(const RequestPartsSpec& other451) { + names = other451.names; + exprs = other451.exprs; + __isset = other451.__isset; } -RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other448) { - names = other448.names; - exprs = other448.exprs; - __isset = other448.__isset; +RequestPartsSpec& RequestPartsSpec::operator=(const RequestPartsSpec& other452) { + names = other452.names; + exprs = other452.exprs; + __isset = other452.__isset; return *this; } void RequestPartsSpec::printTo(std::ostream& out) const { @@ -9722,27 +10174,27 @@ void swap(DropPartitionsRequest &a, DropPartitionsRequest &b) { swap(a.__isset, b.__isset); } -DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other449) { - dbName = other449.dbName; - tblName = other449.tblName; - parts = other449.parts; - deleteData = other449.deleteData; - ifExists = other449.ifExists; - ignoreProtection = other449.ignoreProtection; - environmentContext = other449.environmentContext; - needResult = other449.needResult; - __isset = other449.__isset; -} -DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other450) { - dbName = other450.dbName; - tblName = other450.tblName; - parts = other450.parts; - deleteData = other450.deleteData; - ifExists = other450.ifExists; - ignoreProtection = other450.ignoreProtection; - environmentContext = other450.environmentContext; - needResult = other450.needResult; - __isset = other450.__isset; +DropPartitionsRequest::DropPartitionsRequest(const DropPartitionsRequest& other453) { + dbName = other453.dbName; + tblName = other453.tblName; + parts = other453.parts; + deleteData = other453.deleteData; + ifExists = other453.ifExists; + ignoreProtection = other453.ignoreProtection; + environmentContext = other453.environmentContext; + needResult = other453.needResult; + __isset = other453.__isset; +} +DropPartitionsRequest& DropPartitionsRequest::operator=(const DropPartitionsRequest& other454) { + dbName = other454.dbName; + tblName = other454.tblName; + parts = other454.parts; + deleteData = other454.deleteData; + ifExists = other454.ifExists; + ignoreProtection = other454.ignoreProtection; + environmentContext = other454.environmentContext; + needResult = other454.needResult; + __isset = other454.__isset; return *this; } void DropPartitionsRequest::printTo(std::ostream& out) const { @@ -9795,9 +10247,9 @@ uint32_t ResourceUri::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast451; - xfer += iprot->readI32(ecast451); - this->resourceType = (ResourceType::type)ecast451; + int32_t ecast455; + xfer += iprot->readI32(ecast455); + this->resourceType = (ResourceType::type)ecast455; this->__isset.resourceType = true; } else { xfer += iprot->skip(ftype); @@ -9848,15 +10300,15 @@ void swap(ResourceUri &a, ResourceUri &b) { swap(a.__isset, b.__isset); } -ResourceUri::ResourceUri(const ResourceUri& other452) { - resourceType = other452.resourceType; - uri = other452.uri; - __isset = other452.__isset; +ResourceUri::ResourceUri(const ResourceUri& other456) { + resourceType = other456.resourceType; + uri = other456.uri; + __isset = other456.__isset; } -ResourceUri& ResourceUri::operator=(const ResourceUri& other453) { - resourceType = other453.resourceType; - uri = other453.uri; - __isset = other453.__isset; +ResourceUri& ResourceUri::operator=(const ResourceUri& other457) { + resourceType = other457.resourceType; + uri = other457.uri; + __isset = other457.__isset; return *this; } void ResourceUri::printTo(std::ostream& out) const { @@ -9959,9 +10411,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast454; - xfer += iprot->readI32(ecast454); - this->ownerType = (PrincipalType::type)ecast454; + int32_t ecast458; + xfer += iprot->readI32(ecast458); + this->ownerType = (PrincipalType::type)ecast458; this->__isset.ownerType = true; } else { xfer += iprot->skip(ftype); @@ -9977,9 +10429,9 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 7: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast455; - xfer += iprot->readI32(ecast455); - this->functionType = (FunctionType::type)ecast455; + int32_t ecast459; + xfer += iprot->readI32(ecast459); + this->functionType = (FunctionType::type)ecast459; this->__isset.functionType = true; } else { xfer += iprot->skip(ftype); @@ -9989,14 +10441,14 @@ uint32_t Function::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->resourceUris.clear(); - uint32_t _size456; - ::apache::thrift::protocol::TType _etype459; - xfer += iprot->readListBegin(_etype459, _size456); - this->resourceUris.resize(_size456); - uint32_t _i460; - for (_i460 = 0; _i460 < _size456; ++_i460) + uint32_t _size460; + ::apache::thrift::protocol::TType _etype463; + xfer += iprot->readListBegin(_etype463, _size460); + this->resourceUris.resize(_size460); + uint32_t _i464; + for (_i464 = 0; _i464 < _size460; ++_i464) { - xfer += this->resourceUris[_i460].read(iprot); + xfer += this->resourceUris[_i464].read(iprot); } xfer += iprot->readListEnd(); } @@ -10053,10 +10505,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 _iter461; - for (_iter461 = this->resourceUris.begin(); _iter461 != this->resourceUris.end(); ++_iter461) + std::vector ::const_iterator _iter465; + for (_iter465 = this->resourceUris.begin(); _iter465 != this->resourceUris.end(); ++_iter465) { - xfer += (*_iter461).write(oprot); + xfer += (*_iter465).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10080,27 +10532,27 @@ void swap(Function &a, Function &b) { swap(a.__isset, b.__isset); } -Function::Function(const Function& other462) { - functionName = other462.functionName; - dbName = other462.dbName; - className = other462.className; - ownerName = other462.ownerName; - ownerType = other462.ownerType; - createTime = other462.createTime; - functionType = other462.functionType; - resourceUris = other462.resourceUris; - __isset = other462.__isset; -} -Function& Function::operator=(const Function& other463) { - functionName = other463.functionName; - dbName = other463.dbName; - className = other463.className; - ownerName = other463.ownerName; - ownerType = other463.ownerType; - createTime = other463.createTime; - functionType = other463.functionType; - resourceUris = other463.resourceUris; - __isset = other463.__isset; +Function::Function(const Function& other466) { + functionName = other466.functionName; + dbName = other466.dbName; + className = other466.className; + ownerName = other466.ownerName; + ownerType = other466.ownerType; + createTime = other466.createTime; + functionType = other466.functionType; + resourceUris = other466.resourceUris; + __isset = other466.__isset; +} +Function& Function::operator=(const Function& other467) { + functionName = other467.functionName; + dbName = other467.dbName; + className = other467.className; + ownerName = other467.ownerName; + ownerType = other467.ownerType; + createTime = other467.createTime; + functionType = other467.functionType; + resourceUris = other467.resourceUris; + __isset = other467.__isset; return *this; } void Function::printTo(std::ostream& out) const { @@ -10188,9 +10640,9 @@ uint32_t TxnInfo::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast464; - xfer += iprot->readI32(ecast464); - this->state = (TxnState::type)ecast464; + int32_t ecast468; + xfer += iprot->readI32(ecast468); + this->state = (TxnState::type)ecast468; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -10309,25 +10761,25 @@ void swap(TxnInfo &a, TxnInfo &b) { swap(a.__isset, b.__isset); } -TxnInfo::TxnInfo(const TxnInfo& other465) { - id = other465.id; - state = other465.state; - user = other465.user; - hostname = other465.hostname; - agentInfo = other465.agentInfo; - heartbeatCount = other465.heartbeatCount; - metaInfo = other465.metaInfo; - __isset = other465.__isset; -} -TxnInfo& TxnInfo::operator=(const TxnInfo& other466) { - id = other466.id; - state = other466.state; - user = other466.user; - hostname = other466.hostname; - agentInfo = other466.agentInfo; - heartbeatCount = other466.heartbeatCount; - metaInfo = other466.metaInfo; - __isset = other466.__isset; +TxnInfo::TxnInfo(const TxnInfo& other469) { + id = other469.id; + state = other469.state; + user = other469.user; + hostname = other469.hostname; + agentInfo = other469.agentInfo; + heartbeatCount = other469.heartbeatCount; + metaInfo = other469.metaInfo; + __isset = other469.__isset; +} +TxnInfo& TxnInfo::operator=(const TxnInfo& other470) { + id = other470.id; + state = other470.state; + user = other470.user; + hostname = other470.hostname; + agentInfo = other470.agentInfo; + heartbeatCount = other470.heartbeatCount; + metaInfo = other470.metaInfo; + __isset = other470.__isset; return *this; } void TxnInfo::printTo(std::ostream& out) const { @@ -10391,14 +10843,14 @@ uint32_t GetOpenTxnsInfoResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->open_txns.clear(); - uint32_t _size467; - ::apache::thrift::protocol::TType _etype470; - xfer += iprot->readListBegin(_etype470, _size467); - this->open_txns.resize(_size467); - uint32_t _i471; - for (_i471 = 0; _i471 < _size467; ++_i471) + uint32_t _size471; + ::apache::thrift::protocol::TType _etype474; + xfer += iprot->readListBegin(_etype474, _size471); + this->open_txns.resize(_size471); + uint32_t _i475; + for (_i475 = 0; _i475 < _size471; ++_i475) { - xfer += this->open_txns[_i471].read(iprot); + xfer += this->open_txns[_i475].read(iprot); } xfer += iprot->readListEnd(); } @@ -10435,10 +10887,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 _iter472; - for (_iter472 = this->open_txns.begin(); _iter472 != this->open_txns.end(); ++_iter472) + std::vector ::const_iterator _iter476; + for (_iter476 = this->open_txns.begin(); _iter476 != this->open_txns.end(); ++_iter476) { - xfer += (*_iter472).write(oprot); + xfer += (*_iter476).write(oprot); } xfer += oprot->writeListEnd(); } @@ -10455,13 +10907,13 @@ void swap(GetOpenTxnsInfoResponse &a, GetOpenTxnsInfoResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other473) { - txn_high_water_mark = other473.txn_high_water_mark; - open_txns = other473.open_txns; +GetOpenTxnsInfoResponse::GetOpenTxnsInfoResponse(const GetOpenTxnsInfoResponse& other477) { + txn_high_water_mark = other477.txn_high_water_mark; + open_txns = other477.open_txns; } -GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other474) { - txn_high_water_mark = other474.txn_high_water_mark; - open_txns = other474.open_txns; +GetOpenTxnsInfoResponse& GetOpenTxnsInfoResponse::operator=(const GetOpenTxnsInfoResponse& other478) { + txn_high_water_mark = other478.txn_high_water_mark; + open_txns = other478.open_txns; return *this; } void GetOpenTxnsInfoResponse::printTo(std::ostream& out) const { @@ -10520,15 +10972,15 @@ uint32_t GetOpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_SET) { { this->open_txns.clear(); - uint32_t _size475; - ::apache::thrift::protocol::TType _etype478; - xfer += iprot->readSetBegin(_etype478, _size475); - uint32_t _i479; - for (_i479 = 0; _i479 < _size475; ++_i479) + uint32_t _size479; + ::apache::thrift::protocol::TType _etype482; + xfer += iprot->readSetBegin(_etype482, _size479); + uint32_t _i483; + for (_i483 = 0; _i483 < _size479; ++_i483) { - int64_t _elem480; - xfer += iprot->readI64(_elem480); - this->open_txns.insert(_elem480); + int64_t _elem484; + xfer += iprot->readI64(_elem484); + this->open_txns.insert(_elem484); } xfer += iprot->readSetEnd(); } @@ -10565,10 +11017,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 _iter481; - for (_iter481 = this->open_txns.begin(); _iter481 != this->open_txns.end(); ++_iter481) + std::set ::const_iterator _iter485; + for (_iter485 = this->open_txns.begin(); _iter485 != this->open_txns.end(); ++_iter485) { - xfer += oprot->writeI64((*_iter481)); + xfer += oprot->writeI64((*_iter485)); } xfer += oprot->writeSetEnd(); } @@ -10585,13 +11037,13 @@ void swap(GetOpenTxnsResponse &a, GetOpenTxnsResponse &b) { swap(a.open_txns, b.open_txns); } -GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other482) { - txn_high_water_mark = other482.txn_high_water_mark; - open_txns = other482.open_txns; +GetOpenTxnsResponse::GetOpenTxnsResponse(const GetOpenTxnsResponse& other486) { + txn_high_water_mark = other486.txn_high_water_mark; + open_txns = other486.open_txns; } -GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other483) { - txn_high_water_mark = other483.txn_high_water_mark; - open_txns = other483.open_txns; +GetOpenTxnsResponse& GetOpenTxnsResponse::operator=(const GetOpenTxnsResponse& other487) { + txn_high_water_mark = other487.txn_high_water_mark; + open_txns = other487.open_txns; return *this; } void GetOpenTxnsResponse::printTo(std::ostream& out) const { @@ -10734,19 +11186,19 @@ void swap(OpenTxnRequest &a, OpenTxnRequest &b) { swap(a.__isset, b.__isset); } -OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other484) { - num_txns = other484.num_txns; - user = other484.user; - hostname = other484.hostname; - agentInfo = other484.agentInfo; - __isset = other484.__isset; +OpenTxnRequest::OpenTxnRequest(const OpenTxnRequest& other488) { + num_txns = other488.num_txns; + user = other488.user; + hostname = other488.hostname; + agentInfo = other488.agentInfo; + __isset = other488.__isset; } -OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other485) { - num_txns = other485.num_txns; - user = other485.user; - hostname = other485.hostname; - agentInfo = other485.agentInfo; - __isset = other485.__isset; +OpenTxnRequest& OpenTxnRequest::operator=(const OpenTxnRequest& other489) { + num_txns = other489.num_txns; + user = other489.user; + hostname = other489.hostname; + agentInfo = other489.agentInfo; + __isset = other489.__isset; return *this; } void OpenTxnRequest::printTo(std::ostream& out) const { @@ -10794,14 +11246,14 @@ uint32_t OpenTxnsResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->txn_ids.clear(); - uint32_t _size486; - ::apache::thrift::protocol::TType _etype489; - xfer += iprot->readListBegin(_etype489, _size486); - this->txn_ids.resize(_size486); - uint32_t _i490; - for (_i490 = 0; _i490 < _size486; ++_i490) + uint32_t _size490; + ::apache::thrift::protocol::TType _etype493; + xfer += iprot->readListBegin(_etype493, _size490); + this->txn_ids.resize(_size490); + uint32_t _i494; + for (_i494 = 0; _i494 < _size490; ++_i494) { - xfer += iprot->readI64(this->txn_ids[_i490]); + xfer += iprot->readI64(this->txn_ids[_i494]); } xfer += iprot->readListEnd(); } @@ -10832,10 +11284,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 _iter491; - for (_iter491 = this->txn_ids.begin(); _iter491 != this->txn_ids.end(); ++_iter491) + std::vector ::const_iterator _iter495; + for (_iter495 = this->txn_ids.begin(); _iter495 != this->txn_ids.end(); ++_iter495) { - xfer += oprot->writeI64((*_iter491)); + xfer += oprot->writeI64((*_iter495)); } xfer += oprot->writeListEnd(); } @@ -10851,11 +11303,11 @@ void swap(OpenTxnsResponse &a, OpenTxnsResponse &b) { swap(a.txn_ids, b.txn_ids); } -OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other492) { - txn_ids = other492.txn_ids; +OpenTxnsResponse::OpenTxnsResponse(const OpenTxnsResponse& other496) { + txn_ids = other496.txn_ids; } -OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other493) { - txn_ids = other493.txn_ids; +OpenTxnsResponse& OpenTxnsResponse::operator=(const OpenTxnsResponse& other497) { + txn_ids = other497.txn_ids; return *this; } void OpenTxnsResponse::printTo(std::ostream& out) const { @@ -10937,11 +11389,11 @@ void swap(AbortTxnRequest &a, AbortTxnRequest &b) { swap(a.txnid, b.txnid); } -AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other494) { - txnid = other494.txnid; +AbortTxnRequest::AbortTxnRequest(const AbortTxnRequest& other498) { + txnid = other498.txnid; } -AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other495) { - txnid = other495.txnid; +AbortTxnRequest& AbortTxnRequest::operator=(const AbortTxnRequest& other499) { + txnid = other499.txnid; return *this; } void AbortTxnRequest::printTo(std::ostream& out) const { @@ -11023,11 +11475,11 @@ void swap(CommitTxnRequest &a, CommitTxnRequest &b) { swap(a.txnid, b.txnid); } -CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other496) { - txnid = other496.txnid; +CommitTxnRequest::CommitTxnRequest(const CommitTxnRequest& other500) { + txnid = other500.txnid; } -CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other497) { - txnid = other497.txnid; +CommitTxnRequest& CommitTxnRequest::operator=(const CommitTxnRequest& other501) { + txnid = other501.txnid; return *this; } void CommitTxnRequest::printTo(std::ostream& out) const { @@ -11090,9 +11542,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { { case 1: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast498; - xfer += iprot->readI32(ecast498); - this->type = (LockType::type)ecast498; + int32_t ecast502; + xfer += iprot->readI32(ecast502); + this->type = (LockType::type)ecast502; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -11100,9 +11552,9 @@ uint32_t LockComponent::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast499; - xfer += iprot->readI32(ecast499); - this->level = (LockLevel::type)ecast499; + int32_t ecast503; + xfer += iprot->readI32(ecast503); + this->level = (LockLevel::type)ecast503; isset_level = true; } else { xfer += iprot->skip(ftype); @@ -11192,21 +11644,21 @@ void swap(LockComponent &a, LockComponent &b) { swap(a.__isset, b.__isset); } -LockComponent::LockComponent(const LockComponent& other500) { - type = other500.type; - level = other500.level; - dbname = other500.dbname; - tablename = other500.tablename; - partitionname = other500.partitionname; - __isset = other500.__isset; -} -LockComponent& LockComponent::operator=(const LockComponent& other501) { - type = other501.type; - level = other501.level; - dbname = other501.dbname; - tablename = other501.tablename; - partitionname = other501.partitionname; - __isset = other501.__isset; +LockComponent::LockComponent(const LockComponent& other504) { + type = other504.type; + level = other504.level; + dbname = other504.dbname; + tablename = other504.tablename; + partitionname = other504.partitionname; + __isset = other504.__isset; +} +LockComponent& LockComponent::operator=(const LockComponent& other505) { + type = other505.type; + level = other505.level; + dbname = other505.dbname; + tablename = other505.tablename; + partitionname = other505.partitionname; + __isset = other505.__isset; return *this; } void LockComponent::printTo(std::ostream& out) const { @@ -11275,14 +11727,14 @@ uint32_t LockRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->component.clear(); - uint32_t _size502; - ::apache::thrift::protocol::TType _etype505; - xfer += iprot->readListBegin(_etype505, _size502); - this->component.resize(_size502); - uint32_t _i506; - for (_i506 = 0; _i506 < _size502; ++_i506) + uint32_t _size506; + ::apache::thrift::protocol::TType _etype509; + xfer += iprot->readListBegin(_etype509, _size506); + this->component.resize(_size506); + uint32_t _i510; + for (_i510 = 0; _i510 < _size506; ++_i510) { - xfer += this->component[_i506].read(iprot); + xfer += this->component[_i510].read(iprot); } xfer += iprot->readListEnd(); } @@ -11349,10 +11801,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 _iter507; - for (_iter507 = this->component.begin(); _iter507 != this->component.end(); ++_iter507) + std::vector ::const_iterator _iter511; + for (_iter511 = this->component.begin(); _iter511 != this->component.end(); ++_iter511) { - xfer += (*_iter507).write(oprot); + xfer += (*_iter511).write(oprot); } xfer += oprot->writeListEnd(); } @@ -11391,21 +11843,21 @@ void swap(LockRequest &a, LockRequest &b) { swap(a.__isset, b.__isset); } -LockRequest::LockRequest(const LockRequest& other508) { - component = other508.component; - txnid = other508.txnid; - user = other508.user; - hostname = other508.hostname; - agentInfo = other508.agentInfo; - __isset = other508.__isset; -} -LockRequest& LockRequest::operator=(const LockRequest& other509) { - component = other509.component; - txnid = other509.txnid; - user = other509.user; - hostname = other509.hostname; - agentInfo = other509.agentInfo; - __isset = other509.__isset; +LockRequest::LockRequest(const LockRequest& other512) { + component = other512.component; + txnid = other512.txnid; + user = other512.user; + hostname = other512.hostname; + agentInfo = other512.agentInfo; + __isset = other512.__isset; +} +LockRequest& LockRequest::operator=(const LockRequest& other513) { + component = other513.component; + txnid = other513.txnid; + user = other513.user; + hostname = other513.hostname; + agentInfo = other513.agentInfo; + __isset = other513.__isset; return *this; } void LockRequest::printTo(std::ostream& out) const { @@ -11465,9 +11917,9 @@ uint32_t LockResponse::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 2: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast510; - xfer += iprot->readI32(ecast510); - this->state = (LockState::type)ecast510; + int32_t ecast514; + xfer += iprot->readI32(ecast514); + this->state = (LockState::type)ecast514; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -11513,13 +11965,13 @@ void swap(LockResponse &a, LockResponse &b) { swap(a.state, b.state); } -LockResponse::LockResponse(const LockResponse& other511) { - lockid = other511.lockid; - state = other511.state; +LockResponse::LockResponse(const LockResponse& other515) { + lockid = other515.lockid; + state = other515.state; } -LockResponse& LockResponse::operator=(const LockResponse& other512) { - lockid = other512.lockid; - state = other512.state; +LockResponse& LockResponse::operator=(const LockResponse& other516) { + lockid = other516.lockid; + state = other516.state; return *this; } void LockResponse::printTo(std::ostream& out) const { @@ -11641,17 +12093,17 @@ void swap(CheckLockRequest &a, CheckLockRequest &b) { swap(a.__isset, b.__isset); } -CheckLockRequest::CheckLockRequest(const CheckLockRequest& other513) { - lockid = other513.lockid; - txnid = other513.txnid; - elapsed_ms = other513.elapsed_ms; - __isset = other513.__isset; +CheckLockRequest::CheckLockRequest(const CheckLockRequest& other517) { + lockid = other517.lockid; + txnid = other517.txnid; + elapsed_ms = other517.elapsed_ms; + __isset = other517.__isset; } -CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other514) { - lockid = other514.lockid; - txnid = other514.txnid; - elapsed_ms = other514.elapsed_ms; - __isset = other514.__isset; +CheckLockRequest& CheckLockRequest::operator=(const CheckLockRequest& other518) { + lockid = other518.lockid; + txnid = other518.txnid; + elapsed_ms = other518.elapsed_ms; + __isset = other518.__isset; return *this; } void CheckLockRequest::printTo(std::ostream& out) const { @@ -11735,11 +12187,11 @@ void swap(UnlockRequest &a, UnlockRequest &b) { swap(a.lockid, b.lockid); } -UnlockRequest::UnlockRequest(const UnlockRequest& other515) { - lockid = other515.lockid; +UnlockRequest::UnlockRequest(const UnlockRequest& other519) { + lockid = other519.lockid; } -UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other516) { - lockid = other516.lockid; +UnlockRequest& UnlockRequest::operator=(const UnlockRequest& other520) { + lockid = other520.lockid; return *this; } void UnlockRequest::printTo(std::ostream& out) const { @@ -11878,19 +12330,19 @@ void swap(ShowLocksRequest &a, ShowLocksRequest &b) { swap(a.__isset, b.__isset); } -ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other517) { - dbname = other517.dbname; - tablename = other517.tablename; - partname = other517.partname; - isExtended = other517.isExtended; - __isset = other517.__isset; +ShowLocksRequest::ShowLocksRequest(const ShowLocksRequest& other521) { + dbname = other521.dbname; + tablename = other521.tablename; + partname = other521.partname; + isExtended = other521.isExtended; + __isset = other521.__isset; } -ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other518) { - dbname = other518.dbname; - tablename = other518.tablename; - partname = other518.partname; - isExtended = other518.isExtended; - __isset = other518.__isset; +ShowLocksRequest& ShowLocksRequest::operator=(const ShowLocksRequest& other522) { + dbname = other522.dbname; + tablename = other522.tablename; + partname = other522.partname; + isExtended = other522.isExtended; + __isset = other522.__isset; return *this; } void ShowLocksRequest::printTo(std::ostream& out) const { @@ -12043,9 +12495,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 5: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast519; - xfer += iprot->readI32(ecast519); - this->state = (LockState::type)ecast519; + int32_t ecast523; + xfer += iprot->readI32(ecast523); + this->state = (LockState::type)ecast523; isset_state = true; } else { xfer += iprot->skip(ftype); @@ -12053,9 +12505,9 @@ uint32_t ShowLocksResponseElement::read(::apache::thrift::protocol::TProtocol* i break; case 6: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast520; - xfer += iprot->readI32(ecast520); - this->type = (LockType::type)ecast520; + int32_t ecast524; + xfer += iprot->readI32(ecast524); + this->type = (LockType::type)ecast524; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12271,43 +12723,43 @@ void swap(ShowLocksResponseElement &a, ShowLocksResponseElement &b) { swap(a.__isset, b.__isset); } -ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other521) { - lockid = other521.lockid; - dbname = other521.dbname; - tablename = other521.tablename; - partname = other521.partname; - state = other521.state; - type = other521.type; - txnid = other521.txnid; - lastheartbeat = other521.lastheartbeat; - acquiredat = other521.acquiredat; - user = other521.user; - hostname = other521.hostname; - heartbeatCount = other521.heartbeatCount; - agentInfo = other521.agentInfo; - blockedByExtId = other521.blockedByExtId; - blockedByIntId = other521.blockedByIntId; - lockIdInternal = other521.lockIdInternal; - __isset = other521.__isset; -} -ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other522) { - lockid = other522.lockid; - dbname = other522.dbname; - tablename = other522.tablename; - partname = other522.partname; - state = other522.state; - type = other522.type; - txnid = other522.txnid; - lastheartbeat = other522.lastheartbeat; - acquiredat = other522.acquiredat; - user = other522.user; - hostname = other522.hostname; - heartbeatCount = other522.heartbeatCount; - agentInfo = other522.agentInfo; - blockedByExtId = other522.blockedByExtId; - blockedByIntId = other522.blockedByIntId; - lockIdInternal = other522.lockIdInternal; - __isset = other522.__isset; +ShowLocksResponseElement::ShowLocksResponseElement(const ShowLocksResponseElement& other525) { + lockid = other525.lockid; + dbname = other525.dbname; + tablename = other525.tablename; + partname = other525.partname; + state = other525.state; + type = other525.type; + txnid = other525.txnid; + lastheartbeat = other525.lastheartbeat; + acquiredat = other525.acquiredat; + user = other525.user; + hostname = other525.hostname; + heartbeatCount = other525.heartbeatCount; + agentInfo = other525.agentInfo; + blockedByExtId = other525.blockedByExtId; + blockedByIntId = other525.blockedByIntId; + lockIdInternal = other525.lockIdInternal; + __isset = other525.__isset; +} +ShowLocksResponseElement& ShowLocksResponseElement::operator=(const ShowLocksResponseElement& other526) { + lockid = other526.lockid; + dbname = other526.dbname; + tablename = other526.tablename; + partname = other526.partname; + state = other526.state; + type = other526.type; + txnid = other526.txnid; + lastheartbeat = other526.lastheartbeat; + acquiredat = other526.acquiredat; + user = other526.user; + hostname = other526.hostname; + heartbeatCount = other526.heartbeatCount; + agentInfo = other526.agentInfo; + blockedByExtId = other526.blockedByExtId; + blockedByIntId = other526.blockedByIntId; + lockIdInternal = other526.lockIdInternal; + __isset = other526.__isset; return *this; } void ShowLocksResponseElement::printTo(std::ostream& out) const { @@ -12366,14 +12818,14 @@ uint32_t ShowLocksResponse::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->locks.clear(); - uint32_t _size523; - ::apache::thrift::protocol::TType _etype526; - xfer += iprot->readListBegin(_etype526, _size523); - this->locks.resize(_size523); - uint32_t _i527; - for (_i527 = 0; _i527 < _size523; ++_i527) + uint32_t _size527; + ::apache::thrift::protocol::TType _etype530; + xfer += iprot->readListBegin(_etype530, _size527); + this->locks.resize(_size527); + uint32_t _i531; + for (_i531 = 0; _i531 < _size527; ++_i531) { - xfer += this->locks[_i527].read(iprot); + xfer += this->locks[_i531].read(iprot); } xfer += iprot->readListEnd(); } @@ -12402,10 +12854,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 _iter528; - for (_iter528 = this->locks.begin(); _iter528 != this->locks.end(); ++_iter528) + std::vector ::const_iterator _iter532; + for (_iter532 = this->locks.begin(); _iter532 != this->locks.end(); ++_iter532) { - xfer += (*_iter528).write(oprot); + xfer += (*_iter532).write(oprot); } xfer += oprot->writeListEnd(); } @@ -12422,13 +12874,13 @@ void swap(ShowLocksResponse &a, ShowLocksResponse &b) { swap(a.__isset, b.__isset); } -ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other529) { - locks = other529.locks; - __isset = other529.__isset; +ShowLocksResponse::ShowLocksResponse(const ShowLocksResponse& other533) { + locks = other533.locks; + __isset = other533.__isset; } -ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other530) { - locks = other530.locks; - __isset = other530.__isset; +ShowLocksResponse& ShowLocksResponse::operator=(const ShowLocksResponse& other534) { + locks = other534.locks; + __isset = other534.__isset; return *this; } void ShowLocksResponse::printTo(std::ostream& out) const { @@ -12529,15 +12981,15 @@ void swap(HeartbeatRequest &a, HeartbeatRequest &b) { swap(a.__isset, b.__isset); } -HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other531) { - lockid = other531.lockid; - txnid = other531.txnid; - __isset = other531.__isset; +HeartbeatRequest::HeartbeatRequest(const HeartbeatRequest& other535) { + lockid = other535.lockid; + txnid = other535.txnid; + __isset = other535.__isset; } -HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other532) { - lockid = other532.lockid; - txnid = other532.txnid; - __isset = other532.__isset; +HeartbeatRequest& HeartbeatRequest::operator=(const HeartbeatRequest& other536) { + lockid = other536.lockid; + txnid = other536.txnid; + __isset = other536.__isset; return *this; } void HeartbeatRequest::printTo(std::ostream& out) const { @@ -12640,13 +13092,13 @@ void swap(HeartbeatTxnRangeRequest &a, HeartbeatTxnRangeRequest &b) { swap(a.max, b.max); } -HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other533) { - min = other533.min; - max = other533.max; +HeartbeatTxnRangeRequest::HeartbeatTxnRangeRequest(const HeartbeatTxnRangeRequest& other537) { + min = other537.min; + max = other537.max; } -HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other534) { - min = other534.min; - max = other534.max; +HeartbeatTxnRangeRequest& HeartbeatTxnRangeRequest::operator=(const HeartbeatTxnRangeRequest& other538) { + min = other538.min; + max = other538.max; return *this; } void HeartbeatTxnRangeRequest::printTo(std::ostream& out) const { @@ -12697,15 +13149,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->aborted.clear(); - uint32_t _size535; - ::apache::thrift::protocol::TType _etype538; - xfer += iprot->readSetBegin(_etype538, _size535); - uint32_t _i539; - for (_i539 = 0; _i539 < _size535; ++_i539) + uint32_t _size539; + ::apache::thrift::protocol::TType _etype542; + xfer += iprot->readSetBegin(_etype542, _size539); + uint32_t _i543; + for (_i543 = 0; _i543 < _size539; ++_i543) { - int64_t _elem540; - xfer += iprot->readI64(_elem540); - this->aborted.insert(_elem540); + int64_t _elem544; + xfer += iprot->readI64(_elem544); + this->aborted.insert(_elem544); } xfer += iprot->readSetEnd(); } @@ -12718,15 +13170,15 @@ uint32_t HeartbeatTxnRangeResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_SET) { { this->nosuch.clear(); - uint32_t _size541; - ::apache::thrift::protocol::TType _etype544; - xfer += iprot->readSetBegin(_etype544, _size541); - uint32_t _i545; - for (_i545 = 0; _i545 < _size541; ++_i545) + uint32_t _size545; + ::apache::thrift::protocol::TType _etype548; + xfer += iprot->readSetBegin(_etype548, _size545); + uint32_t _i549; + for (_i549 = 0; _i549 < _size545; ++_i549) { - int64_t _elem546; - xfer += iprot->readI64(_elem546); - this->nosuch.insert(_elem546); + int64_t _elem550; + xfer += iprot->readI64(_elem550); + this->nosuch.insert(_elem550); } xfer += iprot->readSetEnd(); } @@ -12759,10 +13211,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 _iter547; - for (_iter547 = this->aborted.begin(); _iter547 != this->aborted.end(); ++_iter547) + std::set ::const_iterator _iter551; + for (_iter551 = this->aborted.begin(); _iter551 != this->aborted.end(); ++_iter551) { - xfer += oprot->writeI64((*_iter547)); + xfer += oprot->writeI64((*_iter551)); } xfer += oprot->writeSetEnd(); } @@ -12771,10 +13223,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 _iter548; - for (_iter548 = this->nosuch.begin(); _iter548 != this->nosuch.end(); ++_iter548) + std::set ::const_iterator _iter552; + for (_iter552 = this->nosuch.begin(); _iter552 != this->nosuch.end(); ++_iter552) { - xfer += oprot->writeI64((*_iter548)); + xfer += oprot->writeI64((*_iter552)); } xfer += oprot->writeSetEnd(); } @@ -12791,13 +13243,13 @@ void swap(HeartbeatTxnRangeResponse &a, HeartbeatTxnRangeResponse &b) { swap(a.nosuch, b.nosuch); } -HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other549) { - aborted = other549.aborted; - nosuch = other549.nosuch; +HeartbeatTxnRangeResponse::HeartbeatTxnRangeResponse(const HeartbeatTxnRangeResponse& other553) { + aborted = other553.aborted; + nosuch = other553.nosuch; } -HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other550) { - aborted = other550.aborted; - nosuch = other550.nosuch; +HeartbeatTxnRangeResponse& HeartbeatTxnRangeResponse::operator=(const HeartbeatTxnRangeResponse& other554) { + aborted = other554.aborted; + nosuch = other554.nosuch; return *this; } void HeartbeatTxnRangeResponse::printTo(std::ostream& out) const { @@ -12885,9 +13337,9 @@ uint32_t CompactionRequest::read(::apache::thrift::protocol::TProtocol* iprot) { break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast551; - xfer += iprot->readI32(ecast551); - this->type = (CompactionType::type)ecast551; + int32_t ecast555; + xfer += iprot->readI32(ecast555); + this->type = (CompactionType::type)ecast555; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -12961,21 +13413,21 @@ void swap(CompactionRequest &a, CompactionRequest &b) { swap(a.__isset, b.__isset); } -CompactionRequest::CompactionRequest(const CompactionRequest& other552) { - dbname = other552.dbname; - tablename = other552.tablename; - partitionname = other552.partitionname; - type = other552.type; - runas = other552.runas; - __isset = other552.__isset; -} -CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other553) { - dbname = other553.dbname; - tablename = other553.tablename; - partitionname = other553.partitionname; - type = other553.type; - runas = other553.runas; - __isset = other553.__isset; +CompactionRequest::CompactionRequest(const CompactionRequest& other556) { + dbname = other556.dbname; + tablename = other556.tablename; + partitionname = other556.partitionname; + type = other556.type; + runas = other556.runas; + __isset = other556.__isset; +} +CompactionRequest& CompactionRequest::operator=(const CompactionRequest& other557) { + dbname = other557.dbname; + tablename = other557.tablename; + partitionname = other557.partitionname; + type = other557.type; + runas = other557.runas; + __isset = other557.__isset; return *this; } void CompactionRequest::printTo(std::ostream& out) const { @@ -13038,11 +13490,11 @@ void swap(ShowCompactRequest &a, ShowCompactRequest &b) { (void) b; } -ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other554) { - (void) other554; +ShowCompactRequest::ShowCompactRequest(const ShowCompactRequest& other558) { + (void) other558; } -ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other555) { - (void) other555; +ShowCompactRequest& ShowCompactRequest::operator=(const ShowCompactRequest& other559) { + (void) other559; return *this; } void ShowCompactRequest::printTo(std::ostream& out) const { @@ -13163,9 +13615,9 @@ uint32_t ShowCompactResponseElement::read(::apache::thrift::protocol::TProtocol* break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast556; - xfer += iprot->readI32(ecast556); - this->type = (CompactionType::type)ecast556; + int32_t ecast560; + xfer += iprot->readI32(ecast560); + this->type = (CompactionType::type)ecast560; isset_type = true; } else { xfer += iprot->skip(ftype); @@ -13338,35 +13790,35 @@ void swap(ShowCompactResponseElement &a, ShowCompactResponseElement &b) { swap(a.__isset, b.__isset); } -ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other557) { - dbname = other557.dbname; - tablename = other557.tablename; - partitionname = other557.partitionname; - type = other557.type; - state = other557.state; - workerid = other557.workerid; - start = other557.start; - runAs = other557.runAs; - hightestTxnId = other557.hightestTxnId; - metaInfo = other557.metaInfo; - endTime = other557.endTime; - hadoopJobId = other557.hadoopJobId; - __isset = other557.__isset; -} -ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other558) { - dbname = other558.dbname; - tablename = other558.tablename; - partitionname = other558.partitionname; - type = other558.type; - state = other558.state; - workerid = other558.workerid; - start = other558.start; - runAs = other558.runAs; - hightestTxnId = other558.hightestTxnId; - metaInfo = other558.metaInfo; - endTime = other558.endTime; - hadoopJobId = other558.hadoopJobId; - __isset = other558.__isset; +ShowCompactResponseElement::ShowCompactResponseElement(const ShowCompactResponseElement& other561) { + dbname = other561.dbname; + tablename = other561.tablename; + partitionname = other561.partitionname; + type = other561.type; + state = other561.state; + workerid = other561.workerid; + start = other561.start; + runAs = other561.runAs; + hightestTxnId = other561.hightestTxnId; + metaInfo = other561.metaInfo; + endTime = other561.endTime; + hadoopJobId = other561.hadoopJobId; + __isset = other561.__isset; +} +ShowCompactResponseElement& ShowCompactResponseElement::operator=(const ShowCompactResponseElement& other562) { + dbname = other562.dbname; + tablename = other562.tablename; + partitionname = other562.partitionname; + type = other562.type; + state = other562.state; + workerid = other562.workerid; + start = other562.start; + runAs = other562.runAs; + hightestTxnId = other562.hightestTxnId; + metaInfo = other562.metaInfo; + endTime = other562.endTime; + hadoopJobId = other562.hadoopJobId; + __isset = other562.__isset; return *this; } void ShowCompactResponseElement::printTo(std::ostream& out) const { @@ -13422,14 +13874,14 @@ uint32_t ShowCompactResponse::read(::apache::thrift::protocol::TProtocol* iprot) if (ftype == ::apache::thrift::protocol::T_LIST) { { this->compacts.clear(); - uint32_t _size559; - ::apache::thrift::protocol::TType _etype562; - xfer += iprot->readListBegin(_etype562, _size559); - this->compacts.resize(_size559); - uint32_t _i563; - for (_i563 = 0; _i563 < _size559; ++_i563) + uint32_t _size563; + ::apache::thrift::protocol::TType _etype566; + xfer += iprot->readListBegin(_etype566, _size563); + this->compacts.resize(_size563); + uint32_t _i567; + for (_i567 = 0; _i567 < _size563; ++_i567) { - xfer += this->compacts[_i563].read(iprot); + xfer += this->compacts[_i567].read(iprot); } xfer += iprot->readListEnd(); } @@ -13460,10 +13912,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 _iter564; - for (_iter564 = this->compacts.begin(); _iter564 != this->compacts.end(); ++_iter564) + std::vector ::const_iterator _iter568; + for (_iter568 = this->compacts.begin(); _iter568 != this->compacts.end(); ++_iter568) { - xfer += (*_iter564).write(oprot); + xfer += (*_iter568).write(oprot); } xfer += oprot->writeListEnd(); } @@ -13479,11 +13931,11 @@ void swap(ShowCompactResponse &a, ShowCompactResponse &b) { swap(a.compacts, b.compacts); } -ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other565) { - compacts = other565.compacts; +ShowCompactResponse::ShowCompactResponse(const ShowCompactResponse& other569) { + compacts = other569.compacts; } -ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other566) { - compacts = other566.compacts; +ShowCompactResponse& ShowCompactResponse::operator=(const ShowCompactResponse& other570) { + compacts = other570.compacts; return *this; } void ShowCompactResponse::printTo(std::ostream& out) const { @@ -13567,14 +14019,14 @@ uint32_t AddDynamicPartitions::read(::apache::thrift::protocol::TProtocol* iprot if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionnames.clear(); - uint32_t _size567; - ::apache::thrift::protocol::TType _etype570; - xfer += iprot->readListBegin(_etype570, _size567); - this->partitionnames.resize(_size567); - uint32_t _i571; - for (_i571 = 0; _i571 < _size567; ++_i571) + uint32_t _size571; + ::apache::thrift::protocol::TType _etype574; + xfer += iprot->readListBegin(_etype574, _size571); + this->partitionnames.resize(_size571); + uint32_t _i575; + for (_i575 = 0; _i575 < _size571; ++_i575) { - xfer += iprot->readString(this->partitionnames[_i571]); + xfer += iprot->readString(this->partitionnames[_i575]); } xfer += iprot->readListEnd(); } @@ -13623,10 +14075,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 _iter572; - for (_iter572 = this->partitionnames.begin(); _iter572 != this->partitionnames.end(); ++_iter572) + std::vector ::const_iterator _iter576; + for (_iter576 = this->partitionnames.begin(); _iter576 != this->partitionnames.end(); ++_iter576) { - xfer += oprot->writeString((*_iter572)); + xfer += oprot->writeString((*_iter576)); } xfer += oprot->writeListEnd(); } @@ -13645,17 +14097,17 @@ void swap(AddDynamicPartitions &a, AddDynamicPartitions &b) { swap(a.partitionnames, b.partitionnames); } -AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other573) { - txnid = other573.txnid; - dbname = other573.dbname; - tablename = other573.tablename; - partitionnames = other573.partitionnames; +AddDynamicPartitions::AddDynamicPartitions(const AddDynamicPartitions& other577) { + txnid = other577.txnid; + dbname = other577.dbname; + tablename = other577.tablename; + partitionnames = other577.partitionnames; } -AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other574) { - txnid = other574.txnid; - dbname = other574.dbname; - tablename = other574.tablename; - partitionnames = other574.partitionnames; +AddDynamicPartitions& AddDynamicPartitions::operator=(const AddDynamicPartitions& other578) { + txnid = other578.txnid; + dbname = other578.dbname; + tablename = other578.tablename; + partitionnames = other578.partitionnames; return *this; } void AddDynamicPartitions::printTo(std::ostream& out) const { @@ -13760,15 +14212,15 @@ void swap(NotificationEventRequest &a, NotificationEventRequest &b) { swap(a.__isset, b.__isset); } -NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other575) { - lastEvent = other575.lastEvent; - maxEvents = other575.maxEvents; - __isset = other575.__isset; +NotificationEventRequest::NotificationEventRequest(const NotificationEventRequest& other579) { + lastEvent = other579.lastEvent; + maxEvents = other579.maxEvents; + __isset = other579.__isset; } -NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other576) { - lastEvent = other576.lastEvent; - maxEvents = other576.maxEvents; - __isset = other576.__isset; +NotificationEventRequest& NotificationEventRequest::operator=(const NotificationEventRequest& other580) { + lastEvent = other580.lastEvent; + maxEvents = other580.maxEvents; + __isset = other580.__isset; return *this; } void NotificationEventRequest::printTo(std::ostream& out) const { @@ -13950,23 +14402,23 @@ void swap(NotificationEvent &a, NotificationEvent &b) { swap(a.__isset, b.__isset); } -NotificationEvent::NotificationEvent(const NotificationEvent& other577) { - eventId = other577.eventId; - eventTime = other577.eventTime; - eventType = other577.eventType; - dbName = other577.dbName; - tableName = other577.tableName; - message = other577.message; - __isset = other577.__isset; -} -NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other578) { - eventId = other578.eventId; - eventTime = other578.eventTime; - eventType = other578.eventType; - dbName = other578.dbName; - tableName = other578.tableName; - message = other578.message; - __isset = other578.__isset; +NotificationEvent::NotificationEvent(const NotificationEvent& other581) { + eventId = other581.eventId; + eventTime = other581.eventTime; + eventType = other581.eventType; + dbName = other581.dbName; + tableName = other581.tableName; + message = other581.message; + __isset = other581.__isset; +} +NotificationEvent& NotificationEvent::operator=(const NotificationEvent& other582) { + eventId = other582.eventId; + eventTime = other582.eventTime; + eventType = other582.eventType; + dbName = other582.dbName; + tableName = other582.tableName; + message = other582.message; + __isset = other582.__isset; return *this; } void NotificationEvent::printTo(std::ostream& out) const { @@ -14016,14 +14468,14 @@ uint32_t NotificationEventResponse::read(::apache::thrift::protocol::TProtocol* if (ftype == ::apache::thrift::protocol::T_LIST) { { this->events.clear(); - uint32_t _size579; - ::apache::thrift::protocol::TType _etype582; - xfer += iprot->readListBegin(_etype582, _size579); - this->events.resize(_size579); - uint32_t _i583; - for (_i583 = 0; _i583 < _size579; ++_i583) + uint32_t _size583; + ::apache::thrift::protocol::TType _etype586; + xfer += iprot->readListBegin(_etype586, _size583); + this->events.resize(_size583); + uint32_t _i587; + for (_i587 = 0; _i587 < _size583; ++_i587) { - xfer += this->events[_i583].read(iprot); + xfer += this->events[_i587].read(iprot); } xfer += iprot->readListEnd(); } @@ -14054,10 +14506,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 _iter584; - for (_iter584 = this->events.begin(); _iter584 != this->events.end(); ++_iter584) + std::vector ::const_iterator _iter588; + for (_iter588 = this->events.begin(); _iter588 != this->events.end(); ++_iter588) { - xfer += (*_iter584).write(oprot); + xfer += (*_iter588).write(oprot); } xfer += oprot->writeListEnd(); } @@ -14073,11 +14525,11 @@ void swap(NotificationEventResponse &a, NotificationEventResponse &b) { swap(a.events, b.events); } -NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other585) { - events = other585.events; +NotificationEventResponse::NotificationEventResponse(const NotificationEventResponse& other589) { + events = other589.events; } -NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other586) { - events = other586.events; +NotificationEventResponse& NotificationEventResponse::operator=(const NotificationEventResponse& other590) { + events = other590.events; return *this; } void NotificationEventResponse::printTo(std::ostream& out) const { @@ -14159,11 +14611,11 @@ void swap(CurrentNotificationEventId &a, CurrentNotificationEventId &b) { swap(a.eventId, b.eventId); } -CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other587) { - eventId = other587.eventId; +CurrentNotificationEventId::CurrentNotificationEventId(const CurrentNotificationEventId& other591) { + eventId = other591.eventId; } -CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other588) { - eventId = other588.eventId; +CurrentNotificationEventId& CurrentNotificationEventId::operator=(const CurrentNotificationEventId& other592) { + eventId = other592.eventId; return *this; } void CurrentNotificationEventId::printTo(std::ostream& out) const { @@ -14208,14 +14660,14 @@ uint32_t InsertEventRequestData::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->filesAdded.clear(); - uint32_t _size589; - ::apache::thrift::protocol::TType _etype592; - xfer += iprot->readListBegin(_etype592, _size589); - this->filesAdded.resize(_size589); - uint32_t _i593; - for (_i593 = 0; _i593 < _size589; ++_i593) + uint32_t _size593; + ::apache::thrift::protocol::TType _etype596; + xfer += iprot->readListBegin(_etype596, _size593); + this->filesAdded.resize(_size593); + uint32_t _i597; + for (_i597 = 0; _i597 < _size593; ++_i597) { - xfer += iprot->readString(this->filesAdded[_i593]); + xfer += iprot->readString(this->filesAdded[_i597]); } xfer += iprot->readListEnd(); } @@ -14246,10 +14698,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 _iter594; - for (_iter594 = this->filesAdded.begin(); _iter594 != this->filesAdded.end(); ++_iter594) + std::vector ::const_iterator _iter598; + for (_iter598 = this->filesAdded.begin(); _iter598 != this->filesAdded.end(); ++_iter598) { - xfer += oprot->writeString((*_iter594)); + xfer += oprot->writeString((*_iter598)); } xfer += oprot->writeListEnd(); } @@ -14265,11 +14717,11 @@ void swap(InsertEventRequestData &a, InsertEventRequestData &b) { swap(a.filesAdded, b.filesAdded); } -InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other595) { - filesAdded = other595.filesAdded; +InsertEventRequestData::InsertEventRequestData(const InsertEventRequestData& other599) { + filesAdded = other599.filesAdded; } -InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other596) { - filesAdded = other596.filesAdded; +InsertEventRequestData& InsertEventRequestData::operator=(const InsertEventRequestData& other600) { + filesAdded = other600.filesAdded; return *this; } void InsertEventRequestData::printTo(std::ostream& out) const { @@ -14349,13 +14801,13 @@ void swap(FireEventRequestData &a, FireEventRequestData &b) { swap(a.__isset, b.__isset); } -FireEventRequestData::FireEventRequestData(const FireEventRequestData& other597) { - insertData = other597.insertData; - __isset = other597.__isset; +FireEventRequestData::FireEventRequestData(const FireEventRequestData& other601) { + insertData = other601.insertData; + __isset = other601.__isset; } -FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other598) { - insertData = other598.insertData; - __isset = other598.__isset; +FireEventRequestData& FireEventRequestData::operator=(const FireEventRequestData& other602) { + insertData = other602.insertData; + __isset = other602.__isset; return *this; } void FireEventRequestData::printTo(std::ostream& out) const { @@ -14452,14 +14904,14 @@ uint32_t FireEventRequest::read(::apache::thrift::protocol::TProtocol* iprot) { if (ftype == ::apache::thrift::protocol::T_LIST) { { this->partitionVals.clear(); - uint32_t _size599; - ::apache::thrift::protocol::TType _etype602; - xfer += iprot->readListBegin(_etype602, _size599); - this->partitionVals.resize(_size599); - uint32_t _i603; - for (_i603 = 0; _i603 < _size599; ++_i603) + uint32_t _size603; + ::apache::thrift::protocol::TType _etype606; + xfer += iprot->readListBegin(_etype606, _size603); + this->partitionVals.resize(_size603); + uint32_t _i607; + for (_i607 = 0; _i607 < _size603; ++_i607) { - xfer += iprot->readString(this->partitionVals[_i603]); + xfer += iprot->readString(this->partitionVals[_i607]); } xfer += iprot->readListEnd(); } @@ -14511,10 +14963,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 _iter604; - for (_iter604 = this->partitionVals.begin(); _iter604 != this->partitionVals.end(); ++_iter604) + std::vector ::const_iterator _iter608; + for (_iter608 = this->partitionVals.begin(); _iter608 != this->partitionVals.end(); ++_iter608) { - xfer += oprot->writeString((*_iter604)); + xfer += oprot->writeString((*_iter608)); } xfer += oprot->writeListEnd(); } @@ -14535,21 +14987,21 @@ void swap(FireEventRequest &a, FireEventRequest &b) { swap(a.__isset, b.__isset); } -FireEventRequest::FireEventRequest(const FireEventRequest& other605) { - successful = other605.successful; - data = other605.data; - dbName = other605.dbName; - tableName = other605.tableName; - partitionVals = other605.partitionVals; - __isset = other605.__isset; -} -FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other606) { - successful = other606.successful; - data = other606.data; - dbName = other606.dbName; - tableName = other606.tableName; - partitionVals = other606.partitionVals; - __isset = other606.__isset; +FireEventRequest::FireEventRequest(const FireEventRequest& other609) { + successful = other609.successful; + data = other609.data; + dbName = other609.dbName; + tableName = other609.tableName; + partitionVals = other609.partitionVals; + __isset = other609.__isset; +} +FireEventRequest& FireEventRequest::operator=(const FireEventRequest& other610) { + successful = other610.successful; + data = other610.data; + dbName = other610.dbName; + tableName = other610.tableName; + partitionVals = other610.partitionVals; + __isset = other610.__isset; return *this; } void FireEventRequest::printTo(std::ostream& out) const { @@ -14612,11 +15064,11 @@ void swap(FireEventResponse &a, FireEventResponse &b) { (void) b; } -FireEventResponse::FireEventResponse(const FireEventResponse& other607) { - (void) other607; +FireEventResponse::FireEventResponse(const FireEventResponse& other611) { + (void) other611; } -FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other608) { - (void) other608; +FireEventResponse& FireEventResponse::operator=(const FireEventResponse& other612) { + (void) other612; return *this; } void FireEventResponse::printTo(std::ostream& out) const { @@ -14697,11 +15149,11 @@ void swap(GetChangeVersionRequest &a, GetChangeVersionRequest &b) { swap(a.topic, b.topic); } -GetChangeVersionRequest::GetChangeVersionRequest(const GetChangeVersionRequest& other609) { - topic = other609.topic; +GetChangeVersionRequest::GetChangeVersionRequest(const GetChangeVersionRequest& other613) { + topic = other613.topic; } -GetChangeVersionRequest& GetChangeVersionRequest::operator=(const GetChangeVersionRequest& other610) { - topic = other610.topic; +GetChangeVersionRequest& GetChangeVersionRequest::operator=(const GetChangeVersionRequest& other614) { + topic = other614.topic; return *this; } void GetChangeVersionRequest::printTo(std::ostream& out) const { @@ -14783,11 +15235,11 @@ void swap(GetChangeVersionResult &a, GetChangeVersionResult &b) { swap(a.version, b.version); } -GetChangeVersionResult::GetChangeVersionResult(const GetChangeVersionResult& other611) { - version = other611.version; +GetChangeVersionResult::GetChangeVersionResult(const GetChangeVersionResult& other615) { + version = other615.version; } -GetChangeVersionResult& GetChangeVersionResult::operator=(const GetChangeVersionResult& other612) { - version = other612.version; +GetChangeVersionResult& GetChangeVersionResult::operator=(const GetChangeVersionResult& other616) { + version = other616.version; return *this; } void GetChangeVersionResult::printTo(std::ostream& out) const { @@ -14888,15 +15340,15 @@ void swap(MetadataPpdResult &a, MetadataPpdResult &b) { swap(a.__isset, b.__isset); } -MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other613) { - metadata = other613.metadata; - includeBitset = other613.includeBitset; - __isset = other613.__isset; +MetadataPpdResult::MetadataPpdResult(const MetadataPpdResult& other617) { + metadata = other617.metadata; + includeBitset = other617.includeBitset; + __isset = other617.__isset; } -MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other614) { - metadata = other614.metadata; - includeBitset = other614.includeBitset; - __isset = other614.__isset; +MetadataPpdResult& MetadataPpdResult::operator=(const MetadataPpdResult& other618) { + metadata = other618.metadata; + includeBitset = other618.includeBitset; + __isset = other618.__isset; return *this; } void MetadataPpdResult::printTo(std::ostream& out) const { @@ -14947,17 +15399,17 @@ uint32_t GetFileMetadataByExprResult::read(::apache::thrift::protocol::TProtocol if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size615; - ::apache::thrift::protocol::TType _ktype616; - ::apache::thrift::protocol::TType _vtype617; - xfer += iprot->readMapBegin(_ktype616, _vtype617, _size615); - uint32_t _i619; - for (_i619 = 0; _i619 < _size615; ++_i619) + uint32_t _size619; + ::apache::thrift::protocol::TType _ktype620; + ::apache::thrift::protocol::TType _vtype621; + xfer += iprot->readMapBegin(_ktype620, _vtype621, _size619); + uint32_t _i623; + for (_i623 = 0; _i623 < _size619; ++_i623) { - int64_t _key620; - xfer += iprot->readI64(_key620); - MetadataPpdResult& _val621 = this->metadata[_key620]; - xfer += _val621.read(iprot); + int64_t _key624; + xfer += iprot->readI64(_key624); + MetadataPpdResult& _val625 = this->metadata[_key624]; + xfer += _val625.read(iprot); } xfer += iprot->readMapEnd(); } @@ -14998,11 +15450,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 _iter622; - for (_iter622 = this->metadata.begin(); _iter622 != this->metadata.end(); ++_iter622) + std::map ::const_iterator _iter626; + for (_iter626 = this->metadata.begin(); _iter626 != this->metadata.end(); ++_iter626) { - xfer += oprot->writeI64(_iter622->first); - xfer += _iter622->second.write(oprot); + xfer += oprot->writeI64(_iter626->first); + xfer += _iter626->second.write(oprot); } xfer += oprot->writeMapEnd(); } @@ -15023,13 +15475,13 @@ void swap(GetFileMetadataByExprResult &a, GetFileMetadataByExprResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other623) { - metadata = other623.metadata; - isSupported = other623.isSupported; +GetFileMetadataByExprResult::GetFileMetadataByExprResult(const GetFileMetadataByExprResult& other627) { + metadata = other627.metadata; + isSupported = other627.isSupported; } -GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other624) { - metadata = other624.metadata; - isSupported = other624.isSupported; +GetFileMetadataByExprResult& GetFileMetadataByExprResult::operator=(const GetFileMetadataByExprResult& other628) { + metadata = other628.metadata; + isSupported = other628.isSupported; return *this; } void GetFileMetadataByExprResult::printTo(std::ostream& out) const { @@ -15090,14 +15542,14 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size625; - ::apache::thrift::protocol::TType _etype628; - xfer += iprot->readListBegin(_etype628, _size625); - this->fileIds.resize(_size625); - uint32_t _i629; - for (_i629 = 0; _i629 < _size625; ++_i629) + uint32_t _size629; + ::apache::thrift::protocol::TType _etype632; + xfer += iprot->readListBegin(_etype632, _size629); + this->fileIds.resize(_size629); + uint32_t _i633; + for (_i633 = 0; _i633 < _size629; ++_i633) { - xfer += iprot->readI64(this->fileIds[_i629]); + xfer += iprot->readI64(this->fileIds[_i633]); } xfer += iprot->readListEnd(); } @@ -15124,9 +15576,9 @@ uint32_t GetFileMetadataByExprRequest::read(::apache::thrift::protocol::TProtoco break; case 4: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast630; - xfer += iprot->readI32(ecast630); - this->type = (FileMetadataExprType::type)ecast630; + int32_t ecast634; + xfer += iprot->readI32(ecast634); + this->type = (FileMetadataExprType::type)ecast634; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -15156,10 +15608,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 _iter631; - for (_iter631 = this->fileIds.begin(); _iter631 != this->fileIds.end(); ++_iter631) + std::vector ::const_iterator _iter635; + for (_iter635 = this->fileIds.begin(); _iter635 != this->fileIds.end(); ++_iter635) { - xfer += oprot->writeI64((*_iter631)); + xfer += oprot->writeI64((*_iter635)); } xfer += oprot->writeListEnd(); } @@ -15193,19 +15645,19 @@ void swap(GetFileMetadataByExprRequest &a, GetFileMetadataByExprRequest &b) { swap(a.__isset, b.__isset); } -GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other632) { - fileIds = other632.fileIds; - expr = other632.expr; - doGetFooters = other632.doGetFooters; - type = other632.type; - __isset = other632.__isset; +GetFileMetadataByExprRequest::GetFileMetadataByExprRequest(const GetFileMetadataByExprRequest& other636) { + fileIds = other636.fileIds; + expr = other636.expr; + doGetFooters = other636.doGetFooters; + type = other636.type; + __isset = other636.__isset; } -GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other633) { - fileIds = other633.fileIds; - expr = other633.expr; - doGetFooters = other633.doGetFooters; - type = other633.type; - __isset = other633.__isset; +GetFileMetadataByExprRequest& GetFileMetadataByExprRequest::operator=(const GetFileMetadataByExprRequest& other637) { + fileIds = other637.fileIds; + expr = other637.expr; + doGetFooters = other637.doGetFooters; + type = other637.type; + __isset = other637.__isset; return *this; } void GetFileMetadataByExprRequest::printTo(std::ostream& out) const { @@ -15258,17 +15710,17 @@ uint32_t GetFileMetadataResult::read(::apache::thrift::protocol::TProtocol* ipro if (ftype == ::apache::thrift::protocol::T_MAP) { { this->metadata.clear(); - uint32_t _size634; - ::apache::thrift::protocol::TType _ktype635; - ::apache::thrift::protocol::TType _vtype636; - xfer += iprot->readMapBegin(_ktype635, _vtype636, _size634); - uint32_t _i638; - for (_i638 = 0; _i638 < _size634; ++_i638) + uint32_t _size638; + ::apache::thrift::protocol::TType _ktype639; + ::apache::thrift::protocol::TType _vtype640; + xfer += iprot->readMapBegin(_ktype639, _vtype640, _size638); + uint32_t _i642; + for (_i642 = 0; _i642 < _size638; ++_i642) { - int64_t _key639; - xfer += iprot->readI64(_key639); - std::string& _val640 = this->metadata[_key639]; - xfer += iprot->readBinary(_val640); + int64_t _key643; + xfer += iprot->readI64(_key643); + std::string& _val644 = this->metadata[_key643]; + xfer += iprot->readBinary(_val644); } xfer += iprot->readMapEnd(); } @@ -15309,11 +15761,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 _iter641; - for (_iter641 = this->metadata.begin(); _iter641 != this->metadata.end(); ++_iter641) + std::map ::const_iterator _iter645; + for (_iter645 = this->metadata.begin(); _iter645 != this->metadata.end(); ++_iter645) { - xfer += oprot->writeI64(_iter641->first); - xfer += oprot->writeBinary(_iter641->second); + xfer += oprot->writeI64(_iter645->first); + xfer += oprot->writeBinary(_iter645->second); } xfer += oprot->writeMapEnd(); } @@ -15334,13 +15786,13 @@ void swap(GetFileMetadataResult &a, GetFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other642) { - metadata = other642.metadata; - isSupported = other642.isSupported; +GetFileMetadataResult::GetFileMetadataResult(const GetFileMetadataResult& other646) { + metadata = other646.metadata; + isSupported = other646.isSupported; } -GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other643) { - metadata = other643.metadata; - isSupported = other643.isSupported; +GetFileMetadataResult& GetFileMetadataResult::operator=(const GetFileMetadataResult& other647) { + metadata = other647.metadata; + isSupported = other647.isSupported; return *this; } void GetFileMetadataResult::printTo(std::ostream& out) const { @@ -15386,14 +15838,14 @@ uint32_t GetFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size644; - ::apache::thrift::protocol::TType _etype647; - xfer += iprot->readListBegin(_etype647, _size644); - this->fileIds.resize(_size644); - uint32_t _i648; - for (_i648 = 0; _i648 < _size644; ++_i648) + uint32_t _size648; + ::apache::thrift::protocol::TType _etype651; + xfer += iprot->readListBegin(_etype651, _size648); + this->fileIds.resize(_size648); + uint32_t _i652; + for (_i652 = 0; _i652 < _size648; ++_i652) { - xfer += iprot->readI64(this->fileIds[_i648]); + xfer += iprot->readI64(this->fileIds[_i652]); } xfer += iprot->readListEnd(); } @@ -15424,10 +15876,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 _iter649; - for (_iter649 = this->fileIds.begin(); _iter649 != this->fileIds.end(); ++_iter649) + std::vector ::const_iterator _iter653; + for (_iter653 = this->fileIds.begin(); _iter653 != this->fileIds.end(); ++_iter653) { - xfer += oprot->writeI64((*_iter649)); + xfer += oprot->writeI64((*_iter653)); } xfer += oprot->writeListEnd(); } @@ -15443,11 +15895,11 @@ void swap(GetFileMetadataRequest &a, GetFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other650) { - fileIds = other650.fileIds; +GetFileMetadataRequest::GetFileMetadataRequest(const GetFileMetadataRequest& other654) { + fileIds = other654.fileIds; } -GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other651) { - fileIds = other651.fileIds; +GetFileMetadataRequest& GetFileMetadataRequest::operator=(const GetFileMetadataRequest& other655) { + fileIds = other655.fileIds; return *this; } void GetFileMetadataRequest::printTo(std::ostream& out) const { @@ -15506,11 +15958,11 @@ void swap(PutFileMetadataResult &a, PutFileMetadataResult &b) { (void) b; } -PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other652) { - (void) other652; +PutFileMetadataResult::PutFileMetadataResult(const PutFileMetadataResult& other656) { + (void) other656; } -PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other653) { - (void) other653; +PutFileMetadataResult& PutFileMetadataResult::operator=(const PutFileMetadataResult& other657) { + (void) other657; return *this; } void PutFileMetadataResult::printTo(std::ostream& out) const { @@ -15564,14 +16016,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - uint32_t _size654; - ::apache::thrift::protocol::TType _etype657; - xfer += iprot->readListBegin(_etype657, _size654); - this->fileIds.resize(_size654); - uint32_t _i658; - for (_i658 = 0; _i658 < _size654; ++_i658) + uint32_t _size658; + ::apache::thrift::protocol::TType _etype661; + xfer += iprot->readListBegin(_etype661, _size658); + this->fileIds.resize(_size658); + uint32_t _i662; + for (_i662 = 0; _i662 < _size658; ++_i662) { - xfer += iprot->readI64(this->fileIds[_i658]); + xfer += iprot->readI64(this->fileIds[_i662]); } xfer += iprot->readListEnd(); } @@ -15584,14 +16036,14 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr if (ftype == ::apache::thrift::protocol::T_LIST) { { this->metadata.clear(); - uint32_t _size659; - ::apache::thrift::protocol::TType _etype662; - xfer += iprot->readListBegin(_etype662, _size659); - this->metadata.resize(_size659); - uint32_t _i663; - for (_i663 = 0; _i663 < _size659; ++_i663) + uint32_t _size663; + ::apache::thrift::protocol::TType _etype666; + xfer += iprot->readListBegin(_etype666, _size663); + this->metadata.resize(_size663); + uint32_t _i667; + for (_i667 = 0; _i667 < _size663; ++_i667) { - xfer += iprot->readBinary(this->metadata[_i663]); + xfer += iprot->readBinary(this->metadata[_i667]); } xfer += iprot->readListEnd(); } @@ -15602,9 +16054,9 @@ uint32_t PutFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* ipr break; case 3: if (ftype == ::apache::thrift::protocol::T_I32) { - int32_t ecast664; - xfer += iprot->readI32(ecast664); - this->type = (FileMetadataExprType::type)ecast664; + int32_t ecast668; + xfer += iprot->readI32(ecast668); + this->type = (FileMetadataExprType::type)ecast668; this->__isset.type = true; } else { xfer += iprot->skip(ftype); @@ -15634,10 +16086,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 _iter665; - for (_iter665 = this->fileIds.begin(); _iter665 != this->fileIds.end(); ++_iter665) + std::vector ::const_iterator _iter669; + for (_iter669 = this->fileIds.begin(); _iter669 != this->fileIds.end(); ++_iter669) { - xfer += oprot->writeI64((*_iter665)); + xfer += oprot->writeI64((*_iter669)); } xfer += oprot->writeListEnd(); } @@ -15646,10 +16098,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 _iter666; - for (_iter666 = this->metadata.begin(); _iter666 != this->metadata.end(); ++_iter666) + std::vector ::const_iterator _iter670; + for (_iter670 = this->metadata.begin(); _iter670 != this->metadata.end(); ++_iter670) { - xfer += oprot->writeBinary((*_iter666)); + xfer += oprot->writeBinary((*_iter670)); } xfer += oprot->writeListEnd(); } @@ -15673,17 +16125,17 @@ void swap(PutFileMetadataRequest &a, PutFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other667) { - fileIds = other667.fileIds; - metadata = other667.metadata; - type = other667.type; - __isset = other667.__isset; +PutFileMetadataRequest::PutFileMetadataRequest(const PutFileMetadataRequest& other671) { + fileIds = other671.fileIds; + metadata = other671.metadata; + type = other671.type; + __isset = other671.__isset; } -PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other668) { - fileIds = other668.fileIds; - metadata = other668.metadata; - type = other668.type; - __isset = other668.__isset; +PutFileMetadataRequest& PutFileMetadataRequest::operator=(const PutFileMetadataRequest& other672) { + fileIds = other672.fileIds; + metadata = other672.metadata; + type = other672.type; + __isset = other672.__isset; return *this; } void PutFileMetadataRequest::printTo(std::ostream& out) const { @@ -15744,11 +16196,11 @@ void swap(ClearFileMetadataResult &a, ClearFileMetadataResult &b) { (void) b; } -ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other669) { - (void) other669; +ClearFileMetadataResult::ClearFileMetadataResult(const ClearFileMetadataResult& other673) { + (void) other673; } -ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other670) { - (void) other670; +ClearFileMetadataResult& ClearFileMetadataResult::operator=(const ClearFileMetadataResult& other674) { + (void) other674; return *this; } void ClearFileMetadataResult::printTo(std::ostream& out) const { @@ -15792,14 +16244,14 @@ uint32_t ClearFileMetadataRequest::read(::apache::thrift::protocol::TProtocol* i if (ftype == ::apache::thrift::protocol::T_LIST) { { this->fileIds.clear(); - 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) + uint32_t _size675; + ::apache::thrift::protocol::TType _etype678; + xfer += iprot->readListBegin(_etype678, _size675); + this->fileIds.resize(_size675); + uint32_t _i679; + for (_i679 = 0; _i679 < _size675; ++_i679) { - xfer += iprot->readI64(this->fileIds[_i675]); + xfer += iprot->readI64(this->fileIds[_i679]); } xfer += iprot->readListEnd(); } @@ -15830,10 +16282,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 _iter676; - for (_iter676 = this->fileIds.begin(); _iter676 != this->fileIds.end(); ++_iter676) + std::vector ::const_iterator _iter680; + for (_iter680 = this->fileIds.begin(); _iter680 != this->fileIds.end(); ++_iter680) { - xfer += oprot->writeI64((*_iter676)); + xfer += oprot->writeI64((*_iter680)); } xfer += oprot->writeListEnd(); } @@ -15849,11 +16301,11 @@ void swap(ClearFileMetadataRequest &a, ClearFileMetadataRequest &b) { swap(a.fileIds, b.fileIds); } -ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other677) { - fileIds = other677.fileIds; +ClearFileMetadataRequest::ClearFileMetadataRequest(const ClearFileMetadataRequest& other681) { + fileIds = other681.fileIds; } -ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other678) { - fileIds = other678.fileIds; +ClearFileMetadataRequest& ClearFileMetadataRequest::operator=(const ClearFileMetadataRequest& other682) { + fileIds = other682.fileIds; return *this; } void ClearFileMetadataRequest::printTo(std::ostream& out) const { @@ -15935,11 +16387,11 @@ void swap(CacheFileMetadataResult &a, CacheFileMetadataResult &b) { swap(a.isSupported, b.isSupported); } -CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other679) { - isSupported = other679.isSupported; +CacheFileMetadataResult::CacheFileMetadataResult(const CacheFileMetadataResult& other683) { + isSupported = other683.isSupported; } -CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other680) { - isSupported = other680.isSupported; +CacheFileMetadataResult& CacheFileMetadataResult::operator=(const CacheFileMetadataResult& other684) { + isSupported = other684.isSupported; return *this; } void CacheFileMetadataResult::printTo(std::ostream& out) const { @@ -16080,19 +16532,19 @@ void swap(CacheFileMetadataRequest &a, CacheFileMetadataRequest &b) { swap(a.__isset, b.__isset); } -CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other681) { - dbName = other681.dbName; - tblName = other681.tblName; - partName = other681.partName; - isAllParts = other681.isAllParts; - __isset = other681.__isset; +CacheFileMetadataRequest::CacheFileMetadataRequest(const CacheFileMetadataRequest& other685) { + dbName = other685.dbName; + tblName = other685.tblName; + partName = other685.partName; + isAllParts = other685.isAllParts; + __isset = other685.__isset; } -CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other682) { - dbName = other682.dbName; - tblName = other682.tblName; - partName = other682.partName; - isAllParts = other682.isAllParts; - __isset = other682.__isset; +CacheFileMetadataRequest& CacheFileMetadataRequest::operator=(const CacheFileMetadataRequest& other686) { + dbName = other686.dbName; + tblName = other686.tblName; + partName = other686.partName; + isAllParts = other686.isAllParts; + __isset = other686.__isset; return *this; } void CacheFileMetadataRequest::printTo(std::ostream& out) const { @@ -16140,14 +16592,14 @@ uint32_t GetAllFunctionsResponse::read(::apache::thrift::protocol::TProtocol* ip if (ftype == ::apache::thrift::protocol::T_LIST) { { this->functions.clear(); - uint32_t _size683; - ::apache::thrift::protocol::TType _etype686; - xfer += iprot->readListBegin(_etype686, _size683); - this->functions.resize(_size683); - uint32_t _i687; - for (_i687 = 0; _i687 < _size683; ++_i687) + uint32_t _size687; + ::apache::thrift::protocol::TType _etype690; + xfer += iprot->readListBegin(_etype690, _size687); + this->functions.resize(_size687); + uint32_t _i691; + for (_i691 = 0; _i691 < _size687; ++_i691) { - xfer += this->functions[_i687].read(iprot); + xfer += this->functions[_i691].read(iprot); } xfer += iprot->readListEnd(); } @@ -16177,10 +16629,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 _iter688; - for (_iter688 = this->functions.begin(); _iter688 != this->functions.end(); ++_iter688) + std::vector ::const_iterator _iter692; + for (_iter692 = this->functions.begin(); _iter692 != this->functions.end(); ++_iter692) { - xfer += (*_iter688).write(oprot); + xfer += (*_iter692).write(oprot); } xfer += oprot->writeListEnd(); } @@ -16197,13 +16649,13 @@ void swap(GetAllFunctionsResponse &a, GetAllFunctionsResponse &b) { swap(a.__isset, b.__isset); } -GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other689) { - functions = other689.functions; - __isset = other689.__isset; +GetAllFunctionsResponse::GetAllFunctionsResponse(const GetAllFunctionsResponse& other693) { + functions = other693.functions; + __isset = other693.__isset; } -GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other690) { - functions = other690.functions; - __isset = other690.__isset; +GetAllFunctionsResponse& GetAllFunctionsResponse::operator=(const GetAllFunctionsResponse& other694) { + functions = other694.functions; + __isset = other694.__isset; return *this; } void GetAllFunctionsResponse::printTo(std::ostream& out) const { @@ -16345,19 +16797,19 @@ void swap(TableMeta &a, TableMeta &b) { swap(a.__isset, b.__isset); } -TableMeta::TableMeta(const TableMeta& other691) { - dbName = other691.dbName; - tableName = other691.tableName; - tableType = other691.tableType; - comments = other691.comments; - __isset = other691.__isset; +TableMeta::TableMeta(const TableMeta& other695) { + dbName = other695.dbName; + tableName = other695.tableName; + tableType = other695.tableType; + comments = other695.comments; + __isset = other695.__isset; } -TableMeta& TableMeta::operator=(const TableMeta& other692) { - dbName = other692.dbName; - tableName = other692.tableName; - tableType = other692.tableType; - comments = other692.comments; - __isset = other692.__isset; +TableMeta& TableMeta::operator=(const TableMeta& other696) { + dbName = other696.dbName; + tableName = other696.tableName; + tableType = other696.tableType; + comments = other696.comments; + __isset = other696.__isset; return *this; } void TableMeta::printTo(std::ostream& out) const { @@ -16440,13 +16892,13 @@ void swap(MetaException &a, MetaException &b) { swap(a.__isset, b.__isset); } -MetaException::MetaException(const MetaException& other693) : TException() { - message = other693.message; - __isset = other693.__isset; +MetaException::MetaException(const MetaException& other697) : TException() { + message = other697.message; + __isset = other697.__isset; } -MetaException& MetaException::operator=(const MetaException& other694) { - message = other694.message; - __isset = other694.__isset; +MetaException& MetaException::operator=(const MetaException& other698) { + message = other698.message; + __isset = other698.__isset; return *this; } void MetaException::printTo(std::ostream& out) const { @@ -16537,13 +16989,13 @@ void swap(UnknownTableException &a, UnknownTableException &b) { swap(a.__isset, b.__isset); } -UnknownTableException::UnknownTableException(const UnknownTableException& other695) : TException() { - message = other695.message; - __isset = other695.__isset; +UnknownTableException::UnknownTableException(const UnknownTableException& other699) : TException() { + message = other699.message; + __isset = other699.__isset; } -UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other696) { - message = other696.message; - __isset = other696.__isset; +UnknownTableException& UnknownTableException::operator=(const UnknownTableException& other700) { + message = other700.message; + __isset = other700.__isset; return *this; } void UnknownTableException::printTo(std::ostream& out) const { @@ -16634,13 +17086,13 @@ void swap(UnknownDBException &a, UnknownDBException &b) { swap(a.__isset, b.__isset); } -UnknownDBException::UnknownDBException(const UnknownDBException& other697) : TException() { - message = other697.message; - __isset = other697.__isset; +UnknownDBException::UnknownDBException(const UnknownDBException& other701) : TException() { + message = other701.message; + __isset = other701.__isset; } -UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other698) { - message = other698.message; - __isset = other698.__isset; +UnknownDBException& UnknownDBException::operator=(const UnknownDBException& other702) { + message = other702.message; + __isset = other702.__isset; return *this; } void UnknownDBException::printTo(std::ostream& out) const { @@ -16731,13 +17183,13 @@ void swap(AlreadyExistsException &a, AlreadyExistsException &b) { swap(a.__isset, b.__isset); } -AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other699) : TException() { - message = other699.message; - __isset = other699.__isset; +AlreadyExistsException::AlreadyExistsException(const AlreadyExistsException& other703) : TException() { + message = other703.message; + __isset = other703.__isset; } -AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other700) { - message = other700.message; - __isset = other700.__isset; +AlreadyExistsException& AlreadyExistsException::operator=(const AlreadyExistsException& other704) { + message = other704.message; + __isset = other704.__isset; return *this; } void AlreadyExistsException::printTo(std::ostream& out) const { @@ -16828,13 +17280,13 @@ void swap(InvalidPartitionException &a, InvalidPartitionException &b) { swap(a.__isset, b.__isset); } -InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other701) : TException() { - message = other701.message; - __isset = other701.__isset; +InvalidPartitionException::InvalidPartitionException(const InvalidPartitionException& other705) : TException() { + message = other705.message; + __isset = other705.__isset; } -InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other702) { - message = other702.message; - __isset = other702.__isset; +InvalidPartitionException& InvalidPartitionException::operator=(const InvalidPartitionException& other706) { + message = other706.message; + __isset = other706.__isset; return *this; } void InvalidPartitionException::printTo(std::ostream& out) const { @@ -16925,13 +17377,13 @@ void swap(UnknownPartitionException &a, UnknownPartitionException &b) { swap(a.__isset, b.__isset); } -UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other703) : TException() { - message = other703.message; - __isset = other703.__isset; +UnknownPartitionException::UnknownPartitionException(const UnknownPartitionException& other707) : TException() { + message = other707.message; + __isset = other707.__isset; } -UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other704) { - message = other704.message; - __isset = other704.__isset; +UnknownPartitionException& UnknownPartitionException::operator=(const UnknownPartitionException& other708) { + message = other708.message; + __isset = other708.__isset; return *this; } void UnknownPartitionException::printTo(std::ostream& out) const { @@ -17022,13 +17474,13 @@ void swap(InvalidObjectException &a, InvalidObjectException &b) { swap(a.__isset, b.__isset); } -InvalidObjectException::InvalidObjectException(const InvalidObjectException& other705) : TException() { - message = other705.message; - __isset = other705.__isset; +InvalidObjectException::InvalidObjectException(const InvalidObjectException& other709) : TException() { + message = other709.message; + __isset = other709.__isset; } -InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other706) { - message = other706.message; - __isset = other706.__isset; +InvalidObjectException& InvalidObjectException::operator=(const InvalidObjectException& other710) { + message = other710.message; + __isset = other710.__isset; return *this; } void InvalidObjectException::printTo(std::ostream& out) const { @@ -17119,13 +17571,13 @@ void swap(NoSuchObjectException &a, NoSuchObjectException &b) { swap(a.__isset, b.__isset); } -NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other707) : TException() { - message = other707.message; - __isset = other707.__isset; +NoSuchObjectException::NoSuchObjectException(const NoSuchObjectException& other711) : TException() { + message = other711.message; + __isset = other711.__isset; } -NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other708) { - message = other708.message; - __isset = other708.__isset; +NoSuchObjectException& NoSuchObjectException::operator=(const NoSuchObjectException& other712) { + message = other712.message; + __isset = other712.__isset; return *this; } void NoSuchObjectException::printTo(std::ostream& out) const { @@ -17216,13 +17668,13 @@ void swap(IndexAlreadyExistsException &a, IndexAlreadyExistsException &b) { swap(a.__isset, b.__isset); } -IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other709) : TException() { - message = other709.message; - __isset = other709.__isset; +IndexAlreadyExistsException::IndexAlreadyExistsException(const IndexAlreadyExistsException& other713) : TException() { + message = other713.message; + __isset = other713.__isset; } -IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other710) { - message = other710.message; - __isset = other710.__isset; +IndexAlreadyExistsException& IndexAlreadyExistsException::operator=(const IndexAlreadyExistsException& other714) { + message = other714.message; + __isset = other714.__isset; return *this; } void IndexAlreadyExistsException::printTo(std::ostream& out) const { @@ -17313,13 +17765,13 @@ void swap(InvalidOperationException &a, InvalidOperationException &b) { swap(a.__isset, b.__isset); } -InvalidOperationException::InvalidOperationException(const InvalidOperationException& other711) : TException() { - message = other711.message; - __isset = other711.__isset; +InvalidOperationException::InvalidOperationException(const InvalidOperationException& other715) : TException() { + message = other715.message; + __isset = other715.__isset; } -InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other712) { - message = other712.message; - __isset = other712.__isset; +InvalidOperationException& InvalidOperationException::operator=(const InvalidOperationException& other716) { + message = other716.message; + __isset = other716.__isset; return *this; } void InvalidOperationException::printTo(std::ostream& out) const { @@ -17410,13 +17862,13 @@ void swap(ConfigValSecurityException &a, ConfigValSecurityException &b) { swap(a.__isset, b.__isset); } -ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other713) : TException() { - message = other713.message; - __isset = other713.__isset; +ConfigValSecurityException::ConfigValSecurityException(const ConfigValSecurityException& other717) : TException() { + message = other717.message; + __isset = other717.__isset; } -ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other714) { - message = other714.message; - __isset = other714.__isset; +ConfigValSecurityException& ConfigValSecurityException::operator=(const ConfigValSecurityException& other718) { + message = other718.message; + __isset = other718.__isset; return *this; } void ConfigValSecurityException::printTo(std::ostream& out) const { @@ -17507,13 +17959,13 @@ void swap(InvalidInputException &a, InvalidInputException &b) { swap(a.__isset, b.__isset); } -InvalidInputException::InvalidInputException(const InvalidInputException& other715) : TException() { - message = other715.message; - __isset = other715.__isset; +InvalidInputException::InvalidInputException(const InvalidInputException& other719) : TException() { + message = other719.message; + __isset = other719.__isset; } -InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other716) { - message = other716.message; - __isset = other716.__isset; +InvalidInputException& InvalidInputException::operator=(const InvalidInputException& other720) { + message = other720.message; + __isset = other720.__isset; return *this; } void InvalidInputException::printTo(std::ostream& out) const { @@ -17604,13 +18056,13 @@ void swap(NoSuchTxnException &a, NoSuchTxnException &b) { swap(a.__isset, b.__isset); } -NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other717) : TException() { - message = other717.message; - __isset = other717.__isset; +NoSuchTxnException::NoSuchTxnException(const NoSuchTxnException& other721) : TException() { + message = other721.message; + __isset = other721.__isset; } -NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other718) { - message = other718.message; - __isset = other718.__isset; +NoSuchTxnException& NoSuchTxnException::operator=(const NoSuchTxnException& other722) { + message = other722.message; + __isset = other722.__isset; return *this; } void NoSuchTxnException::printTo(std::ostream& out) const { @@ -17701,13 +18153,13 @@ void swap(TxnAbortedException &a, TxnAbortedException &b) { swap(a.__isset, b.__isset); } -TxnAbortedException::TxnAbortedException(const TxnAbortedException& other719) : TException() { - message = other719.message; - __isset = other719.__isset; +TxnAbortedException::TxnAbortedException(const TxnAbortedException& other723) : TException() { + message = other723.message; + __isset = other723.__isset; } -TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other720) { - message = other720.message; - __isset = other720.__isset; +TxnAbortedException& TxnAbortedException::operator=(const TxnAbortedException& other724) { + message = other724.message; + __isset = other724.__isset; return *this; } void TxnAbortedException::printTo(std::ostream& out) const { @@ -17798,13 +18250,13 @@ void swap(TxnOpenException &a, TxnOpenException &b) { swap(a.__isset, b.__isset); } -TxnOpenException::TxnOpenException(const TxnOpenException& other721) : TException() { - message = other721.message; - __isset = other721.__isset; +TxnOpenException::TxnOpenException(const TxnOpenException& other725) : TException() { + message = other725.message; + __isset = other725.__isset; } -TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other722) { - message = other722.message; - __isset = other722.__isset; +TxnOpenException& TxnOpenException::operator=(const TxnOpenException& other726) { + message = other726.message; + __isset = other726.__isset; return *this; } void TxnOpenException::printTo(std::ostream& out) const { @@ -17895,13 +18347,13 @@ void swap(NoSuchLockException &a, NoSuchLockException &b) { swap(a.__isset, b.__isset); } -NoSuchLockException::NoSuchLockException(const NoSuchLockException& other723) : TException() { - message = other723.message; - __isset = other723.__isset; +NoSuchLockException::NoSuchLockException(const NoSuchLockException& other727) : TException() { + message = other727.message; + __isset = other727.__isset; } -NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other724) { - message = other724.message; - __isset = other724.__isset; +NoSuchLockException& NoSuchLockException::operator=(const NoSuchLockException& other728) { + message = other728.message; + __isset = other728.__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 97c07a5..6664bc0 100644 --- a/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h +++ b/metastore/src/gen/thrift/gen-cpp/hive_metastore_types.h @@ -149,6 +149,10 @@ class Version; class FieldSchema; +class SQLPrimaryKey; + +class SQLForeignKey; + class Type; class HiveObjectRef; @@ -501,6 +505,182 @@ inline std::ostream& operator<<(std::ostream& out, const FieldSchema& obj) return out; } +typedef struct _SQLPrimaryKey__isset { + _SQLPrimaryKey__isset() : table_schem(false), table_name(false), column_name(false), key_seq(false), pk_name(false) {} + bool table_schem :1; + bool table_name :1; + bool column_name :1; + bool key_seq :1; + bool pk_name :1; +} _SQLPrimaryKey__isset; + +class SQLPrimaryKey { + public: + + SQLPrimaryKey(const SQLPrimaryKey&); + SQLPrimaryKey& operator=(const SQLPrimaryKey&); + SQLPrimaryKey() : table_schem(), table_name(), column_name(), key_seq(0), pk_name() { + } + + virtual ~SQLPrimaryKey() throw(); + std::string table_schem; + std::string table_name; + std::string column_name; + int32_t key_seq; + std::string pk_name; + + _SQLPrimaryKey__isset __isset; + + void __set_table_schem(const std::string& val); + + void __set_table_name(const std::string& val); + + void __set_column_name(const std::string& val); + + void __set_key_seq(const int32_t val); + + void __set_pk_name(const std::string& val); + + bool operator == (const SQLPrimaryKey & rhs) const + { + if (!(table_schem == rhs.table_schem)) + return false; + if (!(table_name == rhs.table_name)) + return false; + if (!(column_name == rhs.column_name)) + return false; + if (!(key_seq == rhs.key_seq)) + return false; + if (!(pk_name == rhs.pk_name)) + return false; + return true; + } + bool operator != (const SQLPrimaryKey &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLPrimaryKey & ) 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(SQLPrimaryKey &a, SQLPrimaryKey &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLPrimaryKey& obj) +{ + obj.printTo(out); + return out; +} + +typedef struct _SQLForeignKey__isset { + _SQLForeignKey__isset() : pktable_schem(false), pktable_name(false), pkcolumn_name(false), fktable_schem(false), fktable_name(false), fkcolumn_name(false), key_seq(false), update_rule(false), delete_rule(false), fk_name(false), pk_name(false) {} + bool pktable_schem :1; + bool pktable_name :1; + bool pkcolumn_name :1; + bool fktable_schem :1; + bool fktable_name :1; + bool fkcolumn_name :1; + bool key_seq :1; + bool update_rule :1; + bool delete_rule :1; + bool fk_name :1; + bool pk_name :1; +} _SQLForeignKey__isset; + +class SQLForeignKey { + public: + + SQLForeignKey(const SQLForeignKey&); + SQLForeignKey& operator=(const SQLForeignKey&); + SQLForeignKey() : pktable_schem(), pktable_name(), pkcolumn_name(), fktable_schem(), fktable_name(), fkcolumn_name(), key_seq(0), update_rule(0), delete_rule(0), fk_name(), pk_name() { + } + + virtual ~SQLForeignKey() throw(); + std::string pktable_schem; + std::string pktable_name; + std::string pkcolumn_name; + std::string fktable_schem; + std::string fktable_name; + std::string fkcolumn_name; + int32_t key_seq; + int32_t update_rule; + int32_t delete_rule; + std::string fk_name; + std::string pk_name; + + _SQLForeignKey__isset __isset; + + void __set_pktable_schem(const std::string& val); + + void __set_pktable_name(const std::string& val); + + void __set_pkcolumn_name(const std::string& val); + + void __set_fktable_schem(const std::string& val); + + void __set_fktable_name(const std::string& val); + + void __set_fkcolumn_name(const std::string& val); + + void __set_key_seq(const int32_t val); + + void __set_update_rule(const int32_t val); + + void __set_delete_rule(const int32_t val); + + void __set_fk_name(const std::string& val); + + void __set_pk_name(const std::string& val); + + bool operator == (const SQLForeignKey & rhs) const + { + if (!(pktable_schem == rhs.pktable_schem)) + return false; + if (!(pktable_name == rhs.pktable_name)) + return false; + if (!(pkcolumn_name == rhs.pkcolumn_name)) + return false; + if (!(fktable_schem == rhs.fktable_schem)) + return false; + if (!(fktable_name == rhs.fktable_name)) + return false; + if (!(fkcolumn_name == rhs.fkcolumn_name)) + return false; + if (!(key_seq == rhs.key_seq)) + return false; + if (!(update_rule == rhs.update_rule)) + return false; + if (!(delete_rule == rhs.delete_rule)) + return false; + if (!(fk_name == rhs.fk_name)) + return false; + if (!(pk_name == rhs.pk_name)) + return false; + return true; + } + bool operator != (const SQLForeignKey &rhs) const { + return !(*this == rhs); + } + + bool operator < (const SQLForeignKey & ) 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(SQLForeignKey &a, SQLForeignKey &b); + +inline std::ostream& operator<<(std::ostream& out, const SQLForeignKey& obj) +{ + obj.printTo(out); + return out; +} + typedef struct _Type__isset { _Type__isset() : name(false), type1(false), type2(false), fields(false) {} bool name :1; diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java new file mode 100644 index 0000000..0646f3e --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLForeignKey.java @@ -0,0 +1,1421 @@ +/** + * 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 SQLForeignKey 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("SQLForeignKey"); + + private static final org.apache.thrift.protocol.TField PKTABLE_SCHEM_FIELD_DESC = new org.apache.thrift.protocol.TField("pktable_schem", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PKTABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pktable_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField PKCOLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pkcolumn_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FKTABLE_SCHEM_FIELD_DESC = new org.apache.thrift.protocol.TField("fktable_schem", org.apache.thrift.protocol.TType.STRING, (short)4); + private static final org.apache.thrift.protocol.TField FKTABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("fktable_name", org.apache.thrift.protocol.TType.STRING, (short)5); + private static final org.apache.thrift.protocol.TField FKCOLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("fkcolumn_name", org.apache.thrift.protocol.TType.STRING, (short)6); + private static final org.apache.thrift.protocol.TField KEY_SEQ_FIELD_DESC = new org.apache.thrift.protocol.TField("key_seq", org.apache.thrift.protocol.TType.I32, (short)7); + private static final org.apache.thrift.protocol.TField UPDATE_RULE_FIELD_DESC = new org.apache.thrift.protocol.TField("update_rule", org.apache.thrift.protocol.TType.I32, (short)8); + private static final org.apache.thrift.protocol.TField DELETE_RULE_FIELD_DESC = new org.apache.thrift.protocol.TField("delete_rule", org.apache.thrift.protocol.TType.I32, (short)9); + private static final org.apache.thrift.protocol.TField FK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("fk_name", org.apache.thrift.protocol.TType.STRING, (short)10); + private static final org.apache.thrift.protocol.TField PK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pk_name", org.apache.thrift.protocol.TType.STRING, (short)11); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new SQLForeignKeyStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLForeignKeyTupleSchemeFactory()); + } + + private String pktable_schem; // required + private String pktable_name; // required + private String pkcolumn_name; // required + private String fktable_schem; // required + private String fktable_name; // required + private String fkcolumn_name; // required + private int key_seq; // required + private int update_rule; // required + private int delete_rule; // required + private String fk_name; // required + private String pk_name; // 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 { + PKTABLE_SCHEM((short)1, "pktable_schem"), + PKTABLE_NAME((short)2, "pktable_name"), + PKCOLUMN_NAME((short)3, "pkcolumn_name"), + FKTABLE_SCHEM((short)4, "fktable_schem"), + FKTABLE_NAME((short)5, "fktable_name"), + FKCOLUMN_NAME((short)6, "fkcolumn_name"), + KEY_SEQ((short)7, "key_seq"), + UPDATE_RULE((short)8, "update_rule"), + DELETE_RULE((short)9, "delete_rule"), + FK_NAME((short)10, "fk_name"), + PK_NAME((short)11, "pk_name"); + + 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: // PKTABLE_SCHEM + return PKTABLE_SCHEM; + case 2: // PKTABLE_NAME + return PKTABLE_NAME; + case 3: // PKCOLUMN_NAME + return PKCOLUMN_NAME; + case 4: // FKTABLE_SCHEM + return FKTABLE_SCHEM; + case 5: // FKTABLE_NAME + return FKTABLE_NAME; + case 6: // FKCOLUMN_NAME + return FKCOLUMN_NAME; + case 7: // KEY_SEQ + return KEY_SEQ; + case 8: // UPDATE_RULE + return UPDATE_RULE; + case 9: // DELETE_RULE + return DELETE_RULE; + case 10: // FK_NAME + return FK_NAME; + case 11: // PK_NAME + return PK_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __KEY_SEQ_ISSET_ID = 0; + private static final int __UPDATE_RULE_ISSET_ID = 1; + private static final int __DELETE_RULE_ISSET_ID = 2; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.PKTABLE_SCHEM, new org.apache.thrift.meta_data.FieldMetaData("pktable_schem", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PKTABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("pktable_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PKCOLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("pkcolumn_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FKTABLE_SCHEM, new org.apache.thrift.meta_data.FieldMetaData("fktable_schem", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FKTABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("fktable_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FKCOLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("fkcolumn_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.KEY_SEQ, new org.apache.thrift.meta_data.FieldMetaData("key_seq", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.UPDATE_RULE, new org.apache.thrift.meta_data.FieldMetaData("update_rule", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.DELETE_RULE, new org.apache.thrift.meta_data.FieldMetaData("delete_rule", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.FK_NAME, new org.apache.thrift.meta_data.FieldMetaData("fk_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.PK_NAME, new org.apache.thrift.meta_data.FieldMetaData("pk_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SQLForeignKey.class, metaDataMap); + } + + public SQLForeignKey() { + } + + public SQLForeignKey( + String pktable_schem, + String pktable_name, + String pkcolumn_name, + String fktable_schem, + String fktable_name, + String fkcolumn_name, + int key_seq, + int update_rule, + int delete_rule, + String fk_name, + String pk_name) + { + this(); + this.pktable_schem = pktable_schem; + this.pktable_name = pktable_name; + this.pkcolumn_name = pkcolumn_name; + this.fktable_schem = fktable_schem; + this.fktable_name = fktable_name; + this.fkcolumn_name = fkcolumn_name; + this.key_seq = key_seq; + setKey_seqIsSet(true); + this.update_rule = update_rule; + setUpdate_ruleIsSet(true); + this.delete_rule = delete_rule; + setDelete_ruleIsSet(true); + this.fk_name = fk_name; + this.pk_name = pk_name; + } + + /** + * Performs a deep copy on other. + */ + public SQLForeignKey(SQLForeignKey other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetPktable_schem()) { + this.pktable_schem = other.pktable_schem; + } + if (other.isSetPktable_name()) { + this.pktable_name = other.pktable_name; + } + if (other.isSetPkcolumn_name()) { + this.pkcolumn_name = other.pkcolumn_name; + } + if (other.isSetFktable_schem()) { + this.fktable_schem = other.fktable_schem; + } + if (other.isSetFktable_name()) { + this.fktable_name = other.fktable_name; + } + if (other.isSetFkcolumn_name()) { + this.fkcolumn_name = other.fkcolumn_name; + } + this.key_seq = other.key_seq; + this.update_rule = other.update_rule; + this.delete_rule = other.delete_rule; + if (other.isSetFk_name()) { + this.fk_name = other.fk_name; + } + if (other.isSetPk_name()) { + this.pk_name = other.pk_name; + } + } + + public SQLForeignKey deepCopy() { + return new SQLForeignKey(this); + } + + @Override + public void clear() { + this.pktable_schem = null; + this.pktable_name = null; + this.pkcolumn_name = null; + this.fktable_schem = null; + this.fktable_name = null; + this.fkcolumn_name = null; + setKey_seqIsSet(false); + this.key_seq = 0; + setUpdate_ruleIsSet(false); + this.update_rule = 0; + setDelete_ruleIsSet(false); + this.delete_rule = 0; + this.fk_name = null; + this.pk_name = null; + } + + public String getPktable_schem() { + return this.pktable_schem; + } + + public void setPktable_schem(String pktable_schem) { + this.pktable_schem = pktable_schem; + } + + public void unsetPktable_schem() { + this.pktable_schem = null; + } + + /** Returns true if field pktable_schem is set (has been assigned a value) and false otherwise */ + public boolean isSetPktable_schem() { + return this.pktable_schem != null; + } + + public void setPktable_schemIsSet(boolean value) { + if (!value) { + this.pktable_schem = null; + } + } + + public String getPktable_name() { + return this.pktable_name; + } + + public void setPktable_name(String pktable_name) { + this.pktable_name = pktable_name; + } + + public void unsetPktable_name() { + this.pktable_name = null; + } + + /** Returns true if field pktable_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPktable_name() { + return this.pktable_name != null; + } + + public void setPktable_nameIsSet(boolean value) { + if (!value) { + this.pktable_name = null; + } + } + + public String getPkcolumn_name() { + return this.pkcolumn_name; + } + + public void setPkcolumn_name(String pkcolumn_name) { + this.pkcolumn_name = pkcolumn_name; + } + + public void unsetPkcolumn_name() { + this.pkcolumn_name = null; + } + + /** Returns true if field pkcolumn_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPkcolumn_name() { + return this.pkcolumn_name != null; + } + + public void setPkcolumn_nameIsSet(boolean value) { + if (!value) { + this.pkcolumn_name = null; + } + } + + public String getFktable_schem() { + return this.fktable_schem; + } + + public void setFktable_schem(String fktable_schem) { + this.fktable_schem = fktable_schem; + } + + public void unsetFktable_schem() { + this.fktable_schem = null; + } + + /** Returns true if field fktable_schem is set (has been assigned a value) and false otherwise */ + public boolean isSetFktable_schem() { + return this.fktable_schem != null; + } + + public void setFktable_schemIsSet(boolean value) { + if (!value) { + this.fktable_schem = null; + } + } + + public String getFktable_name() { + return this.fktable_name; + } + + public void setFktable_name(String fktable_name) { + this.fktable_name = fktable_name; + } + + public void unsetFktable_name() { + this.fktable_name = null; + } + + /** Returns true if field fktable_name is set (has been assigned a value) and false otherwise */ + public boolean isSetFktable_name() { + return this.fktable_name != null; + } + + public void setFktable_nameIsSet(boolean value) { + if (!value) { + this.fktable_name = null; + } + } + + public String getFkcolumn_name() { + return this.fkcolumn_name; + } + + public void setFkcolumn_name(String fkcolumn_name) { + this.fkcolumn_name = fkcolumn_name; + } + + public void unsetFkcolumn_name() { + this.fkcolumn_name = null; + } + + /** Returns true if field fkcolumn_name is set (has been assigned a value) and false otherwise */ + public boolean isSetFkcolumn_name() { + return this.fkcolumn_name != null; + } + + public void setFkcolumn_nameIsSet(boolean value) { + if (!value) { + this.fkcolumn_name = null; + } + } + + public int getKey_seq() { + return this.key_seq; + } + + public void setKey_seq(int key_seq) { + this.key_seq = key_seq; + setKey_seqIsSet(true); + } + + public void unsetKey_seq() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + /** Returns true if field key_seq is set (has been assigned a value) and false otherwise */ + public boolean isSetKey_seq() { + return EncodingUtils.testBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + public void setKey_seqIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEY_SEQ_ISSET_ID, value); + } + + public int getUpdate_rule() { + return this.update_rule; + } + + public void setUpdate_rule(int update_rule) { + this.update_rule = update_rule; + setUpdate_ruleIsSet(true); + } + + public void unsetUpdate_rule() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __UPDATE_RULE_ISSET_ID); + } + + /** Returns true if field update_rule is set (has been assigned a value) and false otherwise */ + public boolean isSetUpdate_rule() { + return EncodingUtils.testBit(__isset_bitfield, __UPDATE_RULE_ISSET_ID); + } + + public void setUpdate_ruleIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __UPDATE_RULE_ISSET_ID, value); + } + + public int getDelete_rule() { + return this.delete_rule; + } + + public void setDelete_rule(int delete_rule) { + this.delete_rule = delete_rule; + setDelete_ruleIsSet(true); + } + + public void unsetDelete_rule() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETE_RULE_ISSET_ID); + } + + /** Returns true if field delete_rule is set (has been assigned a value) and false otherwise */ + public boolean isSetDelete_rule() { + return EncodingUtils.testBit(__isset_bitfield, __DELETE_RULE_ISSET_ID); + } + + public void setDelete_ruleIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETE_RULE_ISSET_ID, value); + } + + public String getFk_name() { + return this.fk_name; + } + + public void setFk_name(String fk_name) { + this.fk_name = fk_name; + } + + public void unsetFk_name() { + this.fk_name = null; + } + + /** Returns true if field fk_name is set (has been assigned a value) and false otherwise */ + public boolean isSetFk_name() { + return this.fk_name != null; + } + + public void setFk_nameIsSet(boolean value) { + if (!value) { + this.fk_name = null; + } + } + + public String getPk_name() { + return this.pk_name; + } + + public void setPk_name(String pk_name) { + this.pk_name = pk_name; + } + + public void unsetPk_name() { + this.pk_name = null; + } + + /** Returns true if field pk_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPk_name() { + return this.pk_name != null; + } + + public void setPk_nameIsSet(boolean value) { + if (!value) { + this.pk_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case PKTABLE_SCHEM: + if (value == null) { + unsetPktable_schem(); + } else { + setPktable_schem((String)value); + } + break; + + case PKTABLE_NAME: + if (value == null) { + unsetPktable_name(); + } else { + setPktable_name((String)value); + } + break; + + case PKCOLUMN_NAME: + if (value == null) { + unsetPkcolumn_name(); + } else { + setPkcolumn_name((String)value); + } + break; + + case FKTABLE_SCHEM: + if (value == null) { + unsetFktable_schem(); + } else { + setFktable_schem((String)value); + } + break; + + case FKTABLE_NAME: + if (value == null) { + unsetFktable_name(); + } else { + setFktable_name((String)value); + } + break; + + case FKCOLUMN_NAME: + if (value == null) { + unsetFkcolumn_name(); + } else { + setFkcolumn_name((String)value); + } + break; + + case KEY_SEQ: + if (value == null) { + unsetKey_seq(); + } else { + setKey_seq((Integer)value); + } + break; + + case UPDATE_RULE: + if (value == null) { + unsetUpdate_rule(); + } else { + setUpdate_rule((Integer)value); + } + break; + + case DELETE_RULE: + if (value == null) { + unsetDelete_rule(); + } else { + setDelete_rule((Integer)value); + } + break; + + case FK_NAME: + if (value == null) { + unsetFk_name(); + } else { + setFk_name((String)value); + } + break; + + case PK_NAME: + if (value == null) { + unsetPk_name(); + } else { + setPk_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case PKTABLE_SCHEM: + return getPktable_schem(); + + case PKTABLE_NAME: + return getPktable_name(); + + case PKCOLUMN_NAME: + return getPkcolumn_name(); + + case FKTABLE_SCHEM: + return getFktable_schem(); + + case FKTABLE_NAME: + return getFktable_name(); + + case FKCOLUMN_NAME: + return getFkcolumn_name(); + + case KEY_SEQ: + return getKey_seq(); + + case UPDATE_RULE: + return getUpdate_rule(); + + case DELETE_RULE: + return getDelete_rule(); + + case FK_NAME: + return getFk_name(); + + case PK_NAME: + return getPk_name(); + + } + 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 PKTABLE_SCHEM: + return isSetPktable_schem(); + case PKTABLE_NAME: + return isSetPktable_name(); + case PKCOLUMN_NAME: + return isSetPkcolumn_name(); + case FKTABLE_SCHEM: + return isSetFktable_schem(); + case FKTABLE_NAME: + return isSetFktable_name(); + case FKCOLUMN_NAME: + return isSetFkcolumn_name(); + case KEY_SEQ: + return isSetKey_seq(); + case UPDATE_RULE: + return isSetUpdate_rule(); + case DELETE_RULE: + return isSetDelete_rule(); + case FK_NAME: + return isSetFk_name(); + case PK_NAME: + return isSetPk_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof SQLForeignKey) + return this.equals((SQLForeignKey)that); + return false; + } + + public boolean equals(SQLForeignKey that) { + if (that == null) + return false; + + boolean this_present_pktable_schem = true && this.isSetPktable_schem(); + boolean that_present_pktable_schem = true && that.isSetPktable_schem(); + if (this_present_pktable_schem || that_present_pktable_schem) { + if (!(this_present_pktable_schem && that_present_pktable_schem)) + return false; + if (!this.pktable_schem.equals(that.pktable_schem)) + return false; + } + + boolean this_present_pktable_name = true && this.isSetPktable_name(); + boolean that_present_pktable_name = true && that.isSetPktable_name(); + if (this_present_pktable_name || that_present_pktable_name) { + if (!(this_present_pktable_name && that_present_pktable_name)) + return false; + if (!this.pktable_name.equals(that.pktable_name)) + return false; + } + + boolean this_present_pkcolumn_name = true && this.isSetPkcolumn_name(); + boolean that_present_pkcolumn_name = true && that.isSetPkcolumn_name(); + if (this_present_pkcolumn_name || that_present_pkcolumn_name) { + if (!(this_present_pkcolumn_name && that_present_pkcolumn_name)) + return false; + if (!this.pkcolumn_name.equals(that.pkcolumn_name)) + return false; + } + + boolean this_present_fktable_schem = true && this.isSetFktable_schem(); + boolean that_present_fktable_schem = true && that.isSetFktable_schem(); + if (this_present_fktable_schem || that_present_fktable_schem) { + if (!(this_present_fktable_schem && that_present_fktable_schem)) + return false; + if (!this.fktable_schem.equals(that.fktable_schem)) + return false; + } + + boolean this_present_fktable_name = true && this.isSetFktable_name(); + boolean that_present_fktable_name = true && that.isSetFktable_name(); + if (this_present_fktable_name || that_present_fktable_name) { + if (!(this_present_fktable_name && that_present_fktable_name)) + return false; + if (!this.fktable_name.equals(that.fktable_name)) + return false; + } + + boolean this_present_fkcolumn_name = true && this.isSetFkcolumn_name(); + boolean that_present_fkcolumn_name = true && that.isSetFkcolumn_name(); + if (this_present_fkcolumn_name || that_present_fkcolumn_name) { + if (!(this_present_fkcolumn_name && that_present_fkcolumn_name)) + return false; + if (!this.fkcolumn_name.equals(that.fkcolumn_name)) + return false; + } + + boolean this_present_key_seq = true; + boolean that_present_key_seq = true; + if (this_present_key_seq || that_present_key_seq) { + if (!(this_present_key_seq && that_present_key_seq)) + return false; + if (this.key_seq != that.key_seq) + return false; + } + + boolean this_present_update_rule = true; + boolean that_present_update_rule = true; + if (this_present_update_rule || that_present_update_rule) { + if (!(this_present_update_rule && that_present_update_rule)) + return false; + if (this.update_rule != that.update_rule) + return false; + } + + boolean this_present_delete_rule = true; + boolean that_present_delete_rule = true; + if (this_present_delete_rule || that_present_delete_rule) { + if (!(this_present_delete_rule && that_present_delete_rule)) + return false; + if (this.delete_rule != that.delete_rule) + return false; + } + + boolean this_present_fk_name = true && this.isSetFk_name(); + boolean that_present_fk_name = true && that.isSetFk_name(); + if (this_present_fk_name || that_present_fk_name) { + if (!(this_present_fk_name && that_present_fk_name)) + return false; + if (!this.fk_name.equals(that.fk_name)) + return false; + } + + boolean this_present_pk_name = true && this.isSetPk_name(); + boolean that_present_pk_name = true && that.isSetPk_name(); + if (this_present_pk_name || that_present_pk_name) { + if (!(this_present_pk_name && that_present_pk_name)) + return false; + if (!this.pk_name.equals(that.pk_name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_pktable_schem = true && (isSetPktable_schem()); + list.add(present_pktable_schem); + if (present_pktable_schem) + list.add(pktable_schem); + + boolean present_pktable_name = true && (isSetPktable_name()); + list.add(present_pktable_name); + if (present_pktable_name) + list.add(pktable_name); + + boolean present_pkcolumn_name = true && (isSetPkcolumn_name()); + list.add(present_pkcolumn_name); + if (present_pkcolumn_name) + list.add(pkcolumn_name); + + boolean present_fktable_schem = true && (isSetFktable_schem()); + list.add(present_fktable_schem); + if (present_fktable_schem) + list.add(fktable_schem); + + boolean present_fktable_name = true && (isSetFktable_name()); + list.add(present_fktable_name); + if (present_fktable_name) + list.add(fktable_name); + + boolean present_fkcolumn_name = true && (isSetFkcolumn_name()); + list.add(present_fkcolumn_name); + if (present_fkcolumn_name) + list.add(fkcolumn_name); + + boolean present_key_seq = true; + list.add(present_key_seq); + if (present_key_seq) + list.add(key_seq); + + boolean present_update_rule = true; + list.add(present_update_rule); + if (present_update_rule) + list.add(update_rule); + + boolean present_delete_rule = true; + list.add(present_delete_rule); + if (present_delete_rule) + list.add(delete_rule); + + boolean present_fk_name = true && (isSetFk_name()); + list.add(present_fk_name); + if (present_fk_name) + list.add(fk_name); + + boolean present_pk_name = true && (isSetPk_name()); + list.add(present_pk_name); + if (present_pk_name) + list.add(pk_name); + + return list.hashCode(); + } + + @Override + public int compareTo(SQLForeignKey other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetPktable_schem()).compareTo(other.isSetPktable_schem()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPktable_schem()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pktable_schem, other.pktable_schem); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPktable_name()).compareTo(other.isSetPktable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPktable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pktable_name, other.pktable_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPkcolumn_name()).compareTo(other.isSetPkcolumn_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPkcolumn_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pkcolumn_name, other.pkcolumn_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFktable_schem()).compareTo(other.isSetFktable_schem()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFktable_schem()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fktable_schem, other.fktable_schem); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFktable_name()).compareTo(other.isSetFktable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFktable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fktable_name, other.fktable_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFkcolumn_name()).compareTo(other.isSetFkcolumn_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFkcolumn_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fkcolumn_name, other.fkcolumn_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetKey_seq()).compareTo(other.isSetKey_seq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetKey_seq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_seq, other.key_seq); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetUpdate_rule()).compareTo(other.isSetUpdate_rule()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetUpdate_rule()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.update_rule, other.update_rule); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDelete_rule()).compareTo(other.isSetDelete_rule()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDelete_rule()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delete_rule, other.delete_rule); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetFk_name()).compareTo(other.isSetFk_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetFk_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fk_name, other.fk_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPk_name()).compareTo(other.isSetPk_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPk_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pk_name, other.pk_name); + 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("SQLForeignKey("); + boolean first = true; + + sb.append("pktable_schem:"); + if (this.pktable_schem == null) { + sb.append("null"); + } else { + sb.append(this.pktable_schem); + } + first = false; + if (!first) sb.append(", "); + sb.append("pktable_name:"); + if (this.pktable_name == null) { + sb.append("null"); + } else { + sb.append(this.pktable_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("pkcolumn_name:"); + if (this.pkcolumn_name == null) { + sb.append("null"); + } else { + sb.append(this.pkcolumn_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("fktable_schem:"); + if (this.fktable_schem == null) { + sb.append("null"); + } else { + sb.append(this.fktable_schem); + } + first = false; + if (!first) sb.append(", "); + sb.append("fktable_name:"); + if (this.fktable_name == null) { + sb.append("null"); + } else { + sb.append(this.fktable_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("fkcolumn_name:"); + if (this.fkcolumn_name == null) { + sb.append("null"); + } else { + sb.append(this.fkcolumn_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("key_seq:"); + sb.append(this.key_seq); + first = false; + if (!first) sb.append(", "); + sb.append("update_rule:"); + sb.append(this.update_rule); + first = false; + if (!first) sb.append(", "); + sb.append("delete_rule:"); + sb.append(this.delete_rule); + first = false; + if (!first) sb.append(", "); + sb.append("fk_name:"); + if (this.fk_name == null) { + sb.append("null"); + } else { + sb.append(this.fk_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("pk_name:"); + if (this.pk_name == null) { + sb.append("null"); + } else { + sb.append(this.pk_name); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class SQLForeignKeyStandardSchemeFactory implements SchemeFactory { + public SQLForeignKeyStandardScheme getScheme() { + return new SQLForeignKeyStandardScheme(); + } + } + + private static class SQLForeignKeyStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLForeignKey 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: // PKTABLE_SCHEM + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pktable_schem = iprot.readString(); + struct.setPktable_schemIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // PKTABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pktable_name = iprot.readString(); + struct.setPktable_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // PKCOLUMN_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pkcolumn_name = iprot.readString(); + struct.setPkcolumn_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FKTABLE_SCHEM + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.fktable_schem = iprot.readString(); + struct.setFktable_schemIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // FKTABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.fktable_name = iprot.readString(); + struct.setFktable_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 6: // FKCOLUMN_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.fkcolumn_name = iprot.readString(); + struct.setFkcolumn_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 7: // KEY_SEQ + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 8: // UPDATE_RULE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.update_rule = iprot.readI32(); + struct.setUpdate_ruleIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 9: // DELETE_RULE + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.delete_rule = iprot.readI32(); + struct.setDelete_ruleIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 10: // FK_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.fk_name = iprot.readString(); + struct.setFk_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 11: // PK_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pk_name = iprot.readString(); + struct.setPk_nameIsSet(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, SQLForeignKey struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.pktable_schem != null) { + oprot.writeFieldBegin(PKTABLE_SCHEM_FIELD_DESC); + oprot.writeString(struct.pktable_schem); + oprot.writeFieldEnd(); + } + if (struct.pktable_name != null) { + oprot.writeFieldBegin(PKTABLE_NAME_FIELD_DESC); + oprot.writeString(struct.pktable_name); + oprot.writeFieldEnd(); + } + if (struct.pkcolumn_name != null) { + oprot.writeFieldBegin(PKCOLUMN_NAME_FIELD_DESC); + oprot.writeString(struct.pkcolumn_name); + oprot.writeFieldEnd(); + } + if (struct.fktable_schem != null) { + oprot.writeFieldBegin(FKTABLE_SCHEM_FIELD_DESC); + oprot.writeString(struct.fktable_schem); + oprot.writeFieldEnd(); + } + if (struct.fktable_name != null) { + oprot.writeFieldBegin(FKTABLE_NAME_FIELD_DESC); + oprot.writeString(struct.fktable_name); + oprot.writeFieldEnd(); + } + if (struct.fkcolumn_name != null) { + oprot.writeFieldBegin(FKCOLUMN_NAME_FIELD_DESC); + oprot.writeString(struct.fkcolumn_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(KEY_SEQ_FIELD_DESC); + oprot.writeI32(struct.key_seq); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(UPDATE_RULE_FIELD_DESC); + oprot.writeI32(struct.update_rule); + oprot.writeFieldEnd(); + oprot.writeFieldBegin(DELETE_RULE_FIELD_DESC); + oprot.writeI32(struct.delete_rule); + oprot.writeFieldEnd(); + if (struct.fk_name != null) { + oprot.writeFieldBegin(FK_NAME_FIELD_DESC); + oprot.writeString(struct.fk_name); + oprot.writeFieldEnd(); + } + if (struct.pk_name != null) { + oprot.writeFieldBegin(PK_NAME_FIELD_DESC); + oprot.writeString(struct.pk_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class SQLForeignKeyTupleSchemeFactory implements SchemeFactory { + public SQLForeignKeyTupleScheme getScheme() { + return new SQLForeignKeyTupleScheme(); + } + } + + private static class SQLForeignKeyTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLForeignKey struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetPktable_schem()) { + optionals.set(0); + } + if (struct.isSetPktable_name()) { + optionals.set(1); + } + if (struct.isSetPkcolumn_name()) { + optionals.set(2); + } + if (struct.isSetFktable_schem()) { + optionals.set(3); + } + if (struct.isSetFktable_name()) { + optionals.set(4); + } + if (struct.isSetFkcolumn_name()) { + optionals.set(5); + } + if (struct.isSetKey_seq()) { + optionals.set(6); + } + if (struct.isSetUpdate_rule()) { + optionals.set(7); + } + if (struct.isSetDelete_rule()) { + optionals.set(8); + } + if (struct.isSetFk_name()) { + optionals.set(9); + } + if (struct.isSetPk_name()) { + optionals.set(10); + } + oprot.writeBitSet(optionals, 11); + if (struct.isSetPktable_schem()) { + oprot.writeString(struct.pktable_schem); + } + if (struct.isSetPktable_name()) { + oprot.writeString(struct.pktable_name); + } + if (struct.isSetPkcolumn_name()) { + oprot.writeString(struct.pkcolumn_name); + } + if (struct.isSetFktable_schem()) { + oprot.writeString(struct.fktable_schem); + } + if (struct.isSetFktable_name()) { + oprot.writeString(struct.fktable_name); + } + if (struct.isSetFkcolumn_name()) { + oprot.writeString(struct.fkcolumn_name); + } + if (struct.isSetKey_seq()) { + oprot.writeI32(struct.key_seq); + } + if (struct.isSetUpdate_rule()) { + oprot.writeI32(struct.update_rule); + } + if (struct.isSetDelete_rule()) { + oprot.writeI32(struct.delete_rule); + } + if (struct.isSetFk_name()) { + oprot.writeString(struct.fk_name); + } + if (struct.isSetPk_name()) { + oprot.writeString(struct.pk_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, SQLForeignKey struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(11); + if (incoming.get(0)) { + struct.pktable_schem = iprot.readString(); + struct.setPktable_schemIsSet(true); + } + if (incoming.get(1)) { + struct.pktable_name = iprot.readString(); + struct.setPktable_nameIsSet(true); + } + if (incoming.get(2)) { + struct.pkcolumn_name = iprot.readString(); + struct.setPkcolumn_nameIsSet(true); + } + if (incoming.get(3)) { + struct.fktable_schem = iprot.readString(); + struct.setFktable_schemIsSet(true); + } + if (incoming.get(4)) { + struct.fktable_name = iprot.readString(); + struct.setFktable_nameIsSet(true); + } + if (incoming.get(5)) { + struct.fkcolumn_name = iprot.readString(); + struct.setFkcolumn_nameIsSet(true); + } + if (incoming.get(6)) { + struct.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } + if (incoming.get(7)) { + struct.update_rule = iprot.readI32(); + struct.setUpdate_ruleIsSet(true); + } + if (incoming.get(8)) { + struct.delete_rule = iprot.readI32(); + struct.setDelete_ruleIsSet(true); + } + if (incoming.get(9)) { + struct.fk_name = iprot.readString(); + struct.setFk_nameIsSet(true); + } + if (incoming.get(10)) { + struct.pk_name = iprot.readString(); + struct.setPk_nameIsSet(true); + } + } + } + +} + diff --git a/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLPrimaryKey.java b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLPrimaryKey.java new file mode 100644 index 0000000..58977af --- /dev/null +++ b/metastore/src/gen/thrift/gen-javabean/org/apache/hadoop/hive/metastore/api/SQLPrimaryKey.java @@ -0,0 +1,809 @@ +/** + * 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 SQLPrimaryKey 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("SQLPrimaryKey"); + + private static final org.apache.thrift.protocol.TField TABLE_SCHEM_FIELD_DESC = new org.apache.thrift.protocol.TField("table_schem", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TABLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("table_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField COLUMN_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("column_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField KEY_SEQ_FIELD_DESC = new org.apache.thrift.protocol.TField("key_seq", org.apache.thrift.protocol.TType.I32, (short)4); + private static final org.apache.thrift.protocol.TField PK_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("pk_name", org.apache.thrift.protocol.TType.STRING, (short)5); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new SQLPrimaryKeyStandardSchemeFactory()); + schemes.put(TupleScheme.class, new SQLPrimaryKeyTupleSchemeFactory()); + } + + private String table_schem; // required + private String table_name; // required + private String column_name; // required + private int key_seq; // required + private String pk_name; // 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 { + TABLE_SCHEM((short)1, "table_schem"), + TABLE_NAME((short)2, "table_name"), + COLUMN_NAME((short)3, "column_name"), + KEY_SEQ((short)4, "key_seq"), + PK_NAME((short)5, "pk_name"); + + 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: // TABLE_SCHEM + return TABLE_SCHEM; + case 2: // TABLE_NAME + return TABLE_NAME; + case 3: // COLUMN_NAME + return COLUMN_NAME; + case 4: // KEY_SEQ + return KEY_SEQ; + case 5: // PK_NAME + return PK_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __KEY_SEQ_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.TABLE_SCHEM, new org.apache.thrift.meta_data.FieldMetaData("table_schem", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TABLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("table_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.COLUMN_NAME, new org.apache.thrift.meta_data.FieldMetaData("column_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.KEY_SEQ, new org.apache.thrift.meta_data.FieldMetaData("key_seq", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32))); + tmpMap.put(_Fields.PK_NAME, new org.apache.thrift.meta_data.FieldMetaData("pk_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(SQLPrimaryKey.class, metaDataMap); + } + + public SQLPrimaryKey() { + } + + public SQLPrimaryKey( + String table_schem, + String table_name, + String column_name, + int key_seq, + String pk_name) + { + this(); + this.table_schem = table_schem; + this.table_name = table_name; + this.column_name = column_name; + this.key_seq = key_seq; + setKey_seqIsSet(true); + this.pk_name = pk_name; + } + + /** + * Performs a deep copy on other. + */ + public SQLPrimaryKey(SQLPrimaryKey other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetTable_schem()) { + this.table_schem = other.table_schem; + } + if (other.isSetTable_name()) { + this.table_name = other.table_name; + } + if (other.isSetColumn_name()) { + this.column_name = other.column_name; + } + this.key_seq = other.key_seq; + if (other.isSetPk_name()) { + this.pk_name = other.pk_name; + } + } + + public SQLPrimaryKey deepCopy() { + return new SQLPrimaryKey(this); + } + + @Override + public void clear() { + this.table_schem = null; + this.table_name = null; + this.column_name = null; + setKey_seqIsSet(false); + this.key_seq = 0; + this.pk_name = null; + } + + public String getTable_schem() { + return this.table_schem; + } + + public void setTable_schem(String table_schem) { + this.table_schem = table_schem; + } + + public void unsetTable_schem() { + this.table_schem = null; + } + + /** Returns true if field table_schem is set (has been assigned a value) and false otherwise */ + public boolean isSetTable_schem() { + return this.table_schem != null; + } + + public void setTable_schemIsSet(boolean value) { + if (!value) { + this.table_schem = null; + } + } + + public String getTable_name() { + return this.table_name; + } + + public void setTable_name(String table_name) { + this.table_name = table_name; + } + + public void unsetTable_name() { + this.table_name = null; + } + + /** Returns true if field table_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTable_name() { + return this.table_name != null; + } + + public void setTable_nameIsSet(boolean value) { + if (!value) { + this.table_name = null; + } + } + + public String getColumn_name() { + return this.column_name; + } + + public void setColumn_name(String column_name) { + this.column_name = column_name; + } + + public void unsetColumn_name() { + this.column_name = null; + } + + /** Returns true if field column_name is set (has been assigned a value) and false otherwise */ + public boolean isSetColumn_name() { + return this.column_name != null; + } + + public void setColumn_nameIsSet(boolean value) { + if (!value) { + this.column_name = null; + } + } + + public int getKey_seq() { + return this.key_seq; + } + + public void setKey_seq(int key_seq) { + this.key_seq = key_seq; + setKey_seqIsSet(true); + } + + public void unsetKey_seq() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + /** Returns true if field key_seq is set (has been assigned a value) and false otherwise */ + public boolean isSetKey_seq() { + return EncodingUtils.testBit(__isset_bitfield, __KEY_SEQ_ISSET_ID); + } + + public void setKey_seqIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __KEY_SEQ_ISSET_ID, value); + } + + public String getPk_name() { + return this.pk_name; + } + + public void setPk_name(String pk_name) { + this.pk_name = pk_name; + } + + public void unsetPk_name() { + this.pk_name = null; + } + + /** Returns true if field pk_name is set (has been assigned a value) and false otherwise */ + public boolean isSetPk_name() { + return this.pk_name != null; + } + + public void setPk_nameIsSet(boolean value) { + if (!value) { + this.pk_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case TABLE_SCHEM: + if (value == null) { + unsetTable_schem(); + } else { + setTable_schem((String)value); + } + break; + + case TABLE_NAME: + if (value == null) { + unsetTable_name(); + } else { + setTable_name((String)value); + } + break; + + case COLUMN_NAME: + if (value == null) { + unsetColumn_name(); + } else { + setColumn_name((String)value); + } + break; + + case KEY_SEQ: + if (value == null) { + unsetKey_seq(); + } else { + setKey_seq((Integer)value); + } + break; + + case PK_NAME: + if (value == null) { + unsetPk_name(); + } else { + setPk_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case TABLE_SCHEM: + return getTable_schem(); + + case TABLE_NAME: + return getTable_name(); + + case COLUMN_NAME: + return getColumn_name(); + + case KEY_SEQ: + return getKey_seq(); + + case PK_NAME: + return getPk_name(); + + } + 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 TABLE_SCHEM: + return isSetTable_schem(); + case TABLE_NAME: + return isSetTable_name(); + case COLUMN_NAME: + return isSetColumn_name(); + case KEY_SEQ: + return isSetKey_seq(); + case PK_NAME: + return isSetPk_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof SQLPrimaryKey) + return this.equals((SQLPrimaryKey)that); + return false; + } + + public boolean equals(SQLPrimaryKey that) { + if (that == null) + return false; + + boolean this_present_table_schem = true && this.isSetTable_schem(); + boolean that_present_table_schem = true && that.isSetTable_schem(); + if (this_present_table_schem || that_present_table_schem) { + if (!(this_present_table_schem && that_present_table_schem)) + return false; + if (!this.table_schem.equals(that.table_schem)) + return false; + } + + boolean this_present_table_name = true && this.isSetTable_name(); + boolean that_present_table_name = true && that.isSetTable_name(); + if (this_present_table_name || that_present_table_name) { + if (!(this_present_table_name && that_present_table_name)) + return false; + if (!this.table_name.equals(that.table_name)) + return false; + } + + boolean this_present_column_name = true && this.isSetColumn_name(); + boolean that_present_column_name = true && that.isSetColumn_name(); + if (this_present_column_name || that_present_column_name) { + if (!(this_present_column_name && that_present_column_name)) + return false; + if (!this.column_name.equals(that.column_name)) + return false; + } + + boolean this_present_key_seq = true; + boolean that_present_key_seq = true; + if (this_present_key_seq || that_present_key_seq) { + if (!(this_present_key_seq && that_present_key_seq)) + return false; + if (this.key_seq != that.key_seq) + return false; + } + + boolean this_present_pk_name = true && this.isSetPk_name(); + boolean that_present_pk_name = true && that.isSetPk_name(); + if (this_present_pk_name || that_present_pk_name) { + if (!(this_present_pk_name && that_present_pk_name)) + return false; + if (!this.pk_name.equals(that.pk_name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_table_schem = true && (isSetTable_schem()); + list.add(present_table_schem); + if (present_table_schem) + list.add(table_schem); + + boolean present_table_name = true && (isSetTable_name()); + list.add(present_table_name); + if (present_table_name) + list.add(table_name); + + boolean present_column_name = true && (isSetColumn_name()); + list.add(present_column_name); + if (present_column_name) + list.add(column_name); + + boolean present_key_seq = true; + list.add(present_key_seq); + if (present_key_seq) + list.add(key_seq); + + boolean present_pk_name = true && (isSetPk_name()); + list.add(present_pk_name); + if (present_pk_name) + list.add(pk_name); + + return list.hashCode(); + } + + @Override + public int compareTo(SQLPrimaryKey other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetTable_schem()).compareTo(other.isSetTable_schem()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_schem()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_schem, other.table_schem); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTable_name()).compareTo(other.isSetTable_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTable_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.table_name, other.table_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetColumn_name()).compareTo(other.isSetColumn_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetColumn_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.column_name, other.column_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetKey_seq()).compareTo(other.isSetKey_seq()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetKey_seq()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.key_seq, other.key_seq); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetPk_name()).compareTo(other.isSetPk_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetPk_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pk_name, other.pk_name); + 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("SQLPrimaryKey("); + boolean first = true; + + sb.append("table_schem:"); + if (this.table_schem == null) { + sb.append("null"); + } else { + sb.append(this.table_schem); + } + first = false; + if (!first) sb.append(", "); + sb.append("table_name:"); + if (this.table_name == null) { + sb.append("null"); + } else { + sb.append(this.table_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("column_name:"); + if (this.column_name == null) { + sb.append("null"); + } else { + sb.append(this.column_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("key_seq:"); + sb.append(this.key_seq); + first = false; + if (!first) sb.append(", "); + sb.append("pk_name:"); + if (this.pk_name == null) { + sb.append("null"); + } else { + sb.append(this.pk_name); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class SQLPrimaryKeyStandardSchemeFactory implements SchemeFactory { + public SQLPrimaryKeyStandardScheme getScheme() { + return new SQLPrimaryKeyStandardScheme(); + } + } + + private static class SQLPrimaryKeyStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, SQLPrimaryKey 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: // TABLE_SCHEM + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table_schem = iprot.readString(); + struct.setTable_schemIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TABLE_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // COLUMN_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.column_name = iprot.readString(); + struct.setColumn_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // KEY_SEQ + if (schemeField.type == org.apache.thrift.protocol.TType.I32) { + struct.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 5: // PK_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.pk_name = iprot.readString(); + struct.setPk_nameIsSet(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, SQLPrimaryKey struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.table_schem != null) { + oprot.writeFieldBegin(TABLE_SCHEM_FIELD_DESC); + oprot.writeString(struct.table_schem); + oprot.writeFieldEnd(); + } + if (struct.table_name != null) { + oprot.writeFieldBegin(TABLE_NAME_FIELD_DESC); + oprot.writeString(struct.table_name); + oprot.writeFieldEnd(); + } + if (struct.column_name != null) { + oprot.writeFieldBegin(COLUMN_NAME_FIELD_DESC); + oprot.writeString(struct.column_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(KEY_SEQ_FIELD_DESC); + oprot.writeI32(struct.key_seq); + oprot.writeFieldEnd(); + if (struct.pk_name != null) { + oprot.writeFieldBegin(PK_NAME_FIELD_DESC); + oprot.writeString(struct.pk_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class SQLPrimaryKeyTupleSchemeFactory implements SchemeFactory { + public SQLPrimaryKeyTupleScheme getScheme() { + return new SQLPrimaryKeyTupleScheme(); + } + } + + private static class SQLPrimaryKeyTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, SQLPrimaryKey struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetTable_schem()) { + optionals.set(0); + } + if (struct.isSetTable_name()) { + optionals.set(1); + } + if (struct.isSetColumn_name()) { + optionals.set(2); + } + if (struct.isSetKey_seq()) { + optionals.set(3); + } + if (struct.isSetPk_name()) { + optionals.set(4); + } + oprot.writeBitSet(optionals, 5); + if (struct.isSetTable_schem()) { + oprot.writeString(struct.table_schem); + } + if (struct.isSetTable_name()) { + oprot.writeString(struct.table_name); + } + if (struct.isSetColumn_name()) { + oprot.writeString(struct.column_name); + } + if (struct.isSetKey_seq()) { + oprot.writeI32(struct.key_seq); + } + if (struct.isSetPk_name()) { + oprot.writeString(struct.pk_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, SQLPrimaryKey struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(5); + if (incoming.get(0)) { + struct.table_schem = iprot.readString(); + struct.setTable_schemIsSet(true); + } + if (incoming.get(1)) { + struct.table_name = iprot.readString(); + struct.setTable_nameIsSet(true); + } + if (incoming.get(2)) { + struct.column_name = iprot.readString(); + struct.setColumn_nameIsSet(true); + } + if (incoming.get(3)) { + struct.key_seq = iprot.readI32(); + struct.setKey_seqIsSet(true); + } + if (incoming.get(4)) { + struct.pk_name = iprot.readString(); + struct.setPk_nameIsSet(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 bcc7790..23af923 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 @@ -196,6 +196,10 @@ public List get_index_names(String db_name, String tbl_name, short max_indexes) throws MetaException, org.apache.thrift.TException; + public List get_primary_keys(String db_name, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + + public List get_foreign_keys(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException; + public boolean update_table_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException; public boolean update_partition_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException; @@ -470,6 +474,10 @@ public void get_index_names(String db_name, String tbl_name, short max_indexes, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void get_primary_keys(String db_name, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + + public void get_foreign_keys(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; public void update_partition_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException; @@ -2986,6 +2994,68 @@ public void send_get_index_names(String db_name, String tbl_name, short max_inde throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result"); } + public List get_primary_keys(String db_name, String tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_primary_keys(db_name, tbl_name); + return recv_get_primary_keys(); + } + + public void send_get_primary_keys(String db_name, String tbl_name) throws org.apache.thrift.TException + { + get_primary_keys_args args = new get_primary_keys_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + sendBase("get_primary_keys", args); + } + + public List recv_get_primary_keys() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_primary_keys_result result = new get_primary_keys_result(); + receiveBase(result, "get_primary_keys"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_primary_keys failed: unknown result"); + } + + public List get_foreign_keys(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name); + return recv_get_foreign_keys(); + } + + public void send_get_foreign_keys(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name) throws org.apache.thrift.TException + { + get_foreign_keys_args args = new get_foreign_keys_args(); + args.setParent_db_name(parent_db_name); + args.setParent_tbl_name(parent_tbl_name); + args.setForeign_db_name(foreign_db_name); + args.setForeign_tbl_name(foreign_tbl_name); + sendBase("get_foreign_keys", args); + } + + public List recv_get_foreign_keys() throws MetaException, NoSuchObjectException, org.apache.thrift.TException + { + get_foreign_keys_result result = new get_foreign_keys_result(); + receiveBase(result, "get_foreign_keys"); + if (result.isSetSuccess()) { + return result.success; + } + if (result.o1 != null) { + throw result.o1; + } + if (result.o2 != null) { + throw result.o2; + } + throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result"); + } + public boolean update_table_column_statistics(ColumnStatistics stats_obj) throws NoSuchObjectException, InvalidObjectException, MetaException, InvalidInputException, org.apache.thrift.TException { send_update_table_column_statistics(stats_obj); @@ -7437,6 +7507,82 @@ public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apa } } + public void get_primary_keys(String db_name, String tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_primary_keys_call method_call = new get_primary_keys_call(db_name, tbl_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_primary_keys_call extends org.apache.thrift.async.TAsyncMethodCall { + private String db_name; + private String tbl_name; + public get_primary_keys_call(String db_name, String tbl_name, 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.db_name = db_name; + this.tbl_name = tbl_name; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_primary_keys", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_primary_keys_args args = new get_primary_keys_args(); + args.setDb_name(db_name); + args.setTbl_name(tbl_name); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_primary_keys(); + } + } + + public void get_foreign_keys(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { + checkReady(); + get_foreign_keys_call method_call = new get_foreign_keys_call(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name, resultHandler, this, ___protocolFactory, ___transport); + this.___currentMethod = method_call; + ___manager.call(method_call); + } + + public static class get_foreign_keys_call extends org.apache.thrift.async.TAsyncMethodCall { + private String parent_db_name; + private String parent_tbl_name; + private String foreign_db_name; + private String foreign_tbl_name; + public get_foreign_keys_call(String parent_db_name, String parent_tbl_name, String foreign_db_name, String foreign_tbl_name, 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.parent_db_name = parent_db_name; + this.parent_tbl_name = parent_tbl_name; + this.foreign_db_name = foreign_db_name; + this.foreign_tbl_name = foreign_tbl_name; + } + + public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException { + prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("get_foreign_keys", org.apache.thrift.protocol.TMessageType.CALL, 0)); + get_foreign_keys_args args = new get_foreign_keys_args(); + args.setParent_db_name(parent_db_name); + args.setParent_tbl_name(parent_tbl_name); + args.setForeign_db_name(foreign_db_name); + args.setForeign_tbl_name(foreign_tbl_name); + args.write(prot); + prot.writeMessageEnd(); + } + + public List getResult() throws MetaException, NoSuchObjectException, org.apache.thrift.TException { + if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) { + throw new IllegalStateException("Method call not finished!"); + } + org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array()); + org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport); + return (new Client(prot)).recv_get_foreign_keys(); + } + } + public void update_table_column_statistics(ColumnStatistics stats_obj, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws org.apache.thrift.TException { checkReady(); update_table_column_statistics_call method_call = new update_table_column_statistics_call(stats_obj, resultHandler, this, ___protocolFactory, ___transport); @@ -9452,6 +9598,8 @@ protected Processor(I iface, Map extends org.apache.thrift.ProcessFunction { + public get_primary_keys() { + super("get_primary_keys"); + } + + public get_primary_keys_args getEmptyArgsInstance() { + return new get_primary_keys_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_primary_keys_result getResult(I iface, get_primary_keys_args args) throws org.apache.thrift.TException { + get_primary_keys_result result = new get_primary_keys_result(); + try { + result.success = iface.get_primary_keys(args.db_name, args.tbl_name); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + + public static class get_foreign_keys extends org.apache.thrift.ProcessFunction { + public get_foreign_keys() { + super("get_foreign_keys"); + } + + public get_foreign_keys_args getEmptyArgsInstance() { + return new get_foreign_keys_args(); + } + + protected boolean isOneway() { + return false; + } + + public get_foreign_keys_result getResult(I iface, get_foreign_keys_args args) throws org.apache.thrift.TException { + get_foreign_keys_result result = new get_foreign_keys_result(); + try { + result.success = iface.get_foreign_keys(args.parent_db_name, args.parent_tbl_name, args.foreign_db_name, args.foreign_tbl_name); + } catch (MetaException o1) { + result.o1 = o1; + } catch (NoSuchObjectException o2) { + result.o2 = o2; + } + return result; + } + } + public static class update_table_column_statistics extends org.apache.thrift.ProcessFunction { public update_table_column_statistics() { super("update_table_column_statistics"); @@ -13071,6 +13271,8 @@ protected AsyncProcessor(I iface, Map extends org.apache.thrift.AsyncProcessFunction { - public update_table_column_statistics() { - super("update_table_column_statistics"); + public static class get_primary_keys extends org.apache.thrift.AsyncProcessFunction> { + public get_primary_keys() { + super("get_primary_keys"); } - public update_table_column_statistics_args getEmptyArgsInstance() { - return new update_table_column_statistics_args(); + public get_primary_keys_args getEmptyArgsInstance() { + return new get_primary_keys_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(Boolean o) { - update_table_column_statistics_result result = new update_table_column_statistics_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_primary_keys_result result = new get_primary_keys_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18032,27 +18233,17 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - update_table_column_statistics_result result = new update_table_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; + get_primary_keys_result result = new get_primary_keys_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -18073,27 +18264,26 @@ protected boolean isOneway() { return false; } - public void start(I iface, update_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_table_column_statistics(args.stats_obj,resultHandler); + public void start(I iface, get_primary_keys_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_primary_keys(args.db_name, args.tbl_name,resultHandler); } } - public static class update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public update_partition_column_statistics() { - super("update_partition_column_statistics"); + public static class get_foreign_keys extends org.apache.thrift.AsyncProcessFunction> { + public get_foreign_keys() { + super("get_foreign_keys"); } - public update_partition_column_statistics_args getEmptyArgsInstance() { - return new update_partition_column_statistics_args(); + public get_foreign_keys_args getEmptyArgsInstance() { + return new get_foreign_keys_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(Boolean o) { - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); + return new AsyncMethodCallback>() { + public void onComplete(List o) { + get_foreign_keys_result result = new get_foreign_keys_result(); result.success = o; - result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18105,27 +18295,17 @@ public void onComplete(Boolean o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - update_partition_column_statistics_result result = new update_partition_column_statistics_result(); - if (e instanceof NoSuchObjectException) { - result.o1 = (NoSuchObjectException) e; + get_foreign_keys_result result = new get_foreign_keys_result(); + if (e instanceof MetaException) { + result.o1 = (MetaException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o2 = (InvalidObjectException) e; + else if (e instanceof NoSuchObjectException) { + result.o2 = (NoSuchObjectException) e; result.setO2IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o3 = (MetaException) e; - result.setO3IsSet(true); - msg = result; - } - else if (e instanceof InvalidInputException) { - result.o4 = (InvalidInputException) e; - result.setO4IsSet(true); - msg = result; - } else { msgType = org.apache.thrift.protocol.TMessageType.EXCEPTION; @@ -18146,26 +18326,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, update_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.update_partition_column_statistics(args.stats_obj,resultHandler); + public void start(I iface, get_foreign_keys_args args, org.apache.thrift.async.AsyncMethodCallback> resultHandler) throws TException { + iface.get_foreign_keys(args.parent_db_name, args.parent_tbl_name, args.foreign_db_name, args.foreign_tbl_name,resultHandler); } } - public static class get_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public get_table_column_statistics() { - super("get_table_column_statistics"); + public static class update_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public update_table_column_statistics() { + super("update_table_column_statistics"); } - public get_table_column_statistics_args getEmptyArgsInstance() { - return new get_table_column_statistics_args(); + public update_table_column_statistics_args getEmptyArgsInstance() { + return new update_table_column_statistics_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(ColumnStatistics o) { - get_table_column_statistics_result result = new get_table_column_statistics_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + update_table_column_statistics_result result = new update_table_column_statistics_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18177,24 +18358,24 @@ public void onComplete(ColumnStatistics o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_table_column_statistics_result result = new get_table_column_statistics_result(); + update_table_column_statistics_result result = new update_table_column_statistics_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof InvalidObjectException) { + result.o2 = (InvalidObjectException) e; result.setO2IsSet(true); msg = result; } - else if (e instanceof InvalidInputException) { - result.o3 = (InvalidInputException) e; + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; result.setO3IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o4 = (InvalidObjectException) e; + else if (e instanceof InvalidInputException) { + result.o4 = (InvalidInputException) e; result.setO4IsSet(true); msg = result; } @@ -18218,26 +18399,27 @@ protected boolean isOneway() { return false; } - public void start(I iface, get_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { - iface.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name,resultHandler); + public void start(I iface, update_table_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.update_table_column_statistics(args.stats_obj,resultHandler); } } - public static class get_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { - public get_partition_column_statistics() { - super("get_partition_column_statistics"); + public static class update_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public update_partition_column_statistics() { + super("update_partition_column_statistics"); } - public get_partition_column_statistics_args getEmptyArgsInstance() { - return new get_partition_column_statistics_args(); + public update_partition_column_statistics_args getEmptyArgsInstance() { + return new update_partition_column_statistics_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(ColumnStatistics o) { - get_partition_column_statistics_result result = new get_partition_column_statistics_result(); + return new AsyncMethodCallback() { + public void onComplete(Boolean o) { + update_partition_column_statistics_result result = new update_partition_column_statistics_result(); result.success = o; + result.setSuccessIsSet(true); try { fcall.sendResponse(fb,result, org.apache.thrift.protocol.TMessageType.REPLY,seqid); return; @@ -18249,24 +18431,168 @@ public void onComplete(ColumnStatistics o) { public void onError(Exception e) { byte msgType = org.apache.thrift.protocol.TMessageType.REPLY; org.apache.thrift.TBase msg; - get_partition_column_statistics_result result = new get_partition_column_statistics_result(); + update_partition_column_statistics_result result = new update_partition_column_statistics_result(); if (e instanceof NoSuchObjectException) { result.o1 = (NoSuchObjectException) e; result.setO1IsSet(true); msg = result; } - else if (e instanceof MetaException) { - result.o2 = (MetaException) e; + else if (e instanceof InvalidObjectException) { + result.o2 = (InvalidObjectException) e; result.setO2IsSet(true); msg = result; } - else if (e instanceof InvalidInputException) { - result.o3 = (InvalidInputException) e; + else if (e instanceof MetaException) { + result.o3 = (MetaException) e; result.setO3IsSet(true); msg = result; } - else if (e instanceof InvalidObjectException) { - result.o4 = (InvalidObjectException) e; + else if (e instanceof InvalidInputException) { + result.o4 = (InvalidInputException) e; + result.setO4IsSet(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, update_partition_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.update_partition_column_statistics(args.stats_obj,resultHandler); + } + } + + public static class get_table_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public get_table_column_statistics() { + super("get_table_column_statistics"); + } + + public get_table_column_statistics_args getEmptyArgsInstance() { + return new get_table_column_statistics_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ColumnStatistics o) { + get_table_column_statistics_result result = new get_table_column_statistics_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_column_statistics_result result = new get_table_column_statistics_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof InvalidInputException) { + result.o3 = (InvalidInputException) e; + result.setO3IsSet(true); + msg = result; + } + else if (e instanceof InvalidObjectException) { + result.o4 = (InvalidObjectException) e; + result.setO4IsSet(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_column_statistics_args args, org.apache.thrift.async.AsyncMethodCallback resultHandler) throws TException { + iface.get_table_column_statistics(args.db_name, args.tbl_name, args.col_name,resultHandler); + } + } + + public static class get_partition_column_statistics extends org.apache.thrift.AsyncProcessFunction { + public get_partition_column_statistics() { + super("get_partition_column_statistics"); + } + + public get_partition_column_statistics_args getEmptyArgsInstance() { + return new get_partition_column_statistics_args(); + } + + public AsyncMethodCallback getResultHandler(final AsyncFrameBuffer fb, final int seqid) { + final org.apache.thrift.AsyncProcessFunction fcall = this; + return new AsyncMethodCallback() { + public void onComplete(ColumnStatistics o) { + get_partition_column_statistics_result result = new get_partition_column_statistics_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_partition_column_statistics_result result = new get_partition_column_statistics_result(); + if (e instanceof NoSuchObjectException) { + result.o1 = (NoSuchObjectException) e; + result.setO1IsSet(true); + msg = result; + } + else if (e instanceof MetaException) { + result.o2 = (MetaException) e; + result.setO2IsSet(true); + msg = result; + } + else if (e instanceof InvalidInputException) { + result.o3 = (InvalidInputException) e; + result.setO3IsSet(true); + msg = result; + } + else if (e instanceof InvalidObjectException) { + result.o4 = (InvalidObjectException) e; result.setO4IsSet(true); msg = result; } @@ -105511,15 +105837,2369 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class alter_index_resultStandardSchemeFactory implements SchemeFactory { - public alter_index_resultStandardScheme getScheme() { - return new alter_index_resultStandardScheme(); + private static class alter_index_resultStandardSchemeFactory implements SchemeFactory { + public alter_index_resultStandardScheme getScheme() { + return new alter_index_resultStandardScheme(); + } + } + + private static class alter_index_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_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 InvalidOperationException(); + 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, alter_index_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 alter_index_resultTupleSchemeFactory implements SchemeFactory { + public alter_index_resultTupleScheme getScheme() { + return new alter_index_resultTupleScheme(); + } + } + + private static class alter_index_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_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, alter_index_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(2); + if (incoming.get(0)) { + struct.o1 = new InvalidOperationException(); + 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 drop_index_by_name_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("drop_index_by_name_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private String index_name; // required + private boolean deleteData; // 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 { + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + INDEX_NAME((short)3, "index_name"), + DELETE_DATA((short)4, "deleteData"); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // INDEX_NAME + return INDEX_NAME; + case 4: // DELETE_DATA + return DELETE_DATA; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __DELETEDATA_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + } + + public drop_index_by_name_args() { + } + + public drop_index_by_name_args( + String db_name, + String tbl_name, + String index_name, + boolean deleteData) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.index_name = index_name; + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + /** + * Performs a deep copy on other. + */ + public drop_index_by_name_args(drop_index_by_name_args other) { + __isset_bitfield = other.__isset_bitfield; + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetIndex_name()) { + this.index_name = other.index_name; + } + this.deleteData = other.deleteData; + } + + public drop_index_by_name_args deepCopy() { + return new drop_index_by_name_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.index_name = null; + setDeleteDataIsSet(false); + this.deleteData = false; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public String getIndex_name() { + return this.index_name; + } + + public void setIndex_name(String index_name) { + this.index_name = index_name; + } + + public void unsetIndex_name() { + this.index_name = null; + } + + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_name() { + return this.index_name != null; + } + + public void setIndex_nameIsSet(boolean value) { + if (!value) { + this.index_name = null; + } + } + + public boolean isDeleteData() { + return this.deleteData; + } + + public void setDeleteData(boolean deleteData) { + this.deleteData = deleteData; + setDeleteDataIsSet(true); + } + + public void unsetDeleteData() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ + public boolean isSetDeleteData() { + return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + } + + public void setDeleteDataIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case INDEX_NAME: + if (value == null) { + unsetIndex_name(); + } else { + setIndex_name((String)value); + } + break; + + case DELETE_DATA: + if (value == null) { + unsetDeleteData(); + } else { + setDeleteData((Boolean)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case INDEX_NAME: + return getIndex_name(); + + case DELETE_DATA: + return isDeleteData(); + + } + 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 DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case INDEX_NAME: + return isSetIndex_name(); + case DELETE_DATA: + return isSetDeleteData(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof drop_index_by_name_args) + return this.equals((drop_index_by_name_args)that); + return false; + } + + public boolean equals(drop_index_by_name_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_index_name = true && this.isSetIndex_name(); + boolean that_present_index_name = true && that.isSetIndex_name(); + if (this_present_index_name || that_present_index_name) { + if (!(this_present_index_name && that_present_index_name)) + return false; + if (!this.index_name.equals(that.index_name)) + return false; + } + + boolean this_present_deleteData = true; + boolean that_present_deleteData = true; + if (this_present_deleteData || that_present_deleteData) { + if (!(this_present_deleteData && that_present_deleteData)) + return false; + if (this.deleteData != that.deleteData) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_index_name = true && (isSetIndex_name()); + list.add(present_index_name); + if (present_index_name) + list.add(index_name); + + boolean present_deleteData = true; + list.add(present_deleteData); + if (present_deleteData) + list.add(deleteData); + + return list.hashCode(); + } + + @Override + public int compareTo(drop_index_by_name_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIndex_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDeleteData()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + 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_index_by_name_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("index_name:"); + if (this.index_name == null) { + sb.append("null"); + } else { + sb.append(this.index_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("deleteData:"); + sb.append(this.deleteData); + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsStandardScheme getScheme() { + return new drop_index_by_name_argsStandardScheme(); + } + } + + private static class drop_index_by_name_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_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: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INDEX_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // DELETE_DATA + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(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_index_by_name_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.index_name != null) { + oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); + oprot.writeString(struct.index_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); + oprot.writeBool(struct.deleteData); + oprot.writeFieldEnd(); + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_argsTupleScheme getScheme() { + return new drop_index_by_name_argsTupleScheme(); + } + } + + private static class drop_index_by_name_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetIndex_name()) { + optionals.set(2); + } + if (struct.isSetDeleteData()) { + optionals.set(3); + } + oprot.writeBitSet(optionals, 4); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetIndex_name()) { + oprot.writeString(struct.index_name); + } + if (struct.isSetDeleteData()) { + oprot.writeBool(struct.deleteData); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(4); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } + if (incoming.get(3)) { + struct.deleteData = iprot.readBool(); + struct.setDeleteDataIsSet(true); + } + } + } + + } + + public static class drop_index_by_name_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_index_by_name_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final 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_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); + } + + private boolean success; // required + private NoSuchObjectException o1; // required + private MetaException o2; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + private static final int __SUCCESS_ISSET_ID = 0; + private byte __isset_bitfield = 0; + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + 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_index_by_name_result.class, metaDataMap); + } + + public drop_index_by_name_result() { + } + + public drop_index_by_name_result( + boolean success, + NoSuchObjectException o1, + MetaException o2) + { + this(); + this.success = success; + setSuccessIsSet(true); + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public drop_index_by_name_result(drop_index_by_name_result other) { + __isset_bitfield = other.__isset_bitfield; + this.success = other.success; + if (other.isSetO1()) { + this.o1 = new NoSuchObjectException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new MetaException(other.o2); + } + } + + public drop_index_by_name_result deepCopy() { + return new drop_index_by_name_result(this); + } + + @Override + public void clear() { + setSuccessIsSet(false); + this.success = false; + this.o1 = null; + this.o2 = null; + } + + public boolean isSuccess() { + return this.success; + } + + public void setSuccess(boolean success) { + this.success = success; + setSuccessIsSet(true); + } + + public void unsetSuccess() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + } + + public void setSuccessIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + } + + public NoSuchObjectException getO1() { + return this.o1; + } + + public void setO1(NoSuchObjectException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public MetaException getO2() { + return this.o2; + } + + public void setO2(MetaException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Boolean)value); + } + break; + + 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 SUCCESS: + return isSuccess(); + + 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 SUCCESS: + return isSetSuccess(); + 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 drop_index_by_name_result) + return this.equals((drop_index_by_name_result)that); + return false; + } + + public boolean equals(drop_index_by_name_result that) { + if (that == null) + return false; + + boolean this_present_success = true; + boolean that_present_success = true; + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (this.success != that.success) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + 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_success = true; + list.add(present_success); + if (present_success) + list.add(success); + + 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(drop_index_by_name_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + 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("drop_index_by_name_result("); + boolean first = true; + + sb.append("success:"); + sb.append(this.success); + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + 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 { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultStandardScheme getScheme() { + return new drop_index_by_name_resultStandardScheme(); + } + } + + private static class drop_index_by_name_resultStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + org.apache.thrift.protocol.TField schemeField; + iprot.readStructBegin(); + while (true) + { + schemeField = iprot.readFieldBegin(); + if (schemeField.type == org.apache.thrift.protocol.TType.STOP) { + break; + } + switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 1: // O1 + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.o1 = new 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, drop_index_by_name_result struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.isSetSuccess()) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + oprot.writeBool(struct.success); + oprot.writeFieldEnd(); + } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } + if (struct.o2 != null) { + oprot.writeFieldBegin(O2_FIELD_DESC); + struct.o2.write(oprot); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public drop_index_by_name_resultTupleScheme getScheme() { + return new drop_index_by_name_resultTupleScheme(); + } + } + + private static class drop_index_by_name_resultTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetSuccess()) { + optionals.set(0); + } + if (struct.isSetO1()) { + optionals.set(1); + } + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + oprot.writeBool(struct.success); + } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } + if (struct.isSetO2()) { + struct.o2.write(oprot); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.success = iprot.readBool(); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new NoSuchObjectException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new MetaException(); + struct.o2.read(iprot); + struct.setO2IsSet(true); + } + } + } + + } + + public static class get_index_by_name_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("get_index_by_name_args"); + + private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); + } + + private String db_name; // required + private String tbl_name; // required + private String index_name; // 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 { + DB_NAME((short)1, "db_name"), + TBL_NAME((short)2, "tbl_name"), + INDEX_NAME((short)3, "index_name"); + + 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: // DB_NAME + return DB_NAME; + case 2: // TBL_NAME + return TBL_NAME; + case 3: // INDEX_NAME + return INDEX_NAME; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); + } + + public get_index_by_name_args() { + } + + public get_index_by_name_args( + String db_name, + String tbl_name, + String index_name) + { + this(); + this.db_name = db_name; + this.tbl_name = tbl_name; + this.index_name = index_name; + } + + /** + * Performs a deep copy on other. + */ + public get_index_by_name_args(get_index_by_name_args other) { + if (other.isSetDb_name()) { + this.db_name = other.db_name; + } + if (other.isSetTbl_name()) { + this.tbl_name = other.tbl_name; + } + if (other.isSetIndex_name()) { + this.index_name = other.index_name; + } + } + + public get_index_by_name_args deepCopy() { + return new get_index_by_name_args(this); + } + + @Override + public void clear() { + this.db_name = null; + this.tbl_name = null; + this.index_name = null; + } + + public String getDb_name() { + return this.db_name; + } + + public void setDb_name(String db_name) { + this.db_name = db_name; + } + + public void unsetDb_name() { + this.db_name = null; + } + + /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetDb_name() { + return this.db_name != null; + } + + public void setDb_nameIsSet(boolean value) { + if (!value) { + this.db_name = null; + } + } + + public String getTbl_name() { + return this.tbl_name; + } + + public void setTbl_name(String tbl_name) { + this.tbl_name = tbl_name; + } + + public void unsetTbl_name() { + this.tbl_name = null; + } + + /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetTbl_name() { + return this.tbl_name != null; + } + + public void setTbl_nameIsSet(boolean value) { + if (!value) { + this.tbl_name = null; + } + } + + public String getIndex_name() { + return this.index_name; + } + + public void setIndex_name(String index_name) { + this.index_name = index_name; + } + + public void unsetIndex_name() { + this.index_name = null; + } + + /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ + public boolean isSetIndex_name() { + return this.index_name != null; + } + + public void setIndex_nameIsSet(boolean value) { + if (!value) { + this.index_name = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case DB_NAME: + if (value == null) { + unsetDb_name(); + } else { + setDb_name((String)value); + } + break; + + case TBL_NAME: + if (value == null) { + unsetTbl_name(); + } else { + setTbl_name((String)value); + } + break; + + case INDEX_NAME: + if (value == null) { + unsetIndex_name(); + } else { + setIndex_name((String)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case DB_NAME: + return getDb_name(); + + case TBL_NAME: + return getTbl_name(); + + case INDEX_NAME: + return getIndex_name(); + + } + 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 DB_NAME: + return isSetDb_name(); + case TBL_NAME: + return isSetTbl_name(); + case INDEX_NAME: + return isSetIndex_name(); + } + throw new IllegalStateException(); + } + + @Override + public boolean equals(Object that) { + if (that == null) + return false; + if (that instanceof get_index_by_name_args) + return this.equals((get_index_by_name_args)that); + return false; + } + + public boolean equals(get_index_by_name_args that) { + if (that == null) + return false; + + boolean this_present_db_name = true && this.isSetDb_name(); + boolean that_present_db_name = true && that.isSetDb_name(); + if (this_present_db_name || that_present_db_name) { + if (!(this_present_db_name && that_present_db_name)) + return false; + if (!this.db_name.equals(that.db_name)) + return false; + } + + boolean this_present_tbl_name = true && this.isSetTbl_name(); + boolean that_present_tbl_name = true && that.isSetTbl_name(); + if (this_present_tbl_name || that_present_tbl_name) { + if (!(this_present_tbl_name && that_present_tbl_name)) + return false; + if (!this.tbl_name.equals(that.tbl_name)) + return false; + } + + boolean this_present_index_name = true && this.isSetIndex_name(); + boolean that_present_index_name = true && that.isSetIndex_name(); + if (this_present_index_name || that_present_index_name) { + if (!(this_present_index_name && that_present_index_name)) + return false; + if (!this.index_name.equals(that.index_name)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_db_name = true && (isSetDb_name()); + list.add(present_db_name); + if (present_db_name) + list.add(db_name); + + boolean present_tbl_name = true && (isSetTbl_name()); + list.add(present_tbl_name); + if (present_tbl_name) + list.add(tbl_name); + + boolean present_index_name = true && (isSetIndex_name()); + list.add(present_index_name); + if (present_index_name) + list.add(index_name); + + return list.hashCode(); + } + + @Override + public int compareTo(get_index_by_name_args other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetDb_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetTbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetIndex_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (lastComparison != 0) { + return lastComparison; + } + } + return 0; + } + + public _Fields fieldForId(int fieldId) { + return _Fields.findByThriftId(fieldId); + } + + public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException { + schemes.get(iprot.getScheme()).getScheme().read(iprot, this); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException { + schemes.get(oprot.getScheme()).getScheme().write(oprot, this); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder("get_index_by_name_args("); + boolean first = true; + + sb.append("db_name:"); + if (this.db_name == null) { + sb.append("null"); + } else { + sb.append(this.db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("tbl_name:"); + if (this.tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.tbl_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("index_name:"); + if (this.index_name == null) { + sb.append("null"); + } else { + sb.append(this.index_name); + } + 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 get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_argsStandardScheme getScheme() { + return new get_index_by_name_argsStandardScheme(); + } + } + + private static class get_index_by_name_argsStandardScheme extends StandardScheme { + + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_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: // DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 2: // TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 3: // INDEX_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + default: + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + iprot.readFieldEnd(); + } + iprot.readStructEnd(); + struct.validate(); + } + + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + struct.validate(); + + oprot.writeStructBegin(STRUCT_DESC); + if (struct.db_name != null) { + oprot.writeFieldBegin(DB_NAME_FIELD_DESC); + oprot.writeString(struct.db_name); + oprot.writeFieldEnd(); + } + if (struct.tbl_name != null) { + oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); + oprot.writeString(struct.tbl_name); + oprot.writeFieldEnd(); + } + if (struct.index_name != null) { + oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); + oprot.writeString(struct.index_name); + oprot.writeFieldEnd(); + } + oprot.writeFieldStop(); + oprot.writeStructEnd(); + } + + } + + private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_argsTupleScheme getScheme() { + return new get_index_by_name_argsTupleScheme(); + } + } + + private static class get_index_by_name_argsTupleScheme extends TupleScheme { + + @Override + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol oprot = (TTupleProtocol) prot; + BitSet optionals = new BitSet(); + if (struct.isSetDb_name()) { + optionals.set(0); + } + if (struct.isSetTbl_name()) { + optionals.set(1); + } + if (struct.isSetIndex_name()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetDb_name()) { + oprot.writeString(struct.db_name); + } + if (struct.isSetTbl_name()) { + oprot.writeString(struct.tbl_name); + } + if (struct.isSetIndex_name()) { + oprot.writeString(struct.index_name); + } + } + + @Override + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + TTupleProtocol iprot = (TTupleProtocol) prot; + BitSet incoming = iprot.readBitSet(3); + if (incoming.get(0)) { + struct.db_name = iprot.readString(); + struct.setDb_nameIsSet(true); + } + if (incoming.get(1)) { + struct.tbl_name = iprot.readString(); + struct.setTbl_nameIsSet(true); + } + if (incoming.get(2)) { + struct.index_name = iprot.readString(); + struct.setIndex_nameIsSet(true); + } + } + } + + } + + public static class get_index_by_name_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("get_index_by_name_result"); + + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + + private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); + static { + schemes.put(StandardScheme.class, new get_index_by_name_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); + } + + private Index success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required + + /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ + public enum _Fields implements org.apache.thrift.TFieldIdEnum { + SUCCESS((short)0, "success"), + O1((short)1, "o1"), + O2((short)2, "o2"); + + private static final Map byName = new HashMap(); + + static { + for (_Fields field : EnumSet.allOf(_Fields.class)) { + byName.put(field.getFieldName(), field); + } + } + + /** + * Find the _Fields constant that matches fieldId, or null if its not found. + */ + public static _Fields findByThriftId(int fieldId) { + switch(fieldId) { + case 0: // SUCCESS + return SUCCESS; + case 1: // O1 + return O1; + case 2: // O2 + return O2; + default: + return null; + } + } + + /** + * Find the _Fields constant that matches fieldId, throwing an exception + * if it is not found. + */ + public static _Fields findByThriftIdOrThrow(int fieldId) { + _Fields fields = findByThriftId(fieldId); + if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!"); + return fields; + } + + /** + * Find the _Fields constant that matches name, or null if its not found. + */ + public static _Fields findByName(String name) { + return byName.get(name); + } + + private final short _thriftId; + private final String _fieldName; + + _Fields(short thriftId, String fieldName) { + _thriftId = thriftId; + _fieldName = fieldName; + } + + public short getThriftFieldId() { + return _thriftId; + } + + public String getFieldName() { + return _fieldName; + } + } + + // isset id assignments + public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; + static { + Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); + tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); + metaDataMap = Collections.unmodifiableMap(tmpMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); + } + + public get_index_by_name_result() { + } + + public get_index_by_name_result( + Index success, + MetaException o1, + NoSuchObjectException o2) + { + this(); + this.success = success; + this.o1 = o1; + this.o2 = o2; + } + + /** + * Performs a deep copy on other. + */ + public get_index_by_name_result(get_index_by_name_result other) { + if (other.isSetSuccess()) { + this.success = new Index(other.success); + } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } + if (other.isSetO2()) { + this.o2 = new NoSuchObjectException(other.o2); + } + } + + public get_index_by_name_result deepCopy() { + return new get_index_by_name_result(this); + } + + @Override + public void clear() { + this.success = null; + this.o1 = null; + this.o2 = null; + } + + public Index getSuccess() { + return this.success; + } + + public void setSuccess(Index success) { + this.success = success; + } + + public void unsetSuccess() { + this.success = null; + } + + /** Returns true if field success is set (has been assigned a value) and false otherwise */ + public boolean isSetSuccess() { + return this.success != null; + } + + public void setSuccessIsSet(boolean value) { + if (!value) { + this.success = null; + } + } + + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { + return this.o2; + } + + public void setO2(NoSuchObjectException o2) { + this.o2 = o2; + } + + public void unsetO2() { + this.o2 = null; + } + + /** Returns true if field o2 is set (has been assigned a value) and false otherwise */ + public boolean isSetO2() { + return this.o2 != null; + } + + public void setO2IsSet(boolean value) { + if (!value) { + this.o2 = null; + } + } + + public void setFieldValue(_Fields field, Object value) { + switch (field) { + case SUCCESS: + if (value == null) { + unsetSuccess(); + } else { + setSuccess((Index)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); + } + break; + + case O2: + if (value == null) { + unsetO2(); + } else { + setO2((NoSuchObjectException)value); + } + break; + + } + } + + public Object getFieldValue(_Fields field) { + switch (field) { + case SUCCESS: + return getSuccess(); + + 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 SUCCESS: + return isSetSuccess(); + 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 get_index_by_name_result) + return this.equals((get_index_by_name_result)that); + return false; + } + + public boolean equals(get_index_by_name_result that) { + if (that == null) + return false; + + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); + if (this_present_success || that_present_success) { + if (!(this_present_success && that_present_success)) + return false; + if (!this.success.equals(that.success)) + return false; + } + + boolean this_present_o1 = true && this.isSetO1(); + boolean that_present_o1 = true && that.isSetO1(); + if (this_present_o1 || that_present_o1) { + if (!(this_present_o1 && that_present_o1)) + return false; + if (!this.o1.equals(that.o1)) + return false; + } + + boolean this_present_o2 = true && this.isSetO2(); + boolean that_present_o2 = true && that.isSetO2(); + if (this_present_o2 || that_present_o2) { + if (!(this_present_o2 && that_present_o2)) + return false; + if (!this.o2.equals(that.o2)) + return false; + } + + return true; + } + + @Override + public int hashCode() { + List list = new ArrayList(); + + boolean present_success = true && (isSetSuccess()); + list.add(present_success); + if (present_success) + list.add(success); + + 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(get_index_by_name_result other) { + if (!getClass().equals(other.getClass())) { + return getClass().getName().compareTo(other.getClass().getName()); + } + + int lastComparison = 0; + + lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(other.isSetSuccess()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetSuccess()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, other.success); + if (lastComparison != 0) { + return lastComparison; + } + } + 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("get_index_by_name_result("); + boolean first = true; + + sb.append("success:"); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } + first = false; + if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); + sb.append("o2:"); + if (this.o2 == null) { + sb.append("null"); + } else { + sb.append(this.o2); + } + first = false; + sb.append(")"); + return sb.toString(); + } + + public void validate() throws org.apache.thrift.TException { + // check for required fields + // check for sub-struct validity + if (success != null) { + success.validate(); + } + } + + private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { + try { + write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { + try { + read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); + } catch (org.apache.thrift.TException te) { + throw new java.io.IOException(te); + } + } + + private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { + public get_index_by_name_resultStandardScheme getScheme() { + return new get_index_by_name_resultStandardScheme(); } } - private static class alter_index_resultStandardScheme extends StandardScheme { + private static class get_index_by_name_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -105529,9 +108209,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result break; } switch (schemeField.id) { + case 0: // SUCCESS + if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new InvalidOperationException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -105540,7 +108229,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -105556,10 +108245,15 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, alter_index_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); + if (struct.success != null) { + oprot.writeFieldBegin(SUCCESS_FIELD_DESC); + struct.success.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o1 != null) { oprot.writeFieldBegin(O1_FIELD_DESC); struct.o1.write(oprot); @@ -105576,25 +108270,31 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, alter_index_result } - private static class alter_index_resultTupleSchemeFactory implements SchemeFactory { - public alter_index_resultTupleScheme getScheme() { - return new alter_index_resultTupleScheme(); + private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { + public get_index_by_name_resultTupleScheme getScheme() { + return new get_index_by_name_resultTupleScheme(); } } - private static class alter_index_resultTupleScheme extends TupleScheme { + private static class get_index_by_name_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetO1()) { + if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); + if (struct.isSetSuccess()) { + struct.success.write(oprot); + } if (struct.isSetO1()) { struct.o1.write(oprot); } @@ -105604,16 +108304,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, alter_index_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.o1 = new InvalidOperationException(); + struct.success = new Index(); + struct.success.read(iprot); + struct.setSuccessIsSet(true); + } + if (incoming.get(1)) { + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } - if (incoming.get(1)) { - struct.o2 = new MetaException(); + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -105622,31 +108327,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, alter_index_result s } - public static class drop_index_by_name_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("drop_index_by_name_args"); + public static class get_indexes_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("get_indexes_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); - private static final org.apache.thrift.protocol.TField DELETE_DATA_FIELD_DESC = new org.apache.thrift.protocol.TField("deleteData", org.apache.thrift.protocol.TType.BOOL, (short)4); + private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new drop_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String index_name; // required - private boolean deleteData; // required + private short max_indexes; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"), - DELETE_DATA((short)4, "deleteData"); + MAX_INDEXES((short)3, "max_indexes"); private static final Map byName = new HashMap(); @@ -105665,10 +108367,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // INDEX_NAME - return INDEX_NAME; - case 4: // DELETE_DATA - return DELETE_DATA; + case 3: // MAX_INDEXES + return MAX_INDEXES; default: return null; } @@ -105709,7 +108409,7 @@ public String getFieldName() { } // isset id assignments - private static final int __DELETEDATA_ISSET_ID = 0; + private static final int __MAX_INDEXES_ISSET_ID = 0; private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { @@ -105718,35 +108418,33 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.DELETE_DATA, new org.apache.thrift.meta_data.FieldMetaData("deleteData", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(drop_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); } - public drop_index_by_name_args() { + public get_indexes_args() { + this.max_indexes = (short)-1; + } - public drop_index_by_name_args( + public get_indexes_args( String db_name, String tbl_name, - String index_name, - boolean deleteData) + short max_indexes) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.index_name = index_name; - this.deleteData = deleteData; - setDeleteDataIsSet(true); + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public drop_index_by_name_args(drop_index_by_name_args other) { + public get_indexes_args(get_indexes_args other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; @@ -105754,23 +108452,19 @@ public drop_index_by_name_args(drop_index_by_name_args other) { if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetIndex_name()) { - this.index_name = other.index_name; - } - this.deleteData = other.deleteData; + this.max_indexes = other.max_indexes; } - public drop_index_by_name_args deepCopy() { - return new drop_index_by_name_args(this); + public get_indexes_args deepCopy() { + return new get_indexes_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.index_name = null; - setDeleteDataIsSet(false); - this.deleteData = false; + this.max_indexes = (short)-1; + } public String getDb_name() { @@ -105819,49 +108513,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getIndex_name() { - return this.index_name; - } - - public void setIndex_name(String index_name) { - this.index_name = index_name; - } - - public void unsetIndex_name() { - this.index_name = null; - } - - /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_name() { - return this.index_name != null; - } - - public void setIndex_nameIsSet(boolean value) { - if (!value) { - this.index_name = null; - } - } - - public boolean isDeleteData() { - return this.deleteData; + public short getMax_indexes() { + return this.max_indexes; } - public void setDeleteData(boolean deleteData) { - this.deleteData = deleteData; - setDeleteDataIsSet(true); + public void setMax_indexes(short max_indexes) { + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } - public void unsetDeleteData() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + public void unsetMax_indexes() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - /** Returns true if field deleteData is set (has been assigned a value) and false otherwise */ - public boolean isSetDeleteData() { - return EncodingUtils.testBit(__isset_bitfield, __DELETEDATA_ISSET_ID); + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_indexes() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - public void setDeleteDataIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __DELETEDATA_ISSET_ID, value); + public void setMax_indexesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -105882,19 +108553,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case INDEX_NAME: - if (value == null) { - unsetIndex_name(); - } else { - setIndex_name((String)value); - } - break; - - case DELETE_DATA: + case MAX_INDEXES: if (value == null) { - unsetDeleteData(); + unsetMax_indexes(); } else { - setDeleteData((Boolean)value); + setMax_indexes((Short)value); } break; @@ -105909,11 +108572,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case INDEX_NAME: - return getIndex_name(); - - case DELETE_DATA: - return isDeleteData(); + case MAX_INDEXES: + return getMax_indexes(); } throw new IllegalStateException(); @@ -105930,10 +108590,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case INDEX_NAME: - return isSetIndex_name(); - case DELETE_DATA: - return isSetDeleteData(); + case MAX_INDEXES: + return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -105942,12 +108600,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_args) - return this.equals((drop_index_by_name_args)that); + if (that instanceof get_indexes_args) + return this.equals((get_indexes_args)that); return false; } - public boolean equals(drop_index_by_name_args that) { + public boolean equals(get_indexes_args that) { if (that == null) return false; @@ -105969,21 +108627,12 @@ public boolean equals(drop_index_by_name_args that) { return false; } - boolean this_present_index_name = true && this.isSetIndex_name(); - boolean that_present_index_name = true && that.isSetIndex_name(); - if (this_present_index_name || that_present_index_name) { - if (!(this_present_index_name && that_present_index_name)) - return false; - if (!this.index_name.equals(that.index_name)) - return false; - } - - boolean this_present_deleteData = true; - boolean that_present_deleteData = true; - if (this_present_deleteData || that_present_deleteData) { - if (!(this_present_deleteData && that_present_deleteData)) + boolean this_present_max_indexes = true; + boolean that_present_max_indexes = true; + if (this_present_max_indexes || that_present_max_indexes) { + if (!(this_present_max_indexes && that_present_max_indexes)) return false; - if (this.deleteData != that.deleteData) + if (this.max_indexes != that.max_indexes) return false; } @@ -106004,21 +108653,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); - if (present_index_name) - list.add(index_name); - - boolean present_deleteData = true; - list.add(present_deleteData); - if (present_deleteData) - list.add(deleteData); + boolean present_max_indexes = true; + list.add(present_max_indexes); + if (present_max_indexes) + list.add(max_indexes); return list.hashCode(); } @Override - public int compareTo(drop_index_by_name_args other) { + public int compareTo(get_indexes_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -106045,22 +108689,12 @@ public int compareTo(drop_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); - if (lastComparison != 0) { - return lastComparison; - } - } - lastComparison = Boolean.valueOf(isSetDeleteData()).compareTo(other.isSetDeleteData()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } - if (isSetDeleteData()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.deleteData, other.deleteData); + if (isSetMax_indexes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -106082,7 +108716,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_indexes_args("); boolean first = true; sb.append("db_name:"); @@ -106101,16 +108735,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("index_name:"); - if (this.index_name == null) { - sb.append("null"); - } else { - sb.append(this.index_name); - } - first = false; - if (!first) sb.append(", "); - sb.append("deleteData:"); - sb.append(this.deleteData); + sb.append("max_indexes:"); + sb.append(this.max_indexes); first = false; sb.append(")"); return sb.toString(); @@ -106139,15 +108765,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class drop_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsStandardScheme getScheme() { - return new drop_index_by_name_argsStandardScheme(); + private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { + public get_indexes_argsStandardScheme getScheme() { + return new get_indexes_argsStandardScheme(); } } - private static class drop_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_indexes_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106173,18 +108799,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // INDEX_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 4: // DELETE_DATA - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + case 3: // MAX_INDEXES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -106198,7 +108816,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -106212,13 +108830,8 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.index_name != null) { - oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); - oprot.writeString(struct.index_name); - oprot.writeFieldEnd(); - } - oprot.writeFieldBegin(DELETE_DATA_FIELD_DESC); - oprot.writeBool(struct.deleteData); + oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); + oprot.writeI16(struct.max_indexes); oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); @@ -106226,16 +108839,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name } - private static class drop_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_argsTupleScheme getScheme() { - return new drop_index_by_name_argsTupleScheme(); + private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { + public get_indexes_argsTupleScheme getScheme() { + return new get_indexes_argsTupleScheme(); } } - private static class drop_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_indexes_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -106244,31 +108857,25 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIndex_name()) { + if (struct.isSetMax_indexes()) { optionals.set(2); } - if (struct.isSetDeleteData()) { - optionals.set(3); - } - oprot.writeBitSet(optionals, 4); + oprot.writeBitSet(optionals, 3); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetIndex_name()) { - oprot.writeString(struct.index_name); - } - if (struct.isSetDeleteData()) { - oprot.writeBool(struct.deleteData); + if (struct.isSetMax_indexes()) { + oprot.writeI16(struct.max_indexes); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(4); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -106278,32 +108885,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_a struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); - } - if (incoming.get(3)) { - struct.deleteData = iprot.readBool(); - struct.setDeleteDataIsSet(true); + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } } } } - public static class drop_index_by_name_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_index_by_name_result"); + public static class get_indexes_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("get_indexes_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final 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_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new drop_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_indexes_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); } - private boolean success; // required + private List success; // required private NoSuchObjectException o1; // required private MetaException o2; // required @@ -106372,32 +108975,30 @@ public String getFieldName() { } // isset id assignments - private static final int __SUCCESS_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.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(drop_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); } - public drop_index_by_name_result() { + public get_indexes_result() { } - public drop_index_by_name_result( - boolean success, + public get_indexes_result( + List success, NoSuchObjectException o1, MetaException o2) { this(); this.success = success; - setSuccessIsSet(true); this.o1 = o1; this.o2 = o2; } @@ -106405,9 +109006,14 @@ public drop_index_by_name_result( /** * Performs a deep copy on other. */ - public drop_index_by_name_result(drop_index_by_name_result other) { - __isset_bitfield = other.__isset_bitfield; - this.success = other.success; + public get_indexes_result(get_indexes_result other) { + if (other.isSetSuccess()) { + List __this__success = new ArrayList(other.success.size()); + for (Index other_element : other.success) { + __this__success.add(new Index(other_element)); + } + this.success = __this__success; + } if (other.isSetO1()) { this.o1 = new NoSuchObjectException(other.o1); } @@ -106416,38 +109022,53 @@ public drop_index_by_name_result(drop_index_by_name_result other) { } } - public drop_index_by_name_result deepCopy() { - return new drop_index_by_name_result(this); + public get_indexes_result deepCopy() { + return new get_indexes_result(this); } @Override public void clear() { - setSuccessIsSet(false); - this.success = false; + this.success = null; this.o1 = null; this.o2 = null; } - public boolean isSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(Index elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(boolean success) { + public void setSuccess(List success) { this.success = success; - setSuccessIsSet(true); } public void unsetSuccess() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __SUCCESS_ISSET_ID); + this.success = null; } /** Returns true if field success is set (has been assigned a value) and false otherwise */ public boolean isSetSuccess() { - return EncodingUtils.testBit(__isset_bitfield, __SUCCESS_ISSET_ID); + return this.success != null; } public void setSuccessIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __SUCCESS_ISSET_ID, value); + if (!value) { + this.success = null; + } } public NoSuchObjectException getO1() { @@ -106502,7 +109123,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Boolean)value); + setSuccess((List)value); } break; @@ -106528,7 +109149,7 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { case SUCCESS: - return isSuccess(); + return getSuccess(); case O1: return getO1(); @@ -106561,21 +109182,21 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof drop_index_by_name_result) - return this.equals((drop_index_by_name_result)that); + if (that instanceof get_indexes_result) + return this.equals((get_indexes_result)that); return false; } - public boolean equals(drop_index_by_name_result that) { + public boolean equals(get_indexes_result that) { if (that == null) return false; - boolean this_present_success = true; - boolean that_present_success = true; + boolean this_present_success = true && this.isSetSuccess(); + boolean that_present_success = true && that.isSetSuccess(); if (this_present_success || that_present_success) { if (!(this_present_success && that_present_success)) return false; - if (this.success != that.success) + if (!this.success.equals(that.success)) return false; } @@ -106604,7 +109225,7 @@ public boolean equals(drop_index_by_name_result that) { public int hashCode() { List list = new ArrayList(); - boolean present_success = true; + boolean present_success = true && (isSetSuccess()); list.add(present_success); if (present_success) list.add(success); @@ -106623,7 +109244,7 @@ public int hashCode() { } @Override - public int compareTo(drop_index_by_name_result other) { + public int compareTo(get_indexes_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -106677,11 +109298,15 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("drop_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_indexes_result("); boolean first = true; sb.append("success:"); - sb.append(this.success); + if (this.success == null) { + sb.append("null"); + } else { + sb.append(this.success); + } first = false; if (!first) sb.append(", "); sb.append("o1:"); @@ -106718,23 +109343,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class drop_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultStandardScheme getScheme() { - return new drop_index_by_name_resultStandardScheme(); + private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { + public get_indexes_resultStandardScheme getScheme() { + return new get_indexes_resultStandardScheme(); } } - private static class drop_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_indexes_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -106745,8 +109368,19 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.BOOL) { - struct.success = iprot.readBool(); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1004 = iprot.readListBegin(); + struct.success = new ArrayList(_list1004.size); + Index _elem1005; + for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) + { + _elem1005 = new Index(); + _elem1005.read(iprot); + struct.success.add(_elem1005); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); @@ -106779,13 +109413,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, drop_index_by_name_ struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.isSetSuccess()) { + if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - oprot.writeBool(struct.success); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (Index _iter1007 : struct.success) + { + _iter1007.write(oprot); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o1 != null) { @@ -106804,16 +109445,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, drop_index_by_name } - private static class drop_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public drop_index_by_name_resultTupleScheme getScheme() { - return new drop_index_by_name_resultTupleScheme(); + private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { + public get_indexes_resultTupleScheme getScheme() { + return new get_indexes_resultTupleScheme(); } } - private static class drop_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_indexes_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -106827,7 +109468,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { - oprot.writeBool(struct.success); + { + oprot.writeI32(struct.success.size()); + for (Index _iter1008 : struct.success) + { + _iter1008.write(oprot); + } + } } if (struct.isSetO1()) { struct.o1.write(oprot); @@ -106838,11 +109485,21 @@ public void write(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_ } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { - struct.success = iprot.readBool(); + { + org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1009.size); + Index _elem1010; + for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) + { + _elem1010 = new Index(); + _elem1010.read(iprot); + struct.success.add(_elem1010); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { @@ -106860,28 +109517,28 @@ public void read(org.apache.thrift.protocol.TProtocol prot, drop_index_by_name_r } - public static class get_index_by_name_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("get_index_by_name_args"); + public static class get_index_names_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("get_index_names_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField INDEX_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("index_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_by_name_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private String index_name; // required + private short max_indexes; // 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 { DB_NAME((short)1, "db_name"), TBL_NAME((short)2, "tbl_name"), - INDEX_NAME((short)3, "index_name"); + MAX_INDEXES((short)3, "max_indexes"); private static final Map byName = new HashMap(); @@ -106900,8 +109557,8 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // INDEX_NAME - return INDEX_NAME; + case 3: // MAX_INDEXES + return MAX_INDEXES; default: return null; } @@ -106942,6 +109599,8 @@ public String getFieldName() { } // isset id assignments + private static final int __MAX_INDEXES_ISSET_ID = 0; + private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -106949,50 +109608,53 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.INDEX_NAME, new org.apache.thrift.meta_data.FieldMetaData("index_name", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); } - public get_index_by_name_args() { + public get_index_names_args() { + this.max_indexes = (short)-1; + } - public get_index_by_name_args( + public get_index_names_args( String db_name, String tbl_name, - String index_name) + short max_indexes) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.index_name = index_name; + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public get_index_by_name_args(get_index_by_name_args other) { + public get_index_names_args(get_index_names_args other) { + __isset_bitfield = other.__isset_bitfield; if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - if (other.isSetIndex_name()) { - this.index_name = other.index_name; - } + this.max_indexes = other.max_indexes; } - public get_index_by_name_args deepCopy() { - return new get_index_by_name_args(this); + public get_index_names_args deepCopy() { + return new get_index_names_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.index_name = null; + this.max_indexes = (short)-1; + } public String getDb_name() { @@ -107041,27 +109703,26 @@ public void setTbl_nameIsSet(boolean value) { } } - public String getIndex_name() { - return this.index_name; + public short getMax_indexes() { + return this.max_indexes; } - public void setIndex_name(String index_name) { - this.index_name = index_name; + public void setMax_indexes(short max_indexes) { + this.max_indexes = max_indexes; + setMax_indexesIsSet(true); } - public void unsetIndex_name() { - this.index_name = null; + public void unsetMax_indexes() { + __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - /** Returns true if field index_name is set (has been assigned a value) and false otherwise */ - public boolean isSetIndex_name() { - return this.index_name != null; + /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ + public boolean isSetMax_indexes() { + return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); } - public void setIndex_nameIsSet(boolean value) { - if (!value) { - this.index_name = null; - } + public void setMax_indexesIsSet(boolean value) { + __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); } public void setFieldValue(_Fields field, Object value) { @@ -107082,11 +109743,11 @@ public void setFieldValue(_Fields field, Object value) { } break; - case INDEX_NAME: + case MAX_INDEXES: if (value == null) { - unsetIndex_name(); + unsetMax_indexes(); } else { - setIndex_name((String)value); + setMax_indexes((Short)value); } break; @@ -107101,8 +109762,8 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case INDEX_NAME: - return getIndex_name(); + case MAX_INDEXES: + return getMax_indexes(); } throw new IllegalStateException(); @@ -107119,8 +109780,8 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case INDEX_NAME: - return isSetIndex_name(); + case MAX_INDEXES: + return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -107129,12 +109790,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_args) - return this.equals((get_index_by_name_args)that); + if (that instanceof get_index_names_args) + return this.equals((get_index_names_args)that); return false; } - public boolean equals(get_index_by_name_args that) { + public boolean equals(get_index_names_args that) { if (that == null) return false; @@ -107156,12 +109817,12 @@ public boolean equals(get_index_by_name_args that) { return false; } - boolean this_present_index_name = true && this.isSetIndex_name(); - boolean that_present_index_name = true && that.isSetIndex_name(); - if (this_present_index_name || that_present_index_name) { - if (!(this_present_index_name && that_present_index_name)) + boolean this_present_max_indexes = true; + boolean that_present_max_indexes = true; + if (this_present_max_indexes || that_present_max_indexes) { + if (!(this_present_max_indexes && that_present_max_indexes)) return false; - if (!this.index_name.equals(that.index_name)) + if (this.max_indexes != that.max_indexes) return false; } @@ -107182,16 +109843,16 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_index_name = true && (isSetIndex_name()); - list.add(present_index_name); - if (present_index_name) - list.add(index_name); + boolean present_max_indexes = true; + list.add(present_max_indexes); + if (present_max_indexes) + list.add(max_indexes); return list.hashCode(); } @Override - public int compareTo(get_index_by_name_args other) { + public int compareTo(get_index_names_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -107218,12 +109879,12 @@ public int compareTo(get_index_by_name_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetIndex_name()).compareTo(other.isSetIndex_name()); + lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); if (lastComparison != 0) { return lastComparison; } - if (isSetIndex_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.index_name, other.index_name); + if (isSetMax_indexes()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); if (lastComparison != 0) { return lastComparison; } @@ -107245,7 +109906,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_args("); + StringBuilder sb = new StringBuilder("get_index_names_args("); boolean first = true; sb.append("db_name:"); @@ -107264,12 +109925,8 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("index_name:"); - if (this.index_name == null) { - sb.append("null"); - } else { - sb.append(this.index_name); - } + sb.append("max_indexes:"); + sb.append(this.max_indexes); first = false; sb.append(")"); return sb.toString(); @@ -107290,21 +109947,23 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { + // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. + __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_index_by_name_argsStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_argsStandardScheme getScheme() { - return new get_index_by_name_argsStandardScheme(); + private static class get_index_names_argsStandardSchemeFactory implements SchemeFactory { + public get_index_names_argsStandardScheme getScheme() { + return new get_index_names_argsStandardScheme(); } } - private static class get_index_by_name_argsStandardScheme extends StandardScheme { + private static class get_index_names_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107330,10 +109989,10 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // INDEX_NAME - if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + case 3: // MAX_INDEXES + if (schemeField.type == org.apache.thrift.protocol.TType.I16) { + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -107347,7 +110006,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_a struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -107361,27 +110020,25 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - if (struct.index_name != null) { - oprot.writeFieldBegin(INDEX_NAME_FIELD_DESC); - oprot.writeString(struct.index_name); - oprot.writeFieldEnd(); - } + oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); + oprot.writeI16(struct.max_indexes); + oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_by_name_argsTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_argsTupleScheme getScheme() { - return new get_index_by_name_argsTupleScheme(); + private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { + public get_index_names_argsTupleScheme getScheme() { + return new get_index_names_argsTupleScheme(); } } - private static class get_index_by_name_argsTupleScheme extends TupleScheme { + private static class get_index_names_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -107390,7 +110047,7 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetIndex_name()) { + if (struct.isSetMax_indexes()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); @@ -107400,13 +110057,13 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_a if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetIndex_name()) { - oprot.writeString(struct.index_name); + if (struct.isSetMax_indexes()) { + oprot.writeI16(struct.max_indexes); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { @@ -107418,36 +110075,33 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_ar struct.setTbl_nameIsSet(true); } if (incoming.get(2)) { - struct.index_name = iprot.readString(); - struct.setIndex_nameIsSet(true); + struct.max_indexes = iprot.readI16(); + struct.setMax_indexesIsSet(true); } } } } - public static class get_index_by_name_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("get_index_by_name_result"); + public static class get_index_names_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("get_index_names_result"); - private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0); - private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); + private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_by_name_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_by_name_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_index_names_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); } - private Index success; // required - private MetaException o1; // required - private NoSuchObjectException o2; // required + private List success; // required + private MetaException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O1((short)1, "o1"), - O2((short)2, "o2"); + O2((short)1, "o2"); private static final Map byName = new HashMap(); @@ -107464,9 +110118,7 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O1 - return O1; - case 2: // O2 + case 1: // O2 return O2; default: return null; @@ -107512,60 +110164,69 @@ public String getFieldName() { static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.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))); + new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_by_name_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); } - public get_index_by_name_result() { + public get_index_names_result() { } - public get_index_by_name_result( - Index success, - MetaException o1, - NoSuchObjectException o2) + public get_index_names_result( + List success, + MetaException o2) { this(); this.success = success; - this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_index_by_name_result(get_index_by_name_result other) { + public get_index_names_result(get_index_names_result other) { if (other.isSetSuccess()) { - this.success = new Index(other.success); - } - if (other.isSetO1()) { - this.o1 = new MetaException(other.o1); + List __this__success = new ArrayList(other.success); + this.success = __this__success; } if (other.isSetO2()) { - this.o2 = new NoSuchObjectException(other.o2); + this.o2 = new MetaException(other.o2); } } - public get_index_by_name_result deepCopy() { - return new get_index_by_name_result(this); + public get_index_names_result deepCopy() { + return new get_index_names_result(this); } @Override public void clear() { this.success = null; - this.o1 = null; this.o2 = null; } - public Index getSuccess() { + public int getSuccessSize() { + return (this.success == null) ? 0 : this.success.size(); + } + + public java.util.Iterator getSuccessIterator() { + return (this.success == null) ? null : this.success.iterator(); + } + + public void addToSuccess(String elem) { + if (this.success == null) { + this.success = new ArrayList(); + } + this.success.add(elem); + } + + public List getSuccess() { return this.success; } - public void setSuccess(Index success) { + public void setSuccess(List success) { this.success = success; } @@ -107584,34 +110245,11 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO1() { - return this.o1; - } - - public void setO1(MetaException o1) { - this.o1 = o1; - } - - public void unsetO1() { - this.o1 = null; - } - - /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ - public boolean isSetO1() { - return this.o1 != null; - } - - public void setO1IsSet(boolean value) { - if (!value) { - this.o1 = null; - } - } - - public NoSuchObjectException getO2() { + public MetaException getO2() { return this.o2; } - public void setO2(NoSuchObjectException o2) { + public void setO2(MetaException o2) { this.o2 = o2; } @@ -107636,15 +110274,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((Index)value); - } - break; - - case O1: - if (value == null) { - unsetO1(); - } else { - setO1((MetaException)value); + setSuccess((List)value); } break; @@ -107652,7 +110282,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((NoSuchObjectException)value); + setO2((MetaException)value); } break; @@ -107664,9 +110294,6 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); - case O1: - return getO1(); - case O2: return getO2(); @@ -107683,8 +110310,6 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); - case O1: - return isSetO1(); case O2: return isSetO2(); } @@ -107695,12 +110320,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_by_name_result) - return this.equals((get_index_by_name_result)that); + if (that instanceof get_index_names_result) + return this.equals((get_index_names_result)that); return false; } - public boolean equals(get_index_by_name_result that) { + public boolean equals(get_index_names_result that) { if (that == null) return false; @@ -107713,15 +110338,6 @@ public boolean equals(get_index_by_name_result that) { 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) { @@ -107743,11 +110359,6 @@ public int hashCode() { if (present_success) list.add(success); - 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) @@ -107757,7 +110368,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_by_name_result other) { + public int compareTo(get_index_names_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -107774,16 +110385,6 @@ public int compareTo(get_index_by_name_result other) { return lastComparison; } } - 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; @@ -107811,7 +110412,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_by_name_result("); + StringBuilder sb = new StringBuilder("get_index_names_result("); boolean first = true; sb.append("success:"); @@ -107822,14 +110423,6 @@ public String toString() { } first = false; if (!first) sb.append(", "); - sb.append("o1:"); - if (this.o1 == null) { - sb.append("null"); - } else { - sb.append(this.o1); - } - first = false; - if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -107844,9 +110437,6 @@ public String toString() { public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity - if (success != null) { - success.validate(); - } } private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { @@ -107865,15 +110455,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_by_name_resultStandardSchemeFactory implements SchemeFactory { - public get_index_by_name_resultStandardScheme getScheme() { - return new get_index_by_name_resultStandardScheme(); + private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { + public get_index_names_resultStandardScheme getScheme() { + return new get_index_names_resultStandardScheme(); } } - private static class get_index_by_name_resultStandardScheme extends StandardScheme { + private static class get_index_names_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -107884,26 +110474,26 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r } switch (schemeField.id) { case 0: // SUCCESS - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.success = new Index(); - struct.success.read(iprot); + if (schemeField.type == org.apache.thrift.protocol.TType.LIST) { + { + org.apache.thrift.protocol.TList _list1012 = iprot.readListBegin(); + struct.success = new ArrayList(_list1012.size); + String _elem1013; + for (int _i1014 = 0; _i1014 < _list1012.size; ++_i1014) + { + _elem1013 = iprot.readString(); + struct.success.add(_elem1013); + } + iprot.readListEnd(); + } struct.setSuccessIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O1 - if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; - case 2: // O2 + case 1: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -107919,18 +110509,20 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_by_name_r struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); - struct.success.write(oprot); - oprot.writeFieldEnd(); - } - if (struct.o1 != null) { - oprot.writeFieldBegin(O1_FIELD_DESC); - struct.o1.write(oprot); + { + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); + for (String _iter1015 : struct.success) + { + oprot.writeString(_iter1015); + } + oprot.writeListEnd(); + } oprot.writeFieldEnd(); } if (struct.o2 != null) { @@ -107944,33 +110536,33 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_by_name_ } - private static class get_index_by_name_resultTupleSchemeFactory implements SchemeFactory { - public get_index_by_name_resultTupleScheme getScheme() { - return new get_index_by_name_resultTupleScheme(); + private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { + public get_index_names_resultTupleScheme getScheme() { + return new get_index_names_resultTupleScheme(); } } - private static class get_index_by_name_resultTupleScheme extends TupleScheme { + private static class get_index_names_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO1()) { - optionals.set(1); - } if (struct.isSetO2()) { - optionals.set(2); + optionals.set(1); } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetSuccess()) { - struct.success.write(oprot); - } - if (struct.isSetO1()) { - struct.o1.write(oprot); + { + oprot.writeI32(struct.success.size()); + for (String _iter1016 : struct.success) + { + oprot.writeString(_iter1016); + } + } } if (struct.isSetO2()) { struct.o2.write(oprot); @@ -107978,21 +110570,24 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_r } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { - struct.success = new Index(); - struct.success.read(iprot); + { + org.apache.thrift.protocol.TList _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1017.size); + String _elem1018; + for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) + { + _elem1018 = iprot.readString(); + struct.success.add(_elem1018); + } + } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new MetaException(); - struct.o1.read(iprot); - struct.setO1IsSet(true); - } - if (incoming.get(2)) { - struct.o2 = new NoSuchObjectException(); + struct.o2 = new MetaException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -108001,28 +110596,25 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_index_by_name_re } - public static class get_indexes_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("get_indexes_args"); + public static class get_primary_keys_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("get_primary_keys_args"); private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_indexes_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_argsTupleSchemeFactory()); } private String db_name; // required private String tbl_name; // required - private short max_indexes; // 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 { DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_INDEXES((short)3, "max_indexes"); + TBL_NAME((short)2, "tbl_name"); private static final Map byName = new HashMap(); @@ -108041,8 +110633,6 @@ public static _Fields findByThriftId(int fieldId) { return DB_NAME; case 2: // TBL_NAME return TBL_NAME; - case 3: // MAX_INDEXES - return MAX_INDEXES; default: return null; } @@ -108083,8 +110673,6 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_INDEXES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); @@ -108092,53 +110680,42 @@ public String getFieldName() { new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_args.class, metaDataMap); } - public get_indexes_args() { - this.max_indexes = (short)-1; - + public get_primary_keys_args() { } - public get_indexes_args( + public get_primary_keys_args( String db_name, - String tbl_name, - short max_indexes) + String tbl_name) { this(); this.db_name = db_name; this.tbl_name = tbl_name; - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); } /** * Performs a deep copy on other. */ - public get_indexes_args(get_indexes_args other) { - __isset_bitfield = other.__isset_bitfield; + public get_primary_keys_args(get_primary_keys_args other) { if (other.isSetDb_name()) { this.db_name = other.db_name; } if (other.isSetTbl_name()) { this.tbl_name = other.tbl_name; } - this.max_indexes = other.max_indexes; } - public get_indexes_args deepCopy() { - return new get_indexes_args(this); + public get_primary_keys_args deepCopy() { + return new get_primary_keys_args(this); } @Override public void clear() { this.db_name = null; this.tbl_name = null; - this.max_indexes = (short)-1; - } public String getDb_name() { @@ -108187,28 +110764,6 @@ public void setTbl_nameIsSet(boolean value) { } } - public short getMax_indexes() { - return this.max_indexes; - } - - public void setMax_indexes(short max_indexes) { - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); - } - - public void unsetMax_indexes() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_indexes() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); - } - - public void setMax_indexesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); - } - public void setFieldValue(_Fields field, Object value) { switch (field) { case DB_NAME: @@ -108227,14 +110782,6 @@ public void setFieldValue(_Fields field, Object value) { } break; - case MAX_INDEXES: - if (value == null) { - unsetMax_indexes(); - } else { - setMax_indexes((Short)value); - } - break; - } } @@ -108246,9 +110793,6 @@ public Object getFieldValue(_Fields field) { case TBL_NAME: return getTbl_name(); - case MAX_INDEXES: - return getMax_indexes(); - } throw new IllegalStateException(); } @@ -108264,8 +110808,6 @@ public boolean isSet(_Fields field) { return isSetDb_name(); case TBL_NAME: return isSetTbl_name(); - case MAX_INDEXES: - return isSetMax_indexes(); } throw new IllegalStateException(); } @@ -108274,12 +110816,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_args) - return this.equals((get_indexes_args)that); + if (that instanceof get_primary_keys_args) + return this.equals((get_primary_keys_args)that); return false; } - public boolean equals(get_indexes_args that) { + public boolean equals(get_primary_keys_args that) { if (that == null) return false; @@ -108301,15 +110843,6 @@ public boolean equals(get_indexes_args that) { return false; } - boolean this_present_max_indexes = true; - boolean that_present_max_indexes = true; - if (this_present_max_indexes || that_present_max_indexes) { - if (!(this_present_max_indexes && that_present_max_indexes)) - return false; - if (this.max_indexes != that.max_indexes) - return false; - } - return true; } @@ -108327,16 +110860,11 @@ public int hashCode() { if (present_tbl_name) list.add(tbl_name); - boolean present_max_indexes = true; - list.add(present_max_indexes); - if (present_max_indexes) - list.add(max_indexes); - return list.hashCode(); } @Override - public int compareTo(get_indexes_args other) { + public int compareTo(get_primary_keys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -108363,16 +110891,6 @@ public int compareTo(get_indexes_args other) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); - if (lastComparison != 0) { - return lastComparison; - } - if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); - if (lastComparison != 0) { - return lastComparison; - } - } return 0; } @@ -108390,7 +110908,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_args("); + StringBuilder sb = new StringBuilder("get_primary_keys_args("); boolean first = true; sb.append("db_name:"); @@ -108408,10 +110926,6 @@ public String toString() { sb.append(this.tbl_name); } first = false; - if (!first) sb.append(", "); - sb.append("max_indexes:"); - sb.append(this.max_indexes); - first = false; sb.append(")"); return sb.toString(); } @@ -108431,23 +110945,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_indexes_argsStandardSchemeFactory implements SchemeFactory { - public get_indexes_argsStandardScheme getScheme() { - return new get_indexes_argsStandardScheme(); + private static class get_primary_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_argsStandardScheme getScheme() { + return new get_primary_keys_argsStandardScheme(); } } - private static class get_indexes_argsStandardScheme extends StandardScheme { + private static class get_primary_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -108473,14 +110985,6 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args st org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_INDEXES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); - } else { - org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); - } - break; default: org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -108490,7 +110994,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_args st struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -108504,25 +111008,22 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_args s oprot.writeString(struct.tbl_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); - oprot.writeI16(struct.max_indexes); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_indexes_argsTupleSchemeFactory implements SchemeFactory { - public get_indexes_argsTupleScheme getScheme() { - return new get_indexes_argsTupleScheme(); + private static class get_primary_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_argsTupleScheme getScheme() { + return new get_primary_keys_argsTupleScheme(); } } - private static class get_indexes_argsTupleScheme extends TupleScheme { + private static class get_primary_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetDb_name()) { @@ -108531,25 +111032,19 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_args st if (struct.isSetTbl_name()) { optionals.set(1); } - if (struct.isSetMax_indexes()) { - optionals.set(2); - } - oprot.writeBitSet(optionals, 3); + oprot.writeBitSet(optionals, 2); if (struct.isSetDb_name()) { oprot.writeString(struct.db_name); } if (struct.isSetTbl_name()) { oprot.writeString(struct.tbl_name); } - if (struct.isSetMax_indexes()) { - oprot.writeI16(struct.max_indexes); - } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.db_name = iprot.readString(); struct.setDb_nameIsSet(true); @@ -108558,17 +111053,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args str struct.tbl_name = iprot.readString(); struct.setTbl_nameIsSet(true); } - if (incoming.get(2)) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); - } } } } - public static class get_indexes_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("get_indexes_result"); + public static class get_primary_keys_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("get_primary_keys_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); @@ -108576,13 +111067,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_args str private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_indexes_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_indexes_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_primary_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_primary_keys_resultTupleSchemeFactory()); } - private List success; // required - private NoSuchObjectException o1; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException 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 { @@ -108654,22 +111145,22 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Index.class)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLPrimaryKey.class)))); tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_indexes_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_primary_keys_result.class, metaDataMap); } - public get_indexes_result() { + public get_primary_keys_result() { } - public get_indexes_result( - List success, - NoSuchObjectException o1, - MetaException o2) + public get_primary_keys_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; @@ -108680,24 +111171,24 @@ public get_indexes_result( /** * Performs a deep copy on other. */ - public get_indexes_result(get_indexes_result other) { + public get_primary_keys_result(get_primary_keys_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success.size()); - for (Index other_element : other.success) { - __this__success.add(new Index(other_element)); + List __this__success = new ArrayList(other.success.size()); + for (SQLPrimaryKey other_element : other.success) { + __this__success.add(new SQLPrimaryKey(other_element)); } this.success = __this__success; } if (other.isSetO1()) { - this.o1 = new NoSuchObjectException(other.o1); + this.o1 = new MetaException(other.o1); } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_indexes_result deepCopy() { - return new get_indexes_result(this); + public get_primary_keys_result deepCopy() { + return new get_primary_keys_result(this); } @Override @@ -108711,22 +111202,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(Index elem) { + public void addToSuccess(SQLPrimaryKey elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -108745,11 +111236,11 @@ public void setSuccessIsSet(boolean value) { } } - public NoSuchObjectException getO1() { + public MetaException getO1() { return this.o1; } - public void setO1(NoSuchObjectException o1) { + public void setO1(MetaException o1) { this.o1 = o1; } @@ -108768,11 +111259,11 @@ public void setO1IsSet(boolean value) { } } - public MetaException getO2() { + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -108797,7 +111288,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); } break; @@ -108805,7 +111296,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO1(); } else { - setO1((NoSuchObjectException)value); + setO1((MetaException)value); } break; @@ -108813,7 +111304,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -108856,12 +111347,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_indexes_result) - return this.equals((get_indexes_result)that); + if (that instanceof get_primary_keys_result) + return this.equals((get_primary_keys_result)that); return false; } - public boolean equals(get_indexes_result that) { + public boolean equals(get_primary_keys_result that) { if (that == null) return false; @@ -108918,7 +111409,7 @@ public int hashCode() { } @Override - public int compareTo(get_indexes_result other) { + public int compareTo(get_primary_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -108972,7 +111463,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_indexes_result("); + StringBuilder sb = new StringBuilder("get_primary_keys_result("); boolean first = true; sb.append("success:"); @@ -109023,15 +111514,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_indexes_resultStandardSchemeFactory implements SchemeFactory { - public get_indexes_resultStandardScheme getScheme() { - return new get_indexes_resultStandardScheme(); + private static class get_primary_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_primary_keys_resultStandardScheme getScheme() { + return new get_primary_keys_resultStandardScheme(); } } - private static class get_indexes_resultStandardScheme extends StandardScheme { + private static class get_primary_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_primary_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -109044,14 +111535,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 _list1004 = iprot.readListBegin(); - struct.success = new ArrayList(_list1004.size); - Index _elem1005; - for (int _i1006 = 0; _i1006 < _list1004.size; ++_i1006) + org.apache.thrift.protocol.TList _list1020 = iprot.readListBegin(); + struct.success = new ArrayList(_list1020.size); + SQLPrimaryKey _elem1021; + for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) { - _elem1005 = new Index(); - _elem1005.read(iprot); - struct.success.add(_elem1005); + _elem1021 = new SQLPrimaryKey(); + _elem1021.read(iprot); + struct.success.add(_elem1021); } iprot.readListEnd(); } @@ -109062,7 +111553,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result break; case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } else { @@ -109071,7 +111562,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result break; case 2: // O2 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -109087,7 +111578,7 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_indexes_result struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_primary_keys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); @@ -109095,9 +111586,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 _iter1007 : struct.success) + for (SQLPrimaryKey _iter1023 : struct.success) { - _iter1007.write(oprot); + _iter1023.write(oprot); } oprot.writeListEnd(); } @@ -109119,16 +111610,16 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_indexes_result } - private static class get_indexes_resultTupleSchemeFactory implements SchemeFactory { - public get_indexes_resultTupleScheme getScheme() { - return new get_indexes_resultTupleScheme(); + private static class get_primary_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_primary_keys_resultTupleScheme getScheme() { + return new get_primary_keys_resultTupleScheme(); } } - private static class get_indexes_resultTupleScheme extends TupleScheme { + private static class get_primary_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { @@ -109144,9 +111635,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Index _iter1008 : struct.success) + for (SQLPrimaryKey _iter1024 : struct.success) { - _iter1008.write(oprot); + _iter1024.write(oprot); } } } @@ -109159,30 +111650,30 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_indexes_result } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_primary_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1009 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1009.size); - Index _elem1010; - for (int _i1011 = 0; _i1011 < _list1009.size; ++_i1011) + org.apache.thrift.protocol.TList _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1025.size); + SQLPrimaryKey _elem1026; + for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) { - _elem1010 = new Index(); - _elem1010.read(iprot); - struct.success.add(_elem1010); + _elem1026 = new SQLPrimaryKey(); + _elem1026.read(iprot); + struct.success.add(_elem1026); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o1 = new NoSuchObjectException(); + struct.o1 = new MetaException(); struct.o1.read(iprot); struct.setO1IsSet(true); } if (incoming.get(2)) { - struct.o2 = new MetaException(); + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -109191,28 +111682,31 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s } - public static class get_index_names_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("get_index_names_args"); + public static class get_foreign_keys_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("get_foreign_keys_args"); - private static final org.apache.thrift.protocol.TField DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("db_name", org.apache.thrift.protocol.TType.STRING, (short)1); - private static final org.apache.thrift.protocol.TField TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); - private static final org.apache.thrift.protocol.TField MAX_INDEXES_FIELD_DESC = new org.apache.thrift.protocol.TField("max_indexes", org.apache.thrift.protocol.TType.I16, (short)3); + private static final org.apache.thrift.protocol.TField PARENT_DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("parent_db_name", org.apache.thrift.protocol.TType.STRING, (short)1); + private static final org.apache.thrift.protocol.TField PARENT_TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("parent_tbl_name", org.apache.thrift.protocol.TType.STRING, (short)2); + private static final org.apache.thrift.protocol.TField FOREIGN_DB_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("foreign_db_name", org.apache.thrift.protocol.TType.STRING, (short)3); + private static final org.apache.thrift.protocol.TField FOREIGN_TBL_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("foreign_tbl_name", org.apache.thrift.protocol.TType.STRING, (short)4); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_names_argsStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_argsTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_argsStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_argsTupleSchemeFactory()); } - private String db_name; // required - private String tbl_name; // required - private short max_indexes; // required + private String parent_db_name; // required + private String parent_tbl_name; // required + private String foreign_db_name; // required + private String foreign_tbl_name; // 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 { - DB_NAME((short)1, "db_name"), - TBL_NAME((short)2, "tbl_name"), - MAX_INDEXES((short)3, "max_indexes"); + PARENT_DB_NAME((short)1, "parent_db_name"), + PARENT_TBL_NAME((short)2, "parent_tbl_name"), + FOREIGN_DB_NAME((short)3, "foreign_db_name"), + FOREIGN_TBL_NAME((short)4, "foreign_tbl_name"); private static final Map byName = new HashMap(); @@ -109227,12 +111721,14 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_indexes_result s */ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { - case 1: // DB_NAME - return DB_NAME; - case 2: // TBL_NAME - return TBL_NAME; - case 3: // MAX_INDEXES - return MAX_INDEXES; + case 1: // PARENT_DB_NAME + return PARENT_DB_NAME; + case 2: // PARENT_TBL_NAME + return PARENT_TBL_NAME; + case 3: // FOREIGN_DB_NAME + return FOREIGN_DB_NAME; + case 4: // FOREIGN_TBL_NAME + return FOREIGN_TBL_NAME; default: return null; } @@ -109273,155 +111769,190 @@ public String getFieldName() { } // isset id assignments - private static final int __MAX_INDEXES_ISSET_ID = 0; - private byte __isset_bitfield = 0; public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap; static { Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class); - tmpMap.put(_Fields.DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PARENT_DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("parent_db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + tmpMap.put(_Fields.PARENT_TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("parent_tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FOREIGN_DB_NAME, new org.apache.thrift.meta_data.FieldMetaData("foreign_db_name", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); + tmpMap.put(_Fields.FOREIGN_TBL_NAME, new org.apache.thrift.meta_data.FieldMetaData("foreign_tbl_name", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))); - tmpMap.put(_Fields.MAX_INDEXES, new org.apache.thrift.meta_data.FieldMetaData("max_indexes", org.apache.thrift.TFieldRequirementType.DEFAULT, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I16))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_args.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_args.class, metaDataMap); } - public get_index_names_args() { - this.max_indexes = (short)-1; - + public get_foreign_keys_args() { } - public get_index_names_args( - String db_name, - String tbl_name, - short max_indexes) + public get_foreign_keys_args( + String parent_db_name, + String parent_tbl_name, + String foreign_db_name, + String foreign_tbl_name) { this(); - this.db_name = db_name; - this.tbl_name = tbl_name; - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); + this.parent_db_name = parent_db_name; + this.parent_tbl_name = parent_tbl_name; + this.foreign_db_name = foreign_db_name; + this.foreign_tbl_name = foreign_tbl_name; } /** * Performs a deep copy on other. */ - public get_index_names_args(get_index_names_args other) { - __isset_bitfield = other.__isset_bitfield; - if (other.isSetDb_name()) { - this.db_name = other.db_name; + public get_foreign_keys_args(get_foreign_keys_args other) { + if (other.isSetParent_db_name()) { + this.parent_db_name = other.parent_db_name; } - if (other.isSetTbl_name()) { - this.tbl_name = other.tbl_name; + if (other.isSetParent_tbl_name()) { + this.parent_tbl_name = other.parent_tbl_name; + } + if (other.isSetForeign_db_name()) { + this.foreign_db_name = other.foreign_db_name; + } + if (other.isSetForeign_tbl_name()) { + this.foreign_tbl_name = other.foreign_tbl_name; } - this.max_indexes = other.max_indexes; } - public get_index_names_args deepCopy() { - return new get_index_names_args(this); + public get_foreign_keys_args deepCopy() { + return new get_foreign_keys_args(this); } @Override public void clear() { - this.db_name = null; - this.tbl_name = null; - this.max_indexes = (short)-1; + this.parent_db_name = null; + this.parent_tbl_name = null; + this.foreign_db_name = null; + this.foreign_tbl_name = null; + } + public String getParent_db_name() { + return this.parent_db_name; } - public String getDb_name() { - return this.db_name; + public void setParent_db_name(String parent_db_name) { + this.parent_db_name = parent_db_name; } - public void setDb_name(String db_name) { - this.db_name = db_name; + public void unsetParent_db_name() { + this.parent_db_name = null; } - public void unsetDb_name() { - this.db_name = null; + /** Returns true if field parent_db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetParent_db_name() { + return this.parent_db_name != null; } - /** Returns true if field db_name is set (has been assigned a value) and false otherwise */ - public boolean isSetDb_name() { - return this.db_name != null; + public void setParent_db_nameIsSet(boolean value) { + if (!value) { + this.parent_db_name = null; + } } - public void setDb_nameIsSet(boolean value) { + public String getParent_tbl_name() { + return this.parent_tbl_name; + } + + public void setParent_tbl_name(String parent_tbl_name) { + this.parent_tbl_name = parent_tbl_name; + } + + public void unsetParent_tbl_name() { + this.parent_tbl_name = null; + } + + /** Returns true if field parent_tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetParent_tbl_name() { + return this.parent_tbl_name != null; + } + + public void setParent_tbl_nameIsSet(boolean value) { if (!value) { - this.db_name = null; + this.parent_tbl_name = null; } } - public String getTbl_name() { - return this.tbl_name; + public String getForeign_db_name() { + return this.foreign_db_name; } - public void setTbl_name(String tbl_name) { - this.tbl_name = tbl_name; + public void setForeign_db_name(String foreign_db_name) { + this.foreign_db_name = foreign_db_name; } - public void unsetTbl_name() { - this.tbl_name = null; + public void unsetForeign_db_name() { + this.foreign_db_name = null; } - /** Returns true if field tbl_name is set (has been assigned a value) and false otherwise */ - public boolean isSetTbl_name() { - return this.tbl_name != null; + /** Returns true if field foreign_db_name is set (has been assigned a value) and false otherwise */ + public boolean isSetForeign_db_name() { + return this.foreign_db_name != null; } - public void setTbl_nameIsSet(boolean value) { + public void setForeign_db_nameIsSet(boolean value) { if (!value) { - this.tbl_name = null; + this.foreign_db_name = null; } } - public short getMax_indexes() { - return this.max_indexes; + public String getForeign_tbl_name() { + return this.foreign_tbl_name; } - public void setMax_indexes(short max_indexes) { - this.max_indexes = max_indexes; - setMax_indexesIsSet(true); + public void setForeign_tbl_name(String foreign_tbl_name) { + this.foreign_tbl_name = foreign_tbl_name; } - public void unsetMax_indexes() { - __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); + public void unsetForeign_tbl_name() { + this.foreign_tbl_name = null; } - /** Returns true if field max_indexes is set (has been assigned a value) and false otherwise */ - public boolean isSetMax_indexes() { - return EncodingUtils.testBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID); + /** Returns true if field foreign_tbl_name is set (has been assigned a value) and false otherwise */ + public boolean isSetForeign_tbl_name() { + return this.foreign_tbl_name != null; } - public void setMax_indexesIsSet(boolean value) { - __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __MAX_INDEXES_ISSET_ID, value); + public void setForeign_tbl_nameIsSet(boolean value) { + if (!value) { + this.foreign_tbl_name = null; + } } public void setFieldValue(_Fields field, Object value) { switch (field) { - case DB_NAME: + case PARENT_DB_NAME: if (value == null) { - unsetDb_name(); + unsetParent_db_name(); } else { - setDb_name((String)value); + setParent_db_name((String)value); } break; - case TBL_NAME: + case PARENT_TBL_NAME: if (value == null) { - unsetTbl_name(); + unsetParent_tbl_name(); } else { - setTbl_name((String)value); + setParent_tbl_name((String)value); } break; - case MAX_INDEXES: + case FOREIGN_DB_NAME: if (value == null) { - unsetMax_indexes(); + unsetForeign_db_name(); } else { - setMax_indexes((Short)value); + setForeign_db_name((String)value); + } + break; + + case FOREIGN_TBL_NAME: + if (value == null) { + unsetForeign_tbl_name(); + } else { + setForeign_tbl_name((String)value); } break; @@ -109430,14 +111961,17 @@ public void setFieldValue(_Fields field, Object value) { public Object getFieldValue(_Fields field) { switch (field) { - case DB_NAME: - return getDb_name(); + case PARENT_DB_NAME: + return getParent_db_name(); - case TBL_NAME: - return getTbl_name(); + case PARENT_TBL_NAME: + return getParent_tbl_name(); - case MAX_INDEXES: - return getMax_indexes(); + case FOREIGN_DB_NAME: + return getForeign_db_name(); + + case FOREIGN_TBL_NAME: + return getForeign_tbl_name(); } throw new IllegalStateException(); @@ -109450,12 +111984,14 @@ public boolean isSet(_Fields field) { } switch (field) { - case DB_NAME: - return isSetDb_name(); - case TBL_NAME: - return isSetTbl_name(); - case MAX_INDEXES: - return isSetMax_indexes(); + case PARENT_DB_NAME: + return isSetParent_db_name(); + case PARENT_TBL_NAME: + return isSetParent_tbl_name(); + case FOREIGN_DB_NAME: + return isSetForeign_db_name(); + case FOREIGN_TBL_NAME: + return isSetForeign_tbl_name(); } throw new IllegalStateException(); } @@ -109464,39 +112000,48 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_args) - return this.equals((get_index_names_args)that); + if (that instanceof get_foreign_keys_args) + return this.equals((get_foreign_keys_args)that); return false; } - public boolean equals(get_index_names_args that) { + public boolean equals(get_foreign_keys_args that) { if (that == null) return false; - boolean this_present_db_name = true && this.isSetDb_name(); - boolean that_present_db_name = true && that.isSetDb_name(); - if (this_present_db_name || that_present_db_name) { - if (!(this_present_db_name && that_present_db_name)) + boolean this_present_parent_db_name = true && this.isSetParent_db_name(); + boolean that_present_parent_db_name = true && that.isSetParent_db_name(); + if (this_present_parent_db_name || that_present_parent_db_name) { + if (!(this_present_parent_db_name && that_present_parent_db_name)) return false; - if (!this.db_name.equals(that.db_name)) + if (!this.parent_db_name.equals(that.parent_db_name)) return false; } - boolean this_present_tbl_name = true && this.isSetTbl_name(); - boolean that_present_tbl_name = true && that.isSetTbl_name(); - if (this_present_tbl_name || that_present_tbl_name) { - if (!(this_present_tbl_name && that_present_tbl_name)) + boolean this_present_parent_tbl_name = true && this.isSetParent_tbl_name(); + boolean that_present_parent_tbl_name = true && that.isSetParent_tbl_name(); + if (this_present_parent_tbl_name || that_present_parent_tbl_name) { + if (!(this_present_parent_tbl_name && that_present_parent_tbl_name)) return false; - if (!this.tbl_name.equals(that.tbl_name)) + if (!this.parent_tbl_name.equals(that.parent_tbl_name)) return false; } - boolean this_present_max_indexes = true; - boolean that_present_max_indexes = true; - if (this_present_max_indexes || that_present_max_indexes) { - if (!(this_present_max_indexes && that_present_max_indexes)) + boolean this_present_foreign_db_name = true && this.isSetForeign_db_name(); + boolean that_present_foreign_db_name = true && that.isSetForeign_db_name(); + if (this_present_foreign_db_name || that_present_foreign_db_name) { + if (!(this_present_foreign_db_name && that_present_foreign_db_name)) return false; - if (this.max_indexes != that.max_indexes) + if (!this.foreign_db_name.equals(that.foreign_db_name)) + return false; + } + + boolean this_present_foreign_tbl_name = true && this.isSetForeign_tbl_name(); + boolean that_present_foreign_tbl_name = true && that.isSetForeign_tbl_name(); + if (this_present_foreign_tbl_name || that_present_foreign_tbl_name) { + if (!(this_present_foreign_tbl_name && that_present_foreign_tbl_name)) + return false; + if (!this.foreign_tbl_name.equals(that.foreign_tbl_name)) return false; } @@ -109507,58 +112052,73 @@ public boolean equals(get_index_names_args that) { public int hashCode() { List list = new ArrayList(); - boolean present_db_name = true && (isSetDb_name()); - list.add(present_db_name); - if (present_db_name) - list.add(db_name); + boolean present_parent_db_name = true && (isSetParent_db_name()); + list.add(present_parent_db_name); + if (present_parent_db_name) + list.add(parent_db_name); - boolean present_tbl_name = true && (isSetTbl_name()); - list.add(present_tbl_name); - if (present_tbl_name) - list.add(tbl_name); + boolean present_parent_tbl_name = true && (isSetParent_tbl_name()); + list.add(present_parent_tbl_name); + if (present_parent_tbl_name) + list.add(parent_tbl_name); - boolean present_max_indexes = true; - list.add(present_max_indexes); - if (present_max_indexes) - list.add(max_indexes); + boolean present_foreign_db_name = true && (isSetForeign_db_name()); + list.add(present_foreign_db_name); + if (present_foreign_db_name) + list.add(foreign_db_name); + + boolean present_foreign_tbl_name = true && (isSetForeign_tbl_name()); + list.add(present_foreign_tbl_name); + if (present_foreign_tbl_name) + list.add(foreign_tbl_name); return list.hashCode(); } @Override - public int compareTo(get_index_names_args other) { + public int compareTo(get_foreign_keys_args other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; - lastComparison = Boolean.valueOf(isSetDb_name()).compareTo(other.isSetDb_name()); + lastComparison = Boolean.valueOf(isSetParent_db_name()).compareTo(other.isSetParent_db_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetDb_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.db_name, other.db_name); + if (isSetParent_db_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parent_db_name, other.parent_db_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetTbl_name()).compareTo(other.isSetTbl_name()); + lastComparison = Boolean.valueOf(isSetParent_tbl_name()).compareTo(other.isSetParent_tbl_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetTbl_name()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.tbl_name, other.tbl_name); + if (isSetParent_tbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.parent_tbl_name, other.parent_tbl_name); if (lastComparison != 0) { return lastComparison; } } - lastComparison = Boolean.valueOf(isSetMax_indexes()).compareTo(other.isSetMax_indexes()); + lastComparison = Boolean.valueOf(isSetForeign_db_name()).compareTo(other.isSetForeign_db_name()); if (lastComparison != 0) { return lastComparison; } - if (isSetMax_indexes()) { - lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.max_indexes, other.max_indexes); + if (isSetForeign_db_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreign_db_name, other.foreign_db_name); + if (lastComparison != 0) { + return lastComparison; + } + } + lastComparison = Boolean.valueOf(isSetForeign_tbl_name()).compareTo(other.isSetForeign_tbl_name()); + if (lastComparison != 0) { + return lastComparison; + } + if (isSetForeign_tbl_name()) { + lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.foreign_tbl_name, other.foreign_tbl_name); if (lastComparison != 0) { return lastComparison; } @@ -109580,27 +112140,39 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_args("); + StringBuilder sb = new StringBuilder("get_foreign_keys_args("); boolean first = true; - sb.append("db_name:"); - if (this.db_name == null) { + sb.append("parent_db_name:"); + if (this.parent_db_name == null) { sb.append("null"); } else { - sb.append(this.db_name); + sb.append(this.parent_db_name); } first = false; if (!first) sb.append(", "); - sb.append("tbl_name:"); - if (this.tbl_name == null) { + sb.append("parent_tbl_name:"); + if (this.parent_tbl_name == null) { sb.append("null"); } else { - sb.append(this.tbl_name); + sb.append(this.parent_tbl_name); } first = false; if (!first) sb.append(", "); - sb.append("max_indexes:"); - sb.append(this.max_indexes); + sb.append("foreign_db_name:"); + if (this.foreign_db_name == null) { + sb.append("null"); + } else { + sb.append(this.foreign_db_name); + } + first = false; + if (!first) sb.append(", "); + sb.append("foreign_tbl_name:"); + if (this.foreign_tbl_name == null) { + sb.append("null"); + } else { + sb.append(this.foreign_tbl_name); + } first = false; sb.append(")"); return sb.toString(); @@ -109621,23 +112193,21 @@ private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOExcept private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { - // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor. - __isset_bitfield = 0; read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } } - private static class get_index_names_argsStandardSchemeFactory implements SchemeFactory { - public get_index_names_argsStandardScheme getScheme() { - return new get_index_names_argsStandardScheme(); + private static class get_foreign_keys_argsStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsStandardScheme getScheme() { + return new get_foreign_keys_argsStandardScheme(); } } - private static class get_index_names_argsStandardScheme extends StandardScheme { + private static class get_foreign_keys_argsStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -109647,26 +112217,34 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg break; } switch (schemeField.id) { - case 1: // DB_NAME + case 1: // PARENT_DB_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.parent_db_name = iprot.readString(); + struct.setParent_db_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 2: // TBL_NAME + case 2: // PARENT_TBL_NAME if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.parent_tbl_name = iprot.readString(); + struct.setParent_tbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 3: // MAX_INDEXES - if (schemeField.type == org.apache.thrift.protocol.TType.I16) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + case 3: // FOREIGN_DB_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.foreign_db_name = iprot.readString(); + struct.setForeign_db_nameIsSet(true); + } else { + org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); + } + break; + case 4: // FOREIGN_TBL_NAME + if (schemeField.type == org.apache.thrift.protocol.TType.STRING) { + struct.foreign_tbl_name = iprot.readString(); + struct.setForeign_tbl_nameIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } @@ -109680,102 +112258,122 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_arg struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_args struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); - if (struct.db_name != null) { - oprot.writeFieldBegin(DB_NAME_FIELD_DESC); - oprot.writeString(struct.db_name); + if (struct.parent_db_name != null) { + oprot.writeFieldBegin(PARENT_DB_NAME_FIELD_DESC); + oprot.writeString(struct.parent_db_name); oprot.writeFieldEnd(); } - if (struct.tbl_name != null) { - oprot.writeFieldBegin(TBL_NAME_FIELD_DESC); - oprot.writeString(struct.tbl_name); + if (struct.parent_tbl_name != null) { + oprot.writeFieldBegin(PARENT_TBL_NAME_FIELD_DESC); + oprot.writeString(struct.parent_tbl_name); + oprot.writeFieldEnd(); + } + if (struct.foreign_db_name != null) { + oprot.writeFieldBegin(FOREIGN_DB_NAME_FIELD_DESC); + oprot.writeString(struct.foreign_db_name); + oprot.writeFieldEnd(); + } + if (struct.foreign_tbl_name != null) { + oprot.writeFieldBegin(FOREIGN_TBL_NAME_FIELD_DESC); + oprot.writeString(struct.foreign_tbl_name); oprot.writeFieldEnd(); } - oprot.writeFieldBegin(MAX_INDEXES_FIELD_DESC); - oprot.writeI16(struct.max_indexes); - oprot.writeFieldEnd(); oprot.writeFieldStop(); oprot.writeStructEnd(); } } - private static class get_index_names_argsTupleSchemeFactory implements SchemeFactory { - public get_index_names_argsTupleScheme getScheme() { - return new get_index_names_argsTupleScheme(); + private static class get_foreign_keys_argsTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_argsTupleScheme getScheme() { + return new get_foreign_keys_argsTupleScheme(); } } - private static class get_index_names_argsTupleScheme extends TupleScheme { + private static class get_foreign_keys_argsTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); - if (struct.isSetDb_name()) { + if (struct.isSetParent_db_name()) { optionals.set(0); } - if (struct.isSetTbl_name()) { + if (struct.isSetParent_tbl_name()) { optionals.set(1); } - if (struct.isSetMax_indexes()) { + if (struct.isSetForeign_db_name()) { optionals.set(2); } - oprot.writeBitSet(optionals, 3); - if (struct.isSetDb_name()) { - oprot.writeString(struct.db_name); + if (struct.isSetForeign_tbl_name()) { + optionals.set(3); } - if (struct.isSetTbl_name()) { - oprot.writeString(struct.tbl_name); + oprot.writeBitSet(optionals, 4); + if (struct.isSetParent_db_name()) { + oprot.writeString(struct.parent_db_name); } - if (struct.isSetMax_indexes()) { - oprot.writeI16(struct.max_indexes); + if (struct.isSetParent_tbl_name()) { + oprot.writeString(struct.parent_tbl_name); + } + if (struct.isSetForeign_db_name()) { + oprot.writeString(struct.foreign_db_name); + } + if (struct.isSetForeign_tbl_name()) { + oprot.writeString(struct.foreign_tbl_name); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_args struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_args struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(3); + BitSet incoming = iprot.readBitSet(4); if (incoming.get(0)) { - struct.db_name = iprot.readString(); - struct.setDb_nameIsSet(true); + struct.parent_db_name = iprot.readString(); + struct.setParent_db_nameIsSet(true); } if (incoming.get(1)) { - struct.tbl_name = iprot.readString(); - struct.setTbl_nameIsSet(true); + struct.parent_tbl_name = iprot.readString(); + struct.setParent_tbl_nameIsSet(true); } if (incoming.get(2)) { - struct.max_indexes = iprot.readI16(); - struct.setMax_indexesIsSet(true); + struct.foreign_db_name = iprot.readString(); + struct.setForeign_db_nameIsSet(true); + } + if (incoming.get(3)) { + struct.foreign_tbl_name = iprot.readString(); + struct.setForeign_tbl_nameIsSet(true); } } } } - public static class get_index_names_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("get_index_names_result"); + public static class get_foreign_keys_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("get_foreign_keys_result"); private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0); - private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O1_FIELD_DESC = new org.apache.thrift.protocol.TField("o1", org.apache.thrift.protocol.TType.STRUCT, (short)1); + private static final org.apache.thrift.protocol.TField O2_FIELD_DESC = new org.apache.thrift.protocol.TField("o2", org.apache.thrift.protocol.TType.STRUCT, (short)2); private static final Map, SchemeFactory> schemes = new HashMap, SchemeFactory>(); static { - schemes.put(StandardScheme.class, new get_index_names_resultStandardSchemeFactory()); - schemes.put(TupleScheme.class, new get_index_names_resultTupleSchemeFactory()); + schemes.put(StandardScheme.class, new get_foreign_keys_resultStandardSchemeFactory()); + schemes.put(TupleScheme.class, new get_foreign_keys_resultTupleSchemeFactory()); } - private List success; // required - private MetaException o2; // required + private List success; // required + private MetaException o1; // required + private NoSuchObjectException o2; // required /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */ public enum _Fields implements org.apache.thrift.TFieldIdEnum { SUCCESS((short)0, "success"), - O2((short)1, "o2"); + O1((short)1, "o1"), + O2((short)2, "o2"); private static final Map byName = new HashMap(); @@ -109792,7 +112390,9 @@ public static _Fields findByThriftId(int fieldId) { switch(fieldId) { case 0: // SUCCESS return SUCCESS; - case 1: // O2 + case 1: // O1 + return O1; + case 2: // O2 return O2; default: return null; @@ -109839,45 +112439,56 @@ 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.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, - new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)))); + new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, SQLForeignKey.class)))); + tmpMap.put(_Fields.O1, new org.apache.thrift.meta_data.FieldMetaData("o1", org.apache.thrift.TFieldRequirementType.DEFAULT, + new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); tmpMap.put(_Fields.O2, new org.apache.thrift.meta_data.FieldMetaData("o2", org.apache.thrift.TFieldRequirementType.DEFAULT, new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT))); metaDataMap = Collections.unmodifiableMap(tmpMap); - org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_index_names_result.class, metaDataMap); + org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(get_foreign_keys_result.class, metaDataMap); } - public get_index_names_result() { + public get_foreign_keys_result() { } - public get_index_names_result( - List success, - MetaException o2) + public get_foreign_keys_result( + List success, + MetaException o1, + NoSuchObjectException o2) { this(); this.success = success; + this.o1 = o1; this.o2 = o2; } /** * Performs a deep copy on other. */ - public get_index_names_result(get_index_names_result other) { + public get_foreign_keys_result(get_foreign_keys_result other) { if (other.isSetSuccess()) { - List __this__success = new ArrayList(other.success); + List __this__success = new ArrayList(other.success.size()); + for (SQLForeignKey other_element : other.success) { + __this__success.add(new SQLForeignKey(other_element)); + } this.success = __this__success; } + if (other.isSetO1()) { + this.o1 = new MetaException(other.o1); + } if (other.isSetO2()) { - this.o2 = new MetaException(other.o2); + this.o2 = new NoSuchObjectException(other.o2); } } - public get_index_names_result deepCopy() { - return new get_index_names_result(this); + public get_foreign_keys_result deepCopy() { + return new get_foreign_keys_result(this); } @Override public void clear() { this.success = null; + this.o1 = null; this.o2 = null; } @@ -109885,22 +112496,22 @@ public int getSuccessSize() { return (this.success == null) ? 0 : this.success.size(); } - public java.util.Iterator getSuccessIterator() { + public java.util.Iterator getSuccessIterator() { return (this.success == null) ? null : this.success.iterator(); } - public void addToSuccess(String elem) { + public void addToSuccess(SQLForeignKey elem) { if (this.success == null) { - this.success = new ArrayList(); + this.success = new ArrayList(); } this.success.add(elem); } - public List getSuccess() { + public List getSuccess() { return this.success; } - public void setSuccess(List success) { + public void setSuccess(List success) { this.success = success; } @@ -109919,11 +112530,34 @@ public void setSuccessIsSet(boolean value) { } } - public MetaException getO2() { + public MetaException getO1() { + return this.o1; + } + + public void setO1(MetaException o1) { + this.o1 = o1; + } + + public void unsetO1() { + this.o1 = null; + } + + /** Returns true if field o1 is set (has been assigned a value) and false otherwise */ + public boolean isSetO1() { + return this.o1 != null; + } + + public void setO1IsSet(boolean value) { + if (!value) { + this.o1 = null; + } + } + + public NoSuchObjectException getO2() { return this.o2; } - public void setO2(MetaException o2) { + public void setO2(NoSuchObjectException o2) { this.o2 = o2; } @@ -109948,7 +112582,15 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetSuccess(); } else { - setSuccess((List)value); + setSuccess((List)value); + } + break; + + case O1: + if (value == null) { + unsetO1(); + } else { + setO1((MetaException)value); } break; @@ -109956,7 +112598,7 @@ public void setFieldValue(_Fields field, Object value) { if (value == null) { unsetO2(); } else { - setO2((MetaException)value); + setO2((NoSuchObjectException)value); } break; @@ -109968,6 +112610,9 @@ public Object getFieldValue(_Fields field) { case SUCCESS: return getSuccess(); + case O1: + return getO1(); + case O2: return getO2(); @@ -109984,6 +112629,8 @@ public boolean isSet(_Fields field) { switch (field) { case SUCCESS: return isSetSuccess(); + case O1: + return isSetO1(); case O2: return isSetO2(); } @@ -109994,12 +112641,12 @@ public boolean isSet(_Fields field) { public boolean equals(Object that) { if (that == null) return false; - if (that instanceof get_index_names_result) - return this.equals((get_index_names_result)that); + if (that instanceof get_foreign_keys_result) + return this.equals((get_foreign_keys_result)that); return false; } - public boolean equals(get_index_names_result that) { + public boolean equals(get_foreign_keys_result that) { if (that == null) return false; @@ -110012,6 +112659,15 @@ public boolean equals(get_index_names_result that) { 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) { @@ -110033,6 +112689,11 @@ public int hashCode() { if (present_success) list.add(success); + 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) @@ -110042,7 +112703,7 @@ public int hashCode() { } @Override - public int compareTo(get_index_names_result other) { + public int compareTo(get_foreign_keys_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } @@ -110059,6 +112720,16 @@ public int compareTo(get_index_names_result other) { return lastComparison; } } + 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; @@ -110086,7 +112757,7 @@ public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache. @Override public String toString() { - StringBuilder sb = new StringBuilder("get_index_names_result("); + StringBuilder sb = new StringBuilder("get_foreign_keys_result("); boolean first = true; sb.append("success:"); @@ -110097,6 +112768,14 @@ public String toString() { } first = false; if (!first) sb.append(", "); + sb.append("o1:"); + if (this.o1 == null) { + sb.append("null"); + } else { + sb.append(this.o1); + } + first = false; + if (!first) sb.append(", "); sb.append("o2:"); if (this.o2 == null) { sb.append("null"); @@ -110129,15 +112808,15 @@ private void readObject(java.io.ObjectInputStream in) throws java.io.IOException } } - private static class get_index_names_resultStandardSchemeFactory implements SchemeFactory { - public get_index_names_resultStandardScheme getScheme() { - return new get_index_names_resultStandardScheme(); + private static class get_foreign_keys_resultStandardSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultStandardScheme getScheme() { + return new get_foreign_keys_resultStandardScheme(); } } - private static class get_index_names_resultStandardScheme extends StandardScheme { + private static class get_foreign_keys_resultStandardScheme extends StandardScheme { - public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol iprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { org.apache.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) @@ -110150,13 +112829,14 @@ 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 _list1012 = iprot.readListBegin(); - struct.success = new ArrayList(_list1012.size); - String _elem1013; - for (int _i1014 = 0; _i1014 < _list1012.size; ++_i1014) + org.apache.thrift.protocol.TList _list1028 = iprot.readListBegin(); + struct.success = new ArrayList(_list1028.size); + SQLForeignKey _elem1029; + for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) { - _elem1013 = iprot.readString(); - struct.success.add(_elem1013); + _elem1029 = new SQLForeignKey(); + _elem1029.read(iprot); + struct.success.add(_elem1029); } iprot.readListEnd(); } @@ -110165,9 +112845,18 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; - case 1: // O2 + case 1: // O1 if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + 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 NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } else { @@ -110183,22 +112872,27 @@ public void read(org.apache.thrift.protocol.TProtocol iprot, get_index_names_res struct.validate(); } - public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol oprot, get_foreign_keys_result struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.success != null) { oprot.writeFieldBegin(SUCCESS_FIELD_DESC); { - oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, struct.success.size())); - for (String _iter1015 : struct.success) + oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, struct.success.size())); + for (SQLForeignKey _iter1031 : struct.success) { - oprot.writeString(_iter1015); + _iter1031.write(oprot); } oprot.writeListEnd(); } oprot.writeFieldEnd(); } + if (struct.o1 != null) { + oprot.writeFieldBegin(O1_FIELD_DESC); + struct.o1.write(oprot); + oprot.writeFieldEnd(); + } if (struct.o2 != null) { oprot.writeFieldBegin(O2_FIELD_DESC); struct.o2.write(oprot); @@ -110210,58 +112904,70 @@ public void write(org.apache.thrift.protocol.TProtocol oprot, get_index_names_re } - private static class get_index_names_resultTupleSchemeFactory implements SchemeFactory { - public get_index_names_resultTupleScheme getScheme() { - return new get_index_names_resultTupleScheme(); + private static class get_foreign_keys_resultTupleSchemeFactory implements SchemeFactory { + public get_foreign_keys_resultTupleScheme getScheme() { + return new get_foreign_keys_resultTupleScheme(); } } - private static class get_index_names_resultTupleScheme extends TupleScheme { + private static class get_foreign_keys_resultTupleScheme extends TupleScheme { @Override - public void write(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void write(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetSuccess()) { optionals.set(0); } - if (struct.isSetO2()) { + if (struct.isSetO1()) { optionals.set(1); } - oprot.writeBitSet(optionals, 2); + if (struct.isSetO2()) { + optionals.set(2); + } + oprot.writeBitSet(optionals, 3); if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1016 : struct.success) + for (SQLForeignKey _iter1032 : struct.success) { - oprot.writeString(_iter1016); + _iter1032.write(oprot); } } } + if (struct.isSetO1()) { + struct.o1.write(oprot); + } if (struct.isSetO2()) { struct.o2.write(oprot); } } @Override - public void read(org.apache.thrift.protocol.TProtocol prot, get_index_names_result struct) throws org.apache.thrift.TException { + public void read(org.apache.thrift.protocol.TProtocol prot, get_foreign_keys_result struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; - BitSet incoming = iprot.readBitSet(2); + BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { { - org.apache.thrift.protocol.TList _list1017 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1017.size); - String _elem1018; - for (int _i1019 = 0; _i1019 < _list1017.size; ++_i1019) + org.apache.thrift.protocol.TList _list1033 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1033.size); + SQLForeignKey _elem1034; + for (int _i1035 = 0; _i1035 < _list1033.size; ++_i1035) { - _elem1018 = iprot.readString(); - struct.success.add(_elem1018); + _elem1034 = new SQLForeignKey(); + _elem1034.read(iprot); + struct.success.add(_elem1034); } } struct.setSuccessIsSet(true); } if (incoming.get(1)) { - struct.o2 = new MetaException(); + struct.o1 = new MetaException(); + struct.o1.read(iprot); + struct.setO1IsSet(true); + } + if (incoming.get(2)) { + struct.o2 = new NoSuchObjectException(); struct.o2.read(iprot); struct.setO2IsSet(true); } @@ -125990,13 +128696,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 _list1020 = iprot.readListBegin(); - struct.success = new ArrayList(_list1020.size); - String _elem1021; - for (int _i1022 = 0; _i1022 < _list1020.size; ++_i1022) + org.apache.thrift.protocol.TList _list1036 = iprot.readListBegin(); + struct.success = new ArrayList(_list1036.size); + String _elem1037; + for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) { - _elem1021 = iprot.readString(); - struct.success.add(_elem1021); + _elem1037 = iprot.readString(); + struct.success.add(_elem1037); } iprot.readListEnd(); } @@ -126031,9 +128737,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 _iter1023 : struct.success) + for (String _iter1039 : struct.success) { - oprot.writeString(_iter1023); + oprot.writeString(_iter1039); } oprot.writeListEnd(); } @@ -126072,9 +128778,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_functions_resul if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1024 : struct.success) + for (String _iter1040 : struct.success) { - oprot.writeString(_iter1024); + oprot.writeString(_iter1040); } } } @@ -126089,13 +128795,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 _list1025 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1025.size); - String _elem1026; - for (int _i1027 = 0; _i1027 < _list1025.size; ++_i1027) + org.apache.thrift.protocol.TList _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1041.size); + String _elem1042; + for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) { - _elem1026 = iprot.readString(); - struct.success.add(_elem1026); + _elem1042 = iprot.readString(); + struct.success.add(_elem1042); } } struct.setSuccessIsSet(true); @@ -130150,13 +132856,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 _list1028 = iprot.readListBegin(); - struct.success = new ArrayList(_list1028.size); - String _elem1029; - for (int _i1030 = 0; _i1030 < _list1028.size; ++_i1030) + org.apache.thrift.protocol.TList _list1044 = iprot.readListBegin(); + struct.success = new ArrayList(_list1044.size); + String _elem1045; + for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) { - _elem1029 = iprot.readString(); - struct.success.add(_elem1029); + _elem1045 = iprot.readString(); + struct.success.add(_elem1045); } iprot.readListEnd(); } @@ -130191,9 +132897,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 _iter1031 : struct.success) + for (String _iter1047 : struct.success) { - oprot.writeString(_iter1031); + oprot.writeString(_iter1047); } oprot.writeListEnd(); } @@ -130232,9 +132938,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, get_role_names_resu if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1032 : struct.success) + for (String _iter1048 : struct.success) { - oprot.writeString(_iter1032); + oprot.writeString(_iter1048); } } } @@ -130249,13 +132955,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 _list1033 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.success = new ArrayList(_list1033.size); - String _elem1034; - for (int _i1035 = 0; _i1035 < _list1033.size; ++_i1035) + org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); + struct.success = new ArrayList(_list1049.size); + String _elem1050; + for (int _i1051 = 0; _i1051 < _list1049.size; ++_i1051) { - _elem1034 = iprot.readString(); - struct.success.add(_elem1034); + _elem1050 = iprot.readString(); + struct.success.add(_elem1050); } } struct.setSuccessIsSet(true); @@ -133546,14 +136252,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 _list1036 = iprot.readListBegin(); - struct.success = new ArrayList(_list1036.size); - Role _elem1037; - for (int _i1038 = 0; _i1038 < _list1036.size; ++_i1038) + org.apache.thrift.protocol.TList _list1052 = iprot.readListBegin(); + struct.success = new ArrayList(_list1052.size); + Role _elem1053; + for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) { - _elem1037 = new Role(); - _elem1037.read(iprot); - struct.success.add(_elem1037); + _elem1053 = new Role(); + _elem1053.read(iprot); + struct.success.add(_elem1053); } iprot.readListEnd(); } @@ -133588,9 +136294,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 _iter1039 : struct.success) + for (Role _iter1055 : struct.success) { - _iter1039.write(oprot); + _iter1055.write(oprot); } oprot.writeListEnd(); } @@ -133629,9 +136335,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_roles_result s if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (Role _iter1040 : struct.success) + for (Role _iter1056 : struct.success) { - _iter1040.write(oprot); + _iter1056.write(oprot); } } } @@ -133646,14 +136352,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 _list1041 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1041.size); - Role _elem1042; - for (int _i1043 = 0; _i1043 < _list1041.size; ++_i1043) + org.apache.thrift.protocol.TList _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1057.size); + Role _elem1058; + for (int _i1059 = 0; _i1059 < _list1057.size; ++_i1059) { - _elem1042 = new Role(); - _elem1042.read(iprot); - struct.success.add(_elem1042); + _elem1058 = new Role(); + _elem1058.read(iprot); + struct.success.add(_elem1058); } } struct.setSuccessIsSet(true); @@ -136658,13 +139364,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 _list1044 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1044.size); - String _elem1045; - for (int _i1046 = 0; _i1046 < _list1044.size; ++_i1046) + org.apache.thrift.protocol.TList _list1060 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1060.size); + String _elem1061; + for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) { - _elem1045 = iprot.readString(); - struct.group_names.add(_elem1045); + _elem1061 = iprot.readString(); + struct.group_names.add(_elem1061); } iprot.readListEnd(); } @@ -136700,9 +139406,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 _iter1047 : struct.group_names) + for (String _iter1063 : struct.group_names) { - oprot.writeString(_iter1047); + oprot.writeString(_iter1063); } oprot.writeListEnd(); } @@ -136745,9 +139451,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 _iter1048 : struct.group_names) + for (String _iter1064 : struct.group_names) { - oprot.writeString(_iter1048); + oprot.writeString(_iter1064); } } } @@ -136768,13 +139474,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, get_privilege_set_ar } if (incoming.get(2)) { { - org.apache.thrift.protocol.TList _list1049 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = new ArrayList(_list1049.size); - String _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.STRING, iprot.readI32()); + struct.group_names = new ArrayList(_list1065.size); + String _elem1066; + for (int _i1067 = 0; _i1067 < _list1065.size; ++_i1067) { - _elem1050 = iprot.readString(); - struct.group_names.add(_elem1050); + _elem1066 = iprot.readString(); + struct.group_names.add(_elem1066); } } struct.setGroup_namesIsSet(true); @@ -138232,14 +140938,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 _list1052 = iprot.readListBegin(); - struct.success = new ArrayList(_list1052.size); - HiveObjectPrivilege _elem1053; - for (int _i1054 = 0; _i1054 < _list1052.size; ++_i1054) + org.apache.thrift.protocol.TList _list1068 = iprot.readListBegin(); + struct.success = new ArrayList(_list1068.size); + HiveObjectPrivilege _elem1069; + for (int _i1070 = 0; _i1070 < _list1068.size; ++_i1070) { - _elem1053 = new HiveObjectPrivilege(); - _elem1053.read(iprot); - struct.success.add(_elem1053); + _elem1069 = new HiveObjectPrivilege(); + _elem1069.read(iprot); + struct.success.add(_elem1069); } iprot.readListEnd(); } @@ -138274,9 +140980,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 _iter1055 : struct.success) + for (HiveObjectPrivilege _iter1071 : struct.success) { - _iter1055.write(oprot); + _iter1071.write(oprot); } oprot.writeListEnd(); } @@ -138315,9 +141021,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, list_privileges_res if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (HiveObjectPrivilege _iter1056 : struct.success) + for (HiveObjectPrivilege _iter1072 : struct.success) { - _iter1056.write(oprot); + _iter1072.write(oprot); } } } @@ -138332,14 +141038,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 _list1057 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); - struct.success = new ArrayList(_list1057.size); - HiveObjectPrivilege _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.STRUCT, iprot.readI32()); + struct.success = new ArrayList(_list1073.size); + HiveObjectPrivilege _elem1074; + for (int _i1075 = 0; _i1075 < _list1073.size; ++_i1075) { - _elem1058 = new HiveObjectPrivilege(); - _elem1058.read(iprot); - struct.success.add(_elem1058); + _elem1074 = new HiveObjectPrivilege(); + _elem1074.read(iprot); + struct.success.add(_elem1074); } } struct.setSuccessIsSet(true); @@ -141241,13 +143947,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 _list1060 = iprot.readListBegin(); - struct.group_names = new ArrayList(_list1060.size); - String _elem1061; - for (int _i1062 = 0; _i1062 < _list1060.size; ++_i1062) + org.apache.thrift.protocol.TList _list1076 = iprot.readListBegin(); + struct.group_names = new ArrayList(_list1076.size); + String _elem1077; + for (int _i1078 = 0; _i1078 < _list1076.size; ++_i1078) { - _elem1061 = iprot.readString(); - struct.group_names.add(_elem1061); + _elem1077 = iprot.readString(); + struct.group_names.add(_elem1077); } iprot.readListEnd(); } @@ -141278,9 +143984,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 _iter1063 : struct.group_names) + for (String _iter1079 : struct.group_names) { - oprot.writeString(_iter1063); + oprot.writeString(_iter1079); } oprot.writeListEnd(); } @@ -141317,9 +144023,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 _iter1064 : struct.group_names) + for (String _iter1080 : struct.group_names) { - oprot.writeString(_iter1064); + oprot.writeString(_iter1080); } } } @@ -141335,13 +144041,13 @@ public void read(org.apache.thrift.protocol.TProtocol prot, set_ugi_args struct) } if (incoming.get(1)) { { - org.apache.thrift.protocol.TList _list1065 = new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, iprot.readI32()); - struct.group_names = 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.group_names = new ArrayList(_list1081.size); + String _elem1082; + for (int _i1083 = 0; _i1083 < _list1081.size; ++_i1083) { - _elem1066 = iprot.readString(); - struct.group_names.add(_elem1066); + _elem1082 = iprot.readString(); + struct.group_names.add(_elem1082); } } struct.setGroup_namesIsSet(true); @@ -141744,13 +144450,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 _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(); } @@ -141785,9 +144491,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 _iter1071 : struct.success) + for (String _iter1087 : struct.success) { - oprot.writeString(_iter1071); + oprot.writeString(_iter1087); } oprot.writeListEnd(); } @@ -141826,9 +144532,9 @@ public void write(org.apache.thrift.protocol.TProtocol prot, set_ugi_result stru if (struct.isSetSuccess()) { { oprot.writeI32(struct.success.size()); - for (String _iter1072 : struct.success) + for (String _iter1088 : struct.success) { - oprot.writeString(_iter1072); + oprot.writeString(_iter1088); } } } @@ -141843,13 +144549,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 _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); diff --git a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php index a546247..48f7b6d 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php +++ b/metastore/src/gen/thrift/gen-php/metastore/ThriftHiveMetastore.php @@ -699,6 +699,24 @@ interface ThriftHiveMetastoreIf extends \FacebookServiceIf { */ public function get_index_names($db_name, $tbl_name, $max_indexes); /** + * @param string $db_name + * @param string $tbl_name + * @return \metastore\SQLPrimaryKey[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_primary_keys($db_name, $tbl_name); + /** + * @param string $parent_db_name + * @param string $parent_tbl_name + * @param string $foreign_db_name + * @param string $foreign_tbl_name + * @return \metastore\SQLForeignKey[] + * @throws \metastore\MetaException + * @throws \metastore\NoSuchObjectException + */ + public function get_foreign_keys($parent_db_name, $parent_tbl_name, $foreign_db_name, $foreign_tbl_name); + /** * @param \metastore\ColumnStatistics $stats_obj * @return bool * @throws \metastore\NoSuchObjectException @@ -5620,6 +5638,124 @@ class ThriftHiveMetastoreClient extends \FacebookServiceClient implements \metas throw new \Exception("get_index_names failed: unknown result"); } + public function get_primary_keys($db_name, $tbl_name) + { + $this->send_get_primary_keys($db_name, $tbl_name); + return $this->recv_get_primary_keys(); + } + + public function send_get_primary_keys($db_name, $tbl_name) + { + $args = new \metastore\ThriftHiveMetastore_get_primary_keys_args(); + $args->db_name = $db_name; + $args->tbl_name = $tbl_name; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_primary_keys', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_primary_keys', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_primary_keys() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_primary_keys_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_primary_keys_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_primary_keys failed: unknown result"); + } + + public function get_foreign_keys($parent_db_name, $parent_tbl_name, $foreign_db_name, $foreign_tbl_name) + { + $this->send_get_foreign_keys($parent_db_name, $parent_tbl_name, $foreign_db_name, $foreign_tbl_name); + return $this->recv_get_foreign_keys(); + } + + public function send_get_foreign_keys($parent_db_name, $parent_tbl_name, $foreign_db_name, $foreign_tbl_name) + { + $args = new \metastore\ThriftHiveMetastore_get_foreign_keys_args(); + $args->parent_db_name = $parent_db_name; + $args->parent_tbl_name = $parent_tbl_name; + $args->foreign_db_name = $foreign_db_name; + $args->foreign_tbl_name = $foreign_tbl_name; + $bin_accel = ($this->output_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_write_binary'); + if ($bin_accel) + { + thrift_protocol_write_binary($this->output_, 'get_foreign_keys', TMessageType::CALL, $args, $this->seqid_, $this->output_->isStrictWrite()); + } + else + { + $this->output_->writeMessageBegin('get_foreign_keys', TMessageType::CALL, $this->seqid_); + $args->write($this->output_); + $this->output_->writeMessageEnd(); + $this->output_->getTransport()->flush(); + } + } + + public function recv_get_foreign_keys() + { + $bin_accel = ($this->input_ instanceof TBinaryProtocolAccelerated) && function_exists('thrift_protocol_read_binary'); + if ($bin_accel) $result = thrift_protocol_read_binary($this->input_, '\metastore\ThriftHiveMetastore_get_foreign_keys_result', $this->input_->isStrictRead()); + else + { + $rseqid = 0; + $fname = null; + $mtype = 0; + + $this->input_->readMessageBegin($fname, $mtype, $rseqid); + if ($mtype == TMessageType::EXCEPTION) { + $x = new TApplicationException(); + $x->read($this->input_); + $this->input_->readMessageEnd(); + throw $x; + } + $result = new \metastore\ThriftHiveMetastore_get_foreign_keys_result(); + $result->read($this->input_); + $this->input_->readMessageEnd(); + } + if ($result->success !== null) { + return $result->success; + } + if ($result->o1 !== null) { + throw $result->o1; + } + if ($result->o2 !== null) { + throw $result->o2; + } + throw new \Exception("get_foreign_keys failed: unknown result"); + } + public function update_table_column_statistics(\metastore\ColumnStatistics $stats_obj) { $this->send_update_table_column_statistics($stats_obj); @@ -29133,6 +29269,554 @@ class ThriftHiveMetastore_get_index_names_result { } +class ThriftHiveMetastore_get_primary_keys_args { + static $_TSPEC; + + /** + * @var string + */ + public $db_name = null; + /** + * @var string + */ + public $tbl_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'tbl_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['db_name'])) { + $this->db_name = $vals['db_name']; + } + if (isset($vals['tbl_name'])) { + $this->tbl_name = $vals['tbl_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_primary_keys_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::STRING) { + $xfer += $input->readString($this->db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_primary_keys_args'); + if ($this->db_name !== null) { + $xfer += $output->writeFieldBegin('db_name', TType::STRING, 1); + $xfer += $output->writeString($this->db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->tbl_name !== null) { + $xfer += $output->writeFieldBegin('tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->tbl_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_primary_keys_result { + static $_TSPEC; + + /** + * @var \metastore\SQLPrimaryKey[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLPrimaryKey', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_primary_keys_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size901 = 0; + $_etype904 = 0; + $xfer += $input->readListBegin($_etype904, $_size901); + for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + { + $elem906 = null; + $elem906 = new \metastore\SQLPrimaryKey(); + $xfer += $elem906->read($input); + $this->success []= $elem906; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_primary_keys_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter907) + { + $xfer += $iter907->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_foreign_keys_args { + static $_TSPEC; + + /** + * @var string + */ + public $parent_db_name = null; + /** + * @var string + */ + public $parent_tbl_name = null; + /** + * @var string + */ + public $foreign_db_name = null; + /** + * @var string + */ + public $foreign_tbl_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'parent_db_name', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'parent_tbl_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'foreign_db_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'foreign_tbl_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['parent_db_name'])) { + $this->parent_db_name = $vals['parent_db_name']; + } + if (isset($vals['parent_tbl_name'])) { + $this->parent_tbl_name = $vals['parent_tbl_name']; + } + if (isset($vals['foreign_db_name'])) { + $this->foreign_db_name = $vals['foreign_db_name']; + } + if (isset($vals['foreign_tbl_name'])) { + $this->foreign_tbl_name = $vals['foreign_tbl_name']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_foreign_keys_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::STRING) { + $xfer += $input->readString($this->parent_db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->parent_tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->foreign_db_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->foreign_tbl_name); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_foreign_keys_args'); + if ($this->parent_db_name !== null) { + $xfer += $output->writeFieldBegin('parent_db_name', TType::STRING, 1); + $xfer += $output->writeString($this->parent_db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->parent_tbl_name !== null) { + $xfer += $output->writeFieldBegin('parent_tbl_name', TType::STRING, 2); + $xfer += $output->writeString($this->parent_tbl_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->foreign_db_name !== null) { + $xfer += $output->writeFieldBegin('foreign_db_name', TType::STRING, 3); + $xfer += $output->writeString($this->foreign_db_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->foreign_tbl_name !== null) { + $xfer += $output->writeFieldBegin('foreign_tbl_name', TType::STRING, 4); + $xfer += $output->writeString($this->foreign_tbl_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class ThriftHiveMetastore_get_foreign_keys_result { + static $_TSPEC; + + /** + * @var \metastore\SQLForeignKey[] + */ + public $success = null; + /** + * @var \metastore\MetaException + */ + public $o1 = null; + /** + * @var \metastore\NoSuchObjectException + */ + public $o2 = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 0 => array( + 'var' => 'success', + 'type' => TType::LST, + 'etype' => TType::STRUCT, + 'elem' => array( + 'type' => TType::STRUCT, + 'class' => '\metastore\SQLForeignKey', + ), + ), + 1 => array( + 'var' => 'o1', + 'type' => TType::STRUCT, + 'class' => '\metastore\MetaException', + ), + 2 => array( + 'var' => 'o2', + 'type' => TType::STRUCT, + 'class' => '\metastore\NoSuchObjectException', + ), + ); + } + if (is_array($vals)) { + if (isset($vals['success'])) { + $this->success = $vals['success']; + } + if (isset($vals['o1'])) { + $this->o1 = $vals['o1']; + } + if (isset($vals['o2'])) { + $this->o2 = $vals['o2']; + } + } + } + + public function getName() { + return 'ThriftHiveMetastore_get_foreign_keys_result'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 0: + if ($ftype == TType::LST) { + $this->success = array(); + $_size908 = 0; + $_etype911 = 0; + $xfer += $input->readListBegin($_etype911, $_size908); + for ($_i912 = 0; $_i912 < $_size908; ++$_i912) + { + $elem913 = null; + $elem913 = new \metastore\SQLForeignKey(); + $xfer += $elem913->read($input); + $this->success []= $elem913; + } + $xfer += $input->readListEnd(); + } else { + $xfer += $input->skip($ftype); + } + break; + case 1: + if ($ftype == TType::STRUCT) { + $this->o1 = new \metastore\MetaException(); + $xfer += $this->o1->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRUCT) { + $this->o2 = new \metastore\NoSuchObjectException(); + $xfer += $this->o2->read($input); + } else { + $xfer += $input->skip($ftype); + } + break; + default: + $xfer += $input->skip($ftype); + break; + } + $xfer += $input->readFieldEnd(); + } + $xfer += $input->readStructEnd(); + return $xfer; + } + + public function write($output) { + $xfer = 0; + $xfer += $output->writeStructBegin('ThriftHiveMetastore_get_foreign_keys_result'); + if ($this->success !== null) { + if (!is_array($this->success)) { + throw new TProtocolException('Bad type in structure.', TProtocolException::INVALID_DATA); + } + $xfer += $output->writeFieldBegin('success', TType::LST, 0); + { + $output->writeListBegin(TType::STRUCT, count($this->success)); + { + foreach ($this->success as $iter914) + { + $xfer += $iter914->write($output); + } + } + $output->writeListEnd(); + } + $xfer += $output->writeFieldEnd(); + } + if ($this->o1 !== null) { + $xfer += $output->writeFieldBegin('o1', TType::STRUCT, 1); + $xfer += $this->o1->write($output); + $xfer += $output->writeFieldEnd(); + } + if ($this->o2 !== null) { + $xfer += $output->writeFieldBegin('o2', TType::STRUCT, 2); + $xfer += $this->o2->write($output); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class ThriftHiveMetastore_update_table_column_statistics_args { static $_TSPEC; @@ -32588,14 +33272,14 @@ class ThriftHiveMetastore_get_functions_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size901 = 0; - $_etype904 = 0; - $xfer += $input->readListBegin($_etype904, $_size901); - for ($_i905 = 0; $_i905 < $_size901; ++$_i905) + $_size915 = 0; + $_etype918 = 0; + $xfer += $input->readListBegin($_etype918, $_size915); + for ($_i919 = 0; $_i919 < $_size915; ++$_i919) { - $elem906 = null; - $xfer += $input->readString($elem906); - $this->success []= $elem906; + $elem920 = null; + $xfer += $input->readString($elem920); + $this->success []= $elem920; } $xfer += $input->readListEnd(); } else { @@ -32631,9 +33315,9 @@ class ThriftHiveMetastore_get_functions_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter907) + foreach ($this->success as $iter921) { - $xfer += $output->writeString($iter907); + $xfer += $output->writeString($iter921); } } $output->writeListEnd(); @@ -33502,14 +34186,14 @@ class ThriftHiveMetastore_get_role_names_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size908 = 0; - $_etype911 = 0; - $xfer += $input->readListBegin($_etype911, $_size908); - for ($_i912 = 0; $_i912 < $_size908; ++$_i912) + $_size922 = 0; + $_etype925 = 0; + $xfer += $input->readListBegin($_etype925, $_size922); + for ($_i926 = 0; $_i926 < $_size922; ++$_i926) { - $elem913 = null; - $xfer += $input->readString($elem913); - $this->success []= $elem913; + $elem927 = null; + $xfer += $input->readString($elem927); + $this->success []= $elem927; } $xfer += $input->readListEnd(); } else { @@ -33545,9 +34229,9 @@ class ThriftHiveMetastore_get_role_names_result { { $output->writeListBegin(TType::STRING, count($this->success)); { - foreach ($this->success as $iter914) + foreach ($this->success as $iter928) { - $xfer += $output->writeString($iter914); + $xfer += $output->writeString($iter928); } } $output->writeListEnd(); @@ -34238,15 +34922,15 @@ class ThriftHiveMetastore_list_roles_result { case 0: if ($ftype == TType::LST) { $this->success = array(); - $_size915 = 0; - $_etype918 = 0; - $xfer += $input->readListBegin($_etype918, $_size915); - for ($_i919 = 0; $_i919 < $_size915; ++$_i919) + $_size929 = 0; + $_etype932 = 0; + $xfer += $input->readListBegin($_etype932, $_size929); + for ($_i933 = 0; $_i933 < $_size929; ++$_i933) { - $elem920 = null; - $elem920 = new \metastore\Role(); - $xfer += $elem920->read($input); - $this->success []= $elem920; + $elem934 = null; + $elem934 = new \metastore\Role(); + $xfer += $elem934->read($input); + $this->success []= $elem934; } $xfer += $input->readListEnd(); } else { @@ -34282,9 +34966,9 @@ class ThriftHiveMetastore_list_roles_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter921) + foreach ($this->success as $iter935) { - $xfer += $iter921->write($output); + $xfer += $iter935->write($output); } } $output->writeListEnd(); @@ -34946,14 +35630,14 @@ class ThriftHiveMetastore_get_privilege_set_args { case 3: if ($ftype == TType::LST) { $this->group_names = 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; - $xfer += $input->readString($elem927); - $this->group_names []= $elem927; + $elem941 = null; + $xfer += $input->readString($elem941); + $this->group_names []= $elem941; } $xfer += $input->readListEnd(); } else { @@ -34994,9 +35678,9 @@ class ThriftHiveMetastore_get_privilege_set_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter928) + foreach ($this->group_names as $iter942) { - $xfer += $output->writeString($iter928); + $xfer += $output->writeString($iter942); } } $output->writeListEnd(); @@ -35304,15 +35988,15 @@ class ThriftHiveMetastore_list_privileges_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; - $elem934 = new \metastore\HiveObjectPrivilege(); - $xfer += $elem934->read($input); - $this->success []= $elem934; + $elem948 = null; + $elem948 = new \metastore\HiveObjectPrivilege(); + $xfer += $elem948->read($input); + $this->success []= $elem948; } $xfer += $input->readListEnd(); } else { @@ -35348,9 +36032,9 @@ class ThriftHiveMetastore_list_privileges_result { { $output->writeListBegin(TType::STRUCT, count($this->success)); { - foreach ($this->success as $iter935) + foreach ($this->success as $iter949) { - $xfer += $iter935->write($output); + $xfer += $iter949->write($output); } } $output->writeListEnd(); @@ -35982,14 +36666,14 @@ class ThriftHiveMetastore_set_ugi_args { case 2: if ($ftype == TType::LST) { $this->group_names = 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->group_names []= $elem941; + $elem955 = null; + $xfer += $input->readString($elem955); + $this->group_names []= $elem955; } $xfer += $input->readListEnd(); } else { @@ -36022,9 +36706,9 @@ class ThriftHiveMetastore_set_ugi_args { { $output->writeListBegin(TType::STRING, count($this->group_names)); { - foreach ($this->group_names as $iter942) + foreach ($this->group_names as $iter956) { - $xfer += $output->writeString($iter942); + $xfer += $output->writeString($iter956); } } $output->writeListEnd(); @@ -36100,14 +36784,14 @@ class ThriftHiveMetastore_set_ugi_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 { @@ -36143,9 +36827,9 @@ class ThriftHiveMetastore_set_ugi_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(); diff --git a/metastore/src/gen/thrift/gen-php/metastore/Types.php b/metastore/src/gen/thrift/gen-php/metastore/Types.php index 488a920..3627bde 100644 --- a/metastore/src/gen/thrift/gen-php/metastore/Types.php +++ b/metastore/src/gen/thrift/gen-php/metastore/Types.php @@ -369,6 +369,478 @@ class FieldSchema { } +class SQLPrimaryKey { + static $_TSPEC; + + /** + * @var string + */ + public $table_schem = null; + /** + * @var string + */ + public $table_name = null; + /** + * @var string + */ + public $column_name = null; + /** + * @var int + */ + public $key_seq = null; + /** + * @var string + */ + public $pk_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'table_schem', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'table_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'column_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'key_seq', + 'type' => TType::I32, + ), + 5 => array( + 'var' => 'pk_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['table_schem'])) { + $this->table_schem = $vals['table_schem']; + } + if (isset($vals['table_name'])) { + $this->table_name = $vals['table_name']; + } + if (isset($vals['column_name'])) { + $this->column_name = $vals['column_name']; + } + if (isset($vals['key_seq'])) { + $this->key_seq = $vals['key_seq']; + } + if (isset($vals['pk_name'])) { + $this->pk_name = $vals['pk_name']; + } + } + } + + public function getName() { + return 'SQLPrimaryKey'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->table_schem); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->table_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->column_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->key_seq); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->pk_name); + } 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('SQLPrimaryKey'); + if ($this->table_schem !== null) { + $xfer += $output->writeFieldBegin('table_schem', TType::STRING, 1); + $xfer += $output->writeString($this->table_schem); + $xfer += $output->writeFieldEnd(); + } + if ($this->table_name !== null) { + $xfer += $output->writeFieldBegin('table_name', TType::STRING, 2); + $xfer += $output->writeString($this->table_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->column_name !== null) { + $xfer += $output->writeFieldBegin('column_name', TType::STRING, 3); + $xfer += $output->writeString($this->column_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->key_seq !== null) { + $xfer += $output->writeFieldBegin('key_seq', TType::I32, 4); + $xfer += $output->writeI32($this->key_seq); + $xfer += $output->writeFieldEnd(); + } + if ($this->pk_name !== null) { + $xfer += $output->writeFieldBegin('pk_name', TType::STRING, 5); + $xfer += $output->writeString($this->pk_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + +class SQLForeignKey { + static $_TSPEC; + + /** + * @var string + */ + public $pktable_schem = null; + /** + * @var string + */ + public $pktable_name = null; + /** + * @var string + */ + public $pkcolumn_name = null; + /** + * @var string + */ + public $fktable_schem = null; + /** + * @var string + */ + public $fktable_name = null; + /** + * @var string + */ + public $fkcolumn_name = null; + /** + * @var int + */ + public $key_seq = null; + /** + * @var int + */ + public $update_rule = null; + /** + * @var int + */ + public $delete_rule = null; + /** + * @var string + */ + public $fk_name = null; + /** + * @var string + */ + public $pk_name = null; + + public function __construct($vals=null) { + if (!isset(self::$_TSPEC)) { + self::$_TSPEC = array( + 1 => array( + 'var' => 'pktable_schem', + 'type' => TType::STRING, + ), + 2 => array( + 'var' => 'pktable_name', + 'type' => TType::STRING, + ), + 3 => array( + 'var' => 'pkcolumn_name', + 'type' => TType::STRING, + ), + 4 => array( + 'var' => 'fktable_schem', + 'type' => TType::STRING, + ), + 5 => array( + 'var' => 'fktable_name', + 'type' => TType::STRING, + ), + 6 => array( + 'var' => 'fkcolumn_name', + 'type' => TType::STRING, + ), + 7 => array( + 'var' => 'key_seq', + 'type' => TType::I32, + ), + 8 => array( + 'var' => 'update_rule', + 'type' => TType::I32, + ), + 9 => array( + 'var' => 'delete_rule', + 'type' => TType::I32, + ), + 10 => array( + 'var' => 'fk_name', + 'type' => TType::STRING, + ), + 11 => array( + 'var' => 'pk_name', + 'type' => TType::STRING, + ), + ); + } + if (is_array($vals)) { + if (isset($vals['pktable_schem'])) { + $this->pktable_schem = $vals['pktable_schem']; + } + if (isset($vals['pktable_name'])) { + $this->pktable_name = $vals['pktable_name']; + } + if (isset($vals['pkcolumn_name'])) { + $this->pkcolumn_name = $vals['pkcolumn_name']; + } + if (isset($vals['fktable_schem'])) { + $this->fktable_schem = $vals['fktable_schem']; + } + if (isset($vals['fktable_name'])) { + $this->fktable_name = $vals['fktable_name']; + } + if (isset($vals['fkcolumn_name'])) { + $this->fkcolumn_name = $vals['fkcolumn_name']; + } + if (isset($vals['key_seq'])) { + $this->key_seq = $vals['key_seq']; + } + if (isset($vals['update_rule'])) { + $this->update_rule = $vals['update_rule']; + } + if (isset($vals['delete_rule'])) { + $this->delete_rule = $vals['delete_rule']; + } + if (isset($vals['fk_name'])) { + $this->fk_name = $vals['fk_name']; + } + if (isset($vals['pk_name'])) { + $this->pk_name = $vals['pk_name']; + } + } + } + + public function getName() { + return 'SQLForeignKey'; + } + + public function read($input) + { + $xfer = 0; + $fname = null; + $ftype = 0; + $fid = 0; + $xfer += $input->readStructBegin($fname); + while (true) + { + $xfer += $input->readFieldBegin($fname, $ftype, $fid); + if ($ftype == TType::STOP) { + break; + } + switch ($fid) + { + case 1: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->pktable_schem); + } else { + $xfer += $input->skip($ftype); + } + break; + case 2: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->pktable_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 3: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->pkcolumn_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 4: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->fktable_schem); + } else { + $xfer += $input->skip($ftype); + } + break; + case 5: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->fktable_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 6: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->fkcolumn_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 7: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->key_seq); + } else { + $xfer += $input->skip($ftype); + } + break; + case 8: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->update_rule); + } else { + $xfer += $input->skip($ftype); + } + break; + case 9: + if ($ftype == TType::I32) { + $xfer += $input->readI32($this->delete_rule); + } else { + $xfer += $input->skip($ftype); + } + break; + case 10: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->fk_name); + } else { + $xfer += $input->skip($ftype); + } + break; + case 11: + if ($ftype == TType::STRING) { + $xfer += $input->readString($this->pk_name); + } 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('SQLForeignKey'); + if ($this->pktable_schem !== null) { + $xfer += $output->writeFieldBegin('pktable_schem', TType::STRING, 1); + $xfer += $output->writeString($this->pktable_schem); + $xfer += $output->writeFieldEnd(); + } + if ($this->pktable_name !== null) { + $xfer += $output->writeFieldBegin('pktable_name', TType::STRING, 2); + $xfer += $output->writeString($this->pktable_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->pkcolumn_name !== null) { + $xfer += $output->writeFieldBegin('pkcolumn_name', TType::STRING, 3); + $xfer += $output->writeString($this->pkcolumn_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->fktable_schem !== null) { + $xfer += $output->writeFieldBegin('fktable_schem', TType::STRING, 4); + $xfer += $output->writeString($this->fktable_schem); + $xfer += $output->writeFieldEnd(); + } + if ($this->fktable_name !== null) { + $xfer += $output->writeFieldBegin('fktable_name', TType::STRING, 5); + $xfer += $output->writeString($this->fktable_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->fkcolumn_name !== null) { + $xfer += $output->writeFieldBegin('fkcolumn_name', TType::STRING, 6); + $xfer += $output->writeString($this->fkcolumn_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->key_seq !== null) { + $xfer += $output->writeFieldBegin('key_seq', TType::I32, 7); + $xfer += $output->writeI32($this->key_seq); + $xfer += $output->writeFieldEnd(); + } + if ($this->update_rule !== null) { + $xfer += $output->writeFieldBegin('update_rule', TType::I32, 8); + $xfer += $output->writeI32($this->update_rule); + $xfer += $output->writeFieldEnd(); + } + if ($this->delete_rule !== null) { + $xfer += $output->writeFieldBegin('delete_rule', TType::I32, 9); + $xfer += $output->writeI32($this->delete_rule); + $xfer += $output->writeFieldEnd(); + } + if ($this->fk_name !== null) { + $xfer += $output->writeFieldBegin('fk_name', TType::STRING, 10); + $xfer += $output->writeString($this->fk_name); + $xfer += $output->writeFieldEnd(); + } + if ($this->pk_name !== null) { + $xfer += $output->writeFieldBegin('pk_name', TType::STRING, 11); + $xfer += $output->writeString($this->pk_name); + $xfer += $output->writeFieldEnd(); + } + $xfer += $output->writeFieldStop(); + $xfer += $output->writeStructEnd(); + return $xfer; + } + +} + class Type { static $_TSPEC; 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 9a53d56..1a9a0cf 100755 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore-remote @@ -101,6 +101,8 @@ if len(sys.argv) <= 1 or sys.argv[1] == '--help': print(' Index get_index_by_name(string db_name, string tbl_name, string index_name)') print(' get_indexes(string db_name, string tbl_name, i16 max_indexes)') print(' get_index_names(string db_name, string tbl_name, i16 max_indexes)') + print(' get_primary_keys(string db_name, string tbl_name)') + print(' get_foreign_keys(string parent_db_name, string parent_tbl_name, string foreign_db_name, string foreign_tbl_name)') print(' bool update_table_column_statistics(ColumnStatistics stats_obj)') print(' bool update_partition_column_statistics(ColumnStatistics stats_obj)') print(' ColumnStatistics get_table_column_statistics(string db_name, string tbl_name, string col_name)') @@ -690,6 +692,18 @@ elif cmd == 'get_index_names': sys.exit(1) pp.pprint(client.get_index_names(args[0],args[1],eval(args[2]),)) +elif cmd == 'get_primary_keys': + if len(args) != 2: + print('get_primary_keys requires 2 args') + sys.exit(1) + pp.pprint(client.get_primary_keys(args[0],args[1],)) + +elif cmd == 'get_foreign_keys': + if len(args) != 4: + print('get_foreign_keys requires 4 args') + sys.exit(1) + pp.pprint(client.get_foreign_keys(args[0],args[1],args[2],args[3],)) + elif cmd == 'update_table_column_statistics': if len(args) != 1: print('update_table_column_statistics requires 1 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 0da1acf..1aaa709 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ThriftHiveMetastore.py @@ -695,6 +695,24 @@ def get_index_names(self, db_name, tbl_name, max_indexes): """ pass + def get_primary_keys(self, db_name, tbl_name): + """ + Parameters: + - db_name + - tbl_name + """ + pass + + def get_foreign_keys(self, parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name): + """ + Parameters: + - parent_db_name + - parent_tbl_name + - foreign_db_name + - foreign_tbl_name + """ + pass + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -4084,6 +4102,84 @@ def recv_get_index_names(self): raise result.o2 raise TApplicationException(TApplicationException.MISSING_RESULT, "get_index_names failed: unknown result") + def get_primary_keys(self, db_name, tbl_name): + """ + Parameters: + - db_name + - tbl_name + """ + self.send_get_primary_keys(db_name, tbl_name) + return self.recv_get_primary_keys() + + def send_get_primary_keys(self, db_name, tbl_name): + self._oprot.writeMessageBegin('get_primary_keys', TMessageType.CALL, self._seqid) + args = get_primary_keys_args() + args.db_name = db_name + args.tbl_name = tbl_name + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_primary_keys(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_primary_keys_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_primary_keys failed: unknown result") + + def get_foreign_keys(self, parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name): + """ + Parameters: + - parent_db_name + - parent_tbl_name + - foreign_db_name + - foreign_tbl_name + """ + self.send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name) + return self.recv_get_foreign_keys() + + def send_get_foreign_keys(self, parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name): + self._oprot.writeMessageBegin('get_foreign_keys', TMessageType.CALL, self._seqid) + args = get_foreign_keys_args() + args.parent_db_name = parent_db_name + args.parent_tbl_name = parent_tbl_name + args.foreign_db_name = foreign_db_name + args.foreign_tbl_name = foreign_tbl_name + args.write(self._oprot) + self._oprot.writeMessageEnd() + self._oprot.trans.flush() + + def recv_get_foreign_keys(self): + iprot = self._iprot + (fname, mtype, rseqid) = iprot.readMessageBegin() + if mtype == TMessageType.EXCEPTION: + x = TApplicationException() + x.read(iprot) + iprot.readMessageEnd() + raise x + result = get_foreign_keys_result() + result.read(iprot) + iprot.readMessageEnd() + if result.success is not None: + return result.success + if result.o1 is not None: + raise result.o1 + if result.o2 is not None: + raise result.o2 + raise TApplicationException(TApplicationException.MISSING_RESULT, "get_foreign_keys failed: unknown result") + def update_table_column_statistics(self, stats_obj): """ Parameters: @@ -6127,6 +6223,8 @@ def __init__(self, handler): self._processMap["get_index_by_name"] = Processor.process_get_index_by_name self._processMap["get_indexes"] = Processor.process_get_indexes self._processMap["get_index_names"] = Processor.process_get_index_names + self._processMap["get_primary_keys"] = Processor.process_get_primary_keys + self._processMap["get_foreign_keys"] = Processor.process_get_foreign_keys self._processMap["update_table_column_statistics"] = Processor.process_update_table_column_statistics self._processMap["update_partition_column_statistics"] = Processor.process_update_partition_column_statistics self._processMap["get_table_column_statistics"] = Processor.process_get_table_column_statistics @@ -8189,6 +8287,56 @@ def process_get_index_names(self, seqid, iprot, oprot): oprot.writeMessageEnd() oprot.trans.flush() + def process_get_primary_keys(self, seqid, iprot, oprot): + args = get_primary_keys_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_primary_keys_result() + try: + result.success = self._handler.get_primary_keys(args.db_name, args.tbl_name) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException 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("get_primary_keys", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + + def process_get_foreign_keys(self, seqid, iprot, oprot): + args = get_foreign_keys_args() + args.read(iprot) + iprot.readMessageEnd() + result = get_foreign_keys_result() + try: + result.success = self._handler.get_foreign_keys(args.parent_db_name, args.parent_tbl_name, args.foreign_db_name, args.foreign_tbl_name) + msg_type = TMessageType.REPLY + except (TTransport.TTransportException, KeyboardInterrupt, SystemExit): + raise + except MetaException as o1: + msg_type = TMessageType.REPLY + result.o1 = o1 + except NoSuchObjectException 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("get_foreign_keys", msg_type, seqid) + result.write(oprot) + oprot.writeMessageEnd() + oprot.trans.flush() + def process_update_table_column_statistics(self, seqid, iprot, oprot): args = update_table_column_statistics_args() args.read(iprot) @@ -23958,6 +24106,390 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class get_primary_keys_args: + """ + Attributes: + - db_name + - tbl_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'db_name', None, None, ), # 1 + (2, TType.STRING, 'tbl_name', None, None, ), # 2 + ) + + def __init__(self, db_name=None, tbl_name=None,): + self.db_name = db_name + self.tbl_name = tbl_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.tbl_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_primary_keys_args') + if self.db_name is not None: + oprot.writeFieldBegin('db_name', TType.STRING, 1) + oprot.writeString(self.db_name) + oprot.writeFieldEnd() + if self.tbl_name is not None: + oprot.writeFieldBegin('tbl_name', TType.STRING, 2) + oprot.writeString(self.tbl_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.db_name) + value = (value * 31) ^ hash(self.tbl_name) + 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 get_primary_keys_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(SQLPrimaryKey, SQLPrimaryKey.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype901, _size898) = iprot.readListBegin() + for _i902 in xrange(_size898): + _elem903 = SQLPrimaryKey() + _elem903.read(iprot) + self.success.append(_elem903) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_primary_keys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter904 in self.success: + iter904.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + 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 get_foreign_keys_args: + """ + Attributes: + - parent_db_name + - parent_tbl_name + - foreign_db_name + - foreign_tbl_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'parent_db_name', None, None, ), # 1 + (2, TType.STRING, 'parent_tbl_name', None, None, ), # 2 + (3, TType.STRING, 'foreign_db_name', None, None, ), # 3 + (4, TType.STRING, 'foreign_tbl_name', None, None, ), # 4 + ) + + def __init__(self, parent_db_name=None, parent_tbl_name=None, foreign_db_name=None, foreign_tbl_name=None,): + self.parent_db_name = parent_db_name + self.parent_tbl_name = parent_tbl_name + self.foreign_db_name = foreign_db_name + self.foreign_tbl_name = foreign_tbl_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.parent_db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.parent_tbl_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.foreign_db_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.foreign_tbl_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_foreign_keys_args') + if self.parent_db_name is not None: + oprot.writeFieldBegin('parent_db_name', TType.STRING, 1) + oprot.writeString(self.parent_db_name) + oprot.writeFieldEnd() + if self.parent_tbl_name is not None: + oprot.writeFieldBegin('parent_tbl_name', TType.STRING, 2) + oprot.writeString(self.parent_tbl_name) + oprot.writeFieldEnd() + if self.foreign_db_name is not None: + oprot.writeFieldBegin('foreign_db_name', TType.STRING, 3) + oprot.writeString(self.foreign_db_name) + oprot.writeFieldEnd() + if self.foreign_tbl_name is not None: + oprot.writeFieldBegin('foreign_tbl_name', TType.STRING, 4) + oprot.writeString(self.foreign_tbl_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.parent_db_name) + value = (value * 31) ^ hash(self.parent_tbl_name) + value = (value * 31) ^ hash(self.foreign_db_name) + value = (value * 31) ^ hash(self.foreign_tbl_name) + 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 get_foreign_keys_result: + """ + Attributes: + - success + - o1 + - o2 + """ + + thrift_spec = ( + (0, TType.LIST, 'success', (TType.STRUCT,(SQLForeignKey, SQLForeignKey.thrift_spec)), None, ), # 0 + (1, TType.STRUCT, 'o1', (MetaException, MetaException.thrift_spec), None, ), # 1 + (2, TType.STRUCT, 'o2', (NoSuchObjectException, NoSuchObjectException.thrift_spec), None, ), # 2 + ) + + def __init__(self, success=None, o1=None, o2=None,): + self.success = success + self.o1 = o1 + self.o2 = o2 + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 0: + if ftype == TType.LIST: + self.success = [] + (_etype908, _size905) = iprot.readListBegin() + for _i909 in xrange(_size905): + _elem910 = SQLForeignKey() + _elem910.read(iprot) + self.success.append(_elem910) + iprot.readListEnd() + else: + iprot.skip(ftype) + elif fid == 1: + if ftype == TType.STRUCT: + self.o1 = MetaException() + self.o1.read(iprot) + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRUCT: + self.o2 = NoSuchObjectException() + self.o2.read(iprot) + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('get_foreign_keys_result') + if self.success is not None: + oprot.writeFieldBegin('success', TType.LIST, 0) + oprot.writeListBegin(TType.STRUCT, len(self.success)) + for iter911 in self.success: + iter911.write(oprot) + oprot.writeListEnd() + oprot.writeFieldEnd() + if self.o1 is not None: + oprot.writeFieldBegin('o1', TType.STRUCT, 1) + self.o1.write(oprot) + oprot.writeFieldEnd() + if self.o2 is not None: + oprot.writeFieldBegin('o2', TType.STRUCT, 2) + self.o2.write(oprot) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.success) + 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 update_table_column_statistics_args: """ Attributes: @@ -26475,10 +27007,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype901, _size898) = iprot.readListBegin() - for _i902 in xrange(_size898): - _elem903 = iprot.readString() - self.success.append(_elem903) + (_etype915, _size912) = iprot.readListBegin() + for _i916 in xrange(_size912): + _elem917 = iprot.readString() + self.success.append(_elem917) iprot.readListEnd() else: iprot.skip(ftype) @@ -26501,8 +27033,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 iter904 in self.success: - oprot.writeString(iter904) + for iter918 in self.success: + oprot.writeString(iter918) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27190,10 +27722,10 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype908, _size905) = iprot.readListBegin() - for _i909 in xrange(_size905): - _elem910 = iprot.readString() - self.success.append(_elem910) + (_etype922, _size919) = iprot.readListBegin() + for _i923 in xrange(_size919): + _elem924 = iprot.readString() + self.success.append(_elem924) iprot.readListEnd() else: iprot.skip(ftype) @@ -27216,8 +27748,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 iter911 in self.success: - oprot.writeString(iter911) + for iter925 in self.success: + oprot.writeString(iter925) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -27731,11 +28263,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype915, _size912) = iprot.readListBegin() - for _i916 in xrange(_size912): - _elem917 = Role() - _elem917.read(iprot) - self.success.append(_elem917) + (_etype929, _size926) = iprot.readListBegin() + for _i930 in xrange(_size926): + _elem931 = Role() + _elem931.read(iprot) + self.success.append(_elem931) iprot.readListEnd() else: iprot.skip(ftype) @@ -27758,8 +28290,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 iter918 in self.success: - iter918.write(oprot) + for iter932 in self.success: + iter932.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -28268,10 +28800,10 @@ def read(self, iprot): elif fid == 3: if ftype == TType.LIST: self.group_names = [] - (_etype922, _size919) = iprot.readListBegin() - for _i923 in xrange(_size919): - _elem924 = iprot.readString() - self.group_names.append(_elem924) + (_etype936, _size933) = iprot.readListBegin() + for _i937 in xrange(_size933): + _elem938 = iprot.readString() + self.group_names.append(_elem938) iprot.readListEnd() else: iprot.skip(ftype) @@ -28296,8 +28828,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 iter925 in self.group_names: - oprot.writeString(iter925) + for iter939 in self.group_names: + oprot.writeString(iter939) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -28524,11 +29056,11 @@ def read(self, iprot): if fid == 0: if ftype == TType.LIST: self.success = [] - (_etype929, _size926) = iprot.readListBegin() - for _i930 in xrange(_size926): - _elem931 = HiveObjectPrivilege() - _elem931.read(iprot) - self.success.append(_elem931) + (_etype943, _size940) = iprot.readListBegin() + for _i944 in xrange(_size940): + _elem945 = HiveObjectPrivilege() + _elem945.read(iprot) + self.success.append(_elem945) iprot.readListEnd() else: iprot.skip(ftype) @@ -28551,8 +29083,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 iter932 in self.success: - iter932.write(oprot) + for iter946 in self.success: + iter946.write(oprot) oprot.writeListEnd() oprot.writeFieldEnd() if self.o1 is not None: @@ -29050,10 +29582,10 @@ def read(self, iprot): elif fid == 2: if ftype == TType.LIST: self.group_names = [] - (_etype936, _size933) = iprot.readListBegin() - for _i937 in xrange(_size933): - _elem938 = iprot.readString() - self.group_names.append(_elem938) + (_etype950, _size947) = iprot.readListBegin() + for _i951 in xrange(_size947): + _elem952 = iprot.readString() + self.group_names.append(_elem952) iprot.readListEnd() else: iprot.skip(ftype) @@ -29074,8 +29606,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 iter939 in self.group_names: - oprot.writeString(iter939) + for iter953 in self.group_names: + oprot.writeString(iter953) oprot.writeListEnd() oprot.writeFieldEnd() oprot.writeFieldStop() @@ -29130,10 +29662,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) @@ -29156,8 +29688,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: 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 10eaf4a..24ea738 100644 --- a/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py +++ b/metastore/src/gen/thrift/gen-py/hive_metastore/ttypes.py @@ -394,6 +394,318 @@ def __eq__(self, other): def __ne__(self, other): return not (self == other) +class SQLPrimaryKey: + """ + Attributes: + - table_schem + - table_name + - column_name + - key_seq + - pk_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'table_schem', None, None, ), # 1 + (2, TType.STRING, 'table_name', None, None, ), # 2 + (3, TType.STRING, 'column_name', None, None, ), # 3 + (4, TType.I32, 'key_seq', None, None, ), # 4 + (5, TType.STRING, 'pk_name', None, None, ), # 5 + ) + + def __init__(self, table_schem=None, table_name=None, column_name=None, key_seq=None, pk_name=None,): + self.table_schem = table_schem + self.table_name = table_name + self.column_name = column_name + self.key_seq = key_seq + self.pk_name = pk_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.table_schem = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.table_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.column_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.I32: + self.key_seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.pk_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('SQLPrimaryKey') + if self.table_schem is not None: + oprot.writeFieldBegin('table_schem', TType.STRING, 1) + oprot.writeString(self.table_schem) + oprot.writeFieldEnd() + if self.table_name is not None: + oprot.writeFieldBegin('table_name', TType.STRING, 2) + oprot.writeString(self.table_name) + oprot.writeFieldEnd() + if self.column_name is not None: + oprot.writeFieldBegin('column_name', TType.STRING, 3) + oprot.writeString(self.column_name) + oprot.writeFieldEnd() + if self.key_seq is not None: + oprot.writeFieldBegin('key_seq', TType.I32, 4) + oprot.writeI32(self.key_seq) + oprot.writeFieldEnd() + if self.pk_name is not None: + oprot.writeFieldBegin('pk_name', TType.STRING, 5) + oprot.writeString(self.pk_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.table_schem) + value = (value * 31) ^ hash(self.table_name) + value = (value * 31) ^ hash(self.column_name) + value = (value * 31) ^ hash(self.key_seq) + value = (value * 31) ^ hash(self.pk_name) + 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 SQLForeignKey: + """ + Attributes: + - pktable_schem + - pktable_name + - pkcolumn_name + - fktable_schem + - fktable_name + - fkcolumn_name + - key_seq + - update_rule + - delete_rule + - fk_name + - pk_name + """ + + thrift_spec = ( + None, # 0 + (1, TType.STRING, 'pktable_schem', None, None, ), # 1 + (2, TType.STRING, 'pktable_name', None, None, ), # 2 + (3, TType.STRING, 'pkcolumn_name', None, None, ), # 3 + (4, TType.STRING, 'fktable_schem', None, None, ), # 4 + (5, TType.STRING, 'fktable_name', None, None, ), # 5 + (6, TType.STRING, 'fkcolumn_name', None, None, ), # 6 + (7, TType.I32, 'key_seq', None, None, ), # 7 + (8, TType.I32, 'update_rule', None, None, ), # 8 + (9, TType.I32, 'delete_rule', None, None, ), # 9 + (10, TType.STRING, 'fk_name', None, None, ), # 10 + (11, TType.STRING, 'pk_name', None, None, ), # 11 + ) + + def __init__(self, pktable_schem=None, pktable_name=None, pkcolumn_name=None, fktable_schem=None, fktable_name=None, fkcolumn_name=None, key_seq=None, update_rule=None, delete_rule=None, fk_name=None, pk_name=None,): + self.pktable_schem = pktable_schem + self.pktable_name = pktable_name + self.pkcolumn_name = pkcolumn_name + self.fktable_schem = fktable_schem + self.fktable_name = fktable_name + self.fkcolumn_name = fkcolumn_name + self.key_seq = key_seq + self.update_rule = update_rule + self.delete_rule = delete_rule + self.fk_name = fk_name + self.pk_name = pk_name + + def read(self, iprot): + if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None: + fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec)) + return + iprot.readStructBegin() + while True: + (fname, ftype, fid) = iprot.readFieldBegin() + if ftype == TType.STOP: + break + if fid == 1: + if ftype == TType.STRING: + self.pktable_schem = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 2: + if ftype == TType.STRING: + self.pktable_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 3: + if ftype == TType.STRING: + self.pkcolumn_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 4: + if ftype == TType.STRING: + self.fktable_schem = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 5: + if ftype == TType.STRING: + self.fktable_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 6: + if ftype == TType.STRING: + self.fkcolumn_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 7: + if ftype == TType.I32: + self.key_seq = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 8: + if ftype == TType.I32: + self.update_rule = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 9: + if ftype == TType.I32: + self.delete_rule = iprot.readI32() + else: + iprot.skip(ftype) + elif fid == 10: + if ftype == TType.STRING: + self.fk_name = iprot.readString() + else: + iprot.skip(ftype) + elif fid == 11: + if ftype == TType.STRING: + self.pk_name = iprot.readString() + else: + iprot.skip(ftype) + else: + iprot.skip(ftype) + iprot.readFieldEnd() + iprot.readStructEnd() + + def write(self, oprot): + if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None: + oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec))) + return + oprot.writeStructBegin('SQLForeignKey') + if self.pktable_schem is not None: + oprot.writeFieldBegin('pktable_schem', TType.STRING, 1) + oprot.writeString(self.pktable_schem) + oprot.writeFieldEnd() + if self.pktable_name is not None: + oprot.writeFieldBegin('pktable_name', TType.STRING, 2) + oprot.writeString(self.pktable_name) + oprot.writeFieldEnd() + if self.pkcolumn_name is not None: + oprot.writeFieldBegin('pkcolumn_name', TType.STRING, 3) + oprot.writeString(self.pkcolumn_name) + oprot.writeFieldEnd() + if self.fktable_schem is not None: + oprot.writeFieldBegin('fktable_schem', TType.STRING, 4) + oprot.writeString(self.fktable_schem) + oprot.writeFieldEnd() + if self.fktable_name is not None: + oprot.writeFieldBegin('fktable_name', TType.STRING, 5) + oprot.writeString(self.fktable_name) + oprot.writeFieldEnd() + if self.fkcolumn_name is not None: + oprot.writeFieldBegin('fkcolumn_name', TType.STRING, 6) + oprot.writeString(self.fkcolumn_name) + oprot.writeFieldEnd() + if self.key_seq is not None: + oprot.writeFieldBegin('key_seq', TType.I32, 7) + oprot.writeI32(self.key_seq) + oprot.writeFieldEnd() + if self.update_rule is not None: + oprot.writeFieldBegin('update_rule', TType.I32, 8) + oprot.writeI32(self.update_rule) + oprot.writeFieldEnd() + if self.delete_rule is not None: + oprot.writeFieldBegin('delete_rule', TType.I32, 9) + oprot.writeI32(self.delete_rule) + oprot.writeFieldEnd() + if self.fk_name is not None: + oprot.writeFieldBegin('fk_name', TType.STRING, 10) + oprot.writeString(self.fk_name) + oprot.writeFieldEnd() + if self.pk_name is not None: + oprot.writeFieldBegin('pk_name', TType.STRING, 11) + oprot.writeString(self.pk_name) + oprot.writeFieldEnd() + oprot.writeFieldStop() + oprot.writeStructEnd() + + def validate(self): + return + + + def __hash__(self): + value = 17 + value = (value * 31) ^ hash(self.pktable_schem) + value = (value * 31) ^ hash(self.pktable_name) + value = (value * 31) ^ hash(self.pkcolumn_name) + value = (value * 31) ^ hash(self.fktable_schem) + value = (value * 31) ^ hash(self.fktable_name) + value = (value * 31) ^ hash(self.fkcolumn_name) + value = (value * 31) ^ hash(self.key_seq) + value = (value * 31) ^ hash(self.update_rule) + value = (value * 31) ^ hash(self.delete_rule) + value = (value * 31) ^ hash(self.fk_name) + value = (value * 31) ^ hash(self.pk_name) + 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 Type: """ Attributes: 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 1cf40ae..0144599 100644 --- a/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb +++ b/metastore/src/gen/thrift/gen-rb/hive_metastore_types.rb @@ -145,6 +145,66 @@ class FieldSchema ::Thrift::Struct.generate_accessors self end +class SQLPrimaryKey + include ::Thrift::Struct, ::Thrift::Struct_Union + TABLE_SCHEM = 1 + TABLE_NAME = 2 + COLUMN_NAME = 3 + KEY_SEQ = 4 + PK_NAME = 5 + + FIELDS = { + TABLE_SCHEM => {:type => ::Thrift::Types::STRING, :name => 'table_schem'}, + TABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'table_name'}, + COLUMN_NAME => {:type => ::Thrift::Types::STRING, :name => 'column_name'}, + KEY_SEQ => {:type => ::Thrift::Types::I32, :name => 'key_seq'}, + PK_NAME => {:type => ::Thrift::Types::STRING, :name => 'pk_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + +class SQLForeignKey + include ::Thrift::Struct, ::Thrift::Struct_Union + PKTABLE_SCHEM = 1 + PKTABLE_NAME = 2 + PKCOLUMN_NAME = 3 + FKTABLE_SCHEM = 4 + FKTABLE_NAME = 5 + FKCOLUMN_NAME = 6 + KEY_SEQ = 7 + UPDATE_RULE = 8 + DELETE_RULE = 9 + FK_NAME = 10 + PK_NAME = 11 + + FIELDS = { + PKTABLE_SCHEM => {:type => ::Thrift::Types::STRING, :name => 'pktable_schem'}, + PKTABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'pktable_name'}, + PKCOLUMN_NAME => {:type => ::Thrift::Types::STRING, :name => 'pkcolumn_name'}, + FKTABLE_SCHEM => {:type => ::Thrift::Types::STRING, :name => 'fktable_schem'}, + FKTABLE_NAME => {:type => ::Thrift::Types::STRING, :name => 'fktable_name'}, + FKCOLUMN_NAME => {:type => ::Thrift::Types::STRING, :name => 'fkcolumn_name'}, + KEY_SEQ => {:type => ::Thrift::Types::I32, :name => 'key_seq'}, + UPDATE_RULE => {:type => ::Thrift::Types::I32, :name => 'update_rule'}, + DELETE_RULE => {:type => ::Thrift::Types::I32, :name => 'delete_rule'}, + FK_NAME => {:type => ::Thrift::Types::STRING, :name => 'fk_name'}, + PK_NAME => {:type => ::Thrift::Types::STRING, :name => 'pk_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self +end + class Type include ::Thrift::Struct, ::Thrift::Struct_Union NAME = 1 diff --git a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb index de316ae..545fd79 100644 --- a/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb +++ b/metastore/src/gen/thrift/gen-rb/thrift_hive_metastore.rb @@ -1324,6 +1324,40 @@ module ThriftHiveMetastore raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_index_names failed: unknown result') end + def get_primary_keys(db_name, tbl_name) + send_get_primary_keys(db_name, tbl_name) + return recv_get_primary_keys() + end + + def send_get_primary_keys(db_name, tbl_name) + send_message('get_primary_keys', Get_primary_keys_args, :db_name => db_name, :tbl_name => tbl_name) + end + + def recv_get_primary_keys() + result = receive_message(Get_primary_keys_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_primary_keys failed: unknown result') + end + + def get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name) + send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name) + return recv_get_foreign_keys() + end + + def send_get_foreign_keys(parent_db_name, parent_tbl_name, foreign_db_name, foreign_tbl_name) + send_message('get_foreign_keys', Get_foreign_keys_args, :parent_db_name => parent_db_name, :parent_tbl_name => parent_tbl_name, :foreign_db_name => foreign_db_name, :foreign_tbl_name => foreign_tbl_name) + end + + def recv_get_foreign_keys() + result = receive_message(Get_foreign_keys_result) + return result.success unless result.success.nil? + raise result.o1 unless result.o1.nil? + raise result.o2 unless result.o2.nil? + raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'get_foreign_keys failed: unknown result') + end + def update_table_column_statistics(stats_obj) send_update_table_column_statistics(stats_obj) return recv_update_table_column_statistics() @@ -3310,6 +3344,32 @@ module ThriftHiveMetastore write_result(result, oprot, 'get_index_names', seqid) end + def process_get_primary_keys(seqid, iprot, oprot) + args = read_args(iprot, Get_primary_keys_args) + result = Get_primary_keys_result.new() + begin + result.success = @handler.get_primary_keys(args.db_name, args.tbl_name) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_primary_keys', seqid) + end + + def process_get_foreign_keys(seqid, iprot, oprot) + args = read_args(iprot, Get_foreign_keys_args) + result = Get_foreign_keys_result.new() + begin + result.success = @handler.get_foreign_keys(args.parent_db_name, args.parent_tbl_name, args.foreign_db_name, args.foreign_tbl_name) + rescue ::MetaException => o1 + result.o1 = o1 + rescue ::NoSuchObjectException => o2 + result.o2 = o2 + end + write_result(result, oprot, 'get_foreign_keys', seqid) + end + def process_update_table_column_statistics(seqid, iprot, oprot) args = read_args(iprot, Update_table_column_statistics_args) result = Update_table_column_statistics_result.new() @@ -7017,6 +7077,86 @@ module ThriftHiveMetastore ::Thrift::Struct.generate_accessors self end + class Get_primary_keys_args + include ::Thrift::Struct, ::Thrift::Struct_Union + DB_NAME = 1 + TBL_NAME = 2 + + FIELDS = { + DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'db_name'}, + TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'tbl_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_primary_keys_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLPrimaryKey}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_foreign_keys_args + include ::Thrift::Struct, ::Thrift::Struct_Union + PARENT_DB_NAME = 1 + PARENT_TBL_NAME = 2 + FOREIGN_DB_NAME = 3 + FOREIGN_TBL_NAME = 4 + + FIELDS = { + PARENT_DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'parent_db_name'}, + PARENT_TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'parent_tbl_name'}, + FOREIGN_DB_NAME => {:type => ::Thrift::Types::STRING, :name => 'foreign_db_name'}, + FOREIGN_TBL_NAME => {:type => ::Thrift::Types::STRING, :name => 'foreign_tbl_name'} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + + class Get_foreign_keys_result + include ::Thrift::Struct, ::Thrift::Struct_Union + SUCCESS = 0 + O1 = 1 + O2 = 2 + + FIELDS = { + SUCCESS => {:type => ::Thrift::Types::LIST, :name => 'success', :element => {:type => ::Thrift::Types::STRUCT, :class => ::SQLForeignKey}}, + O1 => {:type => ::Thrift::Types::STRUCT, :name => 'o1', :class => ::MetaException}, + O2 => {:type => ::Thrift::Types::STRUCT, :name => 'o2', :class => ::NoSuchObjectException} + } + + def struct_fields; FIELDS; end + + def validate + end + + ::Thrift::Struct.generate_accessors self + end + class Update_table_column_statistics_args include ::Thrift::Struct, ::Thrift::Struct_Union STATS_OBJ = 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 cdaba8d..b8d82c6 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java @@ -26,6 +26,7 @@ import com.google.common.collect.ImmutableListMultimap; import com.google.common.collect.Lists; import com.google.common.collect.Multimaps; + import org.apache.commons.cli.OptionBuilder; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; @@ -111,6 +112,7 @@ import org.slf4j.LoggerFactory; import javax.jdo.JDOException; + import java.io.IOException; import java.nio.ByteBuffer; import java.text.DateFormat; @@ -5951,6 +5953,22 @@ public GetChangeVersionResult get_change_version(GetChangeVersionRequest req) throws TException { return new GetChangeVersionResult(getMS().getChangeVersion(req.getTopic())); } + + @Override + public List get_primary_keys(String db_name, String tbl_name) + throws MetaException, NoSuchObjectException, TException { + // Return empty list for now + return new ArrayList(); + } + + @Override + public List get_foreign_keys(String parent_db_name, + String parent_tbl_name, String foreign_db_name, + String foreign_tbl_name) throws MetaException, + NoSuchObjectException, TException { + // Return empty list for now + return new ArrayList(); + } } 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 b5c4d1d..9c72e58 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.java @@ -98,6 +98,8 @@ import org.apache.hadoop.hive.metastore.api.PutFileMetadataRequest; import org.apache.hadoop.hive.metastore.api.RequestPartsSpec; import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; @@ -134,6 +136,7 @@ import org.slf4j.LoggerFactory; import javax.security.auth.login.LoginException; + import java.io.IOException; import java.lang.reflect.Constructor; import java.lang.reflect.InvocationHandler; @@ -1526,6 +1529,21 @@ public Index getIndex(String dbName, String tblName, String indexName) return filterHook.filterIndexes(client.get_indexes(dbName, tblName, max)); } + @Override + public List getPrimaryKeys(String dbName, String tblName) + throws MetaException, NoSuchObjectException, TException { + return client.get_primary_keys(dbName, tblName); + } + + @Override + public List getForeignKeys(String parentDbName, + String parentTblName, String foreignDbName, + String foreignTblName) throws MetaException, + NoSuchObjectException, TException { + return client.get_foreign_keys(parentDbName, parentTblName, + foreignDbName, foreignTblName); + } + /** {@inheritDoc} */ @Override public boolean updateTableColumnStatistics(ColumnStatistics statsObj) 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 cb092d1..41b0677 100644 --- a/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java +++ b/metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java @@ -67,6 +67,8 @@ import org.apache.hadoop.hive.metastore.api.PrincipalType; import org.apache.hadoop.hive.metastore.api.PrivilegeBag; import org.apache.hadoop.hive.metastore.api.Role; +import org.apache.hadoop.hive.metastore.api.SQLForeignKey; +import org.apache.hadoop.hive.metastore.api.SQLPrimaryKey; import org.apache.hadoop.hive.metastore.api.SetPartitionsStatsRequest; import org.apache.hadoop.hive.metastore.api.ShowCompactResponse; import org.apache.hadoop.hive.metastore.api.ShowLocksResponse; @@ -1533,4 +1535,11 @@ boolean cacheFileMetadata(String dbName, String tableName, String partName, boolean allParts) throws TException; long getChangeVersion(String topic) throws TException; + + List getPrimaryKeys(String dbName, String tblName) + throws MetaException, NoSuchObjectException, TException; + + List getForeignKeys(String parentDbName, String parentTbName, + String foreignDbName, String foreignTblName) throws MetaException, + NoSuchObjectException, TException; } diff --git a/service-rpc/src/gen/thrift/gen-py/TCLIService/TCLIService-remote b/service-rpc/src/gen/thrift/gen-py/TCLIService/TCLIService-remote old mode 100644 new mode 100755